Skip to content

Commit c50f9fb

Browse files
committed
ARM: dts: sun8i: a83t: Switch to CCU device tree binding macros
Now that the CCU device tree binding headers have been merged, we can use the properly named macros in the device tree, instead of raw numbers. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent 3a4bae5 commit c50f9fb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

arch/arm/boot/dts/sun8i-a83t.dtsi

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444

4545
#include <dt-bindings/interrupt-controller/arm-gic.h>
4646

47+
#include <dt-bindings/clock/sun8i-a83t-ccu.h>
4748
#include <dt-bindings/clock/sun8i-r-ccu.h>
49+
#include <dt-bindings/reset/sun8i-a83t-ccu.h>
4850

4951
/ {
5052
interrupt-parent = <&gic>;
@@ -175,8 +177,8 @@
175177
compatible = "allwinner,sun8i-a83t-dma";
176178
reg = <0x01c02000 0x1000>;
177179
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
178-
clocks = <&ccu 21>;
179-
resets = <&ccu 7>;
180+
clocks = <&ccu CLK_BUS_DMA>;
181+
resets = <&ccu RST_BUS_DMA>;
180182
#dma-cells = <1>;
181183
};
182184

@@ -195,7 +197,7 @@
195197
<GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
196198
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
197199
reg = <0x01c20800 0x400>;
198-
clocks = <&ccu 45>, <&osc24M>, <&osc16Md512>;
200+
clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc16Md512>;
199201
clock-names = "apb", "hosc", "losc";
200202
gpio-controller;
201203
interrupt-controller;
@@ -247,8 +249,8 @@
247249
"allwinner,sun8i-h3-spdif";
248250
reg = <0x01c21000 0x400>;
249251
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
250-
clocks = <&ccu 44>, <&ccu 76>;
251-
resets = <&ccu 32>;
252+
clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
253+
resets = <&ccu RST_BUS_SPDIF>;
252254
clock-names = "apb", "spdif";
253255
dmas = <&dma 2>;
254256
dma-names = "tx";
@@ -263,8 +265,8 @@
263265
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
264266
reg-shift = <2>;
265267
reg-io-width = <4>;
266-
clocks = <&ccu 53>;
267-
resets = <&ccu 40>;
268+
clocks = <&ccu CLK_BUS_UART0>;
269+
resets = <&ccu RST_BUS_UART0>;
268270
status = "disabled";
269271
};
270272

0 commit comments

Comments
 (0)