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