Debian Codegraph @

arch/arm/boot/dts/marvell/kirkwood-dnskw.dtsi

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