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";
17 memory@0 { /* 128 MB */
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
23 bootargs = "console=ttyS0,19200n8";
28 compatible = "gpio-keys";
31 debounce-interval = <100>;
33 linux,code = <KEY_SETUP>;
34 label = "Backup button";
35 /* Conflict with TVC */
36 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
39 debounce-interval = <100>;
41 linux,code = <KEY_RESTART>;
42 label = "Softreset button";
43 /* Conflict with TVC */
44 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-leds";
51 label = "nas4220b:orange:hdd";
52 /* Conflict with TVC */
53 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
57 label = "nas4220b:green:os";
58 /* Conflict with TVC */
59 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "heartbeat";
66 compatible = "virtual,mdio-gpio";
67 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
68 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
72 phy0: ethernet-phy@1 {
74 device_type = "ethernet-phy";
82 reg = <0x30000000 0x01000000>;
86 reg = <0x00000000 0x00020000>;
91 reg = <0x00020000 0x00300000>;
95 reg = <0x00320000 0x00600000>;
98 label = "Application";
99 reg = <0x00920000 0x00600000>;
103 reg = <0x00f20000 0x00020000>;
108 reg = <0x00f40000 0x000a0000>;
112 label = "FIS directory";
113 reg = <0x00fe0000 0x00020000>;
118 syscon: syscon@40000000 {
121 * gpio1dgrp cover line 28-31 otherwise used
124 gpio1_default_pins: pinctrl-gpio1 {
127 groups = "gpio1dgrp";
133 groups = "gmii_gmac0_grp";
135 /* Settings come from OpenWRT, pins on SL3516 */
137 pins = "V8 GMAC0 RXDV", "T10 GMAC1 RXDV";
141 pins = "Y7 GMAC0 RXC", "Y11 GMAC1 RXC";
145 pins = "T8 GMAC0 TXEN", "W11 GMAC1 TXEN";
149 pins = "U8 GMAC0 TXC";
153 pins = "V11 GMAC1 TXC";
157 /* The data lines all have default skew */
158 pins = "W8 GMAC0 RXD0", "V9 GMAC0 RXD1",
159 "Y8 GMAC0 RXD2", "U9 GMAC0 RXD3",
160 "T7 GMAC0 TXD0", "U6 GMAC0 TXD1",
161 "V7 GMAC0 TXD2", "U7 GMAC0 TXD3",
162 "Y12 GMAC1 RXD0", "V12 GMAC1 RXD1",
163 "T11 GMAC1 RXD2", "W12 GMAC1 RXD3",
164 "U10 GMAC1 TXD0", "Y10 GMAC1 TXD1",
165 "W10 GMAC1 TXD2", "T9 GMAC1 TXD3";
168 /* Set up drive strength on GMAC0 to 16 mA */
170 groups = "gmii_gmac0_grp";
171 drive-strength = <16>;
177 sata: sata@46000000 {
178 cortina,gemini-ata-muxmode = <0>;
179 cortina,gemini-enable-sata-bridge;
183 gpio1: gpio@4e000000 {
184 pinctrl-names = "default";
185 pinctrl-0 = <&gpio1_default_pins>;
193 phy-handle = <&phy0>;
196 /* Not used in this platform */