1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree file for D-Link DNS-313 1-Bay N 4 */ 5 6 /dts-v1/; 7 8 #include "gemini.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/thermal/thermal.h> 11 12 / { 13 model = "D-Link DNS-313 1-Bay Network 14 compatible = "dlink,dns-313", "cortina 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 memory@0 { 19 /* 64 MB SDRAM in a Nanya NT5D 20 device_type = "memory"; 21 reg = <0x00000000 0x4000000>; 22 }; 23 24 aliases { 25 mdio-gpio0 = &mdio0; 26 }; 27 28 chosen { 29 bootargs = "console=ttyS0,1920 30 stdout-path = "uart0:19200n8"; 31 }; 32 33 gpio_keys { 34 compatible = "gpio-keys"; 35 36 button-reset { 37 debounce-interval = <1 38 wakeup-source; 39 linux,code = <KEY_REST 40 label = "reset"; 41 gpios = <&gpio1 31 GPI 42 }; 43 }; 44 45 leds { 46 compatible = "gpio-leds"; 47 led-power { 48 label = "dns313:blue:p 49 gpios = <&gpio0 1 GPIO 50 default-state = "on"; 51 linux,default-trigger 52 }; 53 led-disk-blue { 54 label = "dns313:blue:d 55 gpios = <&gpio0 2 GPIO 56 default-state = "off"; 57 }; 58 led-disk-green { 59 label = "dns313:green: 60 gpios = <&gpio0 3 GPIO 61 default-state = "off"; 62 linux,default-trigger 63 }; 64 led-disk-red { 65 label = "dns313:red:di 66 gpios = <&gpio0 4 GPIO 67 default-state = "off"; 68 linux,default-trigger 69 }; 70 }; 71 72 /* 73 * This is a ADDA AD0405GB-G73 fan @30 74 */ 75 fan0: gpio-fan { 76 compatible = "gpio-fan"; 77 gpios = <&gpio0 11 GPIO_ACTIVE 78 <&gpio0 12 GPIO_ACTIVE 79 gpio-fan,speed-map = <0 0>, <3 80 #cooling-cells = <2>; 81 }; 82 83 /* 84 * This is the type B USB connector on 85 * a GPIO-controlled USB VBUS detect 86 */ 87 usb1_phy: phy { 88 compatible = "gpio-usb-b-conne 89 #phy-cells = <0>; 90 vbus-gpios = <&gpio0 18 GPIO_A 91 }; 92 93 /* Global Mixed-Mode Technology G751 m 94 i2c { 95 compatible = "i2c-gpio"; 96 sda-gpios = <&gpio0 15 (GPIO_A 97 scl-gpios = <&gpio0 16 (GPIO_A 98 #address-cells = <1>; 99 #size-cells = <0>; 100 101 g751: temperature-sensor@48 { 102 compatible = "gmt,g751 103 reg = <0x48>; 104 #thermal-sensor-cells 105 }; 106 }; 107 108 thermal-zones { 109 chassis-thermal { 110 /* Poll every 20 secon 111 polling-delay = <20000 112 /* Poll every 2nd seco 113 polling-delay-passive 114 115 thermal-sensors = <&g7 116 117 /* Tripping points fro 118 trips { 119 chassis_alert0 120 /* At 121 temper 122 hyster 123 type = 124 }; 125 chassis_alert1 126 /* At 127 temper 128 hyster 129 type = 130 }; 131 chassis_crit: 132 /* Jus 133 temper 134 hyster 135 type = 136 }; 137 }; 138 139 cooling-maps { 140 map0 { 141 trip = 142 coolin 143 }; 144 map1 { 145 trip = 146 coolin 147 }; 148 }; 149 }; 150 }; 151 152 mdio0: mdio { 153 compatible = "virtual,mdio-gpi 154 /* Uses MDC and MDIO */ 155 gpios = <&gpio0 22 GPIO_ACTIVE 156 <&gpio0 21 GPIO_ACTIVE 157 #address-cells = <1>; 158 #size-cells = <0>; 159 160 /* This is a Realtek RTL8211B 161 phy0: ethernet-phy@1 { 162 reg = <1>; 163 device_type = "etherne 164 }; 165 }; 166 167 soc { 168 flash@30000000 { 169 /* 170 * This is a Eon EN29L 171 * three partitions. 172 */ 173 compatible = "cortina, 174 status = "okay"; 175 reg = <0x30000000 0x00 176 #address-cells = <1>; 177 #size-cells = <1>; 178 179 /* 180 * This "RedBoot" is t 181 */ 182 partition@0 { 183 label = "RedBo 184 reg = <0x00000 185 read-only; 186 }; 187 partition@40000 { 188 label = "MTD1" 189 reg = <0x00040 190 read-only; 191 }; 192 partition@60000 { 193 label = "MTD2" 194 reg = <0x00060 195 read-only; 196 }; 197 }; 198 199 syscon: syscon@40000000 { 200 pinctrl { 201 /* 202 */ 203 gpio0_default_ 204 mux { 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 }; 221 }; 222 gpio1_default_ 223 mux { 224 225 226 227 }; 228 }; 229 pinctrl-gmii { 230 mux { 231 232 233 }; 234 /* 235 * In 236 * ver 237 */ 238 conf0 239 240 241 }; 242 conf1 243 244 245 }; 246 conf2 247 248 249 }; 250 conf3 251 252 253 }; 254 conf4 255 256 257 }; 258 conf5 259 260 261 262 263 264 265 266 267 }; 268 conf6 269 270 271 272 }; 273 /* Set 274 conf7 275 276 277 }; 278 }; 279 }; 280 }; 281 282 sata: sata@46000000 { 283 /* The ROM uses this m 284 cortina,gemini-ata-mux 285 cortina,gemini-enable- 286 status = "okay"; 287 }; 288 289 gpio0: gpio@4d000000 { 290 pinctrl-names = "defau 291 pinctrl-0 = <&gpio0_de 292 }; 293 294 gpio1: gpio@4e000000 { 295 pinctrl-names = "defau 296 pinctrl-0 = <&gpio1_de 297 }; 298 299 ethernet@60000000 { 300 status = "okay"; 301 302 ethernet-port@0 { 303 phy-mode = "rg 304 phy-handle = < 305 }; 306 ethernet-port@1 { 307 /* Not used in 308 }; 309 }; 310 311 ide@63000000 { 312 status = "okay"; 313 }; 314 315 usb@69000000 { 316 status = "okay"; 317 dr_mode = "peripheral" 318 usb-phy = <&usb1_phy>; 319 pinctrl-names = "defau 320 pinctrl-0 = <&usb_defa 321 }; 322 }; 323 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.