1 // SPDX-License-Identifier: GPL-2.0
2 #include "kirkwood.dtsi"
3 #include "kirkwood-6281.dtsi"
6 model = "ZyXEL NSA310";
9 pinctrl: pin-controller@10000 {
11 pmx_usb_power: pmx-usb-power {
12 marvell,pins = "mpp21";
13 marvell,function = "gpio";
16 pmx_pwr_off: pmx-pwr-off {
17 marvell,pins = "mpp48";
18 marvell,function = "gpio";
21 pmx_btn_reset: pmx-btn-reset {
22 marvell,pins = "mpp36";
23 marvell,function = "gpio";
26 pmx_btn_copy: pmx-btn-copy {
27 marvell,pins = "mpp37";
28 marvell,function = "gpio";
31 pmx_btn_power: pmx-btn-power {
32 marvell,pins = "mpp46";
33 marvell,function = "gpio";
36 pmx_led_copy_green: pmx-led-copy-green {
37 marvell,pins = "mpp39";
38 marvell,function = "gpio";
41 pmx_led_copy_red: pmx-led-copy-red {
42 marvell,pins = "mpp40";
43 marvell,function = "gpio";
58 compatible = "gpio-poweroff";
59 pinctrl-0 = <&pmx_pwr_off>;
60 pinctrl-names = "default";
61 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-keys";
68 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
69 pinctrl-names = "default";
72 label = "Power Button";
73 linux,code = <KEY_POWER>;
74 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
77 label = "Copy Button";
78 linux,code = <KEY_COPY>;
79 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
82 label = "Reset Button";
83 linux,code = <KEY_RESTART>;
84 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
90 compatible = "simple-bus";
93 pinctrl-0 = <&pmx_usb_power>;
94 pinctrl-names = "default";
96 usb0_power: regulator@1 {
97 compatible = "regulator-fixed";
99 regulator-name = "USB Power";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
104 gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
115 reg = <0x0000000 0x0100000>;
120 reg = <0x0100000 0x0080000>;
124 reg = <0x0180000 0x0080000>;
128 reg = <0x0200000 0x0080000>;
132 reg = <0x0280000 0x0a00000>;
136 reg = <0x0c80000 0x0a00000>;
140 reg = <0x1680000 0x2fc0000>;
144 reg = <0x4640000 0x0a00000>;
148 reg = <0x5040000 0x2fc0000>;