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