ox820-shuttle-kd20.dts 3.0 KB

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