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 root=/dev/mtdblock3 rw rootfstype=squashfs,jffs2 rootwait";
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>;
85 compatible = "redboot-fis";
86 /* Eraseblock at 0xfe0000 */
87 fis-index-block = <0x1fc>;
91 syscon: syscon@40000000 {
94 * gpio1dgrp cover line 28-31 otherwise used
97 gpio1_default_pins: pinctrl-gpio1 {
100 groups = "gpio1dgrp";
106 groups = "gmii_gmac0_grp";
108 /* Settings come from OpenWRT, pins on SL3516 */
110 pins = "V8 GMAC0 RXDV", "T10 GMAC1 RXDV";
114 pins = "Y7 GMAC0 RXC", "Y11 GMAC1 RXC";
118 pins = "T8 GMAC0 TXEN", "W11 GMAC1 TXEN";
122 pins = "U8 GMAC0 TXC";
126 pins = "V11 GMAC1 TXC";
130 /* The data lines all have default skew */
131 pins = "W8 GMAC0 RXD0", "V9 GMAC0 RXD1",
132 "Y8 GMAC0 RXD2", "U9 GMAC0 RXD3",
133 "T7 GMAC0 TXD0", "U6 GMAC0 TXD1",
134 "V7 GMAC0 TXD2", "U7 GMAC0 TXD3",
135 "Y12 GMAC1 RXD0", "V12 GMAC1 RXD1",
136 "T11 GMAC1 RXD2", "W12 GMAC1 RXD3",
137 "U10 GMAC1 TXD0", "Y10 GMAC1 TXD1",
138 "W10 GMAC1 TXD2", "T9 GMAC1 TXD3";
141 /* Set up drive strength on GMAC0 to 16 mA */
143 groups = "gmii_gmac0_grp";
144 drive-strength = <16>;
150 sata: sata@46000000 {
151 cortina,gemini-ata-muxmode = <0>;
152 cortina,gemini-enable-sata-bridge;
156 gpio1: gpio@4e000000 {
157 pinctrl-names = "default";
158 pinctrl-0 = <&gpio1_default_pins>;
166 phy-handle = <&phy0>;
169 /* Not used in this platform */