1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B
9 #include <dt-bindings/input/input.h>
12 model = "Raidsonic NAS IB-4220-B";
13 compatible = "raidsonic,ib-4220-b", "cortina,gemini";
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
23 bootargs = "console=ttyS0,19200n8";
28 compatible = "gpio-keys";
33 debounce_interval = <50>;
35 linux,code = <KEY_SETUP>;
36 label = "Backup button";
37 /* Conflict with TVC */
38 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
41 debounce_interval = <50>;
43 linux,code = <KEY_RESTART>;
44 label = "Softreset button";
45 /* Conflict with TVC */
46 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-leds";
53 label = "nas4220b:orange:hdd";
54 /* Conflict with TVC */
55 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
59 label = "nas4220b:green:os";
60 /* Conflict with TVC */
61 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "heartbeat";
68 compatible = "virtual,mdio-gpio";
69 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
70 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
74 phy0: ethernet-phy@1 {
76 device_type = "ethernet-phy";
84 reg = <0x30000000 0x01000000>;
88 reg = <0x00000000 0x00020000>;
93 reg = <0x00020000 0x00300000>;
97 reg = <0x00320000 0x00600000>;
100 label = "Application";
101 reg = <0x00920000 0x00600000>;
105 reg = <0x00f20000 0x00020000>;
110 reg = <0x00f40000 0x000a0000>;
114 label = "FIS directory";
115 reg = <0x00fe0000 0x00020000>;
120 syscon: syscon@40000000 {
123 * gpio1dgrp cover line 28-31 otherwise used
126 gpio1_default_pins: pinctrl-gpio1 {
129 groups = "gpio1dgrp";
135 groups = "gmii_gmac0_grp";
137 /* Settings come from OpenWRT */
139 pins = "R8 GMAC0 RXDV", "U11 GMAC1 RXDV";
143 pins = "T8 GMAC0 RXC", "T11 GMAC1 RXC";
147 pins = "P8 GMAC0 TXEN", "V11 GMAC1 TXEN";
151 pins = "V7 GMAC0 TXC";
155 pins = "P10 GMAC1 TXC";
159 /* The data lines all have default skew */
160 pins = "U8 GMAC0 RXD0", "V8 GMAC0 RXD1",
161 "P9 GMAC0 RXD2", "R9 GMAC0 RXD3",
162 "U7 GMAC0 TXD0", "T7 GMAC0 TXD1",
163 "R7 GMAC0 TXD2", "P7 GMAC0 TXD3",
164 "R11 GMAC1 RXD0", "P11 GMAC1 RXD1",
165 "V12 GMAC1 RXD2", "U12 GMAC1 RXD3",
166 "R10 GMAC1 TXD0", "T10 GMAC1 TXD1",
167 "U10 GMAC1 TXD2", "V10 GMAC1 TXD3";
170 /* Set up drive strength on GMAC0 to 16 mA */
172 groups = "gmii_gmac0_grp";
173 drive-strength = <16>;
179 sata: sata@46000000 {
180 cortina,gemini-ata-muxmode = <0>;
181 cortina,gemini-enable-sata-bridge;
185 gpio1: gpio@4e000000 {
186 pinctrl-names = "default";
187 pinctrl-0 = <&gpio1_default_pins>;
195 phy-handle = <&phy0>;
198 /* Not used in this platform */