]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: mobileye: eyeq5: add two Cadence GEM Ethernet controllers
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 25 Feb 2026 16:55:23 +0000 (17:55 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 6 Apr 2026 12:04:22 +0000 (14:04 +0200)
Add both MACB/GEM instances found in the Mobileye EyeQ5 SoC.

Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/mobileye/eyeq5.dtsi

index 36a73e8a63a1ab32d1c300d17c4491b175428cdf..cec5ad87522859054193b4a160b1f51958118451 100644 (file)
@@ -77,6 +77,8 @@
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
+               ethernet0 = &macb0;
+               ethernet1 = &macb1;
        };
 
        cpu_intc: interrupt-controller {
                        #clock-cells = <1>;
                        clocks = <&xtal>;
                        clock-names = "ref";
+                       #phy-cells = <1>;
                };
 
                gic: interrupt-controller@140000 {
                        #interrupt-cells = <2>;
                        resets = <&olb 0 26>;
                };
+
+               iocu-bus {
+                       compatible = "simple-bus";
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       ranges;
+                       dma-coherent;
+                       dma-ranges = <0x10 0x00000000 0x0 0x0 0x10 0>;
+
+                       macb0: ethernet@2a00000 {
+                               compatible = "mobileye,eyeq5-gem";
+                               reg = <0x0 0x02a00000 0x0 0x4000>;
+                               interrupt-parent = <&gic>;
+                               /* One interrupt per queue */
+                               interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
+                               clock-names = "pclk", "hclk", "tsu_clk";
+                               clocks = <&pclk>, <&pclk>, <&tsu_clk>;
+                               nvmem-cells = <&eth0_mac>;
+                               nvmem-cell-names = "mac-address";
+                               phys = <&olb 0>;
+                       };
+
+                       macb1: ethernet@2b00000 {
+                               compatible = "mobileye,eyeq5-gem";
+                               reg = <0x0 0x02b00000 0x0 0x4000>;
+                               interrupt-parent = <&gic>;
+                               /* One interrupt per queue */
+                               interrupts = <GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
+                               clock-names = "pclk", "hclk", "tsu_clk";
+                               clocks = <&pclk>, <&pclk>, <&tsu_clk>;
+                               nvmem-cells = <&eth1_mac>;
+                               nvmem-cell-names = "mac-address";
+                               phys = <&olb 1>;
+                       };
+               };
+
        };
 };