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 = <50>;
39 linux,code = <KEY_ESC>;
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 /* Global Mixed-Mode Technology G751 mounted on GPIO I2C */
86 compatible = "i2c-gpio";
87 sda-gpios = <&gpio0 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
88 scl-gpios = <&gpio0 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
92 g751: temperature-sensor@48 {
93 compatible = "gmt,g751";
95 #thermal-sensor-cells = <0>;
101 /* Poll every 20 seconds */
102 polling-delay = <20000>;
103 /* Poll every 2nd second when cooling */
104 polling-delay-passive = <2000>;
106 thermal-sensors = <&g751>;
108 /* Tripping points from the fan.script in the rootfs */
110 chassis_alert0: chassis-alert0 {
111 /* At 43 degrees turn on low speed */
112 temperature = <43000>;
116 chassis_alert1: chassis-alert1 {
117 /* At 47 degrees turn on high speed */
118 temperature = <47000>;
122 chassis_crit: chassis-crit {
123 /* Just shut down at 60 degrees */
124 temperature = <60000>;
132 trip = <&chassis_alert0>;
133 cooling-device = <&fan0 1 1>;
136 trip = <&chassis_alert1>;
137 cooling-device = <&fan0 2 2>;
144 compatible = "virtual,mdio-gpio";
145 /* Uses MDC and MDIO */
146 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
147 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
148 #address-cells = <1>;
151 /* This is a Realtek RTL8211B Gigabit ethernet transceiver */
152 phy0: ethernet-phy@1 {
154 device_type = "ethernet-phy";
161 * This is a Eon EN29LV400AB 512 KiB flash with
164 compatible = "cortina,gemini-flash", "jedec-flash";
166 reg = <0x30000000 0x00080000>;
169 * This "RedBoot" is the Storlink derivative.
173 reg = <0x00000000 0x00040000>;
178 reg = <0x00040000 0x00020000>;
183 reg = <0x00060000 0x00020000>;
188 syscon: syscon@40000000 {
192 gpio0_default_pins: pinctrl-gpio0 {
196 /* Used by LEDs conflicts ICE */
198 /* Used by ? conflicts ICE */
201 * Used by fan & G751, conflicts LPC,
202 * UART modem lines, SSP
211 gpio1_default_pins: pinctrl-gpio1 {
214 /* Used by "reset" button */
215 groups = "gpio1dgrp";
221 groups = "gmii_gmac0_grp";
224 * In the vendor Linux tree, these values are set for the C3
225 * version of the SL3512 ASIC with the comment "benson suggest"
228 pins = "R8 GMAC0 RXDV", "U11 GMAC1 RXDV";
232 pins = "T8 GMAC0 RXC";
236 pins = "T11 GMAC1 RXC";
240 pins = "P8 GMAC0 TXEN", "V11 GMAC1 TXEN";
244 pins = "V7 GMAC0 TXC", "P10 GMAC1 TXC";
248 /* The data lines all have default skew */
249 pins = "U8 GMAC0 RXD0", "V8 GMAC0 RXD1",
250 "P9 GMAC0 RXD2", "R9 GMAC0 RXD3",
251 "R11 GMAC1 RXD0", "P11 GMAC1 RXD1",
252 "V12 GMAC1 RXD2", "U12 GMAC1 RXD3",
253 "R10 GMAC1 TXD0", "T10 GMAC1 TXD1",
254 "U10 GMAC1 TXD2", "V10 GMAC1 TXD3";
258 pins = "U7 GMAC0 TXD0", "T7 GMAC0 TXD1",
259 "R7 GMAC0 TXD2", "P7 GMAC0 TXD3";
262 /* Set up drive strength on GMAC0 to 16 mA */
264 groups = "gmii_gmac0_grp";
265 drive-strength = <16>;
271 sata: sata@46000000 {
272 /* The ROM uses this muxmode */
273 cortina,gemini-ata-muxmode = <0>;
274 cortina,gemini-enable-sata-bridge;
278 gpio0: gpio@4d000000 {
279 pinctrl-names = "default";
280 pinctrl-0 = <&gpio0_default_pins>;
283 gpio1: gpio@4e000000 {
284 pinctrl-names = "default";
285 pinctrl-0 = <&gpio1_default_pins>;
293 phy-handle = <&phy0>;
296 /* Not used in this platform */