162306a36Sopenharmony_ci// SPDX-License-Identifier: ISC 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Device Tree file for the Arcom/Eurotech Vulcan board. 462306a36Sopenharmony_ci * This board is a single board computer in the PC/104 form factor based on 562306a36Sopenharmony_ci * IXP425, and was released around 2005. It previously had the name "Mercury". 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci/dts-v1/; 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "intel-ixp42x.dtsi" 1162306a36Sopenharmony_ci#include <dt-bindings/input/input.h> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci/ { 1462306a36Sopenharmony_ci model = "Arcom/Eurotech Vulcan"; 1562306a36Sopenharmony_ci compatible = "arcom,vulcan", "intel,ixp42x"; 1662306a36Sopenharmony_ci #address-cells = <1>; 1762306a36Sopenharmony_ci #size-cells = <1>; 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci memory@0 { 2062306a36Sopenharmony_ci device_type = "memory"; 2162306a36Sopenharmony_ci reg = <0x00000000 0x4000000>; 2262306a36Sopenharmony_ci }; 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci chosen { 2562306a36Sopenharmony_ci /* CHECKME: using a harddrive at /dev/sda1 as rootfs by default */ 2662306a36Sopenharmony_ci bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootfstype=ext4 rootwait"; 2762306a36Sopenharmony_ci stdout-path = "uart0:115200n8"; 2862306a36Sopenharmony_ci }; 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci aliases { 3162306a36Sopenharmony_ci serial0 = &uart0; 3262306a36Sopenharmony_ci }; 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci onewire { 3562306a36Sopenharmony_ci compatible = "w1-gpio"; 3662306a36Sopenharmony_ci gpios = <&gpio0 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 3762306a36Sopenharmony_ci }; 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci soc { 4062306a36Sopenharmony_ci bus@c4000000 { 4162306a36Sopenharmony_ci flash@0,0 { 4262306a36Sopenharmony_ci compatible = "intel,ixp4xx-flash", "cfi-flash"; 4362306a36Sopenharmony_ci bank-width = <2>; 4462306a36Sopenharmony_ci /* 4562306a36Sopenharmony_ci * 32 MB of Flash in 0x20000 byte blocks 4662306a36Sopenharmony_ci * mapped in at CS0 and CS1. 4762306a36Sopenharmony_ci * 4862306a36Sopenharmony_ci * The documentation mentions the existence 4962306a36Sopenharmony_ci * of a 16MB version, which we conveniently 5062306a36Sopenharmony_ci * ignore. Shout if you own one! 5162306a36Sopenharmony_ci */ 5262306a36Sopenharmony_ci reg = <0 0x00000000 0x2000000>; 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci /* Expansion bus settings */ 5562306a36Sopenharmony_ci intel,ixp4xx-eb-t3 = <3>; 5662306a36Sopenharmony_ci intel,ixp4xx-eb-byte-access-on-halfword = <1>; 5762306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci partitions { 6062306a36Sopenharmony_ci compatible = "redboot-fis"; 6162306a36Sopenharmony_ci fis-index-block = <0x1ff>; 6262306a36Sopenharmony_ci }; 6362306a36Sopenharmony_ci }; 6462306a36Sopenharmony_ci sram@2,0 { 6562306a36Sopenharmony_ci /* 256 KB SDRAM memory at CS2 */ 6662306a36Sopenharmony_ci compatible = "shared-dma-pool"; 6762306a36Sopenharmony_ci device_type = "memory"; 6862306a36Sopenharmony_ci reg = <2 0x00000000 0x40000>; 6962306a36Sopenharmony_ci no-map; 7062306a36Sopenharmony_ci /* Expansion bus settings */ 7162306a36Sopenharmony_ci intel,ixp4xx-eb-t3 = <1>; 7262306a36Sopenharmony_ci intel,ixp4xx-eb-t4 = <2>; 7362306a36Sopenharmony_ci intel,ixp4xx-eb-ahb-split-transfers = <1>; 7462306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 7562306a36Sopenharmony_ci intel,ixp4xx-eb-byte-access = <1>; 7662306a36Sopenharmony_ci }; 7762306a36Sopenharmony_ci serial@3,0 { 7862306a36Sopenharmony_ci /* 7962306a36Sopenharmony_ci * 8250-compatible Exar XR16L2551 2 x UART 8062306a36Sopenharmony_ci * 8162306a36Sopenharmony_ci * CHECKME: if special tweaks are needed, then fix the 8262306a36Sopenharmony_ci * operating system to handle it. 8362306a36Sopenharmony_ci */ 8462306a36Sopenharmony_ci compatible = "exar,xr16l2551", "ns8250"; 8562306a36Sopenharmony_ci reg = <3 0x00000000 0x10>; 8662306a36Sopenharmony_ci interrupt-parent = <&gpio0>; 8762306a36Sopenharmony_ci interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 8862306a36Sopenharmony_ci clock-frequency = <1843200>; 8962306a36Sopenharmony_ci /* Expansion bus settings */ 9062306a36Sopenharmony_ci intel,ixp4xx-eb-t3 = <3>; 9162306a36Sopenharmony_ci intel,ixp4xx-eb-cycle-type = <1>; /* Motorola cycles */ 9262306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 9362306a36Sopenharmony_ci intel,ixp4xx-eb-byte-access = <1>; 9462306a36Sopenharmony_ci }; 9562306a36Sopenharmony_ci gpio1: gpio@4,0 { 9662306a36Sopenharmony_ci /* 9762306a36Sopenharmony_ci * MMIO GPIO in one byte 9862306a36Sopenharmony_ci */ 9962306a36Sopenharmony_ci compatible = "arcom,vulcan-gpio"; 10062306a36Sopenharmony_ci reg = <4 0x00000000 0x1>; 10162306a36Sopenharmony_ci /* Expansion bus settings */ 10262306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 10362306a36Sopenharmony_ci intel,ixp4xx-eb-byte-access = <1>; 10462306a36Sopenharmony_ci }; 10562306a36Sopenharmony_ci watchdog@5,0 { 10662306a36Sopenharmony_ci compatible = "maxim,max6369"; 10762306a36Sopenharmony_ci reg = <5 0x00000000 0x1>; 10862306a36Sopenharmony_ci /* Expansion bus settings */ 10962306a36Sopenharmony_ci intel,ixp4xx-eb-write-enable = <1>; 11062306a36Sopenharmony_ci intel,ixp4xx-eb-byte-access = <1>; 11162306a36Sopenharmony_ci }; 11262306a36Sopenharmony_ci }; 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci pci@c0000000 { 11562306a36Sopenharmony_ci status = "okay"; 11662306a36Sopenharmony_ci 11762306a36Sopenharmony_ci /* 11862306a36Sopenharmony_ci * Taken from Vulcan PCI boardfile. 11962306a36Sopenharmony_ci * 12062306a36Sopenharmony_ci * We have 2 slots (IDSEL) 1 and 2 with one dedicated interrupt 12162306a36Sopenharmony_ci * per slot. This interrupt is shared (OR:ed) by all four pins. 12262306a36Sopenharmony_ci */ 12362306a36Sopenharmony_ci #interrupt-cells = <1>; 12462306a36Sopenharmony_ci interrupt-map-mask = <0xf800 0 0 7>; 12562306a36Sopenharmony_ci interrupt-map = 12662306a36Sopenharmony_ci /* IDSEL 1 */ 12762306a36Sopenharmony_ci <0x0800 0 0 1 &gpio0 2 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 2 */ 12862306a36Sopenharmony_ci <0x0800 0 0 2 &gpio0 2 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 2 */ 12962306a36Sopenharmony_ci <0x0800 0 0 3 &gpio0 2 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 2 */ 13062306a36Sopenharmony_ci <0x0800 0 0 4 &gpio0 2 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 2 */ 13162306a36Sopenharmony_ci /* IDSEL 2 */ 13262306a36Sopenharmony_ci <0x1000 0 0 1 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 3 */ 13362306a36Sopenharmony_ci <0x1000 0 0 2 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 3 */ 13462306a36Sopenharmony_ci <0x1000 0 0 3 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 3 */ 13562306a36Sopenharmony_ci <0x1000 0 0 4 &gpio0 3 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 2 is irq 3 */ 13662306a36Sopenharmony_ci }; 13762306a36Sopenharmony_ci 13862306a36Sopenharmony_ci /* EthB */ 13962306a36Sopenharmony_ci ethernet@c8009000 { 14062306a36Sopenharmony_ci status = "okay"; 14162306a36Sopenharmony_ci queue-rx = <&qmgr 3>; 14262306a36Sopenharmony_ci queue-txready = <&qmgr 20>; 14362306a36Sopenharmony_ci phy-mode = "rgmii"; 14462306a36Sopenharmony_ci phy-handle = <&phy0>; 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ci mdio { 14762306a36Sopenharmony_ci #address-cells = <1>; 14862306a36Sopenharmony_ci #size-cells = <0>; 14962306a36Sopenharmony_ci 15062306a36Sopenharmony_ci phy0: ethernet-phy@0 { 15162306a36Sopenharmony_ci reg = <0>; 15262306a36Sopenharmony_ci }; 15362306a36Sopenharmony_ci 15462306a36Sopenharmony_ci phy1: ethernet-phy@1 { 15562306a36Sopenharmony_ci reg = <1>; 15662306a36Sopenharmony_ci }; 15762306a36Sopenharmony_ci }; 15862306a36Sopenharmony_ci }; 15962306a36Sopenharmony_ci 16062306a36Sopenharmony_ci /* EthC */ 16162306a36Sopenharmony_ci ethernet@c800a000 { 16262306a36Sopenharmony_ci status = "okay"; 16362306a36Sopenharmony_ci queue-rx = <&qmgr 4>; 16462306a36Sopenharmony_ci queue-txready = <&qmgr 21>; 16562306a36Sopenharmony_ci phy-mode = "rgmii"; 16662306a36Sopenharmony_ci phy-handle = <&phy1>; 16762306a36Sopenharmony_ci }; 16862306a36Sopenharmony_ci }; 16962306a36Sopenharmony_ci}; 170