ox820-kd20.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "Shuttle KD20";
  13. chosen {
  14. bootargs = "console=ttyS0,115200n8 earlyprintk=serial mem=256M";
  15. };
  16. pcie-controller@47C00000 {
  17. status = "okay";
  18. };
  19. uart@44200000 {
  20. status = "okay";
  21. };
  22. sata@45900000 {
  23. status = "okay";
  24. nr-ports = <2>;
  25. };
  26. ethernet@40400000 {
  27. status = "okay";
  28. snps,phy-addr = <1>;
  29. phy-mode = "rgmii-id";
  30. };
  31. ehci@40200100 {
  32. status = "okay";
  33. };
  34. i2c-gpio {
  35. compatible = "i2c-gpio";
  36. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  37. i2c-gpio,delay-us = <10>;
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. pcf8563: rtc@51 {
  41. compatible = "nxp,pcf8563";
  42. reg = <0x51>;
  43. };
  44. };
  45. gpio-keys-polled {
  46. compatible = "gpio-keys-polled";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. poll-interval = <100>;
  50. power {
  51. label = "power";
  52. gpios = <&GPIOA 10 1>;
  53. linux,code = <KEY_POWER>;
  54. };
  55. reset {
  56. label = "reset";
  57. gpios = <&GPIOA 11 1>;
  58. linux,code = <KEY_RESTART>;
  59. };
  60. eject1 {
  61. label = "eject1";
  62. gpios = <&GPIOA 5 1>;
  63. linux,code = <KEY_EJECTCD>;
  64. };
  65. eject2 {
  66. label = "eject2";
  67. gpios = <&GPIOA 6 1>;
  68. linux,code = <162>;
  69. };
  70. };
  71. gpio-leds {
  72. compatible = "gpio-leds";
  73. status {
  74. label = "kd20:blue:status";
  75. gpios = <&GPIOB 16 0>;
  76. };
  77. status2 {
  78. label = "kd20:red:status";
  79. gpios = <&GPIOB 17 0>;
  80. };
  81. hdd1blue {
  82. label = "kd20:blue:hdd1";
  83. gpios = <&GPIOA 27 0>;
  84. linux,default-trigger = "ata1";
  85. };
  86. hdd1red {
  87. label = "kd20:red:hdd1";
  88. gpios = <&GPIOB 4 0>;
  89. };
  90. hdd2blue {
  91. label = "kd20:blue:hdd2";
  92. gpios = <&GPIOB 6 0>;
  93. linux,default-trigger = "ata2";
  94. };
  95. hdd2red {
  96. label = "kd20:red:hdd2";
  97. gpios = <&GPIOB 7 0>;
  98. };
  99. usb {
  100. label = "kd20:blue:usb";
  101. gpios = <&GPIOB 8 0>;
  102. };
  103. };
  104. beeper: beeper {
  105. compatible = "gpio-beeper";
  106. gpios = <&GPIOB 11 0>;
  107. };
  108. gpio-fan {
  109. compatible = "gpio-fan";
  110. gpios = <&GPIOA 2 1>;
  111. gpio-fan,speed-map = <0 0
  112. 3000 1>;
  113. };
  114. gpio-poweroff {
  115. compatible = "gpio-poweroff";
  116. gpios = <&GPIOA 9 0>;
  117. };
  118. };
  119. &nandc {
  120. status = "okay";
  121. nand@0 {
  122. reg = <0>;
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. nand-ecc-mode = "soft";
  126. nand-ecc-algo = "hamming";
  127. partition@0 {
  128. label = "stage1";
  129. reg = <0x00000000 0x00040000>;
  130. read-only;
  131. };
  132. partition@40000 {
  133. label = "u-boot";
  134. reg = <0x00040000 0x00200000>;
  135. read-only;
  136. };
  137. partition@240000 {
  138. label = "initrd";
  139. reg = <0x00240000 0x00600000>;
  140. };
  141. partition@840000 {
  142. label = "kernel";
  143. reg = <0x00840000 0x007C0000>;
  144. };
  145. partition@e00000 {
  146. label = "ubi";
  147. reg = <0x01000000 0x07000000>;
  148. };
  149. };
  150. };