]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: dts: renesas: rcar-gen2: Add boot phase tags
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 9 Feb 2025 18:05:04 +0000 (19:05 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Feb 2025 15:23:01 +0000 (16:23 +0100)
bootph-all as phase tag was added to dt-schema
(dtschema/schemas/bootph.yaml) to describe various node usage during
boot phases with DT.  Add bootph-all for all nodes that are used in the
bootloader on Renesas R-Car Gen2 SoCs.

All SoC require CPG clock and its input clock, RST Reset, PFC pin
control and PRR ID register access during all stages of the boot
process, those are marked using bootph-all property, and so is the SoC
bus node which contains these IP.

Each board console UART is also marked as bootph-all to make it
available in all stages of the boot process.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250209180616.160253-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
14 files changed:
arch/arm/boot/dts/renesas/r8a7790-lager.dts
arch/arm/boot/dts/renesas/r8a7790-stout.dts
arch/arm/boot/dts/renesas/r8a7790.dtsi
arch/arm/boot/dts/renesas/r8a7791-koelsch.dts
arch/arm/boot/dts/renesas/r8a7791-porter.dts
arch/arm/boot/dts/renesas/r8a7791.dtsi
arch/arm/boot/dts/renesas/r8a7792-blanche.dts
arch/arm/boot/dts/renesas/r8a7792-wheat.dts
arch/arm/boot/dts/renesas/r8a7792.dtsi
arch/arm/boot/dts/renesas/r8a7793-gose.dts
arch/arm/boot/dts/renesas/r8a7793.dtsi
arch/arm/boot/dts/renesas/r8a7794-alt.dts
arch/arm/boot/dts/renesas/r8a7794-silk.dts
arch/arm/boot/dts/renesas/r8a7794.dtsi

index 3bce5876a9d81aac6c05336df0c9c93db148e18c..4f002aa7fbafc5cfdcb8d97b30083e4fca0d6dab 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index d7c0a9574ce83144f134311d8980953290ee82cf..b1e20579e071096cc37353cf934fabec0735f678 100644 (file)
 &scifa0 {
        pinctrl-0 = <&scifa0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index f746f0b9e686bb49e98a62c64a5f83fed1192c6a..4f97c09dbc9fe95793fdab1f95ef65ae42748da0 100644 (file)
                #clock-cells = <0>;
                /* This value must be overridden by the board. */
                clock-frequency = <0>;
+               bootph-all;
        };
 
        /* External PCIe clock - can be overridden by the board */
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&gic>;
+               bootph-all;
 
                #address-cells = <2>;
                #size-cells = <2>;
                pfc: pinctrl@e6060000 {
                        compatible = "renesas,pfc-r8a7790";
                        reg = <0 0xe6060000 0 0x250>;
+                       bootph-all;
                };
 
                tpu: pwm@e60f0000 {
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
                        #reset-cells = <1>;
+                       bootph-all;
                };
 
                apmu@e6151000 {
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a7790-rst";
                        reg = <0 0xe6160000 0 0x0100>;
+                       bootph-all;
                };
 
                sysc: system-controller@e6180000 {
                prr: chipid@ff000044 {
                        compatible = "renesas,prr";
                        reg = <0 0xff000044 0 4>;
+                       bootph-all;
                };
 
                cmt0: timer@ffca0000 {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <48000000>;
+               bootph-all;
        };
 };
index e4e1d9c98c617883cfc04ed5f9a95e8ec379fd59..e9f90fa44d551be29622973baec25dbf89a8d36c 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index 08381498350aacde48856b83966ce47e9e78850f..f518eadd8b9cdad310cb54d79d84131623ee25ca 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index e57567adff558844c3dfc4d27278879e7ab7acda..5023b41c28b361730eb5bf87805867e8320c0ffa 100644 (file)
                #clock-cells = <0>;
                /* This value must be overridden by the board. */
                clock-frequency = <0>;
+               bootph-all;
        };
 
        /* External PCIe clock - can be overridden by the board */
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&gic>;
+               bootph-all;
 
                #address-cells = <2>;
                #size-cells = <2>;
                pfc: pinctrl@e6060000 {
                        compatible = "renesas,pfc-r8a7791";
                        reg = <0 0xe6060000 0 0x250>;
+                       bootph-all;
                };
 
                tpu: pwm@e60f0000 {
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
                        #reset-cells = <1>;
+                       bootph-all;
                };
 
                apmu@e6152000 {
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a7791-rst";
                        reg = <0 0xe6160000 0 0x0100>;
+                       bootph-all;
                };
 
                sysc: system-controller@e6180000 {
                prr: chipid@ff000044 {
                        compatible = "renesas,prr";
                        reg = <0 0xff000044 0 4>;
+                       bootph-all;
                };
 
                cmt0: timer@ffca0000 {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <48000000>;
+               bootph-all;
        };
 };
index a3986076d8e3e99373a4b1f4bb5ce59b46a75ab5..23ec0f8a6651083441ee4252f287a0bc0ecc8c8a 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index bfc780f7e396b4087b0530a73ccc6c987e565b7c..93bd81723c8fb4b6178c7aff6c53b1a7222bf420 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index 08cbe6c13cee46567fc7d58a140c57d91ae20400..7513afc1c95853eaeffe899838cb22e76cdce08d 100644 (file)
@@ -82,6 +82,7 @@
                #clock-cells = <0>;
                /* This value must be overridden by the board. */
                clock-frequency = <0>;
+               bootph-all;
        };
 
        lbsc: bus {
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&gic>;
+               bootph-all;
 
                #address-cells = <2>;
                #size-cells = <2>;
                pfc: pinctrl@e6060000 {
                        compatible = "renesas,pfc-r8a7792";
                        reg = <0 0xe6060000 0 0x144>;
+                       bootph-all;
                };
 
                cpg: clock-controller@e6150000 {
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
                        #reset-cells = <1>;
+                       bootph-all;
                };
 
                apmu@e6152000 {
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a7792-rst";
                        reg = <0 0xe6160000 0 0x0100>;
+                       bootph-all;
                };
 
                sysc: system-controller@e6180000 {
                prr: chipid@ff000044 {
                        compatible = "renesas,prr";
                        reg = <0 0xff000044 0 4>;
+                       bootph-all;
                };
 
                cmt0: timer@ffca0000 {
index 2c05d7c2b37765251357768bca81b9626e6c7d8f..45b267ec267943759d1deccac97c29b9b4b51acf 100644 (file)
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index e48e43cc6b03d8c81c4a62506c07b0b721a4377c..fc6d3bcca2961f8e17a2f53a3bda819e0506be70 100644 (file)
                #clock-cells = <0>;
                /* This value must be overridden by the board. */
                clock-frequency = <0>;
+               bootph-all;
        };
 
        pmu {
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&gic>;
+               bootph-all;
 
                #address-cells = <2>;
                #size-cells = <2>;
                pfc: pinctrl@e6060000 {
                        compatible = "renesas,pfc-r8a7793";
                        reg = <0 0xe6060000 0 0x250>;
+                       bootph-all;
                };
 
                /* Special CPG clocks */
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
                        #reset-cells = <1>;
+                       bootph-all;
                };
 
                apmu@e6152000 {
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a7793-rst";
                        reg = <0 0xe6160000 0 0x0100>;
+                       bootph-all;
                };
 
                sysc: system-controller@e6180000 {
                prr: chipid@ff000044 {
                        compatible = "renesas,prr";
                        reg = <0 0xff000044 0 4>;
+                       bootph-all;
                };
 
                cmt0: timer@ffca0000 {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <48000000>;
+               bootph-all;
        };
 };
index f70e26aa83a0a4d3e06c0595d1d37237ec800ce6..3f06a7f67d62ad6b31e465a7fa29029269c44394 100644 (file)
 &scif2 {
        pinctrl-0 = <&scif2_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index 2a0819311a3c4ef3d6cc87e34909d3a92347d9fa..342825605768037d50f140aca0fa24887e497ca4 100644 (file)
 &scif2 {
        pinctrl-0 = <&scif2_pins>;
        pinctrl-names = "default";
+       bootph-all;
 
        status = "okay";
 };
index bc16c896c0f9b94a25a319ea5d20aa24fb3a63e6..92010d09f6c40aa00f941003fc9194fed1877a3d 100644 (file)
@@ -99,6 +99,7 @@
                #clock-cells = <0>;
                /* This value must be overridden by the board. */
                clock-frequency = <0>;
+               bootph-all;
        };
 
        pmu {
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&gic>;
+               bootph-all;
 
                #address-cells = <2>;
                #size-cells = <2>;
                pfc: pinctrl@e6060000 {
                        compatible = "renesas,pfc-r8a7794";
                        reg = <0 0xe6060000 0 0x11c>;
+                       bootph-all;
                };
 
                cpg: clock-controller@e6150000 {
                        #clock-cells = <2>;
                        #power-domain-cells = <0>;
                        #reset-cells = <1>;
+                       bootph-all;
                };
 
                apmu@e6151000 {
                rst: reset-controller@e6160000 {
                        compatible = "renesas,r8a7794-rst";
                        reg = <0 0xe6160000 0 0x0100>;
+                       bootph-all;
                };
 
                sysc: system-controller@e6180000 {
                prr: chipid@ff000044 {
                        compatible = "renesas,prr";
                        reg = <0 0xff000044 0 4>;
+                       bootph-all;
                };
 
                cmt0: timer@ffca0000 {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <48000000>;
+               bootph-all;
        };
 };