1 --- a/arch/arm/boot/dts/Makefile
2 +++ b/arch/arm/boot/dts/Makefile
3 @@ -204,6 +204,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
7 + kirkwood-nsa310s.dtb \
8 kirkwood-openblocks_a6.dtb \
9 kirkwood-openblocks_a7.dtb \
10 kirkwood-openrd-base.dtb \
12 +++ b/arch/arm/boot/dts/kirkwood-nsa310s.dts
16 +#include "kirkwood.dtsi"
17 +#include "kirkwood-6281.dtsi"
20 + model = "ZyXEL NSA310S";
21 + compatible = "zyxel,nsa320s", "marvell,kirkwood-88f6702", "marvell,kirkwood";
24 + device_type = "memory";
25 + reg = <0x00000000 0x10000000>;
29 + bootargs = "console=ttyS0,115200n8 earlyprintk";
30 + stdout-path = &uart0;
44 + pinctrl: pin-controller@10000 {
45 + pinctrl-names = "default";
47 + pmx_sata0: pmx-sata0 {
49 + marvell,function = "sata0";
51 + pmx_sata1: pmx-sata1 {
53 + marvell,function = "sata1";
55 + pmx_usb_power: pmx-usb-power {
56 + marvell,pins = "mpp21";
57 + marvell,function = "gpio";
59 + pmx_pwr_off: pmx-pwr-off {
60 + marvell,pins = "mpp27";
61 + marvell,function = "gpio";
63 + pmx_btn_reset: pmx-btn-reset {
64 + marvell,pins = "mpp24";
65 + marvell,function = "gpio";
67 + pmx_btn_copy: pmx-btn-copy {
68 + marvell,pins = "mpp25";
69 + marvell,function = "gpio";
71 + pmx_btn_power: pmx-btn-power {
72 + marvell,pins = "mpp26";
73 + marvell,function = "gpio";
75 + pmx_led_hdd2_green: pmx-led-hdd2-green {
76 + marvell,pins = "mpp34";
77 + marvell,function = "gpio";
79 + pmx_led_hdd2_red: pmx-led-hdd2-red {
80 + marvell,pins = "mpp12";
81 + marvell,function = "gpio";
83 + pmx_led_usb_green: pmx-led-usb-green {
84 + marvell,pins = "mpp15";
85 + marvell,function = "gpio";
87 + pmx_led_copy_green: pmx-led-copy-green {
88 + marvell,pins = "mpp22";
89 + marvell,function = "gpio";
91 + pmx_led_copy_red: pmx-led-copy-red {
92 + marvell,pins = "mpp23";
93 + marvell,function = "gpio";
95 + pmx_led_sys_green: pmx-led-sys-green {
96 + marvell,pins = "mpp28";
97 + marvell,function = "gpio";
99 + pmx_led_sys_orange: pmx-led-sys-orange {
100 + marvell,pins = "mpp29";
101 + marvell,function = "gpio";
103 + pmx_led_hdd1_green: pmx-led-hdd1-green {
104 + marvell,pins = "mpp16";
105 + marvell,function = "gpio";
107 + pmx_led_hdd1_red: pmx-led-hdd1-red {
108 + marvell,pins = "mpp13";
109 + marvell,function = "gpio";
111 + pmx_pwr_sata1: pmx-pwr-sata1 {
112 + marvell,pins = "mpp33";
113 + marvell,function = "gpio";
127 + status = "disabled";
133 + compatible = "htk,ht1382";
140 + compatible = "simple-bus";
141 + #address-cells = <1>;
143 + pinctrl-names = "default";
144 + pinctrl-0 = <&pmx_usb_power &pmx_pwr_sata1>;
146 + usb0_power: regulator@1 {
147 + compatible = "regulator-fixed";
149 + regulator-name = "USB Power";
150 + regulator-min-microvolt = <5000000>;
151 + regulator-max-microvolt = <5000000>;
152 + regulator-always-on;
154 + enable-active-high;
155 + gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
158 + sata1_power: regulator@2 {
159 + compatible = "regulator-fixed";
161 + regulator-name = "SATA1 Power";
162 + regulator-min-microvolt = <5000000>;
163 + regulator-max-microvolt = <5000000>;
164 + regulator-always-on;
166 + enable-active-high;
167 + gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
173 + compatible = "gpio-keys";
174 + #address-cells = <1>;
176 + pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
177 + pinctrl-names = "default";
180 + label = "Power Button";
181 + linux,code = <KEY_POWER>;
182 + gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
185 + label = "Copy Button";
186 + linux,code = <KEY_COPY>;
187 + gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
190 + label = "Reset Button";
191 + linux,code = <KEY_RESTART>;
192 + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
197 + compatible = "gpio-leds";
198 + pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red
200 + &pmx_led_sys_green &pmx_led_sys_orange
201 + &pmx_led_copy_green &pmx_led_copy_red
202 + &pmx_led_hdd1_green &pmx_led_hdd1_red>;
203 + pinctrl-names = "default";
206 + label = "nsa310s:green:sys";
207 + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
208 + linux,default-trigger = "timer";
211 + label = "nsa310s:orange:sys";
212 + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
215 + label = "nsa310s:green:hdd1";
216 + gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
219 + label = "nsa310s:red:hdd1";
220 + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
223 + label = "nsa310s:green:hdd2";
224 + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
227 + label = "nsa310s:red:hdd2";
228 + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
231 + label = "nsa310s:green:usb";
232 + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
235 + label = "nsa310s:green:copy";
236 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
237 + linux,default-trigger = "ide-disk";
240 + label = "nsa310s:red:copy";
241 + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
246 + compatible = "gpio-poweroff";
247 + pinctrl-0 = <&pmx_pwr_off>;
248 + pinctrl-names = "default";
249 + gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
259 + reg = <0x0000000 0xe0000>;
263 + label = "u-boot environment";
264 + reg = <0xe0000 0x100000>;
268 + label = "second stage u-boot";
269 + reg = <0x100000 0x200000>;
274 + reg = <0x200000 0x7e00000>;
280 + ethphy0: ethernet-phy@1 {
281 + compatible = "marvell,88e1318s";
283 + marvell,reg-init = <0x1 0x16 0x0 0x3>,
284 + <0x1 0x10 0x0 0x1017>,
285 + <0x1 0x11 0x0 0x4408>,
286 + <0x1 0x16 0x0 0x0>,
287 + <0x1 0x4 0x0 0x1e1>,
288 + <0x1 0x9 0x0 0x300>,
289 + <0x1 0x10 0x0 0x3860>,
290 + <0x1 0x0 0x0 0x9140>;
298 + phy-handle = <ðphy0>;