2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router
8 #include <dt-bindings/input/input.h>
11 model = "D-Link DIR-685 Xtreme N Storage Router";
12 compatible = "dlink,dir-685", "cortina,gemini";
17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
23 stdout-path = "uart0:115200n8";
27 compatible = "gpio-keys";
31 debounce_interval = <50>;
33 linux,code = <KEY_ESC>;
35 /* Collides with LPC_LAD[0], UART DCD, SSP 97RST */
36 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
39 debounce_interval = <50>;
41 linux,code = <KEY_EJECTCD>;
43 /* Collides with LPC LFRAME, UART RTS, SSP TXD */
44 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
49 compatible = "regulator-fixed";
50 regulator-name = "display-power";
51 regulator-min-microvolt = <3600000>;
52 regulator-max-microvolt = <3600000>;
53 /* Collides with LCD E */
54 gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
59 compatible = "spi-gpio";
63 /* Collides with IDE pins, that's cool (we do not use them) */
64 gpio-sck = <&gpio1 5 GPIO_ACTIVE_HIGH>;
65 gpio-miso = <&gpio1 8 GPIO_ACTIVE_HIGH>;
66 gpio-mosi = <&gpio1 7 GPIO_ACTIVE_HIGH>;
67 /* Collides with pflash CE1, not so cool */
68 cs-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
69 num-chipselects = <1>;
72 compatible = "dlink,dir-685-panel", "ilitek,ili9322";
74 /* 50 ns min period = 20 MHz */
75 spi-max-frequency = <20000000>;
76 spi-cpol; /* Clock active low */
77 vcc-supply = <&vdisp>;
78 iovcc-supply = <&vdisp>;
79 vci-supply = <&vdisp>;
83 remote-endpoint = <&display_out>;
90 compatible = "gpio-leds";
92 label = "dir685:blue:WPS";
93 /* Collides with ICE */
94 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
96 linux,default-trigger = "heartbeat";
99 * These two LEDs are on the side of the device.
100 * For electrical reasons, both LEDs cannot be active
101 * at the same time so only blue or orange can on at
102 * one time. Enabling both makes the LED go dark.
103 * The LEDs both sit inside the unmount button and the
104 * label on the case says "unmount".
107 label = "dir685:blue:HD";
108 /* Collides with LPC_SERIRQ, UART DTR, SSP FSC pins */
109 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
110 default-state = "off";
113 label = "dir685:orange:HD";
114 /* Collides with LPC_LAD[2], UART DSR, SSP ECLK pins */
115 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
116 default-state = "off";
121 * This is a Sunon Maglev GM0502PFV2-8 cooling fan @10000 RPM.
122 * Since the platform has no temperature sensor, this is controlled
123 * from userspace by using the hard disks S.M.A.R.T. temperature
124 * sensor. It is turned on when the temperature exceeds 46 degrees
125 * and turned off when the temperatures goes below 41 degrees
129 compatible = "gpio-fan";
130 /* Collides with IDE */
131 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
132 gpio-fan,speed-map = <0 0>, <10000 1>;
133 #cooling-cells = <2>;
137 * The touchpad input is connected to a GPIO bit-banged
141 compatible = "i2c-gpio";
142 /* Collides with ICE */
143 sda-gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
144 scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
145 #address-cells = <1>;
149 compatible = "dlink,dir685-touchkeys";
151 interrupt-parent = <&gpio0>;
152 /* Collides with NAND flash */
153 interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
160 * Flash access is by default disabled, because it
161 * collides with the Chip Enable signal for the display
162 * panel, that reuse the parallel flash Chip Select 1
163 * (CS1). Enabling flash makes graphics stop working.
165 * We might be able to hack around this by letting
166 * GPIO poke around in the flash controller registers.
168 /* status = "okay"; */
170 reg = <0x30000000 0x02000000>;
173 * This "RedBoot" is the Storlink derivative.
177 reg = <0x00000000 0x00040000>;
181 * Between the boot loader and the rootfs is the kernel
182 * in a custom Storlink format flashed from the boot
183 * menu. The rootfs is in squashfs format.
187 reg = <0x001800c0 0x01dbff40>;
192 reg = <0x01f40000 0x00040000>;
197 reg = <0x01f80000 0x00040000>;
201 * This partition contains MAC addresses for WAN,
202 * WLAN and LAN, and the country code (for wireless
207 reg = <0x01fc0000 0x00020000>;
212 reg = <0x01fe0000 0x00020000>;
217 syscon: syscon@40000000 {
220 * gpio0bgrp cover line 5, 6 used by TK I2C
221 * gpio0bgrp cover line 7 used by WPS LED
222 * gpio0cgrp cover line 8, 13 used by keys
223 * and 11, 12 used by the HD LEDs
224 * gpio0egrp cover line 16 used by VDISP
225 * gpio0fgrp cover line 17 used by TK IRQ
226 * gpio0ggrp cover line 20 used by panel CS
227 * gpio0hgrp cover line 21,22 used by RTL8366RB
229 gpio0_default_pins: pinctrl-gpio0 {
232 groups = "gpio0bgrp",
241 * gpio1bgrp cover line 5,8,7 used by panel SPI
242 * also line 6 used by the fan
245 gpio1_default_pins: pinctrl-gpio1 {
248 groups = "gpio1bgrp";
254 sata: sata@46000000 {
255 cortina,gemini-ata-muxmode = <0>;
256 cortina,gemini-enable-sata-bridge;
260 gpio0: gpio@4d000000 {
261 pinctrl-names = "default";
262 pinctrl-0 = <&gpio0_default_pins>;
265 gpio1: gpio@4e000000 {
266 pinctrl-names = "default";
267 pinctrl-0 = <&gpio1_default_pins>;
272 interrupt-map-mask = <0xf800 0 0 7>;
274 <0x4800 0 0 1 &pci_intc 0>, /* Slot 9 */
275 <0x4800 0 0 2 &pci_intc 1>,
276 <0x4800 0 0 3 &pci_intc 2>,
277 <0x4800 0 0 4 &pci_intc 3>,
278 <0x5000 0 0 1 &pci_intc 1>, /* Slot 10 */
279 <0x5000 0 0 2 &pci_intc 2>,
280 <0x5000 0 0 3 &pci_intc 3>,
281 <0x5000 0 0 4 &pci_intc 0>,
282 <0x5800 0 0 1 &pci_intc 2>, /* Slot 11 */
283 <0x5800 0 0 2 &pci_intc 3>,
284 <0x5800 0 0 3 &pci_intc 0>,
285 <0x5800 0 0 4 &pci_intc 1>,
286 <0x6000 0 0 1 &pci_intc 3>, /* Slot 12 */
287 <0x6000 0 0 2 &pci_intc 0>,
288 <0x6000 0 0 3 &pci_intc 1>,
289 <0x6000 0 0 4 &pci_intc 2>;
296 display-controller@6a000000 {
301 display_out: endpoint {
302 remote-endpoint = <&panel_in>;