1*724ba675SRob Herring// SPDX-License-Identifier: ISC 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for the Gateworks Avila GW2348 board. 4*724ba675SRob Herring * This machine is based on IXP425. 5*724ba675SRob Herring */ 6*724ba675SRob Herring 7*724ba675SRob Herring/dts-v1/; 8*724ba675SRob Herring 9*724ba675SRob Herring#include "intel-ixp42x.dtsi" 10*724ba675SRob Herring#include <dt-bindings/input/input.h> 11*724ba675SRob Herring 12*724ba675SRob Herring/ { 13*724ba675SRob Herring model = "Gateworks Avila GW2348"; 14*724ba675SRob Herring compatible = "gateworks,gw2348", "intel,ixp42x"; 15*724ba675SRob Herring #address-cells = <1>; 16*724ba675SRob Herring #size-cells = <1>; 17*724ba675SRob Herring 18*724ba675SRob Herring memory@0 { 19*724ba675SRob Herring device_type = "memory"; 20*724ba675SRob Herring reg = <0x00000000 0x4000000>; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring chosen { 24*724ba675SRob Herring bootargs = "console=ttyS0,115200n8"; 25*724ba675SRob Herring stdout-path = "uart0:115200n8"; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring aliases { 29*724ba675SRob Herring serial0 = &uart0; 30*724ba675SRob Herring }; 31*724ba675SRob Herring 32*724ba675SRob Herring leds { 33*724ba675SRob Herring compatible = "gpio-leds"; 34*724ba675SRob Herring led-user { 35*724ba675SRob Herring label = "gw2348:green:user"; 36*724ba675SRob Herring gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 37*724ba675SRob Herring default-state = "on"; 38*724ba675SRob Herring linux,default-trigger = "heartbeat"; 39*724ba675SRob Herring }; 40*724ba675SRob Herring }; 41*724ba675SRob Herring 42*724ba675SRob Herring i2c { 43*724ba675SRob Herring compatible = "i2c-gpio"; 44*724ba675SRob Herring sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 45*724ba675SRob Herring scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 46*724ba675SRob Herring #address-cells = <1>; 47*724ba675SRob Herring #size-cells = <0>; 48*724ba675SRob Herring 49*724ba675SRob Herring hwmon@28 { 50*724ba675SRob Herring compatible = "adi,ad7418"; 51*724ba675SRob Herring reg = <0x28>; 52*724ba675SRob Herring }; 53*724ba675SRob Herring rtc: ds1672@68 { 54*724ba675SRob Herring compatible = "dallas,ds1672"; 55*724ba675SRob Herring reg = <0x68>; 56*724ba675SRob Herring }; 57*724ba675SRob Herring eeprom@51 { 58*724ba675SRob Herring compatible = "atmel,24c08"; 59*724ba675SRob Herring reg = <0x51>; 60*724ba675SRob Herring pagesize = <16>; 61*724ba675SRob Herring size = <1024>; 62*724ba675SRob Herring read-only; 63*724ba675SRob Herring }; 64*724ba675SRob Herring }; 65*724ba675SRob Herring 66*724ba675SRob Herring soc { 67*724ba675SRob Herring bus@c4000000 { 68*724ba675SRob Herring flash@0,0 { 69*724ba675SRob Herring compatible = "intel,ixp4xx-flash", "cfi-flash"; 70*724ba675SRob Herring bank-width = <2>; 71*724ba675SRob Herring /* Enable writes on the expansion bus */ 72*724ba675SRob Herring intel,ixp4xx-eb-write-enable = <1>; 73*724ba675SRob Herring /* 16 MB of Flash mapped in at CS0 */ 74*724ba675SRob Herring reg = <0 0x00000000 0x1000000>; 75*724ba675SRob Herring 76*724ba675SRob Herring partitions { 77*724ba675SRob Herring compatible = "redboot-fis"; 78*724ba675SRob Herring /* Eraseblock at 0x0fe0000 */ 79*724ba675SRob Herring fis-index-block = <0x7f>; 80*724ba675SRob Herring }; 81*724ba675SRob Herring }; 82*724ba675SRob Herring ide@1,0 { 83*724ba675SRob Herring compatible = "intel,ixp4xx-compact-flash"; 84*724ba675SRob Herring /* 85*724ba675SRob Herring * Set up expansion bus config to a really slow timing. 86*724ba675SRob Herring * The CF driver will dynamically reconfigure these timings 87*724ba675SRob Herring * depending on selected PIO mode (0-4). 88*724ba675SRob Herring */ 89*724ba675SRob Herring intel,ixp4xx-eb-t1 = <3>; // 3 cycles extra address phase 90*724ba675SRob Herring intel,ixp4xx-eb-t2 = <3>; // 3 cycles extra setup phase 91*724ba675SRob Herring intel,ixp4xx-eb-t3 = <15>; // 15 cycles extra strobe phase 92*724ba675SRob Herring intel,ixp4xx-eb-t4 = <3>; // 3 cycles extra hold phase 93*724ba675SRob Herring intel,ixp4xx-eb-t5 = <15>; // 15 cycles extra recovery phase 94*724ba675SRob Herring intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type 95*724ba675SRob Herring intel,ixp4xx-eb-byte-access-on-halfword = <1>; 96*724ba675SRob Herring intel,ixp4xx-eb-mux-address-and-data = <0>; 97*724ba675SRob Herring intel,ixp4xx-eb-ahb-split-transfers = <0>; 98*724ba675SRob Herring intel,ixp4xx-eb-write-enable = <1>; 99*724ba675SRob Herring intel,ixp4xx-eb-byte-access = <1>; 100*724ba675SRob Herring /* First register set is CMD second is CTL (notice it uses CS2) */ 101*724ba675SRob Herring reg = <1 0x00000000 0x1000000>, <2 0x00000000 0x1000000>; 102*724ba675SRob Herring interrupt-parent = <&gpio0>; 103*724ba675SRob Herring interrupts = <12 IRQ_TYPE_EDGE_RISING>; 104*724ba675SRob Herring }; 105*724ba675SRob Herring /* 106*724ba675SRob Herring * FIXME: Latch LEDs or extra UARTs at CS4 107*724ba675SRob Herring */ 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring pci@c0000000 { 111*724ba675SRob Herring status = "okay"; 112*724ba675SRob Herring 113*724ba675SRob Herring /* 114*724ba675SRob Herring * Taken from Avila PCI boardfile. 115*724ba675SRob Herring * 116*724ba675SRob Herring * We have up to 4 slots (IDSEL) with 4 swizzled IRQs. 117*724ba675SRob Herring */ 118*724ba675SRob Herring #interrupt-cells = <1>; 119*724ba675SRob Herring interrupt-map-mask = <0xf800 0 0 7>; 120*724ba675SRob Herring interrupt-map = 121*724ba675SRob Herring /* IDSEL 1 */ 122*724ba675SRob Herring <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */ 123*724ba675SRob Herring <0x0800 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 10 */ 124*724ba675SRob Herring <0x0800 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */ 125*724ba675SRob Herring <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */ 126*724ba675SRob Herring /* IDSEL 2 */ 127*724ba675SRob Herring <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */ 128*724ba675SRob Herring <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */ 129*724ba675SRob Herring <0x1000 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */ 130*724ba675SRob Herring <0x1000 0 0 4 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 2 is irq 11 */ 131*724ba675SRob Herring /* IDSEL 3 */ 132*724ba675SRob Herring <0x1800 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */ 133*724ba675SRob Herring <0x1800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */ 134*724ba675SRob Herring <0x1800 0 0 3 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 3 is irq 11 */ 135*724ba675SRob Herring <0x1800 0 0 4 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 3 is irq 10 */ 136*724ba675SRob Herring /* IDSEL 4 */ 137*724ba675SRob Herring <0x2000 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 4 is irq 8 */ 138*724ba675SRob Herring <0x2000 0 0 2 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 4 is irq 11 */ 139*724ba675SRob Herring <0x2000 0 0 3 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 4 is irq 10 */ 140*724ba675SRob Herring <0x2000 0 0 4 &gpio0 9 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 4 is irq 9 */ 141*724ba675SRob Herring }; 142*724ba675SRob Herring 143*724ba675SRob Herring /* EthB */ 144*724ba675SRob Herring ethernet@c8009000 { 145*724ba675SRob Herring status = "okay"; 146*724ba675SRob Herring queue-rx = <&qmgr 3>; 147*724ba675SRob Herring queue-txready = <&qmgr 20>; 148*724ba675SRob Herring phy-mode = "rgmii"; 149*724ba675SRob Herring phy-handle = <&phy0>; 150*724ba675SRob Herring 151*724ba675SRob Herring mdio { 152*724ba675SRob Herring #address-cells = <1>; 153*724ba675SRob Herring #size-cells = <0>; 154*724ba675SRob Herring 155*724ba675SRob Herring phy0: ethernet-phy@0 { 156*724ba675SRob Herring reg = <0>; 157*724ba675SRob Herring }; 158*724ba675SRob Herring 159*724ba675SRob Herring phy1: ethernet-phy@1 { 160*724ba675SRob Herring reg = <1>; 161*724ba675SRob Herring }; 162*724ba675SRob Herring }; 163*724ba675SRob Herring }; 164*724ba675SRob Herring 165*724ba675SRob Herring /* EthC */ 166*724ba675SRob Herring ethernet@c800a000 { 167*724ba675SRob Herring status = "okay"; 168*724ba675SRob Herring queue-rx = <&qmgr 4>; 169*724ba675SRob Herring queue-txready = <&qmgr 21>; 170*724ba675SRob Herring phy-mode = "rgmii"; 171*724ba675SRob Herring phy-handle = <&phy1>; 172*724ba675SRob Herring }; 173*724ba675SRob Herring }; 174*724ba675SRob Herring}; 175