1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for D-Link DNS-313 1-Bay Network Storage Enclosure
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/thermal/thermal.h>
13 model = "D-Link DNS-313 1-Bay Network Storage Enclosure";
14 compatible = "dlink,dns-313", "cortina,gemini";
19 /* 64 MB SDRAM in a Nanya NT5DS32M16BS-6K package */
20 device_type = "memory";
21 reg = <0x00000000 0x4000000>;
29 bootargs = "console=ttyS0,19200n8 root=/dev/sda4 rw rootwait";
30 stdout-path = "uart0:19200n8";
34 compatible = "gpio-keys";
37 debounce-interval = <100>;
39 linux,code = <KEY_RESTART>;
41 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
48 label = "dns313:blue:power";
49 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
51 linux,default-trigger = "heartbeat";
54 label = "dns313:blue:disk";
55 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
59 label = "dns313:green:disk";
60 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
61 default-state = "off";
62 linux,default-trigger = "disk-read";
65 label = "dns313:red:disk";
66 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
67 default-state = "off";
68 linux,default-trigger = "disk-write";
73 * This is a ADDA AD0405GB-G73 fan @3000 and 6000 RPM.
76 compatible = "gpio-fan";
77 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>,
78 <&gpio0 12 GPIO_ACTIVE_HIGH>;
79 gpio-fan,speed-map = <0 0>, <3000 1>, <6000 2>;
84 * This is the type B USB connector on the device,
85 * a GPIO-controlled USB VBUS detect
88 compatible = "gpio-usb-b-connector", "usb-b-connector";
90 vbus-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
93 /* Global Mixed-Mode Technology G751 mounted on GPIO I2C */
95 compatible = "i2c-gpio";
96 sda-gpios = <&gpio0 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
97 scl-gpios = <&gpio0 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
101 g751: temperature-sensor@48 {
102 compatible = "gmt,g751";
104 #thermal-sensor-cells = <0>;
110 /* Poll every 20 seconds */
111 polling-delay = <20000>;
112 /* Poll every 2nd second when cooling */
113 polling-delay-passive = <2000>;
115 thermal-sensors = <&g751>;
117 /* Tripping points from the fan.script in the rootfs */
119 chassis_alert0: chassis-alert0 {
120 /* At 43 degrees turn on low speed */
121 temperature = <43000>;
125 chassis_alert1: chassis-alert1 {
126 /* At 47 degrees turn on high speed */
127 temperature = <47000>;
131 chassis_crit: chassis-crit {
132 /* Just shut down at 60 degrees */
133 temperature = <60000>;
141 trip = <&chassis_alert0>;
142 cooling-device = <&fan0 1 1>;
145 trip = <&chassis_alert1>;
146 cooling-device = <&fan0 2 2>;
153 compatible = "virtual,mdio-gpio";
154 /* Uses MDC and MDIO */
155 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
156 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
157 #address-cells = <1>;
160 /* This is a Realtek RTL8211B Gigabit ethernet transceiver */
161 phy0: ethernet-phy@1 {
163 device_type = "ethernet-phy";
170 * This is a Eon EN29LV400AB 512 KiB flash with
173 compatible = "cortina,gemini-flash", "jedec-flash";
175 reg = <0x30000000 0x00080000>;
176 #address-cells = <1>;
180 * This "RedBoot" is the Storlink derivative.
184 reg = <0x00000000 0x00040000>;
189 reg = <0x00040000 0x00020000>;
194 reg = <0x00060000 0x00020000>;
199 syscon: syscon@40000000 {
203 gpio0_default_pins: pinctrl-gpio0 {
207 /* Used by LEDs conflicts ICE */
209 /* Used by ? conflicts ICE */
212 * Used by fan & G751, conflicts LPC,
213 * UART modem lines, SSP
222 gpio1_default_pins: pinctrl-gpio1 {
225 /* Used by "reset" button */
226 groups = "gpio1dgrp";
232 groups = "gmii_gmac0_grp";
235 * In the vendor Linux tree, these values are set for the C3
236 * version of the SL3512 ASIC with the comment "benson suggest"
239 pins = "R8 GMAC0 RXDV", "U11 GMAC1 RXDV";
243 pins = "T8 GMAC0 RXC";
247 pins = "T11 GMAC1 RXC";
251 pins = "P8 GMAC0 TXEN", "V11 GMAC1 TXEN";
255 pins = "V7 GMAC0 TXC", "P10 GMAC1 TXC";
259 /* The data lines all have default skew */
260 pins = "U8 GMAC0 RXD0", "V8 GMAC0 RXD1",
261 "P9 GMAC0 RXD2", "R9 GMAC0 RXD3",
262 "R11 GMAC1 RXD0", "P11 GMAC1 RXD1",
263 "V12 GMAC1 RXD2", "U12 GMAC1 RXD3",
264 "R10 GMAC1 TXD0", "T10 GMAC1 TXD1",
265 "U10 GMAC1 TXD2", "V10 GMAC1 TXD3";
269 pins = "U7 GMAC0 TXD0", "T7 GMAC0 TXD1",
270 "R7 GMAC0 TXD2", "P7 GMAC0 TXD3";
273 /* Set up drive strength on GMAC0 to 16 mA */
275 groups = "gmii_gmac0_grp";
276 drive-strength = <16>;
282 sata: sata@46000000 {
283 /* The ROM uses this muxmode */
284 cortina,gemini-ata-muxmode = <0>;
285 cortina,gemini-enable-sata-bridge;
289 gpio0: gpio@4d000000 {
290 pinctrl-names = "default";
291 pinctrl-0 = <&gpio0_default_pins>;
294 gpio1: gpio@4e000000 {
295 pinctrl-names = "default";
296 pinctrl-0 = <&gpio1_default_pins>;
304 phy-handle = <&phy0>;
307 /* Not used in this platform */
317 dr_mode = "peripheral";
318 usb-phy = <&usb1_phy>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&usb_default_pins>;