sunxi: A64: Re-add syscon to DT node
authorAndre Przywara <andre.przywara@arm.com>
Mon, 29 Oct 2018 00:56:48 +0000 (00:56 +0000)
committerVagrant Cascadian <vagrant@debian.org>
Sun, 9 Dec 2018 07:16:44 +0000 (07:16 +0000)
The sun50i-a64.dtsi changes introduced in Linux v4.19-rc1 changed the
compatible name for the syscon controller, dropping the generic "syscon"
fallback. Using this new DT node will make the Ethernet driver in every
older kernel (or non-Linux kernels) fail to initialise the MAC device.

To allow booting distribution kernels (from installer images via UEFI,
for instance), re-add the syscon compatible string as a fallback. This
works with both older and newer kernels.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Gbp-Pq: Topic pinebook
Gbp-Pq: Name 0004-sunxi-A64-Re-add-syscon-to-DT-node.patch

arch/arm/dts/sun50i-a64.dtsi

index f3a66f888205e11d54b8fdba57618e6c2df5daed..ff41abc96a91ed2ef7984057b2dd3ee8cc02ac74 100644 (file)
                };
 
                syscon: syscon@1c00000 {
-                       compatible = "allwinner,sun50i-a64-system-control";
+                       compatible = "allwinner,sun50i-a64-system-control",
+                               "syscon";
                        reg = <0x01c00000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <1>;