1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B 4*724ba675SRob Herring */ 5*724ba675SRob Herring 6*724ba675SRob Herring/dts-v1/; 7*724ba675SRob Herring 8*724ba675SRob Herring#include "gemini.dtsi" 9*724ba675SRob Herring#include <dt-bindings/input/input.h> 10*724ba675SRob Herring 11*724ba675SRob Herring/ { 12*724ba675SRob Herring model = "Raidsonic NAS IB-4220-B"; 13*724ba675SRob Herring compatible = "raidsonic,ib-4220-b", "cortina,gemini"; 14*724ba675SRob Herring #address-cells = <1>; 15*724ba675SRob Herring #size-cells = <1>; 16*724ba675SRob Herring 17*724ba675SRob Herring memory@0 { /* 128 MB */ 18*724ba675SRob Herring device_type = "memory"; 19*724ba675SRob Herring reg = <0x00000000 0x8000000>; 20*724ba675SRob Herring }; 21*724ba675SRob Herring 22*724ba675SRob Herring chosen { 23*724ba675SRob Herring bootargs = "console=ttyS0,19200n8 root=/dev/mtdblock3 rw rootfstype=squashfs,jffs2 rootwait"; 24*724ba675SRob Herring stdout-path = &uart0; 25*724ba675SRob Herring }; 26*724ba675SRob Herring 27*724ba675SRob Herring gpio_keys { 28*724ba675SRob Herring compatible = "gpio-keys"; 29*724ba675SRob Herring 30*724ba675SRob Herring button-setup { 31*724ba675SRob Herring debounce-interval = <100>; 32*724ba675SRob Herring wakeup-source; 33*724ba675SRob Herring linux,code = <KEY_SETUP>; 34*724ba675SRob Herring label = "Backup button"; 35*724ba675SRob Herring /* Conflict with TVC */ 36*724ba675SRob Herring gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; 37*724ba675SRob Herring }; 38*724ba675SRob Herring button-restart { 39*724ba675SRob Herring debounce-interval = <100>; 40*724ba675SRob Herring wakeup-source; 41*724ba675SRob Herring linux,code = <KEY_RESTART>; 42*724ba675SRob Herring label = "Softreset button"; 43*724ba675SRob Herring /* Conflict with TVC */ 44*724ba675SRob Herring gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; 45*724ba675SRob Herring }; 46*724ba675SRob Herring }; 47*724ba675SRob Herring 48*724ba675SRob Herring leds { 49*724ba675SRob Herring compatible = "gpio-leds"; 50*724ba675SRob Herring led-orange-hdd { 51*724ba675SRob Herring label = "nas4220b:orange:hdd"; 52*724ba675SRob Herring /* Conflict with TVC */ 53*724ba675SRob Herring gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 54*724ba675SRob Herring default-state = "on"; 55*724ba675SRob Herring }; 56*724ba675SRob Herring led-green-os { 57*724ba675SRob Herring label = "nas4220b:green:os"; 58*724ba675SRob Herring /* Conflict with TVC */ 59*724ba675SRob Herring gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; 60*724ba675SRob Herring default-state = "on"; 61*724ba675SRob Herring linux,default-trigger = "heartbeat"; 62*724ba675SRob Herring }; 63*724ba675SRob Herring }; 64*724ba675SRob Herring 65*724ba675SRob Herring mdio0: mdio { 66*724ba675SRob Herring compatible = "virtual,mdio-gpio"; 67*724ba675SRob Herring gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ 68*724ba675SRob Herring <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ 69*724ba675SRob Herring #address-cells = <1>; 70*724ba675SRob Herring #size-cells = <0>; 71*724ba675SRob Herring 72*724ba675SRob Herring phy0: ethernet-phy@1 { 73*724ba675SRob Herring reg = <1>; 74*724ba675SRob Herring device_type = "ethernet-phy"; 75*724ba675SRob Herring }; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring soc { 79*724ba675SRob Herring flash@30000000 { 80*724ba675SRob Herring status = "okay"; 81*724ba675SRob Herring /* 16MB of flash */ 82*724ba675SRob Herring reg = <0x30000000 0x01000000>; 83*724ba675SRob Herring 84*724ba675SRob Herring partitions { 85*724ba675SRob Herring compatible = "redboot-fis"; 86*724ba675SRob Herring /* Eraseblock at 0xfe0000 */ 87*724ba675SRob Herring fis-index-block = <0x7f>; 88*724ba675SRob Herring }; 89*724ba675SRob Herring }; 90*724ba675SRob Herring 91*724ba675SRob Herring syscon: syscon@40000000 { 92*724ba675SRob Herring pinctrl { 93*724ba675SRob Herring /* 94*724ba675SRob Herring * gpio1dgrp cover line 28-31 otherwise used 95*724ba675SRob Herring * by TVC. 96*724ba675SRob Herring */ 97*724ba675SRob Herring gpio1_default_pins: pinctrl-gpio1 { 98*724ba675SRob Herring mux { 99*724ba675SRob Herring function = "gpio1"; 100*724ba675SRob Herring groups = "gpio1dgrp"; 101*724ba675SRob Herring }; 102*724ba675SRob Herring }; 103*724ba675SRob Herring pinctrl-gmii { 104*724ba675SRob Herring mux { 105*724ba675SRob Herring function = "gmii"; 106*724ba675SRob Herring groups = "gmii_gmac0_grp"; 107*724ba675SRob Herring }; 108*724ba675SRob Herring /* Settings come from OpenWRT, pins on SL3516 */ 109*724ba675SRob Herring conf0 { 110*724ba675SRob Herring pins = "V8 GMAC0 RXDV", "T10 GMAC1 RXDV"; 111*724ba675SRob Herring skew-delay = <0>; 112*724ba675SRob Herring }; 113*724ba675SRob Herring conf1 { 114*724ba675SRob Herring pins = "Y7 GMAC0 RXC", "Y11 GMAC1 RXC"; 115*724ba675SRob Herring skew-delay = <15>; 116*724ba675SRob Herring }; 117*724ba675SRob Herring conf2 { 118*724ba675SRob Herring pins = "T8 GMAC0 TXEN", "W11 GMAC1 TXEN"; 119*724ba675SRob Herring skew-delay = <7>; 120*724ba675SRob Herring }; 121*724ba675SRob Herring conf3 { 122*724ba675SRob Herring pins = "U8 GMAC0 TXC"; 123*724ba675SRob Herring skew-delay = <11>; 124*724ba675SRob Herring }; 125*724ba675SRob Herring conf4 { 126*724ba675SRob Herring pins = "V11 GMAC1 TXC"; 127*724ba675SRob Herring skew-delay = <10>; 128*724ba675SRob Herring }; 129*724ba675SRob Herring conf5 { 130*724ba675SRob Herring /* The data lines all have default skew */ 131*724ba675SRob Herring pins = "W8 GMAC0 RXD0", "V9 GMAC0 RXD1", 132*724ba675SRob Herring "Y8 GMAC0 RXD2", "U9 GMAC0 RXD3", 133*724ba675SRob Herring "T7 GMAC0 TXD0", "U6 GMAC0 TXD1", 134*724ba675SRob Herring "V7 GMAC0 TXD2", "U7 GMAC0 TXD3", 135*724ba675SRob Herring "Y12 GMAC1 RXD0", "V12 GMAC1 RXD1", 136*724ba675SRob Herring "T11 GMAC1 RXD2", "W12 GMAC1 RXD3", 137*724ba675SRob Herring "U10 GMAC1 TXD0", "Y10 GMAC1 TXD1", 138*724ba675SRob Herring "W10 GMAC1 TXD2", "T9 GMAC1 TXD3"; 139*724ba675SRob Herring skew-delay = <7>; 140*724ba675SRob Herring }; 141*724ba675SRob Herring /* Set up drive strength on GMAC0 to 16 mA */ 142*724ba675SRob Herring conf6 { 143*724ba675SRob Herring groups = "gmii_gmac0_grp"; 144*724ba675SRob Herring drive-strength = <16>; 145*724ba675SRob Herring }; 146*724ba675SRob Herring }; 147*724ba675SRob Herring }; 148*724ba675SRob Herring }; 149*724ba675SRob Herring 150*724ba675SRob Herring sata: sata@46000000 { 151*724ba675SRob Herring cortina,gemini-ata-muxmode = <0>; 152*724ba675SRob Herring cortina,gemini-enable-sata-bridge; 153*724ba675SRob Herring status = "okay"; 154*724ba675SRob Herring }; 155*724ba675SRob Herring 156*724ba675SRob Herring gpio1: gpio@4e000000 { 157*724ba675SRob Herring pinctrl-names = "default"; 158*724ba675SRob Herring pinctrl-0 = <&gpio1_default_pins>; 159*724ba675SRob Herring }; 160*724ba675SRob Herring 161*724ba675SRob Herring ethernet@60000000 { 162*724ba675SRob Herring status = "okay"; 163*724ba675SRob Herring 164*724ba675SRob Herring ethernet-port@0 { 165*724ba675SRob Herring phy-mode = "rgmii"; 166*724ba675SRob Herring phy-handle = <&phy0>; 167*724ba675SRob Herring }; 168*724ba675SRob Herring ethernet-port@1 { 169*724ba675SRob Herring /* Not used in this platform */ 170*724ba675SRob Herring }; 171*724ba675SRob Herring }; 172*724ba675SRob Herring 173*724ba675SRob Herring ide@63000000 { 174*724ba675SRob Herring status = "okay"; 175*724ba675SRob Herring }; 176*724ba675SRob Herring 177*724ba675SRob Herring ide@63400000 { 178*724ba675SRob Herring status = "okay"; 179*724ba675SRob Herring }; 180*724ba675SRob Herring 181*724ba675SRob Herring usb@68000000 { 182*724ba675SRob Herring status = "okay"; 183*724ba675SRob Herring }; 184*724ba675SRob Herring 185*724ba675SRob Herring usb@69000000 { 186*724ba675SRob Herring status = "okay"; 187*724ba675SRob Herring }; 188*724ba675SRob Herring }; 189*724ba675SRob Herring}; 190