Loading...
1// SPDX-License-Identifier: GPL-2.0
2#include "kirkwood.dtsi"
3#include "kirkwood-6281.dtsi"
4
5/ {
6 model = "D-Link DNS NASes (kirkwood-based)";
7 compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
8
9 gpio_keys {
10 compatible = "gpio-keys";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 pinctrl-0 = <&pmx_button_power &pmx_button_unmount
14 &pmx_button_reset>;
15 pinctrl-names = "default";
16
17 power {
18 label = "Power button";
19 linux,code = <KEY_POWER>;
20 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
21 };
22 eject {
23 label = "USB unmount button";
24 linux,code = <KEY_EJECTCD>;
25 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
26 };
27 reset {
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 gpio_fan {
35 /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
36 compatible = "gpio-fan";
37 pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>;
38 pinctrl-names = "default";
39 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH
40 &gpio1 13 GPIO_ACTIVE_HIGH>;
41 gpio-fan,speed-map = <0 0
42 3000 1
43 6000 2>;
44 };
45
46 gpio_poweroff {
47 compatible = "gpio-poweroff";
48 pinctrl-0 = <&pmx_power_off>;
49 pinctrl-names = "default";
50 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
51 };
52
53 ocp@f1000000 {
54 pinctrl: pin-controller@10000 {
55
56 pinctrl-0 = <&pmx_power_back_on &pmx_present_sata0
57 &pmx_present_sata1 &pmx_fan_tacho
58 &pmx_temp_alarm>;
59 pinctrl-names = "default";
60
61 pmx_sata0: pmx-sata0 {
62 marvell,pins = "mpp20";
63 marvell,function = "sata1";
64 };
65 pmx_sata1: pmx-sata1 {
66 marvell,pins = "mpp21";
67 marvell,function = "sata0";
68 };
69 pmx_led_power: pmx-led-power {
70 marvell,pins = "mpp26";
71 marvell,function = "gpio";
72 };
73 pmx_led_red_right_hdd: pmx-led-red-right-hdd {
74 marvell,pins = "mpp27";
75 marvell,function = "gpio";
76 };
77 pmx_led_red_left_hdd: pmx-led-red-left-hdd {
78 marvell,pins = "mpp28";
79 marvell,function = "gpio";
80 };
81 pmx_led_red_usb_325: pmx-led-red-usb-325 {
82 marvell,pins = "mpp29";
83 marvell,function = "gpio";
84 };
85 pmx_button_power: pmx-button-power {
86 marvell,pins = "mpp34";
87 marvell,function = "gpio";
88 };
89 pmx_led_red_usb_320: pmx-led-red-usb-320 {
90 marvell,pins = "mpp35";
91 marvell,function = "gpio";
92 };
93 pmx_power_off: pmx-power-off {
94 marvell,pins = "mpp36";
95 marvell,function = "gpio";
96 };
97 pmx_power_back_on: pmx-power-back-on {
98 marvell,pins = "mpp37";
99 marvell,function = "gpio";
100 };
101 pmx_power_sata0: pmx-power-sata0 {
102 marvell,pins = "mpp39";
103 marvell,function = "gpio";
104 };
105 pmx_power_sata1: pmx-power-sata1 {
106 marvell,pins = "mpp40";
107 marvell,function = "gpio";
108 };
109 pmx_present_sata0: pmx-present-sata0 {
110 marvell,pins = "mpp41";
111 marvell,function = "gpio";
112 };
113 pmx_present_sata1: pmx-present-sata1 {
114 marvell,pins = "mpp42";
115 marvell,function = "gpio";
116 };
117 pmx_led_white_usb: pmx-led-white-usb {
118 marvell,pins = "mpp43";
119 marvell,function = "gpio";
120 };
121 pmx_fan_tacho: pmx-fan-tacho {
122 marvell,pins = "mpp44";
123 marvell,function = "gpio";
124 };
125 pmx_fan_high_speed: pmx-fan-high-speed {
126 marvell,pins = "mpp45";
127 marvell,function = "gpio";
128 };
129 pmx_fan_low_speed: pmx-fan-low-speed {
130 marvell,pins = "mpp46";
131 marvell,function = "gpio";
132 };
133 pmx_button_unmount: pmx-button-unmount {
134 marvell,pins = "mpp47";
135 marvell,function = "gpio";
136 };
137 pmx_button_reset: pmx-button-reset {
138 marvell,pins = "mpp48";
139 marvell,function = "gpio";
140 };
141 pmx_temp_alarm: pmx-temp-alarm {
142 marvell,pins = "mpp49";
143 marvell,function = "gpio";
144 };
145 };
146 sata@80000 {
147 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
148 pinctrl-names = "default";
149 status = "okay";
150 nr-ports = <2>;
151 };
152 };
153
154 regulators {
155 compatible = "simple-bus";
156 #address-cells = <1>;
157 #size-cells = <0>;
158 pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>;
159 pinctrl-names = "default";
160
161 sata0_power: regulator@1 {
162 compatible = "regulator-fixed";
163 reg = <1>;
164 regulator-name = "SATA0 Power";
165 regulator-min-microvolt = <5000000>;
166 regulator-max-microvolt = <5000000>;
167 enable-active-high;
168 regulator-always-on;
169 regulator-boot-on;
170 gpio = <&gpio1 7 0>;
171 };
172 sata1_power: regulator@2 {
173 compatible = "regulator-fixed";
174 reg = <2>;
175 regulator-name = "SATA1 Power";
176 regulator-min-microvolt = <5000000>;
177 regulator-max-microvolt = <5000000>;
178 enable-active-high;
179 regulator-always-on;
180 regulator-boot-on;
181 gpio = <&gpio1 8 0>;
182 };
183 };
184};
185
186&nand {
187 status = "okay";
188 chip-delay = <35>;
189
190 partition@0 {
191 label = "u-boot";
192 reg = <0x0000000 0x100000>;
193 read-only;
194 };
195
196 partition@100000 {
197 label = "uImage";
198 reg = <0x0100000 0x500000>;
199 };
200
201 partition@600000 {
202 label = "ramdisk";
203 reg = <0x0600000 0x500000>;
204 };
205
206 partition@b00000 {
207 label = "image";
208 reg = <0x0b00000 0x6600000>;
209 };
210
211 partition@7100000 {
212 label = "mini firmware";
213 reg = <0x7100000 0xa00000>;
214 };
215
216 partition@7b00000 {
217 label = "config";
218 reg = <0x7b00000 0x500000>;
219 };
220};
221
222&mdio {
223 status = "okay";
224
225 ethphy0: ethernet-phy@8 {
226 reg = <8>;
227 };
228};
229
230ð0 {
231 status = "okay";
232 ethernet0-port@0 {
233 phy-handle = <ðphy0>;
234 };
235};
1#include "kirkwood.dtsi"
2#include "kirkwood-6281.dtsi"
3
4/ {
5 model = "D-Link DNS NASes (kirkwood-based)";
6 compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
7
8 gpio_keys {
9 compatible = "gpio-keys";
10 #address-cells = <1>;
11 #size-cells = <0>;
12 pinctrl-0 = <&pmx_button_power &pmx_button_unmount
13 &pmx_button_reset>;
14 pinctrl-names = "default";
15
16 button@1 {
17 label = "Power button";
18 linux,code = <KEY_POWER>;
19 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
20 };
21 button@2 {
22 label = "USB unmount button";
23 linux,code = <KEY_EJECTCD>;
24 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
25 };
26 button@3 {
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 gpio_fan {
34 /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
35 compatible = "gpio-fan";
36 pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>;
37 pinctrl-names = "default";
38 gpios = <&gpio1 14 GPIO_ACTIVE_LOW
39 &gpio1 13 GPIO_ACTIVE_LOW>;
40 gpio-fan,speed-map = <0 0
41 3000 1
42 6000 2>;
43 };
44
45 gpio_poweroff {
46 compatible = "gpio-poweroff";
47 pinctrl-0 = <&pmx_power_off>;
48 pinctrl-names = "default";
49 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
50 };
51
52 ocp@f1000000 {
53 pinctrl: pin-controller@10000 {
54
55 pinctrl-0 = <&pmx_power_back_on &pmx_present_sata0
56 &pmx_present_sata1 &pmx_fan_tacho
57 &pmx_temp_alarm>;
58 pinctrl-names = "default";
59
60 pmx_sata0: pmx-sata0 {
61 marvell,pins = "mpp20";
62 marvell,function = "sata1";
63 };
64 pmx_sata1: pmx-sata1 {
65 marvell,pins = "mpp21";
66 marvell,function = "sata0";
67 };
68 pmx_led_power: pmx-led-power {
69 marvell,pins = "mpp26";
70 marvell,function = "gpio";
71 };
72 pmx_led_red_right_hdd: pmx-led-red-right-hdd {
73 marvell,pins = "mpp27";
74 marvell,function = "gpio";
75 };
76 pmx_led_red_left_hdd: pmx-led-red-left-hdd {
77 marvell,pins = "mpp28";
78 marvell,function = "gpio";
79 };
80 pmx_led_red_usb_325: pmx-led-red-usb-325 {
81 marvell,pins = "mpp29";
82 marvell,function = "gpio";
83 };
84 pmx_button_power: pmx-button-power {
85 marvell,pins = "mpp34";
86 marvell,function = "gpio";
87 };
88 pmx_led_red_usb_320: pmx-led-red-usb-320 {
89 marvell,pins = "mpp35";
90 marvell,function = "gpio";
91 };
92 pmx_power_off: pmx-power-off {
93 marvell,pins = "mpp36";
94 marvell,function = "gpio";
95 };
96 pmx_power_back_on: pmx-power-back-on {
97 marvell,pins = "mpp37";
98 marvell,function = "gpio";
99 };
100 pmx_power_sata0: pmx-power-sata0 {
101 marvell,pins = "mpp39";
102 marvell,function = "gpio";
103 };
104 pmx_power_sata1: pmx-power-sata1 {
105 marvell,pins = "mpp40";
106 marvell,function = "gpio";
107 };
108 pmx_present_sata0: pmx-present-sata0 {
109 marvell,pins = "mpp41";
110 marvell,function = "gpio";
111 };
112 pmx_present_sata1: pmx-present-sata1 {
113 marvell,pins = "mpp42";
114 marvell,function = "gpio";
115 };
116 pmx_led_white_usb: pmx-led-white-usb {
117 marvell,pins = "mpp43";
118 marvell,function = "gpio";
119 };
120 pmx_fan_tacho: pmx-fan-tacho {
121 marvell,pins = "mpp44";
122 marvell,function = "gpio";
123 };
124 pmx_fan_high_speed: pmx-fan-high-speed {
125 marvell,pins = "mpp45";
126 marvell,function = "gpio";
127 };
128 pmx_fan_low_speed: pmx-fan-low-speed {
129 marvell,pins = "mpp46";
130 marvell,function = "gpio";
131 };
132 pmx_button_unmount: pmx-button-unmount {
133 marvell,pins = "mpp47";
134 marvell,function = "gpio";
135 };
136 pmx_button_reset: pmx-button-reset {
137 marvell,pins = "mpp48";
138 marvell,function = "gpio";
139 };
140 pmx_temp_alarm: pmx-temp-alarm {
141 marvell,pins = "mpp49";
142 marvell,function = "gpio";
143 };
144 };
145 sata@80000 {
146 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
147 pinctrl-names = "default";
148 status = "okay";
149 nr-ports = <2>;
150 };
151 };
152
153 regulators {
154 compatible = "simple-bus";
155 #address-cells = <1>;
156 #size-cells = <0>;
157 pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>;
158 pinctrl-names = "default";
159
160 sata0_power: regulator@1 {
161 compatible = "regulator-fixed";
162 reg = <1>;
163 regulator-name = "SATA0 Power";
164 regulator-min-microvolt = <5000000>;
165 regulator-max-microvolt = <5000000>;
166 enable-active-high;
167 regulator-always-on;
168 regulator-boot-on;
169 gpio = <&gpio1 7 0>;
170 };
171 sata1_power: regulator@2 {
172 compatible = "regulator-fixed";
173 reg = <2>;
174 regulator-name = "SATA1 Power";
175 regulator-min-microvolt = <5000000>;
176 regulator-max-microvolt = <5000000>;
177 enable-active-high;
178 regulator-always-on;
179 regulator-boot-on;
180 gpio = <&gpio1 8 0>;
181 };
182 };
183};
184
185&nand {
186 status = "okay";
187 chip-delay = <35>;
188
189 partition@0 {
190 label = "u-boot";
191 reg = <0x0000000 0x100000>;
192 read-only;
193 };
194
195 partition@100000 {
196 label = "uImage";
197 reg = <0x0100000 0x500000>;
198 };
199
200 partition@600000 {
201 label = "ramdisk";
202 reg = <0x0600000 0x500000>;
203 };
204
205 partition@b00000 {
206 label = "image";
207 reg = <0x0b00000 0x6600000>;
208 };
209
210 partition@7100000 {
211 label = "mini firmware";
212 reg = <0x7100000 0xa00000>;
213 };
214
215 partition@7b00000 {
216 label = "config";
217 reg = <0x7b00000 0x500000>;
218 };
219};
220
221&mdio {
222 status = "okay";
223
224 ethphy0: ethernet-phy@8 {
225 reg = <8>;
226 };
227};
228
229ð0 {
230 status = "okay";
231 ethernet0-port@0 {
232 phy-handle = <ðphy0>;
233 };
234};