1f126890aSEmmanuel Vadot// SPDX-License-Identifier: ISC 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Device Tree file for the Goramo MultiLink Router 4f126890aSEmmanuel Vadot * There are two variants: 5f126890aSEmmanuel Vadot * - MultiLink Basic (a box) 6f126890aSEmmanuel Vadot * - MultiLink Max (19" rack mount) 7f126890aSEmmanuel Vadot * This device tree supports MultiLink Basic. 8f126890aSEmmanuel Vadot * This machine is based on IXP425. 9f126890aSEmmanuel Vadot * This is one of the few devices supporting the IXP4xx High-Speed Serial 10f126890aSEmmanuel Vadot * (HSS) link for a V.35 WAN interface. 11f126890aSEmmanuel Vadot * The hardware originates in Poland. 12f126890aSEmmanuel Vadot */ 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot/dts-v1/; 15f126890aSEmmanuel Vadot 16f126890aSEmmanuel Vadot#include "intel-ixp42x.dtsi" 17f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot/ { 20f126890aSEmmanuel Vadot model = "Goramo MultiLink Router"; 21f126890aSEmmanuel Vadot compatible = "goramo,multilink-router", "intel,ixp42x"; 22f126890aSEmmanuel Vadot #address-cells = <1>; 23f126890aSEmmanuel Vadot #size-cells = <1>; 24f126890aSEmmanuel Vadot 25f126890aSEmmanuel Vadot memory@0 { 26f126890aSEmmanuel Vadot /* 27f126890aSEmmanuel Vadot * 64 MB of RAM according to the manual. The MultiLink 28f126890aSEmmanuel Vadot * Max has 128 MB. 29f126890aSEmmanuel Vadot */ 30f126890aSEmmanuel Vadot device_type = "memory"; 31f126890aSEmmanuel Vadot reg = <0x00000000 0x4000000>; 32f126890aSEmmanuel Vadot }; 33f126890aSEmmanuel Vadot 34f126890aSEmmanuel Vadot chosen { 35f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200n8"; 36f126890aSEmmanuel Vadot stdout-path = "uart0:115200n8"; 37f126890aSEmmanuel Vadot }; 38f126890aSEmmanuel Vadot 39f126890aSEmmanuel Vadot aliases { 40f126890aSEmmanuel Vadot serial0 = &uart0; 41f126890aSEmmanuel Vadot serial1 = &uart1; 42f126890aSEmmanuel Vadot }; 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot /* 45f126890aSEmmanuel Vadot * 74HC4094 which is used as a rudimentary GPIO expander 46f126890aSEmmanuel Vadot * FIXME: 47f126890aSEmmanuel Vadot * - Create device tree bindings for this as GPIO expander 48f126890aSEmmanuel Vadot * - Write a pure DT GPIO driver using these bindings 49f126890aSEmmanuel Vadot * - Support cascading in the style of gpio-74x164.c (cannot be reused, very different) 50f126890aSEmmanuel Vadot */ 51f126890aSEmmanuel Vadot gpio_74: gpio-74hc4094 { 52f126890aSEmmanuel Vadot compatible = "nxp,74hc4094"; 53f126890aSEmmanuel Vadot cp-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 54f126890aSEmmanuel Vadot d-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 55f126890aSEmmanuel Vadot str-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 56f126890aSEmmanuel Vadot /* oe-gpios is optional */ 57f126890aSEmmanuel Vadot gpio-controller; 58f126890aSEmmanuel Vadot #gpio-cells = <2>; 59f126890aSEmmanuel Vadot /* We are not cascaded */ 60f126890aSEmmanuel Vadot registers-number = <1>; 61f126890aSEmmanuel Vadot gpio-line-names = "CONTROL_HSS0_CLK_INT", "CONTROL_HSS1_CLK_INT", "CONTROL_HSS0_DTR_N", 62f126890aSEmmanuel Vadot "CONTROL_HSS1_DTR_N", "CONTROL_EXT", "CONTROL_AUTO_RESET", 63f126890aSEmmanuel Vadot "CONTROL_PCI_RESET_N", "CONTROL_EEPROM_WC_N"; 64f126890aSEmmanuel Vadot }; 65f126890aSEmmanuel Vadot 66f126890aSEmmanuel Vadot soc { 67f126890aSEmmanuel Vadot bus@c4000000 { 68f126890aSEmmanuel Vadot flash@0,0 { 69f126890aSEmmanuel Vadot compatible = "intel,ixp4xx-flash", "cfi-flash"; 70f126890aSEmmanuel Vadot bank-width = <2>; 71f126890aSEmmanuel Vadot /* Enable writes on the expansion bus */ 72f126890aSEmmanuel Vadot intel,ixp4xx-eb-write-enable = <1>; 73f126890aSEmmanuel Vadot /* 16 MB of Flash mapped in at CS0 */ 74f126890aSEmmanuel Vadot reg = <0 0x00000000 0x1000000>; 75f126890aSEmmanuel Vadot 76f126890aSEmmanuel Vadot partitions { 77f126890aSEmmanuel Vadot compatible = "redboot-fis"; 78f126890aSEmmanuel Vadot /* Eraseblock at 0x0fe0000 */ 79f126890aSEmmanuel Vadot fis-index-block = <0x7f>; 80f126890aSEmmanuel Vadot }; 81f126890aSEmmanuel Vadot }; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot pci@c0000000 { 85f126890aSEmmanuel Vadot status = "okay"; 86f126890aSEmmanuel Vadot 87f126890aSEmmanuel Vadot /* 88f126890aSEmmanuel Vadot * The device has 4 slots (IDSEL) with one dedicated IRQ per slot. 89f126890aSEmmanuel Vadot * The slots have Ethernet, Ethernet, NEC and MPCI. 90f126890aSEmmanuel Vadot * The IDSELs are 11, 12, 13, 14. 91f126890aSEmmanuel Vadot */ 92*8d13bc63SEmmanuel Vadot #interrupt-cells = <1>; 93*8d13bc63SEmmanuel Vadot interrupt-map-mask = <0xf800 0 0 7>; 94f126890aSEmmanuel Vadot interrupt-map = 95f126890aSEmmanuel Vadot /* IDSEL 11 - Ethernet A */ 96f126890aSEmmanuel Vadot <0x5800 0 0 1 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 11 is irq 4 */ 97f126890aSEmmanuel Vadot <0x5800 0 0 2 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 11 is irq 4 */ 98f126890aSEmmanuel Vadot <0x5800 0 0 3 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 11 is irq 4 */ 99f126890aSEmmanuel Vadot <0x5800 0 0 4 &gpio0 4 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 11 is irq 4 */ 100f126890aSEmmanuel Vadot /* IDSEL 12 - Ethernet B */ 101f126890aSEmmanuel Vadot <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */ 102f126890aSEmmanuel Vadot <0x6000 0 0 2 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 5 */ 103f126890aSEmmanuel Vadot <0x6000 0 0 3 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 5 */ 104f126890aSEmmanuel Vadot <0x6000 0 0 4 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 5 */ 105f126890aSEmmanuel Vadot /* IDSEL 13 - MPCI */ 106f126890aSEmmanuel Vadot <0x6800 0 0 1 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 12 */ 107f126890aSEmmanuel Vadot <0x6800 0 0 2 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 12 */ 108f126890aSEmmanuel Vadot <0x6800 0 0 3 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 12 */ 109f126890aSEmmanuel Vadot <0x6800 0 0 4 &gpio0 12 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 12 */ 110f126890aSEmmanuel Vadot /* IDSEL 14 - NEC */ 111f126890aSEmmanuel Vadot <0x7000 0 0 1 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 3 */ 112f126890aSEmmanuel Vadot <0x7000 0 0 2 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 3 */ 113f126890aSEmmanuel Vadot <0x7000 0 0 3 &gpio0 3 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 3 */ 114f126890aSEmmanuel Vadot <0x7000 0 0 4 &gpio0 3 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 3 */ 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot 117f126890aSEmmanuel Vadot /* HSS links */ 118f126890aSEmmanuel Vadot npe@c8006000 { 119f126890aSEmmanuel Vadot hss@0 { 120f126890aSEmmanuel Vadot status = "okay"; 121f126890aSEmmanuel Vadot intel,queue-chl-rxtrig = <&qmgr 12>; 122f126890aSEmmanuel Vadot intel,queue-chl-txready = <&qmgr 34>; 123f126890aSEmmanuel Vadot intel,queue-pkt-rx = <&qmgr 13>; 124f126890aSEmmanuel Vadot intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>; 125f126890aSEmmanuel Vadot intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>; 126f126890aSEmmanuel Vadot intel,queue-pkt-txdone = <&qmgr 22>; 127f126890aSEmmanuel Vadot /* The Goramo GPIO-based clock etc control */ 128f126890aSEmmanuel Vadot cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 129f126890aSEmmanuel Vadot rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 130f126890aSEmmanuel Vadot dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 131f126890aSEmmanuel Vadot dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>; 132f126890aSEmmanuel Vadot clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>; 133f126890aSEmmanuel Vadot }; 134f126890aSEmmanuel Vadot hss@1 { 135f126890aSEmmanuel Vadot status = "okay"; 136f126890aSEmmanuel Vadot intel,queue-chl-rxtrig = <&qmgr 10>; 137f126890aSEmmanuel Vadot intel,queue-chl-txready = <&qmgr 35>; 138f126890aSEmmanuel Vadot intel,queue-pkt-rx = <&qmgr 0>; 139f126890aSEmmanuel Vadot intel,queue-pkt-tx = <&qmgr 5>, <&qmgr 6>, <&qmgr 7>, <&qmgr 8>; 140f126890aSEmmanuel Vadot intel,queue-pkt-rxfree = <&qmgr 1>, <&qmgr 2>, <&qmgr 3>, <&qmgr 4>; 141f126890aSEmmanuel Vadot intel,queue-pkt-txdone = <&qmgr 9>; 142f126890aSEmmanuel Vadot /* The Goramo GPIO-based clock etc control */ 143f126890aSEmmanuel Vadot cts-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; 144f126890aSEmmanuel Vadot rts-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 145f126890aSEmmanuel Vadot dcd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 146f126890aSEmmanuel Vadot dtr-gpios = <&gpio_74 3 GPIO_ACTIVE_LOW>; 147f126890aSEmmanuel Vadot clk-internal-gpios = <&gpio_74 1 GPIO_ACTIVE_HIGH>; 148f126890aSEmmanuel Vadot }; 149f126890aSEmmanuel Vadot }; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot /* EthB */ 152f126890aSEmmanuel Vadot ethernet@c8009000 { 153f126890aSEmmanuel Vadot status = "okay"; 154f126890aSEmmanuel Vadot queue-rx = <&qmgr 3>; 155f126890aSEmmanuel Vadot queue-txready = <&qmgr 32>; 156f126890aSEmmanuel Vadot phy-mode = "rgmii"; 157f126890aSEmmanuel Vadot phy-handle = <&phy0>; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot mdio { 160f126890aSEmmanuel Vadot #address-cells = <1>; 161f126890aSEmmanuel Vadot #size-cells = <0>; 162f126890aSEmmanuel Vadot 163f126890aSEmmanuel Vadot phy0: ethernet-phy@0 { 164f126890aSEmmanuel Vadot reg = <0>; 165f126890aSEmmanuel Vadot }; 166f126890aSEmmanuel Vadot 167f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { 168f126890aSEmmanuel Vadot reg = <1>; 169f126890aSEmmanuel Vadot }; 170f126890aSEmmanuel Vadot }; 171f126890aSEmmanuel Vadot }; 172f126890aSEmmanuel Vadot 173f126890aSEmmanuel Vadot /* EthC */ 174f126890aSEmmanuel Vadot ethernet@c800a000 { 175f126890aSEmmanuel Vadot status = "okay"; 176f126890aSEmmanuel Vadot queue-rx = <&qmgr 4>; 177f126890aSEmmanuel Vadot queue-txready = <&qmgr 33>; 178f126890aSEmmanuel Vadot phy-mode = "rgmii"; 179f126890aSEmmanuel Vadot phy-handle = <&phy1>; 180f126890aSEmmanuel Vadot }; 181f126890aSEmmanuel Vadot }; 182f126890aSEmmanuel Vadot}; 183