ARM: dts: sun8i: r40: Use tcon top clock index macros
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 31 Dec 2019 13:05:22 +0000 (18:35 +0530)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 3 Jan 2020 09:39:27 +0000 (10:39 +0100)
tcon_tv0, tcon_tv1 nodes have a clock names of tcon-ch0,
tcon-ch1 which are referring tcon_top clocks via index
numbers like 0, 1 with CLK_TCON_TV0 and CLK_TCON_TV1
respectively.

Use the macro in place of index numbers, for more code
readability.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/boot/dts/sun8i-r40.dtsi

index 8dcbc4465fbb7e0b14c3f9361cbccfdbd49b44b8..7c940b20b81c8058a3e623e8657f4d79598ae106 100644 (file)
@@ -44,6 +44,7 @@
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/sun8i-de2.h>
 #include <dt-bindings/clock/sun8i-r40-ccu.h>
+#include <dt-bindings/clock/sun8i-tcon-top.h>
 #include <dt-bindings/reset/sun8i-r40-ccu.h>
 #include <dt-bindings/reset/sun8i-de2.h>
 
                        compatible = "allwinner,sun8i-r40-tcon-tv";
                        reg = <0x01c73000 0x1000>;
                        interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top 0>;
+                       clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>;
                        clock-names = "ahb", "tcon-ch1";
                        resets = <&ccu RST_BUS_TCON_TV0>;
                        reset-names = "lcd";
                        compatible = "allwinner,sun8i-r40-tcon-tv";
                        reg = <0x01c74000 0x1000>;
                        interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top 1>;
+                       clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>;
                        clock-names = "ahb", "tcon-ch1";
                        resets = <&ccu RST_BUS_TCON_TV1>;
                        reset-names = "lcd";