>From 6756574293a1f291a8dcc29427b27f32f83acb2d Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 28 Nov 2014 13:48:58 +0100 Subject: [PATCH v2 1/2] ARM: dts: sun6i: Change prcm node into a simple-bus The prcm node's purpose is to group the various prcm sub-devices together, it does not need any special handling beyond that, there is no need to handle shared resources like a shared (multiplexed) interrupt or a shared i2c bus. As such there really is no need to have a separate compatible for it, using simple-bus for it works fine. This also allows us to specify the register offsets of the various child-devices directly into the dts, rather then having to specify them in the OS implementation, putting the register offsets where the belong. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun6i-a31.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 29e6438..4b8541f 100644 --- a/arch/arm/boot/dts/sun6i-a31.dtsi +++ b/arch/arm/boot/dts/sun6i-a31.dtsi @@ -846,11 +846,15 @@ }; prcm@01f01400 { - compatible = "allwinner,sun6i-a31-prcm"; + compatible = "simple-bus"; reg = <0x01f01400 0x200>; + #address-cells = <1>; + #size-cells = <1>; + ranges; ar100: ar100_clk { compatible = "allwinner,sun6i-a31-ar100-clk"; + reg = <0x01f01400 0x4>; #clock-cells = <0>; clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>; clock-output-names = "ar100"; @@ -867,6 +871,7 @@ apb0: apb0_clk { compatible = "allwinner,sun6i-a31-apb0-clk"; + reg = <0x01f0140c 0x4>; #clock-cells = <0>; clocks = <&ahb0>; clock-output-names = "apb0"; @@ -874,6 +879,7 @@ apb0_gates: apb0_gates_clk { compatible = "allwinner,sun6i-a31-apb0-gates-clk"; + reg = <0x01f01428 0x4>; #clock-cells = <1>; clocks = <&apb0>; clock-output-names = "apb0_pio", "apb0_ir", @@ -884,6 +890,7 @@ apb0_rst: apb0_rst { compatible = "allwinner,sun6i-a31-clock-reset"; + reg = <0x01f014b0 0x4>; #reset-cells = <1>; }; }; -- 2.1.0