1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -205,6 +205,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
7 + kirkwood-nsa325.dtb \
8 kirkwood-openblocks_a6.dtb \
9 kirkwood-openblocks_a7.dtb \
10 kirkwood-openrd-base.dtb \
12 +++ b/arch/arm/boot/dts/kirkwood-nsa325.dts
15 + * Device tree file for Zyxel NSA325 and NSA325v2 NAS
18 +#include "kirkwood-nsa3x0-common.dtsi"
21 + model = "ZyXEL NSA325";
22 + compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
25 + device_type = "memory";
26 + reg = <0x00000000 0x20000000>;
30 + bootargs = "console=ttyS0,115200";
31 + stdout-path = &uart0;
45 + pinctrl: pin-controller@10000 {
46 + pinctrl-names = "default";
48 + pmx_led_sata2_green: pmx-led-sata2-green {
49 + marvell,pins = "mpp12";
50 + marvell,function = "gpio";
53 + pmx_led_sata2_red: pmx-led-sata2-red {
54 + marvell,pins = "mpp13";
55 + marvell,function = "gpio";
58 + pmx_mcu_data: pmx-mcu-data {
59 + marvell,pins = "mpp14";
60 + marvell,function = "gpio";
63 + pmx_led_usb_green: pmx-led-usb-green {
64 + marvell,pins = "mpp15";
65 + marvell,function = "gpio";
68 + pmx_mcu_clk: pmx-mcu-clk {
69 + marvell,pins = "mpp16";
70 + marvell,function = "gpio";
73 + pmx_mcu_act: pmx-mcu-act {
74 + marvell,pins = "mpp17";
75 + marvell,function = "gpio";
78 + pmx_usb_power_off: pmx-usb-power-off {
79 + marvell,pins = "mpp21";
80 + marvell,function = "gpio";
83 + pmx_led_sys_green: pmx-led-sys-green {
84 + marvell,pins = "mpp28";
85 + marvell,function = "gpio";
88 + pmx_led_sys_orange: pmx-led-sys-orange {
89 + marvell,pins = "mpp29";
90 + marvell,function = "gpio";
93 + pmx_led_sata1_green: pmx-led-sata1-green {
94 + marvell,pins = "mpp41";
95 + marvell,function = "gpio";
98 + pmx_led_sata1_red: pmx-led-sata1-red {
99 + marvell,pins = "mpp42";
100 + marvell,function = "gpio";
103 + pmx_beeper: pmx-beeper {
104 + marvell,pins = "mpp44";
105 + marvell,function = "gpio";
108 + pmx_pwr_sata1: pmx-pwr-sata1 {
109 + marvell,pins = "mpp47";
110 + marvell,function = "gpio";
115 + /* This board uses the pcf8563 RTC instead of the SoC RTC */
117 + status = "disabled";
123 + pcf8563: pcf8563@51 {
124 + compatible = "nxp,pcf8563";
132 + compatible = "gpio-leds";
133 + pinctrl-0 = <&pmx_led_sata1_green &pmx_led_sata1_red
134 + &pmx_led_sata2_green &pmx_led_sata2_red
135 + &pmx_led_sys_green &pmx_led_sys_orange
136 + &pmx_led_copy_green &pmx_led_copy_red
137 + &pmx_led_usb_green>;
138 + pinctrl-names = "default";
141 + label = "nsa325:green:sata2";
142 + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
146 + label = "nsa325:red:sata2";
147 + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
151 + label = "nsa325:green:usb";
152 + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
156 + label = "nsa325:green:sys";
157 + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
161 + label = "nsa325:orange:sys";
162 + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
166 + label = "nsa325:green:copy";
167 + gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
171 + label = "nsa325:red:copy";
172 + gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
176 + label = "nsa325:green:sata1";
177 + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
181 + label = "nsa325:red:sata1";
182 + gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
187 + compatible = "simple-bus";
188 + #address-cells = <1>;
190 + pinctrl-0 = <&pmx_usb_power_off &pmx_pwr_sata1>;
191 + pinctrl-names = "default";
193 + usb_power: regulator@1 {
194 + compatible = "regulator-fixed";
196 + regulator-name = "USB Power";
197 + regulator-min-microvolt = <5000000>;
198 + regulator-max-microvolt = <5000000>;
199 + regulator-always-on;
201 + enable-active-high;
202 + gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
205 + sata1_power: regulator@2 {
206 + compatible = "regulator-fixed";
208 + regulator-name = "SATA Power";
209 + regulator-min-microvolt = <5000000>;
210 + regulator-max-microvolt = <5000000>;
211 + regulator-always-on;
213 + enable-active-high;
214 + gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
222 + ethphy0: ethernet-phy@1 {
231 + phy-handle = <ðphy0>;