kirkwood-nsa310.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /dts-v1/;
  2. /include/ "kirkwood.dtsi"
  3. / {
  4. model = "ZyXEL NSA310";
  5. compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  6. memory {
  7. device_type = "memory";
  8. reg = <0x00000000 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. ocp@f1000000 {
  14. pinctrl: pinctrl@10000 {
  15. pinctrl-0 = < &pmx_led_esata_green
  16. &pmx_led_esata_red
  17. &pmx_led_usb_green
  18. &pmx_led_usb_red
  19. &pmx_usb_power_off
  20. &pmx_led_sys_green
  21. &pmx_led_sys_red
  22. &pmx_btn_reset
  23. &pmx_btn_copy
  24. &pmx_led_copy_green
  25. &pmx_led_copy_red
  26. &pmx_led_hdd_green
  27. &pmx_led_hdd_red
  28. &pmx_unknown
  29. &pmx_btn_power
  30. &pmx_pwr_off >;
  31. pinctrl-names = "default";
  32. pmx_led_esata_green: pmx-led-esata-green {
  33. marvell,pins = "mpp12";
  34. marvell,function = "gpio";
  35. };
  36. pmx_led_esata_red: pmx-led-esata-red {
  37. marvell,pins = "mpp13";
  38. marvell,function = "gpio";
  39. };
  40. pmx_led_usb_green: pmx-led-usb-green {
  41. marvell,pins = "mpp15";
  42. marvell,function = "gpio";
  43. };
  44. pmx_led_usb_red: pmx-led-usb-red {
  45. marvell,pins = "mpp16";
  46. marvell,function = "gpio";
  47. };
  48. pmx_usb_power_off: pmx-usb-power-off {
  49. marvell,pins = "mpp21";
  50. marvell,function = "gpio";
  51. };
  52. pmx_led_sys_green: pmx-led-sys-green {
  53. marvell,pins = "mpp28";
  54. marvell,function = "gpio";
  55. };
  56. pmx_led_sys_red: pmx-led-sys-red {
  57. marvell,pins = "mpp29";
  58. marvell,function = "gpio";
  59. };
  60. pmx_btn_reset: pmx-btn-reset {
  61. marvell,pins = "mpp36";
  62. marvell,function = "gpio";
  63. };
  64. pmx_btn_copy: pmx-btn-copy {
  65. marvell,pins = "mpp37";
  66. marvell,function = "gpio";
  67. };
  68. pmx_led_copy_green: pmx-led-copy-green {
  69. marvell,pins = "mpp39";
  70. marvell,function = "gpio";
  71. };
  72. pmx_led_copy_red: pmx-led-copy-red {
  73. marvell,pins = "mpp40";
  74. marvell,function = "gpio";
  75. };
  76. pmx_led_hdd_green: pmx-led-hdd-green {
  77. marvell,pins = "mpp41";
  78. marvell,function = "gpio";
  79. };
  80. pmx_led_hdd_red: pmx-led-hdd-red {
  81. marvell,pins = "mpp42";
  82. marvell,function = "gpio";
  83. };
  84. pmx_unknown: pmx-unknown {
  85. marvell,pins = "mpp44";
  86. marvell,function = "gpio";
  87. };
  88. pmx_btn_power: pmx-btn-power {
  89. marvell,pins = "mpp46";
  90. marvell,function = "gpio";
  91. };
  92. pmx_pwr_off: pmx-pwr-off {
  93. marvell,pins = "mpp48";
  94. marvell,function = "gpio";
  95. };
  96. };
  97. serial@12000 {
  98. status = "ok";
  99. };
  100. sata@80000 {
  101. status = "okay";
  102. nr-ports = <2>;
  103. };
  104. i2c@11000 {
  105. status = "okay";
  106. adt7476: adt7476a@2e {
  107. compatible = "adt7476";
  108. reg = <0x2e>;
  109. };
  110. };
  111. nand@3000000 {
  112. status = "okay";
  113. chip-delay = <35>;
  114. partition@0 {
  115. label = "uboot";
  116. reg = <0x0000000 0x0100000>;
  117. read-only;
  118. };
  119. partition@100000 {
  120. label = "uboot_env";
  121. reg = <0x0100000 0x0080000>;
  122. };
  123. partition@180000 {
  124. label = "key_store";
  125. reg = <0x0180000 0x0080000>;
  126. };
  127. partition@200000 {
  128. label = "info";
  129. reg = <0x0200000 0x0080000>;
  130. };
  131. partition@280000 {
  132. label = "etc";
  133. reg = <0x0280000 0x0a00000>;
  134. };
  135. partition@c80000 {
  136. label = "kernel_1";
  137. reg = <0x0c80000 0x0a00000>;
  138. };
  139. partition@1680000 {
  140. label = "rootfs1";
  141. reg = <0x1680000 0x2fc0000>;
  142. };
  143. partition@4640000 {
  144. label = "kernel_2";
  145. reg = <0x4640000 0x0a00000>;
  146. };
  147. partition@5040000 {
  148. label = "rootfs2";
  149. reg = <0x5040000 0x2fc0000>;
  150. };
  151. };
  152. };
  153. gpio_keys {
  154. compatible = "gpio-keys";
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. button@1 {
  158. label = "Power Button";
  159. linux,code = <116>;
  160. gpios = <&gpio1 14 0>;
  161. };
  162. button@2 {
  163. label = "Copy Button";
  164. linux,code = <133>;
  165. gpios = <&gpio1 5 1>;
  166. };
  167. button@3 {
  168. label = "Reset Button";
  169. linux,code = <0x198>;
  170. gpios = <&gpio1 4 1>;
  171. };
  172. };
  173. gpio-leds {
  174. compatible = "gpio-leds";
  175. green-sys {
  176. label = "nsa310:green:sys";
  177. gpios = <&gpio0 28 0>;
  178. };
  179. red-sys {
  180. label = "nsa310:red:sys";
  181. gpios = <&gpio0 29 0>;
  182. };
  183. green-hdd {
  184. label = "nsa310:green:hdd";
  185. gpios = <&gpio1 9 0>;
  186. };
  187. red-hdd {
  188. label = "nsa310:red:hdd";
  189. gpios = <&gpio1 10 0>;
  190. };
  191. green-esata {
  192. label = "nsa310:green:esata";
  193. gpios = <&gpio0 12 0>;
  194. };
  195. red-esata {
  196. label = "nsa310:red:esata";
  197. gpios = <&gpio0 13 0>;
  198. };
  199. green-usb {
  200. label = "nsa310:green:usb";
  201. gpios = <&gpio0 15 0>;
  202. };
  203. red-usb {
  204. label = "nsa310:red:usb";
  205. gpios = <&gpio0 16 0>;
  206. };
  207. green-copy {
  208. label = "nsa310:green:copy";
  209. gpios = <&gpio1 7 0>;
  210. };
  211. red-copy {
  212. label = "nsa310:red:copy";
  213. gpios = <&gpio1 8 0>;
  214. };
  215. };
  216. gpio_poweroff {
  217. compatible = "gpio-poweroff";
  218. gpios = <&gpio1 16 0>;
  219. };
  220. regulators {
  221. compatible = "simple-bus";
  222. #address-cells = <1>;
  223. #size-cells = <0>;
  224. usb0_power_off: regulator@1 {
  225. compatible = "regulator-fixed";
  226. reg = <1>;
  227. regulator-name = "USB Power Off";
  228. regulator-min-microvolt = <5000000>;
  229. regulator-max-microvolt = <5000000>;
  230. regulator-always-on;
  231. regulator-boot-on;
  232. gpio = <&gpio0 21 0>;
  233. };
  234. };
  235. };