ox820-kd20.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Copyright (C) 2014 Daniel Golle <daniel@makrotopia.org>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. #include "ox820.dtsi"
  10. / {
  11. model = "Shuttle KD20";
  12. chosen {
  13. bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
  14. };
  15. pcie-controller@47C00000 {
  16. status = "okay";
  17. };
  18. uart@44200000 {
  19. status = "okay";
  20. };
  21. sata@45900000 {
  22. status = "okay";
  23. nr-ports = <2>;
  24. };
  25. nand@41000000 {
  26. status = "okay";
  27. partition@0 {
  28. label = "boot";
  29. reg = <0x00000000 0x00e00000>;
  30. /*read-only;*/
  31. };
  32. partition@e00000 {
  33. label = "ubi";
  34. reg = <0x00e00000 0x07200000>;
  35. };
  36. };
  37. ethernet@40400000 {
  38. status = "okay";
  39. snps,phy-addr = <1>;
  40. phy-mode = "rgmii-id";
  41. };
  42. ehci@40200100 {
  43. status = "okay";
  44. };
  45. i2c-gpio {
  46. compatible = "i2c-gpio";
  47. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  48. i2c-gpio,delay-us = <10>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. pcf8563: rtc@51 {
  52. compatible = "nxp,pcf8563";
  53. reg = <0x51>;
  54. };
  55. };
  56. gpio-keys-polled {
  57. compatible = "gpio-keys-polled";
  58. #address-cells = <1>;
  59. #size-cells = <0>;
  60. poll-interval = <100>;
  61. power {
  62. label = "power";
  63. gpios = <&GPIOA 10 1>;
  64. linux,code = <116>;
  65. };
  66. reset {
  67. label = "reset";
  68. gpios = <&GPIOA 11 1>;
  69. linux,code = <0x198>;
  70. };
  71. eject1 {
  72. label = "eject1";
  73. gpios = <&GPIOA 5 1>;
  74. linux,code = <161>;
  75. };
  76. eject2 {
  77. label = "eject2";
  78. gpios = <&GPIOA 6 1>;
  79. linux,code = <162>;
  80. };
  81. };
  82. gpio-leds {
  83. compatible = "gpio-leds";
  84. status {
  85. label = "kd20:blue:status";
  86. gpios = <&GPIOB 16 0>;
  87. };
  88. status2 {
  89. label = "kd20:red:status";
  90. gpios = <&GPIOB 17 0>;
  91. };
  92. hdd1blue {
  93. label = "kd20:blue:hdd1";
  94. gpios = <&GPIOA 27 0>;
  95. linux,default-trigger = "ata1";
  96. };
  97. hdd1red {
  98. label = "kd20:red:hdd1";
  99. gpios = <&GPIOB 4 0>;
  100. };
  101. hdd2blue {
  102. label = "kd20:blue:hdd2";
  103. gpios = <&GPIOB 6 0>;
  104. linux,default-trigger = "ata2";
  105. };
  106. hdd2red {
  107. label = "kd20:red:hdd2";
  108. gpios = <&GPIOB 7 0>;
  109. };
  110. usb {
  111. label = "kd20:blue:usb";
  112. gpios = <&GPIOB 8 0>;
  113. };
  114. };
  115. beeper: beeper {
  116. compatible = "gpio-beeper";
  117. gpios = <&GPIOB 11 0>;
  118. };
  119. gpio-fan {
  120. compatible = "gpio-fan";
  121. gpios = <&GPIOA 2 1>;
  122. gpio-fan,speed-map = <0 0
  123. 3000 1>;
  124. };
  125. gpio-poweroff {
  126. compatible = "gpio-poweroff";
  127. gpios = <&GPIOA 9 0>;
  128. };
  129. };