ARM: dts: r8a77470: Add SMP support
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Mon, 17 Sep 2018 08:44:10 +0000 (09:44 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 28 Sep 2018 08:32:47 +0000 (10:32 +0200)
Add DT node for the Advanced Power Management Unit (APMU), add the
second CPU core, and use "renesas,apmu" as "enable-method".

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a77470.dtsi

index c053a28cd132a31896ce868b07a6078ccbb2540e..9aba350f3eaa15509e07eebad6244a22cd696917 100644 (file)
@@ -17,6 +17,7 @@
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
+               enable-method = "renesas,apmu";
 
                cpu0: cpu@0 {
                        device_type = "cpu";
                        next-level-cache = <&L2_CA7>;
                };
 
+               cpu1: cpu@1 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a7";
+                       reg = <1>;
+                       clock-frequency = <1000000000>;
+                       clocks = <&cpg CPG_CORE R8A77470_CLK_Z2>;
+                       power-domains = <&sysc R8A77470_PD_CA7_CPU1>;
+                       next-level-cache = <&L2_CA7>;
+               };
 
                L2_CA7: cache-controller-0 {
                        compatible = "cache";
                        #reset-cells = <1>;
                };
 
+               apmu@e6151000 {
+                       compatible = "renesas,r8a77470-apmu", "renesas,apmu";
+                       reg = <0 0xe6151000 0 0x188>;
+                       cpus = <&cpu0 &cpu1>;
+               };
+
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a77470-rst";
                        reg = <0 0xe6160000 0 0x100>;