ARM: dts: r8a7743: Add reset control properties
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 16 Mar 2017 14:07:25 +0000 (15:07 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 21 Mar 2017 08:18:42 +0000 (09:18 +0100)
Add properties to describe the reset topology for on-SoC devices:
  - Add the "#reset-cells" property to the CPG/MSSR device node,
  - Add resets and reset-names properties to the various device nodes.

This allows to reset SoC devices using the Reset Controller API.

Note that all resets added match the corresponding module clocks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7743.dtsi

index cd90879..0ddac81 100644 (file)
@@ -62,6 +62,7 @@
                        clocks = <&cpg CPG_MOD 408>;
                        clock-names = "clk";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 408>;
                };
 
                irqc: interrupt-controller@e61c0000 {
@@ -81,6 +82,7 @@
                                     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cpg CPG_MOD 407>;
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 407>;
                };
 
                timer {
                        clock-names = "extal", "usb_extal";
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
+                       #reset-cells = <1>;
                };
 
                prr: chipid@ff000044 {
                        clocks = <&cpg CPG_MOD 219>;
                        clock-names = "fck";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 219>;
                        #dma-cells = <1>;
                        dma-channels = <15>;
                };
                        clocks = <&cpg CPG_MOD 218>;
                        clock-names = "fck";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 218>;
                        #dma-cells = <1>;
                        dma-channels = <15>;
                };
                               <&dmac1 0x21>, <&dmac1 0x22>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 204>;
                        status = "disabled";
                };
 
                               <&dmac1 0x25>, <&dmac1 0x26>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 203>;
                        status = "disabled";
                };
 
                               <&dmac1 0x27>, <&dmac1 0x28>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 202>;
                        status = "disabled";
                };
 
                               <&dmac1 0x1b>, <&dmac1 0x1c>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 1106>;
                        status = "disabled";
                };
 
                               <&dmac1 0x1f>, <&dmac1 0x20>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 1107>;
                        status = "disabled";
                };
 
                               <&dmac1 0x23>, <&dmac1 0x24>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 1108>;
                        status = "disabled";
                };
 
                               <&dmac1 0x3d>, <&dmac1 0x3e>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 206>;
                        status = "disabled";
                };
 
                               <&dmac1 0x19>, <&dmac1 0x1a>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 207>;
                        status = "disabled";
                };
 
                               <&dmac1 0x1d>, <&dmac1 0x1e>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 216>;
                        status = "disabled";
                };
 
                               <&dmac1 0x29>, <&dmac1 0x2a>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 721>;
                        status = "disabled";
                };
 
                               <&dmac1 0x2d>, <&dmac1 0x2e>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 720>;
                        status = "disabled";
                };
 
                               <&dmac1 0x2b>, <&dmac1 0x2c>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 719>;
                        status = "disabled";
                };
 
                               <&dmac1 0x2f>, <&dmac1 0x30>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 718>;
                        status = "disabled";
                };
 
                               <&dmac1 0xfb>, <&dmac1 0xfc>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 715>;
                        status = "disabled";
                };
 
                               <&dmac1 0xfd>, <&dmac1 0xfe>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 714>;
                        status = "disabled";
                };
 
                               <&dmac1 0x39>, <&dmac1 0x3a>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 717>;
                        status = "disabled";
                };
 
                               <&dmac1 0x4d>, <&dmac1 0x4e>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 716>;
                        status = "disabled";
                };
 
                               <&dmac1 0x3b>, <&dmac1 0x3c>;
                        dma-names = "tx", "rx", "tx", "rx";
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 713>;
                        status = "disabled";
                };
 
                        interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cpg CPG_MOD 813>;
                        power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+                       resets = <&cpg 813>;
                        phy-mode = "rmii";
                        #address-cells = <1>;
                        #size-cells = <0>;