kirkwood-nsa310.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. clock-frequency = <200000000>;
  99. status = "ok";
  100. };
  101. sata@80000 {
  102. status = "okay";
  103. nr-ports = <2>;
  104. };
  105. i2c@11000 {
  106. status = "okay";
  107. adt7476: adt7476a@2e {
  108. compatible = "adt7476";
  109. reg = <0x2e>;
  110. };
  111. };
  112. nand@3000000 {
  113. status = "okay";
  114. chip-delay = <35>;
  115. partition@0 {
  116. label = "uboot";
  117. reg = <0x0000000 0x0100000>;
  118. read-only;
  119. };
  120. partition@100000 {
  121. label = "uboot_env";
  122. reg = <0x0100000 0x0080000>;
  123. };
  124. partition@180000 {
  125. label = "key_store";
  126. reg = <0x0180000 0x0080000>;
  127. };
  128. partition@200000 {
  129. label = "info";
  130. reg = <0x0200000 0x0080000>;
  131. };
  132. partition@280000 {
  133. label = "etc";
  134. reg = <0x0280000 0x0a00000>;
  135. };
  136. partition@c80000 {
  137. label = "kernel_1";
  138. reg = <0x0c80000 0x0a00000>;
  139. };
  140. partition@1680000 {
  141. label = "rootfs1";
  142. reg = <0x1680000 0x2fc0000>;
  143. };
  144. partition@4640000 {
  145. label = "kernel_2";
  146. reg = <0x4640000 0x0a00000>;
  147. };
  148. partition@5040000 {
  149. label = "rootfs2";
  150. reg = <0x5040000 0x2fc0000>;
  151. };
  152. };
  153. };
  154. gpio_keys {
  155. compatible = "gpio-keys";
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. button@1 {
  159. label = "Power Button";
  160. linux,code = <116>;
  161. gpios = <&gpio1 14 0>;
  162. };
  163. button@2 {
  164. label = "Copy Button";
  165. linux,code = <133>;
  166. gpios = <&gpio1 5 1>;
  167. };
  168. button@3 {
  169. label = "Reset Button";
  170. linux,code = <0x198>;
  171. gpios = <&gpio1 4 1>;
  172. };
  173. };
  174. gpio-leds {
  175. compatible = "gpio-leds";
  176. green-sys {
  177. label = "nsa310:green:sys";
  178. gpios = <&gpio0 28 0>;
  179. };
  180. red-sys {
  181. label = "nsa310:red:sys";
  182. gpios = <&gpio0 29 0>;
  183. };
  184. green-hdd {
  185. label = "nsa310:green:hdd";
  186. gpios = <&gpio1 9 0>;
  187. };
  188. red-hdd {
  189. label = "nsa310:red:hdd";
  190. gpios = <&gpio1 10 0>;
  191. };
  192. green-esata {
  193. label = "nsa310:green:esata";
  194. gpios = <&gpio0 12 0>;
  195. };
  196. red-esata {
  197. label = "nsa310:red:esata";
  198. gpios = <&gpio0 13 0>;
  199. };
  200. green-usb {
  201. label = "nsa310:green:usb";
  202. gpios = <&gpio0 15 0>;
  203. };
  204. red-usb {
  205. label = "nsa310:red:usb";
  206. gpios = <&gpio0 16 0>;
  207. };
  208. green-copy {
  209. label = "nsa310:green:copy";
  210. gpios = <&gpio1 7 0>;
  211. };
  212. red-copy {
  213. label = "nsa310:red:copy";
  214. gpios = <&gpio1 8 0>;
  215. };
  216. };
  217. gpio_poweroff {
  218. compatible = "gpio-poweroff";
  219. gpios = <&gpio1 16 0>;
  220. };
  221. regulators {
  222. compatible = "simple-bus";
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. usb0_power_off: regulator@1 {
  226. compatible = "regulator-fixed";
  227. reg = <1>;
  228. regulator-name = "USB Power Off";
  229. regulator-min-microvolt = <5000000>;
  230. regulator-max-microvolt = <5000000>;
  231. regulator-always-on;
  232. regulator-boot-on;
  233. gpio = <&gpio0 21 0>;
  234. };
  235. };
  236. };