Commit 0a934343 authored by Jagan Teki's avatar Jagan Teki Committed by Maxime Ripard

ARM: dts: sun8i: r40: Use tcon top clock index macros

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: default avatarJagan Teki <jagan@amarulasolutions.com>
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 396c95e8
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun8i-de2.h> #include <dt-bindings/clock/sun8i-de2.h>
#include <dt-bindings/clock/sun8i-r40-ccu.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-r40-ccu.h>
#include <dt-bindings/reset/sun8i-de2.h> #include <dt-bindings/reset/sun8i-de2.h>
...@@ -746,7 +747,7 @@ tcon_tv0: lcd-controller@1c73000 { ...@@ -746,7 +747,7 @@ tcon_tv0: lcd-controller@1c73000 {
compatible = "allwinner,sun8i-r40-tcon-tv"; compatible = "allwinner,sun8i-r40-tcon-tv";
reg = <0x01c73000 0x1000>; reg = <0x01c73000 0x1000>;
interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 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"; clock-names = "ahb", "tcon-ch1";
resets = <&ccu RST_BUS_TCON_TV0>; resets = <&ccu RST_BUS_TCON_TV0>;
reset-names = "lcd"; reset-names = "lcd";
...@@ -789,7 +790,7 @@ tcon_tv1: lcd-controller@1c74000 { ...@@ -789,7 +790,7 @@ tcon_tv1: lcd-controller@1c74000 {
compatible = "allwinner,sun8i-r40-tcon-tv"; compatible = "allwinner,sun8i-r40-tcon-tv";
reg = <0x01c74000 0x1000>; reg = <0x01c74000 0x1000>;
interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; 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"; clock-names = "ahb", "tcon-ch1";
resets = <&ccu RST_BUS_TCON_TV1>; resets = <&ccu RST_BUS_TCON_TV1>;
reset-names = "lcd"; reset-names = "lcd";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment