2 +++ b/arch/arm/boot/dts/kirkwood-nsa310s.dts
6 +#include "kirkwood.dtsi"
7 +#include "kirkwood-6281.dtsi"
10 + model = "ZyXEL NSA310S";
11 + compatible = "zyxel,nsa310s", "marvell,kirkwood-88f6702", "marvell,kirkwood";
14 + device_type = "memory";
15 + reg = <0x00000000 0x10000000>;
19 + bootargs = "console=ttyS0,115200n8 earlyprintk";
20 + stdout-path = &uart0;
34 + pinctrl: pin-controller@10000 {
35 + pinctrl-names = "default";
37 + pmx_sata0: pmx-sata0 {
39 + marvell,function = "sata0";
41 + pmx_sata1: pmx-sata1 {
43 + marvell,function = "sata1";
45 + pmx_usb_power: pmx-usb-power {
46 + marvell,pins = "mpp21";
47 + marvell,function = "gpio";
49 + pmx_pwr_off: pmx-pwr-off {
50 + marvell,pins = "mpp27";
51 + marvell,function = "gpio";
53 + pmx_btn_reset: pmx-btn-reset {
54 + marvell,pins = "mpp24";
55 + marvell,function = "gpio";
57 + pmx_btn_copy: pmx-btn-copy {
58 + marvell,pins = "mpp25";
59 + marvell,function = "gpio";
61 + pmx_btn_power: pmx-btn-power {
62 + marvell,pins = "mpp26";
63 + marvell,function = "gpio";
65 + pmx_led_hdd2_green: pmx-led-hdd2-green {
66 + marvell,pins = "mpp34";
67 + marvell,function = "gpio";
69 + pmx_led_hdd2_red: pmx-led-hdd2-red {
70 + marvell,pins = "mpp12";
71 + marvell,function = "gpio";
73 + pmx_led_usb_green: pmx-led-usb-green {
74 + marvell,pins = "mpp15";
75 + marvell,function = "gpio";
77 + pmx_led_copy_green: pmx-led-copy-green {
78 + marvell,pins = "mpp22";
79 + marvell,function = "gpio";
81 + pmx_led_copy_red: pmx-led-copy-red {
82 + marvell,pins = "mpp23";
83 + marvell,function = "gpio";
85 + pmx_led_sys_green: pmx-led-sys-green {
86 + marvell,pins = "mpp28";
87 + marvell,function = "gpio";
89 + pmx_led_sys_orange: pmx-led-sys-orange {
90 + marvell,pins = "mpp29";
91 + marvell,function = "gpio";
93 + pmx_led_hdd1_green: pmx-led-hdd1-green {
94 + marvell,pins = "mpp16";
95 + marvell,function = "gpio";
97 + pmx_led_hdd1_red: pmx-led-hdd1-red {
98 + marvell,pins = "mpp13";
99 + marvell,function = "gpio";
101 + pmx_pwr_sata1: pmx-pwr-sata1 {
102 + marvell,pins = "mpp33";
103 + marvell,function = "gpio";
117 + status = "disabled";
123 + compatible = "htk,ht1382";
130 + compatible = "simple-bus";
131 + #address-cells = <1>;
133 + pinctrl-names = "default";
134 + pinctrl-0 = <&pmx_usb_power &pmx_pwr_sata1>;
136 + usb0_power: regulator@1 {
137 + compatible = "regulator-fixed";
139 + regulator-name = "USB Power";
140 + regulator-min-microvolt = <5000000>;
141 + regulator-max-microvolt = <5000000>;
142 + regulator-always-on;
144 + enable-active-high;
145 + gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
148 + sata1_power: regulator@2 {
149 + compatible = "regulator-fixed";
151 + regulator-name = "SATA1 Power";
152 + regulator-min-microvolt = <5000000>;
153 + regulator-max-microvolt = <5000000>;
154 + regulator-always-on;
156 + enable-active-high;
157 + gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
163 + compatible = "gpio-keys";
164 + #address-cells = <1>;
166 + pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
167 + pinctrl-names = "default";
170 + label = "Power Button";
171 + linux,code = <KEY_POWER>;
172 + gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
175 + label = "Copy Button";
176 + linux,code = <KEY_COPY>;
177 + gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
180 + label = "Reset Button";
181 + linux,code = <KEY_RESTART>;
182 + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
187 + compatible = "gpio-leds";
188 + pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red
190 + &pmx_led_sys_green &pmx_led_sys_orange
191 + &pmx_led_copy_green &pmx_led_copy_red
192 + &pmx_led_hdd1_green &pmx_led_hdd1_red>;
193 + pinctrl-names = "default";
196 + label = "nsa310s:green:sys";
197 + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
198 + linux,default-trigger = "timer";
201 + label = "nsa310s:orange:sys";
202 + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
205 + label = "nsa310s:green:hdd1";
206 + gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
209 + label = "nsa310s:red:hdd1";
210 + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
213 + label = "nsa310s:green:hdd2";
214 + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
217 + label = "nsa310s:red:hdd2";
218 + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
221 + label = "nsa310s:green:usb";
222 + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
225 + label = "nsa310s:green:copy";
226 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
227 + linux,default-trigger = "ide-disk";
230 + label = "nsa310s:red:copy";
231 + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
236 + compatible = "gpio-poweroff";
237 + pinctrl-0 = <&pmx_pwr_off>;
238 + pinctrl-names = "default";
239 + gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
249 + reg = <0x0000000 0xe0000>;
253 + label = "u-boot environment";
254 + reg = <0xe0000 0x100000>;
258 + label = "second stage u-boot";
259 + reg = <0x100000 0x200000>;
264 + reg = <0x200000 0xfe00000>;
270 + ethphy0: ethernet-phy@1 {
271 + compatible = "marvell,88e1318s";
273 + marvell,reg-init = <0x1 0x16 0x0 0x3>,
274 + <0x1 0x10 0x0 0x1017>,
275 + <0x1 0x11 0x0 0x4408>,
276 + <0x1 0x16 0x0 0x0>,
277 + <0x1 0x4 0x0 0x1e1>,
278 + <0x1 0x9 0x0 0x300>,
279 + <0x1 0x10 0x0 0x3860>,
280 + <0x1 0x0 0x0 0x9140>;
288 + phy-handle = <ðphy0>;
291 --- a/arch/arm/boot/dts/Makefile
292 +++ b/arch/arm/boot/dts/Makefile
293 @@ -196,6 +196,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
294 kirkwood-ns2mini.dtb \
295 kirkwood-nsa310.dtb \
296 kirkwood-nsa310a.dtb \
297 + kirkwood-nsa310s.dtb \
298 kirkwood-openblocks_a6.dtb \
299 kirkwood-openblocks_a7.dtb \
300 kirkwood-openrd-base.dtb \