]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: sun9i: Add A80 GMAC gigabit ethernet controller node
authorChen-Yu Tsai <wens@csie.org>
Wed, 6 Feb 2019 03:32:36 +0000 (11:32 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 7 Feb 2019 15:51:12 +0000 (16:51 +0100)
The A80 has the same GMAC found on the A31 SoC.

Add a device node, and an alias for it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun9i-a80.dtsi

index 724ca3b850c87b12a1d3b9e0d924bbd95b50bde4..f0c7acf2d0a47e8b92a7acd5ffc4b99a9db3362b 100644 (file)
        #size-cells = <2>;
        interrupt-parent = <&gic>;
 
+       aliases {
+               ethernet0 = &gmac;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                        };
                };
 
+               gmac: ethernet@830000 {
+                       compatible = "allwinner,sun7i-a20-gmac";
+                       reg = <0x00830000 0x1054>;
+                       interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+                       clocks = <&ccu CLK_BUS_GMAC>, <&gmac_tx_clk>;
+                       clock-names = "stmmaceth", "allwinner_gmac_tx";
+                       resets = <&ccu RST_BUS_GMAC>;
+                       reset-names = "stmmaceth";
+                       snps,pbl = <2>;
+                       snps,fixed-burst;
+                       snps,force_sf_dma_mode;
+                       status = "disabled";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
+
                ehci0: usb@a00000 {
                        compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
                        reg = <0x00a00000 0x100>;