ox820-shuttle-kd20.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /dts-v1/;
  2. #include "ox820.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Shuttle KD20";
  6. compatible = "shuttle,kd20", "oxsemi,ox820";
  7. chosen {
  8. bootargs = "earlyprintk console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. memory {
  12. /* 256Mbytes DDR */
  13. reg = <0x60000000 0x10000000>;
  14. };
  15. aliases {
  16. serial0 = &uart0;
  17. gpio0 = &gpio0;
  18. gpio1 = &gpio1;
  19. led-boot = &led_status;
  20. led-failsafe = &led_warn;
  21. led-running = &led_status;
  22. led-upgrade = &led_warn;
  23. };
  24. i2c-gpio {
  25. compatible = "i2c-gpio";
  26. gpios = <&gpio1 9 0 &gpio1 10 0>;
  27. i2c-gpio,delay-us = <10>;
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. rtc0: rtc@51 {
  31. compatible = "nxp,pcf8563";
  32. reg = <0x51>;
  33. };
  34. };
  35. keys {
  36. compatible = "gpio-keys-polled";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. poll-interval = <100>;
  40. power {
  41. label = "power";
  42. gpios = <&gpio0 10 1>;
  43. linux,code = <KEY_POWER>;
  44. };
  45. reset {
  46. label = "reset";
  47. gpios = <&gpio0 11 1>;
  48. linux,code = <KEY_RESTART>;
  49. };
  50. eject1 {
  51. label = "eject1";
  52. gpios = <&gpio0 5 1>;
  53. linux,code = <KEY_EJECTCD>;
  54. };
  55. eject2 {
  56. label = "eject2";
  57. gpios = <&gpio0 6 1>;
  58. linux,code = <162>;
  59. };
  60. };
  61. leds {
  62. compatible = "gpio-leds";
  63. led_status: status {
  64. label = "kd20:blue:status";
  65. gpios = <&gpio1 16 0>;
  66. };
  67. led_warn: status2 {
  68. label = "kd20:red:status";
  69. gpios = <&gpio1 17 0>;
  70. };
  71. hdd1blue {
  72. label = "kd20:blue:hdd1";
  73. gpios = <&gpio0 27 0>;
  74. linux,default-trigger = "ata1";
  75. };
  76. hdd1red {
  77. label = "kd20:red:hdd1";
  78. gpios = <&gpio1 4 0>;
  79. };
  80. hdd2blue {
  81. label = "kd20:blue:hdd2";
  82. gpios = <&gpio1 6 0>;
  83. linux,default-trigger = "ata2";
  84. };
  85. hdd2red {
  86. label = "kd20:red:hdd2";
  87. gpios = <&gpio1 7 0>;
  88. };
  89. usb {
  90. label = "kd20:blue:usb";
  91. gpios = <&gpio1 8 0>;
  92. trigger-sources = <&ehci_port1>, <&ehci_port2>;
  93. linux,default-trigger = "usbport";
  94. };
  95. };
  96. beeper: beeper {
  97. compatible = "gpio-beeper";
  98. gpios = <&gpio1 11 0>;
  99. };
  100. gpio-fan {
  101. compatible = "gpio-fan";
  102. gpios = <&gpio0 2 1>;
  103. gpio-fan,speed-map = <0 0
  104. 3000 1>;
  105. };
  106. gpio-poweroff {
  107. compatible = "gpio-poweroff";
  108. gpios = <&gpio0 9 0>;
  109. };
  110. };
  111. &uart0 {
  112. status = "okay";
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&pinctrl_uart0>;
  115. };
  116. &nandc {
  117. status = "okay";
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&pinctrl_nand>;
  120. nand@0 {
  121. reg = <0>;
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. nand-ecc-mode = "soft";
  125. nand-ecc-algo = "hamming";
  126. partition@0 {
  127. label = "stage1";
  128. reg = <0x00000000 0x00040000>;
  129. read-only;
  130. };
  131. partition@40000 {
  132. label = "u-boot";
  133. reg = <0x00040000 0x001e0000>;
  134. read-only;
  135. };
  136. partition@220000 {
  137. label = "u-boot-env";
  138. reg = <0x00220000 0x00020000>;
  139. };
  140. partition@240000 {
  141. label = "initrd";
  142. reg = <0x00240000 0x00600000>;
  143. };
  144. partition@840000 {
  145. label = "kernel";
  146. reg = <0x00840000 0x007C0000>;
  147. };
  148. partition@e00000 {
  149. label = "ubi";
  150. reg = <0x01000000 0x07000000>;
  151. };
  152. };
  153. };
  154. &etha {
  155. status = "okay";
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&pinctrl_etha_mdio>;
  158. };
  159. &ehci {
  160. status = "okay";
  161. };
  162. &sata {
  163. status = "okay";
  164. nr-ports = <2>;
  165. };
  166. &pcie_phy {
  167. status = "okay";
  168. };
  169. &pcie0 {
  170. status = "okay";
  171. };