1 // SPDX-License-Identifier: GPL-2.0+
2 /* Device tree file for the Zyxel NSA 320 NAS box.
4 * Copyright (c) 2014, Adam Baker <linux@baker-net.org.uk>
7 * Based upon the board setup file created by Peter Schildmann */
11 #include "kirkwood-nsa3x0-common.dtsi"
14 model = "Zyxel NSA320";
15 compatible = "zyxel,nsa320", "marvell,kirkwood-88f6281", "marvell,kirkwood";
18 device_type = "memory";
19 reg = <0x00000000 0x20000000>;
23 bootargs = "console=ttyS0,115200";
28 pinctrl: pin-controller@10000 {
29 pinctrl-names = "default";
31 /* SATA Activity and Present pins are not connected */
32 pmx_sata0: pmx-sata0 {
34 marvell,function = "sata0";
37 pmx_sata1: pmx-sata1 {
39 marvell,function = "sata1";
42 pmx_led_hdd2_green: pmx-led-hdd2-green {
43 marvell,pins = "mpp12";
44 marvell,function = "gpio";
47 pmx_led_hdd2_red: pmx-led-hdd2-red {
48 marvell,pins = "mpp13";
49 marvell,function = "gpio";
52 pmx_mcu_data: pmx-mcu-data {
53 marvell,pins = "mpp14";
54 marvell,function = "gpio";
57 pmx_led_usb_green: pmx-led-usb-green {
58 marvell,pins = "mpp15";
59 marvell,function = "gpio";
62 pmx_mcu_clk: pmx-mcu-clk {
63 marvell,pins = "mpp16";
64 marvell,function = "gpio";
67 pmx_mcu_act: pmx-mcu-act {
68 marvell,pins = "mpp17";
69 marvell,function = "gpio";
72 pmx_led_sys_green: pmx-led-sys-green {
73 marvell,pins = "mpp28";
74 marvell,function = "gpio";
77 pmx_led_sys_orange: pmx-led-sys-orange {
78 marvell,pins = "mpp29";
79 marvell,function = "gpio";
82 pmx_led_hdd1_green: pmx-led-hdd1-green {
83 marvell,pins = "mpp41";
84 marvell,function = "gpio";
87 pmx_led_hdd1_red: pmx-led-hdd1-red {
88 marvell,pins = "mpp42";
89 marvell,function = "gpio";
93 marvell,pins = "mpp43";
94 marvell,function = "gpio";
97 /* Buzzer needs to be switched at around 1kHz so is
98 not compatible with the gpio-beeper driver. */
99 pmx_buzzer: pmx-buzzer {
100 marvell,pins = "mpp44";
101 marvell,function = "gpio";
104 pmx_vid_b1: pmx-vid-b1 {
105 marvell,pins = "mpp45";
106 marvell,function = "gpio";
109 pmx_power_resume_data: pmx-power-resume-data {
110 marvell,pins = "mpp47";
111 marvell,function = "gpio";
114 pmx_power_resume_clk: pmx-power-resume-clk {
115 marvell,pins = "mpp49";
116 marvell,function = "gpio";
123 pcf8563: pcf8563@51 {
124 compatible = "nxp,pcf8563";
131 usb0_power: regulator@1 {
137 compatible = "gpio-leds";
138 pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red
140 &pmx_led_sys_green &pmx_led_sys_orange
141 &pmx_led_copy_green &pmx_led_copy_red
142 &pmx_led_hdd1_green &pmx_led_hdd1_red>;
143 pinctrl-names = "default";
146 label = "nsa320:green:sys";
147 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
150 label = "nsa320:orange:sys";
151 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
154 label = "nsa320:green:hdd1";
155 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
158 label = "nsa320:red:hdd1";
159 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
162 label = "nsa320:green:hdd2";
163 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
166 label = "nsa320:red:hdd2";
167 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
170 label = "nsa320:green:usb";
171 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
174 label = "nsa320:green:copy";
175 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
178 label = "nsa320:red:copy";
179 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
184 compatible = "zyxel,nsa320-mcu";
185 pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>;
186 pinctrl-names = "default";
188 data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
189 clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
190 act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
193 /* The following pins are currently not assigned to a driver,
194 some of them should be configured as inputs.
195 pinctrl-0 = <&pmx_htp &pmx_vid_b1
196 &pmx_power_resume_data &pmx_power_resume_clk>; */
201 ethphy0: ethernet-phy@1 {
209 phy-handle = <ðphy0>;