]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Fix H3 EMAC syscon register address
authorChen-Yu Tsai <wens@csie.org>
Fri, 2 Sep 2016 08:29:05 +0000 (16:29 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2016 08:33:54 +0000 (10:33 +0200)
The sun8i-emac driver follows an old version of the proposed DT
bindings, where the EMAC clock and EPHY control register range is
listed directly, rather than through a syscon phandle.

Add back the syscon register range to avoid an invalid data access.
We should fix the driver once the Linux kernel bindings have been
finalized.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/dts/sun8i-h3.dtsi

index 6babaf37177f29215f84f62181e6d5c033e3460b..afa60793a2353d3018f7dbc001df06c2e95b9fa8 100644 (file)
 
                emac: ethernet@1c30000 {
                        compatible = "allwinner,sun8i-h3-emac";
-                       syscon = <&syscon>;
-                       reg = <0x01c30000 0x104>;
-                       reg-names = "emac";
+                       reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
+                       reg-names = "emac", "syscon";
                        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
                        resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>;
                        reset-names = "ahb", "ephy";