1 // SPDX-License-Identifier: ISC
3 * Device Tree file for Gateworks IXP43x-based Cambria GW2358
8 #include "intel-ixp43x.dtsi"
11 model = "Gateworks Cambria GW2358";
12 compatible = "gateworks,gw2358", "intel,ixp43x";
18 device_type = "memory";
19 reg = <0x00000000 0x8000000>;
23 bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 rootwait";
24 stdout-path = "uart0:115200n8";
32 compatible = "gpio-leds";
34 label = "gw2358:green:LED";
35 gpios = <&pld1 0 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "heartbeat";
43 compatible = "i2c-gpio";
44 sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
45 scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
50 compatible = "adi,ad7418";
54 compatible = "dallas,ds1672";
58 compatible = "atmel,24c08";
65 compatible = "gateworks,pld-gpio";
70 /* This PLD just handles the LED and user button */
72 compatible = "gateworks,pld-gpio";
80 compatible = "intel,ixp4xx-flash", "cfi-flash";
83 * 32 MB of Flash in 0x20000 byte blocks
84 * mapped in at 0x50000000
86 reg = <0x50000000 0x2000000>;
89 compatible = "redboot-fis";
90 /* Eraseblock at 0x1fe0000 */
91 fis-index-block = <0xff>;
100 * In the boardfile for the Cambria from OpenWRT the interrupts
101 * are assigned one per IDSEL, so all 4 interrupts from IDSEL
102 * 1 are connected to IRQ 11, all 4 interrupts from IDSEL 2
103 * connected to IRQ 10 etc. I find this highly unlikely so I
104 * have instead assumed that they are rotated (swizzled) like
105 * this with 11, 10, 9, 8 for the 4 pins on IDSEL 1 etc.
109 <0x0800 0 0 1 &gpio0 11 3>, /* INT A on slot 1 is irq 11 */
110 <0x0800 0 0 2 &gpio0 10 3>, /* INT B on slot 1 is irq 10 */
111 <0x0800 0 0 3 &gpio0 9 3>, /* INT C on slot 1 is irq 9 */
112 <0x0800 0 0 4 &gpio0 8 3>, /* INT D on slot 1 is irq 8 */
114 <0x1000 0 0 1 &gpio0 10 3>, /* INT A on slot 2 is irq 10 */
115 <0x1000 0 0 2 &gpio0 9 3>, /* INT B on slot 2 is irq 9 */
116 <0x1000 0 0 3 &gpio0 8 3>, /* INT C on slot 2 is irq 8 */
117 <0x1000 0 0 4 &gpio0 11 3>, /* INT D on slot 2 is irq 11 */
119 <0x1800 0 0 1 &gpio0 9 3>, /* INT A on slot 3 is irq 9 */
120 <0x1800 0 0 2 &gpio0 8 3>, /* INT B on slot 3 is irq 8 */
121 <0x1800 0 0 3 &gpio0 11 3>, /* INT C on slot 3 is irq 11 */
122 <0x1800 0 0 4 &gpio0 10 3>, /* INT D on slot 3 is irq 10 */
124 <0x2000 0 0 1 &gpio0 8 3>, /* INT A on slot 3 is irq 8 */
125 <0x2000 0 0 2 &gpio0 11 3>, /* INT B on slot 3 is irq 11 */
126 <0x2000 0 0 3 &gpio0 10 3>, /* INT C on slot 3 is irq 10 */
127 <0x2000 0 0 4 &gpio0 9 3>, /* INT D on slot 3 is irq 9 */
129 <0x3000 0 0 1 &gpio0 10 3>, /* INT A on slot 3 is irq 10 */
130 <0x3000 0 0 2 &gpio0 9 3>, /* INT B on slot 3 is irq 9 */
131 <0x3000 0 0 3 &gpio0 8 3>, /* INT C on slot 3 is irq 8 */
132 <0x3000 0 0 4 &gpio0 11 3>, /* INT D on slot 3 is irq 11 */
134 <0x7800 0 0 1 &gpio0 8 3>, /* INT A on slot 3 is irq 8 */
135 <0x7800 0 0 2 &gpio0 11 3>, /* INT B on slot 3 is irq 11 */
136 <0x7800 0 0 3 &gpio0 10 3>, /* INT C on slot 3 is irq 10 */
137 <0x7800 0 0 4 &gpio0 9 3>; /* INT D on slot 3 is irq 9 */
142 queue-rx = <&qmgr 4>;
143 queue-txready = <&qmgr 21>;
145 phy-handle = <&phy1>;
148 #address-cells = <1>;
151 phy1: ethernet-phy@1 {