1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: ISC 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree file for the Intel IXDPG425 reference design. 4*f126890aSEmmanuel Vadot * Derived from boardfiles written by MontaVista software. 5*f126890aSEmmanuel Vadot * Ethernet set-up from OpenWrt. 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot * The device has 4 x FXS RJ11 ports for analog phones for 8*f126890aSEmmanuel Vadot * internet telephony. (Not supported yet.) 9*f126890aSEmmanuel Vadot * 10*f126890aSEmmanuel Vadot * The device has 9 status LEDs we do not support yet. 11*f126890aSEmmanuel Vadot * 12*f126890aSEmmanuel Vadot * This device is very similar to ADI engingeering Coyote. 13*f126890aSEmmanuel Vadot */ 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot/dts-v1/; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot#include "intel-ixp42x.dtsi" 18*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot/ { 21*f126890aSEmmanuel Vadot model = "Intel IXDPG425 reference design"; 22*f126890aSEmmanuel Vadot compatible = "intel,ixdpg425", "intel,ixp42x"; 23*f126890aSEmmanuel Vadot #address-cells = <1>; 24*f126890aSEmmanuel Vadot #size-cells = <1>; 25*f126890aSEmmanuel Vadot 26*f126890aSEmmanuel Vadot memory@0 { 27*f126890aSEmmanuel Vadot /* 32 MB SDRAM */ 28*f126890aSEmmanuel Vadot device_type = "memory"; 29*f126890aSEmmanuel Vadot reg = <0x00000000 0x02000000>; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot 32*f126890aSEmmanuel Vadot chosen { 33*f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait"; 34*f126890aSEmmanuel Vadot stdout-path = "uart0:115200n8"; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot aliases { 38*f126890aSEmmanuel Vadot serial0 = &uart0; 39*f126890aSEmmanuel Vadot }; 40*f126890aSEmmanuel Vadot 41*f126890aSEmmanuel Vadot soc { 42*f126890aSEmmanuel Vadot bus@c4000000 { 43*f126890aSEmmanuel Vadot flash@0,0 { 44*f126890aSEmmanuel Vadot compatible = "intel,ixp4xx-flash", "cfi-flash"; 45*f126890aSEmmanuel Vadot bank-width = <2>; 46*f126890aSEmmanuel Vadot /* 47*f126890aSEmmanuel Vadot * CHECKME: the product brief says 16MB in a flash 48*f126890aSEmmanuel Vadot * socket. 49*f126890aSEmmanuel Vadot */ 50*f126890aSEmmanuel Vadot reg = <0 0x00000000 0x1000000>; 51*f126890aSEmmanuel Vadot 52*f126890aSEmmanuel Vadot /* Configure expansion bus to allow writes */ 53*f126890aSEmmanuel Vadot intel,ixp4xx-eb-write-enable = <1>; 54*f126890aSEmmanuel Vadot 55*f126890aSEmmanuel Vadot partitions { 56*f126890aSEmmanuel Vadot compatible = "redboot-fis"; 57*f126890aSEmmanuel Vadot /* CHECKME: guess this is Redboot FIS */ 58*f126890aSEmmanuel Vadot fis-index-block = <0x7f>; 59*f126890aSEmmanuel Vadot }; 60*f126890aSEmmanuel Vadot }; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot pci@c0000000 { 64*f126890aSEmmanuel Vadot status = "okay"; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot /* 67*f126890aSEmmanuel Vadot * Taken from IXDPG425 PCI boardfile. 68*f126890aSEmmanuel Vadot * We have slots (IDSEL) 12, 13 and 14 with one assigned IRQ 69*f126890aSEmmanuel Vadot * for 12 & 13 and one for 14. 70*f126890aSEmmanuel Vadot */ 71*f126890aSEmmanuel Vadot #interrupt-cells = <1>; 72*f126890aSEmmanuel Vadot interrupt-map-mask = <0xf800 0 0 7>; 73*f126890aSEmmanuel Vadot interrupt-map = 74*f126890aSEmmanuel Vadot /* IDSEL 12 */ 75*f126890aSEmmanuel Vadot <0x6000 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 7 */ 76*f126890aSEmmanuel Vadot <0x6000 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 7 */ 77*f126890aSEmmanuel Vadot <0x6000 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 7 */ 78*f126890aSEmmanuel Vadot <0x6000 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 7 */ 79*f126890aSEmmanuel Vadot /* IDSEL 13 */ 80*f126890aSEmmanuel Vadot <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */ 81*f126890aSEmmanuel Vadot <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */ 82*f126890aSEmmanuel Vadot <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */ 83*f126890aSEmmanuel Vadot <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */ 84*f126890aSEmmanuel Vadot /* IDSEL 14 */ 85*f126890aSEmmanuel Vadot <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */ 86*f126890aSEmmanuel Vadot <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */ 87*f126890aSEmmanuel Vadot <0x7000 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 6 */ 88*f126890aSEmmanuel Vadot <0x7000 0 0 4 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 6 */ 89*f126890aSEmmanuel Vadot }; 90*f126890aSEmmanuel Vadot 91*f126890aSEmmanuel Vadot /* 92*f126890aSEmmanuel Vadot * CHECKME: this ethernet setup seems dubious. Photos of the board shows some kind 93*f126890aSEmmanuel Vadot * of Realtek DSA switch on the board. 94*f126890aSEmmanuel Vadot */ 95*f126890aSEmmanuel Vadot 96*f126890aSEmmanuel Vadot /* EthB */ 97*f126890aSEmmanuel Vadot ethernet@c8009000 { 98*f126890aSEmmanuel Vadot status = "okay"; 99*f126890aSEmmanuel Vadot queue-rx = <&qmgr 3>; 100*f126890aSEmmanuel Vadot queue-txready = <&qmgr 20>; 101*f126890aSEmmanuel Vadot phy-mode = "rgmii"; 102*f126890aSEmmanuel Vadot phy-handle = <&phy5>; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot mdio { 105*f126890aSEmmanuel Vadot #address-cells = <1>; 106*f126890aSEmmanuel Vadot #size-cells = <0>; 107*f126890aSEmmanuel Vadot 108*f126890aSEmmanuel Vadot phy4: ethernet-phy@4 { 109*f126890aSEmmanuel Vadot reg = <4>; 110*f126890aSEmmanuel Vadot }; 111*f126890aSEmmanuel Vadot 112*f126890aSEmmanuel Vadot phy5: ethernet-phy@5 { 113*f126890aSEmmanuel Vadot reg = <5>; 114*f126890aSEmmanuel Vadot }; 115*f126890aSEmmanuel Vadot }; 116*f126890aSEmmanuel Vadot }; 117*f126890aSEmmanuel Vadot 118*f126890aSEmmanuel Vadot /* EthC */ 119*f126890aSEmmanuel Vadot ethernet@c800a000 { 120*f126890aSEmmanuel Vadot status = "okay"; 121*f126890aSEmmanuel Vadot queue-rx = <&qmgr 4>; 122*f126890aSEmmanuel Vadot queue-txready = <&qmgr 21>; 123*f126890aSEmmanuel Vadot phy-mode = "rgmii"; 124*f126890aSEmmanuel Vadot phy-handle = <&phy4>; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot}; 128