ox820-shuttle-kd20.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. memory {
  12. /* 128Mbytes DDR */
  13. reg = <0x60000000 0x8000000>;
  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. gpio-keys-polled {
  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. gpio-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. };
  89. };
  90. beeper: beeper {
  91. compatible = "gpio-beeper";
  92. gpios = <&gpio1 11 0>;
  93. };
  94. gpio-fan {
  95. compatible = "gpio-fan";
  96. gpios = <&gpio0 2 1>;
  97. gpio-fan,speed-map = <0 0
  98. 3000 1>;
  99. };
  100. gpio-poweroff {
  101. compatible = "gpio-poweroff";
  102. gpios = <&gpio0 9 0>;
  103. };
  104. };
  105. &uart0 {
  106. status = "okay";
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&pinctrl_uart0>;
  109. };
  110. &nandc {
  111. status = "okay";
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&pinctrl_nand>;
  114. nand@0 {
  115. reg = <0>;
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. nand-ecc-mode = "soft";
  119. nand-ecc-algo = "hamming";
  120. partition@0 {
  121. label = "stage1";
  122. reg = <0x00000000 0x00040000>;
  123. read-only;
  124. };
  125. partition@40000 {
  126. label = "u-boot";
  127. reg = <0x00040000 0x00200000>;
  128. read-only;
  129. };
  130. partition@240000 {
  131. label = "initrd";
  132. reg = <0x00240000 0x00600000>;
  133. };
  134. partition@840000 {
  135. label = "kernel";
  136. reg = <0x00840000 0x007C0000>;
  137. };
  138. partition@e00000 {
  139. label = "ubi";
  140. reg = <0x01000000 0x07000000>;
  141. };
  142. };
  143. };
  144. &etha {
  145. status = "okay";
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&pinctrl_etha_mdio>;
  148. };
  149. &ehci {
  150. status = "okay";
  151. };
  152. &sata {
  153. status = "okay";
  154. nr-ports = <2>;
  155. };
  156. &pcie0 {
  157. status = "okay";
  158. };