1 /* 2 * Device Tree file for D-Link DIR-685 Xtreme 3 */ 4 5 /dts-v1/; 6 7 #include "gemini.dtsi" 8 #include <dt-bindings/input/input.h> 9 10 / { 11 model = "D-Link DIR-685 Xtreme N Stora 12 compatible = "dlink,dir-685", "cortina 13 #address-cells = <1>; 14 #size-cells = <1>; 15 16 memory@0 { 17 /* 128 MB SDRAM in 2 x Hynix H 18 device_type = "memory"; 19 reg = <0x00000000 0x8000000>; 20 }; 21 22 chosen { 23 bootargs = "console=ttyS0,1920 24 stdout-path = "uart0:19200n8"; 25 }; 26 27 gpio_keys { 28 compatible = "gpio-keys"; 29 30 button-reset { 31 debounce-interval = <1 32 wakeup-source; 33 linux,code = <KEY_REST 34 label = "reset"; 35 /* Collides with LPC_L 36 gpios = <&gpio0 8 GPIO 37 }; 38 button-eject { 39 debounce-interval = <1 40 wakeup-source; 41 linux,code = <KEY_EJEC 42 label = "unmount"; 43 /* Collides with LPC L 44 gpios = <&gpio0 13 GPI 45 }; 46 }; 47 48 vdisp: regulator { 49 compatible = "regulator-fixed" 50 regulator-name = "display-powe 51 regulator-min-microvolt = <360 52 regulator-max-microvolt = <360 53 /* Collides with LCD E */ 54 gpio = <&gpio0 16 GPIO_ACTIVE_ 55 enable-active-high; 56 }; 57 58 spi { 59 compatible = "spi-gpio"; 60 #address-cells = <1>; 61 #size-cells = <0>; 62 63 /* Collides with IDE pins, tha 64 sck-gpios = <&gpio1 5 GPIO_ACT 65 miso-gpios = <&gpio1 8 GPIO_AC 66 mosi-gpios = <&gpio1 7 GPIO_AC 67 cs-gpios = <&gpio0 20 GPIO_ACT 68 num-chipselects = <1>; 69 70 panel: display@0 { 71 compatible = "dlink,di 72 reg = <0>; 73 /* 50 ns min period = 74 spi-max-frequency = <2 75 vcc-supply = <&vdisp>; 76 iovcc-supply = <&vdisp 77 vci-supply = <&vdisp>; 78 79 port { 80 panel_in: endp 81 remote 82 }; 83 }; 84 }; 85 }; 86 87 leds { 88 compatible = "gpio-leds"; 89 led-wps { 90 label = "dir685:blue:W 91 /* Collides with ICE * 92 gpios = <&gpio0 7 GPIO 93 default-state = "on"; 94 linux,default-trigger 95 }; 96 /* 97 * These two LEDs are on the s 98 * For electrical reasons, bot 99 * at the same time so only bl 100 * one time. Enabling both mak 101 * The LEDs both sit inside th 102 * label on the case says "unm 103 */ 104 led-blue-hd { 105 label = "dir685:blue:H 106 /* Collides with LPC_S 107 gpios = <&gpio0 11 GPI 108 default-state = "off"; 109 linux,default-trigger 110 }; 111 led-orange-hd { 112 label = "dir685:orange 113 /* Collides with LPC_L 114 gpios = <&gpio0 12 GPI 115 default-state = "off"; 116 linux,default-trigger 117 }; 118 }; 119 120 /* 121 * This is a Sunon Maglev GM0502PFV2-8 122 * sensor. It is turned on when the te 123 * and turned off when the temperature 124 * (celsius). 125 */ 126 fan0: gpio-fan { 127 compatible = "gpio-fan"; 128 /* Collides with IDE */ 129 gpios = <&gpio1 6 GPIO_ACTIVE_ 130 gpio-fan,speed-map = <0 0>, <1 131 #cooling-cells = <2>; 132 }; 133 134 thermal-zones { 135 chassis-thermal { 136 /* Poll every 20 secon 137 polling-delay = <20000 138 /* Poll every 2nd seco 139 polling-delay-passive 140 /* Use the thermal se 141 thermal-sensors = <&dr 142 143 /* Tripping points fro 144 trips { 145 alert: chassis 146 /* At 147 temper 148 hyster 149 type = 150 }; 151 crit: chassis- 152 /* Jus 153 temper 154 hyster 155 type = 156 }; 157 }; 158 159 cooling-maps { 160 map0 { 161 trip = 162 coolin 163 }; 164 }; 165 }; 166 }; 167 168 /* 169 * The touchpad input is connected to 170 * I2C bus. 171 */ 172 i2c { 173 compatible = "i2c-gpio"; 174 /* Collides with ICE */ 175 sda-gpios = <&gpio0 5 (GPIO_AC 176 scl-gpios = <&gpio0 6 (GPIO_AC 177 #address-cells = <1>; 178 #size-cells = <0>; 179 180 touchkeys@26 { 181 compatible = "dlink,di 182 reg = <0x26>; 183 interrupt-parent = <&g 184 /* Collides with NAND 185 interrupts = <17 IRQ_T 186 }; 187 }; 188 189 /* This is a RealTek RTL8366RB switch 190 ethernet-switch { 191 compatible = "realtek,rtl8366r 192 /* 22 = MDIO (has input reads) 193 mdc-gpios = <&gpio0 21 GPIO_AC 194 mdio-gpios = <&gpio0 22 GPIO_A 195 reset-gpios = <&gpio0 14 GPIO_ 196 realtek,disable-leds; 197 198 switch_intc: interrupt-control 199 /* GPIO 15 provides th 200 interrupt-parent = <&g 201 interrupts = <15 IRQ_T 202 interrupt-controller; 203 #address-cells = <0>; 204 #interrupt-cells = <1> 205 }; 206 207 ethernet-ports { 208 #address-cells = <1>; 209 #size-cells = <0>; 210 211 ethernet-port@0 { 212 reg = <0>; 213 label = "lan0" 214 phy-handle = < 215 }; 216 ethernet-port@1 { 217 reg = <1>; 218 label = "lan1" 219 phy-handle = < 220 }; 221 ethernet-port@2 { 222 reg = <2>; 223 label = "lan2" 224 phy-handle = < 225 }; 226 ethernet-port@3 { 227 reg = <3>; 228 label = "lan3" 229 phy-handle = < 230 }; 231 ethernet-port@4 { 232 reg = <4>; 233 label = "wan"; 234 phy-handle = < 235 }; 236 rtl8366rb_cpu_port: et 237 reg = <5>; 238 label = "cpu"; 239 ethernet = <&g 240 phy-mode = "rg 241 fixed-link { 242 speed 243 full-d 244 pause; 245 }; 246 }; 247 248 }; 249 250 mdio { 251 compatible = "realtek, 252 #address-cells = <1>; 253 #size-cells = <0>; 254 255 phy0: ethernet-phy@0 { 256 reg = <0>; 257 interrupt-pare 258 interrupts = < 259 }; 260 phy1: ethernet-phy@1 { 261 reg = <1>; 262 interrupt-pare 263 interrupts = < 264 }; 265 phy2: ethernet-phy@2 { 266 reg = <2>; 267 interrupt-pare 268 interrupts = < 269 }; 270 phy3: ethernet-phy@3 { 271 reg = <3>; 272 interrupt-pare 273 interrupts = < 274 }; 275 phy4: ethernet-phy@4 { 276 reg = <4>; 277 interrupt-pare 278 interrupts = < 279 }; 280 }; 281 }; 282 283 soc { 284 flash@30000000 { 285 /* 286 * Flash access collid 287 * the display panel, 288 * Select 1 (CS1). We 289 * enable these pins f 290 * then, and when disa 291 * is what the display 292 */ 293 status = "okay"; 294 pinctrl-names = "enabl 295 pinctrl-0 = <&pflash_d 296 pinctrl-1 = <&pflash_d 297 298 /* 32MB of flash */ 299 reg = <0x30000000 0x02 300 301 partitions { 302 compatible = " 303 #address-cells 304 #size-cells = 305 306 /* 307 * This "RedBo 308 */ 309 partition@0 { 310 label 311 reg = 312 read-o 313 }; 314 /* 315 * This firmwa 316 * with the sq 317 * this is cal 318 */ 319 partition@4000 320 label 321 reg = 322 read-o 323 }; 324 /* RGDB, Resid 325 partition@1f80 326 label 327 reg = 328 read-o 329 }; 330 /* 331 * This partit 332 * WLAN and LA 333 * I guess). 334 */ 335 partition@1fc0 336 label 337 reg = 338 read-o 339 }; 340 partition@1fe0 341 label 342 reg = 343 read-o 344 }; 345 }; 346 }; 347 348 syscon: syscon@40000000 { 349 pinctrl { 350 /* 351 * gpio0bgrp c 352 * gpio0bgrp c 353 * gpio0cgrp c 354 * a 355 * a 356 * R 357 * gpio0egrp c 358 * gpio0fgrp c 359 * gpio0ggrp c 360 * gpio0hgrp c 361 */ 362 gpio0_default_ 363 mux { 364 365 366 367 368 369 370 }; 371 }; 372 /* 373 * gpio1bgrp c 374 * also line 6 375 * 376 */ 377 gpio1_default_ 378 mux { 379 380 381 }; 382 }; 383 /* 384 * These GPIO 385 * of the flas 386 * active use. 387 */ 388 pflash_disable 389 mux { 390 391 392 393 }; 394 }; 395 pinctrl-gmii { 396 mux { 397 398 399 }; 400 conf0 401 402 403 404 405 406 407 408 409 410 411 412 413 414 }; 415 /* Set 416 conf1 417 418 419 }; 420 }; 421 }; 422 }; 423 424 sata: sata@46000000 { 425 cortina,gemini-ata-mux 426 cortina,gemini-enable- 427 status = "okay"; 428 }; 429 430 gpio0: gpio@4d000000 { 431 pinctrl-names = "defau 432 pinctrl-0 = <&gpio0_de 433 }; 434 435 gpio1: gpio@4e000000 { 436 pinctrl-names = "defau 437 pinctrl-0 = <&gpio1_de 438 }; 439 440 pci@50000000 { 441 status = "okay"; 442 }; 443 444 ethernet@60000000 { 445 status = "okay"; 446 447 ethernet-port@0 { 448 phy-mode = "rg 449 fixed-link { 450 speed 451 full-d 452 pause; 453 }; 454 }; 455 ethernet-port@1 { 456 /* Not used in 457 }; 458 }; 459 460 ide@63000000 { 461 status = "okay"; 462 463 /* 464 * This drive may have 465 * thermal zone we can 466 * chassis temperature 467 */ 468 drive0: ide-port@0 { 469 reg = <0>; 470 #thermal-senso 471 }; 472 }; 473 474 display-controller@6a000000 { 475 status = "okay"; 476 477 port { 478 display_out: e 479 remote 480 }; 481 }; 482 }; 483 484 usb@68000000 { 485 status = "okay"; 486 }; 487 488 usb@69000000 { 489 status = "okay"; 490 }; 491 }; 492 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.