kirkwood-nsa325.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /* Device tree file for the Zyxel NSA 325 NAS box.
  3. *
  4. * Copyright (c) 2015, Hans Ulli Kroll <[email protected]>
  5. *
  6. *
  7. * Based upon the board setup file created by Peter Schildmann
  8. */
  9. /dts-v1/;
  10. #include "kirkwood-nsa3x0-common.dtsi"
  11. / {
  12. model = "ZyXEL NSA325";
  13. compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  14. memory {
  15. device_type = "memory";
  16. reg = <0x00000000 0x20000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200";
  20. stdout-path = &uart0;
  21. };
  22. ocp@f1000000 {
  23. pinctrl: pin-controller@10000 {
  24. pinctrl-names = "default";
  25. pmx_led_hdd2_green: pmx-led-hdd2-green {
  26. marvell,pins = "mpp12";
  27. marvell,function = "gpio";
  28. };
  29. pmx_led_hdd2_red: pmx-led-hdd2-red {
  30. marvell,pins = "mpp13";
  31. marvell,function = "gpio";
  32. };
  33. pmx_mcu_data: pmx-mcu-data {
  34. marvell,pins = "mpp14";
  35. marvell,function = "gpio";
  36. };
  37. pmx_led_usb_green: pmx-led-usb-green {
  38. marvell,pins = "mpp15";
  39. marvell,function = "gpio";
  40. };
  41. pmx_mcu_clk: pmx-mcu-clk {
  42. marvell,pins = "mpp16";
  43. marvell,function = "gpio";
  44. };
  45. pmx_mcu_act: pmx-mcu-act {
  46. marvell,pins = "mpp17";
  47. marvell,function = "gpio";
  48. };
  49. pmx_led_sys_green: pmx-led-sys-green {
  50. marvell,pins = "mpp28";
  51. marvell,function = "gpio";
  52. };
  53. pmx_led_sys_orange: pmx-led-sys-orange {
  54. marvell,pins = "mpp29";
  55. marvell,function = "gpio";
  56. };
  57. pmx_led_hdd1_green: pmx-led-hdd1-green {
  58. marvell,pins = "mpp41";
  59. marvell,function = "gpio";
  60. };
  61. pmx_led_hdd1_red: pmx-led-hdd1-red {
  62. marvell,pins = "mpp42";
  63. marvell,function = "gpio";
  64. };
  65. pmx_htp: pmx-htp {
  66. marvell,pins = "mpp43";
  67. marvell,function = "gpio";
  68. };
  69. /*
  70. * Buzzer needs to be switched at around 1kHz so is
  71. * not compatible with the gpio-beeper driver.
  72. */
  73. pmx_buzzer: pmx-buzzer {
  74. marvell,pins = "mpp44";
  75. marvell,function = "gpio";
  76. };
  77. pmx_vid_b1: pmx-vid-b1 {
  78. marvell,pins = "mpp45";
  79. marvell,function = "gpio";
  80. };
  81. pmx_power_resume_data: pmx-power-resume-data {
  82. marvell,pins = "mpp47";
  83. marvell,function = "gpio";
  84. };
  85. pmx_power_resume_clk: pmx-power-resume-clk {
  86. marvell,pins = "mpp49";
  87. marvell,function = "gpio";
  88. };
  89. pmx_pwr_sata1: pmx-pwr-sata1 {
  90. marvell,pins = "mpp47";
  91. marvell,function = "gpio";
  92. };
  93. };
  94. /* This board uses the pcf8563 RTC instead of the SoC RTC */
  95. rtc@10300 {
  96. status = "disabled";
  97. };
  98. i2c@11000 {
  99. status = "okay";
  100. pcf8563: pcf8563@51 {
  101. compatible = "nxp,pcf8563";
  102. reg = <0x51>;
  103. };
  104. };
  105. };
  106. regulators {
  107. compatible = "simple-bus";
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. pinctrl-0 = <&pmx_pwr_sata1>;
  111. pinctrl-names = "default";
  112. usb0_power: regulator@1 {
  113. enable-active-high;
  114. };
  115. sata1_power: regulator@2 {
  116. compatible = "regulator-fixed";
  117. reg = <2>;
  118. regulator-name = "SATA1 Power";
  119. regulator-min-microvolt = <5000000>;
  120. regulator-max-microvolt = <5000000>;
  121. regulator-always-on;
  122. regulator-boot-on;
  123. enable-active-high;
  124. gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
  125. };
  126. };
  127. gpio-leds {
  128. compatible = "gpio-leds";
  129. pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red
  130. &pmx_led_usb_green
  131. &pmx_led_sys_green &pmx_led_sys_orange
  132. &pmx_led_copy_green &pmx_led_copy_red
  133. &pmx_led_hdd1_green &pmx_led_hdd1_red>;
  134. pinctrl-names = "default";
  135. green-sys {
  136. label = "nsa325:green:sys";
  137. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  138. };
  139. orange-sys {
  140. label = "nsa325:orange:sys";
  141. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  142. };
  143. green-hdd1 {
  144. label = "nsa325:green:hdd1";
  145. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  146. };
  147. red-hdd1 {
  148. label = "nsa325:red:hdd1";
  149. gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  150. };
  151. green-hdd2 {
  152. label = "nsa325:green:hdd2";
  153. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  154. };
  155. red-hdd2 {
  156. label = "nsa325:red:hdd2";
  157. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  158. };
  159. green-usb {
  160. label = "nsa325:green:usb";
  161. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  162. };
  163. green-copy {
  164. label = "nsa325:green:copy";
  165. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  166. };
  167. red-copy {
  168. label = "nsa325:red:copy";
  169. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  170. };
  171. /* The following pins are currently not assigned to a driver,
  172. some of them should be configured as inputs.
  173. pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act
  174. &pmx_htp &pmx_vid_b1
  175. &pmx_power_resume_data &pmx_power_resume_clk>; */
  176. };
  177. };
  178. &mdio {
  179. status = "okay";
  180. ethphy0: ethernet-phy@1 {
  181. reg = <1>;
  182. };
  183. };
  184. &eth0 {
  185. status = "okay";
  186. ethernet0-port@0 {
  187. phy-handle = <&ethphy0>;
  188. };
  189. };
  190. &pciec {
  191. status = "okay";
  192. };
  193. &pcie0 {
  194. status = "okay";
  195. };