Commit f892c0c7 authored by Biju Das's avatar Biju Das Committed by Simon Horman

ARM: dts: r8a77470: Use r8a77470-sysc binding definitions

Replace the hardcoded power domain indices by R8A77470_PD_* symbols.
Signed-off-by: default avatarBiju Das <biju.das@bp.renesas.com>
Reviewed-by: default avatarChris Paterson <chris.paterson2@renesas.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 441f61e3
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r8a77470-cpg-mssr.h> #include <dt-bindings/clock/r8a77470-cpg-mssr.h>
#include <dt-bindings/power/r8a77470-sysc.h>
/ { / {
compatible = "renesas,r8a77470"; compatible = "renesas,r8a77470";
#address-cells = <2>; #address-cells = <2>;
...@@ -23,7 +24,7 @@ cpu0: cpu@0 { ...@@ -23,7 +24,7 @@ cpu0: cpu@0 {
reg = <0>; reg = <0>;
clock-frequency = <1000000000>; clock-frequency = <1000000000>;
clocks = <&cpg CPG_CORE R8A77470_CLK_Z2>; clocks = <&cpg CPG_CORE R8A77470_CLK_Z2>;
power-domains = <&sysc 5>; power-domains = <&sysc R8A77470_PD_CA7_CPU0>;
next-level-cache = <&L2_CA7>; next-level-cache = <&L2_CA7>;
}; };
...@@ -32,7 +33,7 @@ L2_CA7: cache-controller-0 { ...@@ -32,7 +33,7 @@ L2_CA7: cache-controller-0 {
compatible = "cache"; compatible = "cache";
cache-unified; cache-unified;
cache-level = <2>; cache-level = <2>;
power-domains = <&sysc 21>; power-domains = <&sysc R8A77470_PD_CA7_SCU>;
}; };
}; };
...@@ -97,7 +98,7 @@ irqc: interrupt-controller@e61c0000 { ...@@ -97,7 +98,7 @@ irqc: interrupt-controller@e61c0000 {
<GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 407>; clocks = <&cpg CPG_MOD 407>;
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 407>; resets = <&cpg 407>;
}; };
...@@ -151,7 +152,7 @@ GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH ...@@ -151,7 +152,7 @@ GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH
"ch12", "ch13", "ch14"; "ch12", "ch13", "ch14";
clocks = <&cpg CPG_MOD 219>; clocks = <&cpg CPG_MOD 219>;
clock-names = "fck"; clock-names = "fck";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 219>; resets = <&cpg 219>;
#dma-cells = <1>; #dma-cells = <1>;
dma-channels = <15>; dma-channels = <15>;
...@@ -184,7 +185,7 @@ GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH ...@@ -184,7 +185,7 @@ GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH
"ch12", "ch13", "ch14"; "ch12", "ch13", "ch14";
clocks = <&cpg CPG_MOD 218>; clocks = <&cpg CPG_MOD 218>;
clock-names = "fck"; clock-names = "fck";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 218>; resets = <&cpg 218>;
#dma-cells = <1>; #dma-cells = <1>;
dma-channels = <15>; dma-channels = <15>;
...@@ -196,7 +197,7 @@ avb: ethernet@e6800000 { ...@@ -196,7 +197,7 @@ avb: ethernet@e6800000 {
reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 812>; clocks = <&cpg CPG_MOD 812>;
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 812>; resets = <&cpg 812>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -214,7 +215,7 @@ scif0: serial@e6e60000 { ...@@ -214,7 +215,7 @@ scif0: serial@e6e60000 {
dmas = <&dmac0 0x29>, <&dmac0 0x2a>, dmas = <&dmac0 0x29>, <&dmac0 0x2a>,
<&dmac1 0x29>, <&dmac1 0x2a>; <&dmac1 0x29>, <&dmac1 0x2a>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 721>; resets = <&cpg 721>;
status = "disabled"; status = "disabled";
}; };
...@@ -230,7 +231,7 @@ scif1: serial@e6e68000 { ...@@ -230,7 +231,7 @@ scif1: serial@e6e68000 {
dmas = <&dmac0 0x2d>, <&dmac0 0x2e>, dmas = <&dmac0 0x2d>, <&dmac0 0x2e>,
<&dmac1 0x2d>, <&dmac1 0x2e>; <&dmac1 0x2d>, <&dmac1 0x2e>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 720>; resets = <&cpg 720>;
status = "disabled"; status = "disabled";
}; };
...@@ -246,7 +247,7 @@ scif2: serial@e6e58000 { ...@@ -246,7 +247,7 @@ scif2: serial@e6e58000 {
dmas = <&dmac0 0x2b>, <&dmac0 0x2c>, dmas = <&dmac0 0x2b>, <&dmac0 0x2c>,
<&dmac1 0x2b>, <&dmac1 0x2c>; <&dmac1 0x2b>, <&dmac1 0x2c>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 719>; resets = <&cpg 719>;
status = "disabled"; status = "disabled";
}; };
...@@ -262,7 +263,7 @@ scif3: serial@e6ea8000 { ...@@ -262,7 +263,7 @@ scif3: serial@e6ea8000 {
dmas = <&dmac0 0x2f>, <&dmac0 0x30>, dmas = <&dmac0 0x2f>, <&dmac0 0x30>,
<&dmac1 0x2f>, <&dmac1 0x30>; <&dmac1 0x2f>, <&dmac1 0x30>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 718>; resets = <&cpg 718>;
status = "disabled"; status = "disabled";
}; };
...@@ -278,7 +279,7 @@ scif4: serial@e6ee0000 { ...@@ -278,7 +279,7 @@ scif4: serial@e6ee0000 {
dmas = <&dmac0 0xfb>, <&dmac0 0xfc>, dmas = <&dmac0 0xfb>, <&dmac0 0xfc>,
<&dmac1 0xfb>, <&dmac1 0xfc>; <&dmac1 0xfb>, <&dmac1 0xfc>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 715>; resets = <&cpg 715>;
status = "disabled"; status = "disabled";
}; };
...@@ -294,7 +295,7 @@ scif5: serial@e6ee8000 { ...@@ -294,7 +295,7 @@ scif5: serial@e6ee8000 {
dmas = <&dmac0 0xfd>, <&dmac0 0xfe>, dmas = <&dmac0 0xfd>, <&dmac0 0xfe>,
<&dmac1 0xfd>, <&dmac1 0xfe>; <&dmac1 0xfd>, <&dmac1 0xfe>;
dma-names = "tx", "rx", "tx", "rx"; dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 714>; resets = <&cpg 714>;
status = "disabled"; status = "disabled";
}; };
...@@ -309,7 +310,7 @@ gic: interrupt-controller@f1001000 { ...@@ -309,7 +310,7 @@ gic: interrupt-controller@f1001000 {
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
clocks = <&cpg CPG_MOD 408>; clocks = <&cpg CPG_MOD 408>;
clock-names = "clk"; clock-names = "clk";
power-domains = <&sysc 32>; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>;
resets = <&cpg 408>; resets = <&cpg 408>;
}; };
......
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