ARM/arm64: dts: allwinner: Move H3/H5 syscon label over to soc-specific nodes
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Wed, 5 Dec 2018 09:24:37 +0000 (10:24 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 5 Dec 2018 11:03:02 +0000 (12:03 +0100)
The EMAC driver requires a syscon node to access the EMAC clock
configuration register (that is part of the system-control register
range and controlled). For this purpose, a dummy syscon node was
introduced to let the driver access the register freely.

Recently, the EMAC driver was tuned to get access to the register when
the SRAM driver is registered (as used on the A64). As a result, it is
no longer necessary to have a dummy syscon node for that purpose.

Now that we have a proper system-control node for both the H3 and H5,
we can get rid of that dummy syscon node and have the EMAC driver use
the node corresponding to the proper SRAM driver (by switching the
syscon label over to each dtsi). This way, we no longer have two
separate nodes for the same register space.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-h3.dtsi
arch/arm/boot/dts/sunxi-h3-h5.dtsi
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi

index 45242df7425b0e4ae3d958aa848e89fa027e2a17..e93c4716512e8a8e5ba1ae37f9c679d7868c4c23 100644 (file)
        };
 
        soc {
-               system-control@1c00000 {
+               syscon: system-control@1c00000 {
                        compatible = "allwinner,sun8i-h3-system-control";
                        reg = <0x01c00000 0x1000>;
                        #address-cells = <1>;
index 0d9e9eac518cf18244c34fe0bd1b2a8ad62b6b32..ed5846982685fc6193c5f7f7a4d436aaf6741c80 100644 (file)
                        };
                };
 
-               syscon: syscon@1c00000 {
-                       compatible = "allwinner,sun8i-h3-system-controller",
-                               "syscon";
-                       reg = <0x01c00000 0x1000>;
-               };
-
                dma: dma-controller@1c02000 {
                        compatible = "allwinner,sun8i-h3-dma";
                        reg = <0x01c02000 0x1000>;
index f184d8f55c8a3512f6186bfbf67ad8205ae651a5..107607baaa42ea039af860f13a650d0df519a4bd 100644 (file)
@@ -94,7 +94,7 @@
        };
 
        soc {
-               system-control@1c00000 {
+               syscon: system-control@1c00000 {
                        compatible = "allwinner,sun50i-h5-system-control";
                        reg = <0x01c00000 0x1000>;
                        #address-cells = <1>;