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-ba 7 compatible = "dlink,dns-kirkwood", "ma 8 9 gpio_keys { 10 compatible = "gpio-keys"; 11 pinctrl-0 = <&pmx_button_power 12 &pmx_button_reset 13 pinctrl-names = "default"; 14 15 button-power { 16 label = "Power button" 17 linux,code = <KEY_POWE 18 gpios = <&gpio1 2 GPIO 19 }; 20 button-eject { 21 label = "USB unmount b 22 linux,code = <KEY_EJEC 23 gpios = <&gpio1 15 GPI 24 }; 25 button-reset { 26 label = "Reset button" 27 linux,code = <KEY_REST 28 gpios = <&gpio1 16 GPI 29 }; 30 }; 31 32 gpio_fan { 33 /* Fan: ADDA AD045HB-G73 40mm 34 compatible = "gpio-fan"; 35 pinctrl-0 = <&pmx_fan_high_spe 36 pinctrl-names = "default"; 37 gpios = <&gpio1 14 GPIO_ACTIVE 38 &gpio1 13 GPIO_ACTIVE 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_ 49 }; 50 51 ocp@f1000000 { 52 pinctrl: pin-controller@10000 53 54 pinctrl-0 = <&pmx_powe 55 &pmx_pres 56 &pmx_temp 57 pinctrl-names = "defau 58 59 pmx_sata0: pmx-sata0 { 60 marvell,pins = 61 marvell,functi 62 }; 63 pmx_sata1: pmx-sata1 { 64 marvell,pins = 65 marvell,functi 66 }; 67 pmx_led_power: pmx-led 68 marvell,pins = 69 marvell,functi 70 }; 71 pmx_led_red_right_hdd: 72 marvell,pins = 73 marvell,functi 74 }; 75 pmx_led_red_left_hdd: 76 marvell,pins = 77 marvell,functi 78 }; 79 pmx_led_red_usb_325: p 80 marvell,pins = 81 marvell,functi 82 }; 83 pmx_button_power: pmx- 84 marvell,pins = 85 marvell,functi 86 }; 87 pmx_led_red_usb_320: p 88 marvell,pins = 89 marvell,functi 90 }; 91 pmx_power_off: pmx-pow 92 marvell,pins = 93 marvell,functi 94 }; 95 pmx_power_back_on: pmx 96 marvell,pins = 97 marvell,functi 98 }; 99 pmx_power_sata0: pmx-p 100 marvell,pins = 101 marvell,functi 102 }; 103 pmx_power_sata1: pmx-p 104 marvell,pins = 105 marvell,functi 106 }; 107 pmx_present_sata0: pmx 108 marvell,pins = 109 marvell,functi 110 }; 111 pmx_present_sata1: pmx 112 marvell,pins = 113 marvell,functi 114 }; 115 pmx_led_white_usb: pmx 116 marvell,pins = 117 marvell,functi 118 }; 119 pmx_fan_tacho: pmx-fan 120 marvell,pins = 121 marvell,functi 122 }; 123 pmx_fan_high_speed: pm 124 marvell,pins = 125 marvell,functi 126 }; 127 pmx_fan_low_speed: pmx 128 marvell,pins = 129 marvell,functi 130 }; 131 pmx_button_unmount: pm 132 marvell,pins = 133 marvell,functi 134 }; 135 pmx_button_reset: pmx- 136 marvell,pins = 137 marvell,functi 138 }; 139 pmx_temp_alarm: pmx-te 140 marvell,pins = 141 marvell,functi 142 }; 143 }; 144 sata@80000 { 145 pinctrl-0 = <&pmx_sata 146 pinctrl-names = "defau 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 157 pinctrl-names = "default"; 158 159 sata0_power: regulator@1 { 160 compatible = "regulato 161 reg = <1>; 162 regulator-name = "SATA 163 regulator-min-microvol 164 regulator-max-microvol 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 = "regulato 172 reg = <2>; 173 regulator-name = "SATA 174 regulator-min-microvol 175 regulator-max-microvol 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 ð0 { 229 status = "okay"; 230 ethernet0-port@0 { 231 phy-handle = <ðphy0>; 232 }; 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.