162306a36Sopenharmony_ci// SPDX-License-Identifier: ISC 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Device Tree file for the Intel IXDPG425 reference design. 462306a36Sopenharmony_ci * Derived from boardfiles written by MontaVista software. 562306a36Sopenharmony_ci * Ethernet set-up from OpenWrt. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * The device has 4 x FXS RJ11 ports for analog phones for 862306a36Sopenharmony_ci * internet telephony. (Not supported yet.) 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * The device has 9 status LEDs we do not support yet. 1162306a36Sopenharmony_ci * 1262306a36Sopenharmony_ci * This device is very similar to ADI engingeering Coyote. 1362306a36Sopenharmony_ci */ 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci/dts-v1/; 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#include "intel-ixp42x.dtsi" 1862306a36Sopenharmony_ci#include <dt-bindings/input/input.h> 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci/ { 2162306a36Sopenharmony_ci model = "Intel IXDPG425 reference design"; 2262306a36Sopenharmony_ci compatible = "intel,ixdpg425", "intel,ixp42x"; 2362306a36Sopenharmony_ci #address-cells = <1>; 2462306a36Sopenharmony_ci #size-cells = <1>; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci memory@0 { 2762306a36Sopenharmony_ci /* 32 MB SDRAM */ 2862306a36Sopenharmony_ci device_type = "memory"; 2962306a36Sopenharmony_ci reg = <0x00000000 0x02000000>; 3062306a36Sopenharmony_ci }; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci chosen { 3362306a36Sopenharmony_ci bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait"; 3462306a36Sopenharmony_ci stdout-path = "uart0:115200n8"; 3562306a36Sopenharmony_ci }; 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci aliases { 3862306a36Sopenharmony_ci serial0 = &uart0; 3962306a36Sopenharmony_ci }; 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci soc { 4262306a36Sopenharmony_ci bus@c4000000 { 4362306a36Sopenharmony_ci flash@0,0 { 4462306a36Sopenharmony_ci compatible = "intel,ixp4xx-flash", "cfi-flash"; 4562306a36Sopenharmony_ci bank-width = <2>; 4662306a36Sopenharmony_ci /* 4762306a36Sopenharmony_ci * CHECKME: the product brief says 16MB in a flash 4862306a36Sopenharmony_ci * socket. 4962306a36Sopenharmony_ci */ 5062306a36Sopenharmony_ci reg = <0 0x00000000 0x1000000>; 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci /* Configure expansion bus to allow writes */ 5362306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci partitions { 5662306a36Sopenharmony_ci compatible = "redboot-fis"; 5762306a36Sopenharmony_ci /* CHECKME: guess this is Redboot FIS */ 5862306a36Sopenharmony_ci fis-index-block = <0x7f>; 5962306a36Sopenharmony_ci }; 6062306a36Sopenharmony_ci }; 6162306a36Sopenharmony_ci }; 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci pci@c0000000 { 6462306a36Sopenharmony_ci status = "okay"; 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci /* 6762306a36Sopenharmony_ci * Taken from IXDPG425 PCI boardfile. 6862306a36Sopenharmony_ci * We have slots (IDSEL) 12, 13 and 14 with one assigned IRQ 6962306a36Sopenharmony_ci * for 12 & 13 and one for 14. 7062306a36Sopenharmony_ci */ 7162306a36Sopenharmony_ci #interrupt-cells = <1>; 7262306a36Sopenharmony_ci interrupt-map-mask = <0xf800 0 0 7>; 7362306a36Sopenharmony_ci interrupt-map = 7462306a36Sopenharmony_ci /* IDSEL 12 */ 7562306a36Sopenharmony_ci <0x6000 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 7 */ 7662306a36Sopenharmony_ci <0x6000 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 7 */ 7762306a36Sopenharmony_ci <0x6000 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 7 */ 7862306a36Sopenharmony_ci <0x6000 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 7 */ 7962306a36Sopenharmony_ci /* IDSEL 13 */ 8062306a36Sopenharmony_ci <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */ 8162306a36Sopenharmony_ci <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */ 8262306a36Sopenharmony_ci <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */ 8362306a36Sopenharmony_ci <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */ 8462306a36Sopenharmony_ci /* IDSEL 14 */ 8562306a36Sopenharmony_ci <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */ 8662306a36Sopenharmony_ci <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */ 8762306a36Sopenharmony_ci <0x7000 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 6 */ 8862306a36Sopenharmony_ci <0x7000 0 0 4 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 6 */ 8962306a36Sopenharmony_ci }; 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ci /* 9262306a36Sopenharmony_ci * CHECKME: this ethernet setup seems dubious. Photos of the board shows some kind 9362306a36Sopenharmony_ci * of Realtek DSA switch on the board. 9462306a36Sopenharmony_ci */ 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci /* EthB */ 9762306a36Sopenharmony_ci ethernet@c8009000 { 9862306a36Sopenharmony_ci status = "okay"; 9962306a36Sopenharmony_ci queue-rx = <&qmgr 3>; 10062306a36Sopenharmony_ci queue-txready = <&qmgr 20>; 10162306a36Sopenharmony_ci phy-mode = "rgmii"; 10262306a36Sopenharmony_ci phy-handle = <&phy5>; 10362306a36Sopenharmony_ci 10462306a36Sopenharmony_ci mdio { 10562306a36Sopenharmony_ci #address-cells = <1>; 10662306a36Sopenharmony_ci #size-cells = <0>; 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci phy4: ethernet-phy@4 { 10962306a36Sopenharmony_ci reg = <4>; 11062306a36Sopenharmony_ci }; 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ci phy5: ethernet-phy@5 { 11362306a36Sopenharmony_ci reg = <5>; 11462306a36Sopenharmony_ci }; 11562306a36Sopenharmony_ci }; 11662306a36Sopenharmony_ci }; 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ci /* EthC */ 11962306a36Sopenharmony_ci ethernet@c800a000 { 12062306a36Sopenharmony_ci status = "okay"; 12162306a36Sopenharmony_ci queue-rx = <&qmgr 4>; 12262306a36Sopenharmony_ci queue-txready = <&qmgr 21>; 12362306a36Sopenharmony_ci phy-mode = "rgmii"; 12462306a36Sopenharmony_ci phy-handle = <&phy4>; 12562306a36Sopenharmony_ci }; 12662306a36Sopenharmony_ci }; 12762306a36Sopenharmony_ci}; 128