1 // SPDX-License-Identifier: GPL-2.0
2 #include "kirkwood.dtsi"
3 #include "kirkwood-6281.dtsi"
6 model = "D-Link DNS NASes (kirkwood-based)";
7 compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10 compatible = "gpio-keys";
13 pinctrl-0 = <&pmx_button_power &pmx_button_unmount
15 pinctrl-names = "default";
18 label = "Power button";
19 linux,code = <KEY_POWER>;
20 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
23 label = "USB unmount button";
24 linux,code = <KEY_EJECTCD>;
25 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
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
47 compatible = "gpio-poweroff";
48 pinctrl-0 = <&pmx_power_off>;
49 pinctrl-names = "default";
50 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
54 pinctrl: pin-controller@10000 {
56 pinctrl-0 = <&pmx_power_back_on &pmx_present_sata0
57 &pmx_present_sata1 &pmx_fan_tacho
59 pinctrl-names = "default";
61 pmx_sata0: pmx-sata0 {
62 marvell,pins = "mpp20";
63 marvell,function = "sata1";
65 pmx_sata1: pmx-sata1 {
66 marvell,pins = "mpp21";
67 marvell,function = "sata0";
69 pmx_led_power: pmx-led-power {
70 marvell,pins = "mpp26";
71 marvell,function = "gpio";
73 pmx_led_red_right_hdd: pmx-led-red-right-hdd {
74 marvell,pins = "mpp27";
75 marvell,function = "gpio";
77 pmx_led_red_left_hdd: pmx-led-red-left-hdd {
78 marvell,pins = "mpp28";
79 marvell,function = "gpio";
81 pmx_led_red_usb_325: pmx-led-red-usb-325 {
82 marvell,pins = "mpp29";
83 marvell,function = "gpio";
85 pmx_button_power: pmx-button-power {
86 marvell,pins = "mpp34";
87 marvell,function = "gpio";
89 pmx_led_red_usb_320: pmx-led-red-usb-320 {
90 marvell,pins = "mpp35";
91 marvell,function = "gpio";
93 pmx_power_off: pmx-power-off {
94 marvell,pins = "mpp36";
95 marvell,function = "gpio";
97 pmx_power_back_on: pmx-power-back-on {
98 marvell,pins = "mpp37";
99 marvell,function = "gpio";
101 pmx_power_sata0: pmx-power-sata0 {
102 marvell,pins = "mpp39";
103 marvell,function = "gpio";
105 pmx_power_sata1: pmx-power-sata1 {
106 marvell,pins = "mpp40";
107 marvell,function = "gpio";
109 pmx_present_sata0: pmx-present-sata0 {
110 marvell,pins = "mpp41";
111 marvell,function = "gpio";
113 pmx_present_sata1: pmx-present-sata1 {
114 marvell,pins = "mpp42";
115 marvell,function = "gpio";
117 pmx_led_white_usb: pmx-led-white-usb {
118 marvell,pins = "mpp43";
119 marvell,function = "gpio";
121 pmx_fan_tacho: pmx-fan-tacho {
122 marvell,pins = "mpp44";
123 marvell,function = "gpio";
125 pmx_fan_high_speed: pmx-fan-high-speed {
126 marvell,pins = "mpp45";
127 marvell,function = "gpio";
129 pmx_fan_low_speed: pmx-fan-low-speed {
130 marvell,pins = "mpp46";
131 marvell,function = "gpio";
133 pmx_button_unmount: pmx-button-unmount {
134 marvell,pins = "mpp47";
135 marvell,function = "gpio";
137 pmx_button_reset: pmx-button-reset {
138 marvell,pins = "mpp48";
139 marvell,function = "gpio";
141 pmx_temp_alarm: pmx-temp-alarm {
142 marvell,pins = "mpp49";
143 marvell,function = "gpio";
147 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
148 pinctrl-names = "default";
155 compatible = "simple-bus";
156 #address-cells = <1>;
158 pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>;
159 pinctrl-names = "default";
161 sata0_power: regulator@1 {
162 compatible = "regulator-fixed";
164 regulator-name = "SATA0 Power";
165 regulator-min-microvolt = <5000000>;
166 regulator-max-microvolt = <5000000>;
172 sata1_power: regulator@2 {
173 compatible = "regulator-fixed";
175 regulator-name = "SATA1 Power";
176 regulator-min-microvolt = <5000000>;
177 regulator-max-microvolt = <5000000>;
192 reg = <0x0000000 0x100000>;
198 reg = <0x0100000 0x500000>;
203 reg = <0x0600000 0x500000>;
208 reg = <0x0b00000 0x6600000>;
212 label = "mini firmware";
213 reg = <0x7100000 0xa00000>;
218 reg = <0x7b00000 0x500000>;
225 ethphy0: ethernet-phy@8 {
233 phy-handle = <ðphy0>;