ARM: dts: sti: move some nodes out of the soc section in stih407-family.dtsi
authorAlain Volmat <avolmat@me.com>
Fri, 11 Feb 2022 18:16:11 +0000 (19:16 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 15 Feb 2022 17:07:41 +0000 (18:07 +0100)
Move all nodes without reg property out of the soc section of
stih407-family.dtsi and DT including stih407-family.dtsi.
This avoid to set a <0> reg property.

Signed-off-by: Alain Volmat <avolmat@me.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/boot/dts/stih407-family.dtsi
arch/arm/boot/dts/stih410-b2260.dts
arch/arm/boot/dts/stih418-b2199.dts
arch/arm/boot/dts/stihxxx-b2120.dtsi

index 21f3347a91d6517d93be4e2b185177eaba24e68b..1713f787811769d8ea2160410fed0426b4e6c926 100644 (file)
                status = "okay";
        };
 
-       soc {
-               #address-cells = <1>;
-               #size-cells = <1>;
-               interrupt-parent = <&intc>;
+       restart: restart-controller {
+               compatible = "st,stih407-restart";
+               st,syscfg = <&syscfg_sbc_reg>;
+               status = "okay";
+       };
+
+       powerdown: powerdown-controller {
+               compatible = "st,stih407-powerdown";
+               #reset-cells = <1>;
+       };
+
+       softreset: softreset-controller {
+               compatible = "st,stih407-softreset";
+               #reset-cells = <1>;
+       };
+
+       picophyreset: picophyreset-controller {
+               compatible = "st,stih407-picophyreset";
+               #reset-cells = <1>;
+       };
+
+       irq-syscfg {
+               compatible    = "st,stih407-irq-syscfg";
+               st,syscfg     = <&syscfg_core>;
+               st,irq-device = <ST_IRQ_SYSCFG_PMU_0>,
+                               <ST_IRQ_SYSCFG_PMU_1>;
+               st,fiq-device = <ST_IRQ_SYSCFG_DISABLED>,
+                               <ST_IRQ_SYSCFG_DISABLED>;
+       };
+
+       usb2_picophy0: phy1 {
+               compatible = "st,stih407-usb2-phy";
+               #phy-cells = <0>;
+               st,syscfg = <&syscfg_core 0x100 0xf4>;
+               resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
+                        <&picophyreset STIH407_PICOPHY2_RESET>;
+               reset-names = "global", "port";
+       };
+
+       miphy28lp_phy: miphy28lp {
+               compatible = "st,miphy28lp-phy";
+               st,syscfg = <&syscfg_core>;
+               #address-cells  = <1>;
+               #size-cells     = <1>;
                ranges;
-               compatible = "simple-bus";
 
-               restart: restart-controller@0 {
-                       compatible = "st,stih407-restart";
-                       reg = <0 0>;
-                       st,syscfg = <&syscfg_sbc_reg>;
-                       status = "okay";
-               };
+               phy_port0: port@9b22000 {
+                       reg = <0x9b22000 0xff>,
+                             <0x9b09000 0xff>,
+                             <0x9b04000 0xff>;
+                       reg-names = "sata-up",
+                                   "pcie-up",
+                                   "pipew";
+
+                       st,syscfg = <0x114 0x818 0xe0 0xec>;
+                       #phy-cells = <1>;
 
-               powerdown: powerdown-controller@0 {
-                       compatible = "st,stih407-powerdown";
-                       reg = <0 0>;
-                       #reset-cells = <1>;
+                       reset-names = "miphy-sw-rst";
+                       resets = <&softreset STIH407_MIPHY0_SOFTRESET>;
                };
 
-               softreset: softreset-controller@0 {
-                       compatible = "st,stih407-softreset";
-                       reg = <0 0>;
-                       #reset-cells = <1>;
+               phy_port1: port@9b2a000 {
+                       reg = <0x9b2a000 0xff>,
+                             <0x9b19000 0xff>,
+                             <0x9b14000 0xff>;
+                       reg-names = "sata-up",
+                                   "pcie-up",
+                                   "pipew";
+
+                       st,syscfg = <0x118 0x81c 0xe4 0xf0>;
+
+                       #phy-cells = <1>;
+
+                       reset-names = "miphy-sw-rst";
+                       resets = <&softreset STIH407_MIPHY1_SOFTRESET>;
                };
 
-               picophyreset: picophyreset-controller@0 {
-                       compatible = "st,stih407-picophyreset";
-                       reg = <0 0>;
-                       #reset-cells = <1>;
+               phy_port2: port@8f95000 {
+                       reg = <0x8f95000 0xff>,
+                             <0x8f90000 0xff>;
+                       reg-names = "pipew",
+                                   "usb3-up";
+
+                       st,syscfg = <0x11c 0x820>;
+
+                       #phy-cells = <1>;
+
+                       reset-names = "miphy-sw-rst";
+                       resets = <&softreset STIH407_MIPHY2_SOFTRESET>;
                };
+       };
+
+       st231_gp0: st231-gp0 {
+               compatible      = "st,st231-rproc";
+               memory-region   = <&gp0_reserved>;
+               resets          = <&softreset STIH407_ST231_GP0_SOFTRESET>;
+               reset-names     = "sw_reset";
+               clocks          = <&clk_s_c0_flexgen CLK_ST231_GP_0>;
+               clock-frequency = <600000000>;
+               st,syscfg       = <&syscfg_core 0x22c>;
+               #mbox-cells = <1>;
+               mbox-names = "vq0_rx", "vq0_tx", "vq1_rx", "vq1_tx";
+               mboxes = <&mailbox0 0 2>, <&mailbox2 0 1>, <&mailbox0 0 3>, <&mailbox2 0 0>;
+       };
+
+       st231_delta: st231-delta {
+               compatible      = "st,st231-rproc";
+               memory-region   = <&delta_reserved>;
+               resets          = <&softreset STIH407_ST231_DMU_SOFTRESET>;
+               reset-names     = "sw_reset";
+               clocks          = <&clk_s_c0_flexgen CLK_ST231_DMU>;
+               clock-frequency = <600000000>;
+               st,syscfg       = <&syscfg_core 0x224>;
+               #mbox-cells = <1>;
+               mbox-names = "vq0_rx", "vq0_tx", "vq1_rx", "vq1_tx";
+               mboxes = <&mailbox0 0 0>, <&mailbox3 0 1>, <&mailbox0 0 1>, <&mailbox3 0 0>;
+       };
+
+       delta0 {
+               compatible = "st,st-delta";
+               clock-names = "delta",
+                             "delta-st231",
+                             "delta-flash-promip";
+               clocks = <&clk_s_c0_flexgen CLK_VID_DMU>,
+                        <&clk_s_c0_flexgen CLK_ST231_DMU>,
+                        <&clk_s_c0_flexgen CLK_FLASH_PROMIP>;
+       };
+
+       soc {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               interrupt-parent = <&intc>;
+               ranges;
+               compatible = "simple-bus";
 
                syscfg_sbc: sbc-syscfg@9620000 {
                        compatible = "st,stih407-sbc-syscfg", "syscon";
                        reg = <0x94b5100 0x1000>;
                };
 
-               irq-syscfg@0 {
-                       compatible    = "st,stih407-irq-syscfg";
-                       reg = <0 0>;
-                       st,syscfg     = <&syscfg_core>;
-                       st,irq-device = <ST_IRQ_SYSCFG_PMU_0>,
-                                       <ST_IRQ_SYSCFG_PMU_1>;
-                       st,fiq-device = <ST_IRQ_SYSCFG_DISABLED>,
-                                       <ST_IRQ_SYSCFG_DISABLED>;
-               };
-
                /* Display */
                vtg_main: sti-vtg-main@8d02800 {
                        compatible = "st,vtg";
                        status = "disabled";
                };
 
-               usb2_picophy0: phy1@0 {
-                       compatible = "st,stih407-usb2-phy";
-                       reg = <0 0>;
-                       #phy-cells = <0>;
-                       st,syscfg = <&syscfg_core 0x100 0xf4>;
-                       resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
-                                <&picophyreset STIH407_PICOPHY2_RESET>;
-                       reset-names = "global", "port";
-               };
-
-               miphy28lp_phy: miphy28lp@0 {
-                       compatible = "st,miphy28lp-phy";
-                       st,syscfg = <&syscfg_core>;
-                       #address-cells  = <1>;
-                       #size-cells     = <1>;
-                       ranges;
-                       reg = <0 0>;
-
-                       phy_port0: port@9b22000 {
-                               reg = <0x9b22000 0xff>,
-                                     <0x9b09000 0xff>,
-                                     <0x9b04000 0xff>;
-                               reg-names = "sata-up",
-                                           "pcie-up",
-                                           "pipew";
-
-                               st,syscfg = <0x114 0x818 0xe0 0xec>;
-                               #phy-cells = <1>;
-
-                               reset-names = "miphy-sw-rst";
-                               resets = <&softreset STIH407_MIPHY0_SOFTRESET>;
-                       };
-
-                       phy_port1: port@9b2a000 {
-                               reg = <0x9b2a000 0xff>,
-                                     <0x9b19000 0xff>,
-                                     <0x9b14000 0xff>;
-                               reg-names = "sata-up",
-                                           "pcie-up",
-                                           "pipew";
-
-                               st,syscfg = <0x118 0x81c 0xe4 0xf0>;
-
-                               #phy-cells = <1>;
-
-                               reset-names = "miphy-sw-rst";
-                               resets = <&softreset STIH407_MIPHY1_SOFTRESET>;
-                       };
-
-                       phy_port2: port@8f95000 {
-                               reg = <0x8f95000 0xff>,
-                                     <0x8f90000 0xff>;
-                               reg-names = "pipew",
-                                           "usb3-up";
-
-                               st,syscfg = <0x11c 0x820>;
-
-                               #phy-cells = <1>;
-
-                               reset-names = "miphy-sw-rst";
-                               resets = <&softreset STIH407_MIPHY2_SOFTRESET>;
-                       };
-               };
-
                spi@9840000 {
                        compatible = "st,comms-ssc4-spi";
                        reg = <0x9840000 0x110>;
                        status          = "okay";
                };
 
-               st231_gp0: st231-gp0@0 {
-                       compatible      = "st,st231-rproc";
-                       reg             = <0 0>;
-                       memory-region   = <&gp0_reserved>;
-                       resets          = <&softreset STIH407_ST231_GP0_SOFTRESET>;
-                       reset-names     = "sw_reset";
-                       clocks          = <&clk_s_c0_flexgen CLK_ST231_GP_0>;
-                       clock-frequency = <600000000>;
-                       st,syscfg       = <&syscfg_core 0x22c>;
-                       #mbox-cells = <1>;
-                       mbox-names = "vq0_rx", "vq0_tx", "vq1_rx", "vq1_tx";
-                       mboxes = <&mailbox0 0 2>, <&mailbox2 0 1>, <&mailbox0 0 3>, <&mailbox2 0 0>;
-               };
-
-               st231_delta: st231-delta@0 {
-                       compatible      = "st,st231-rproc";
-                       reg             = <0 0>;
-                       memory-region   = <&delta_reserved>;
-                       resets          = <&softreset STIH407_ST231_DMU_SOFTRESET>;
-                       reset-names     = "sw_reset";
-                       clocks          = <&clk_s_c0_flexgen CLK_ST231_DMU>;
-                       clock-frequency = <600000000>;
-                       st,syscfg       = <&syscfg_core 0x224>;
-                       #mbox-cells = <1>;
-                       mbox-names = "vq0_rx", "vq0_tx", "vq1_rx", "vq1_tx";
-                       mboxes = <&mailbox0 0 0>, <&mailbox3 0 1>, <&mailbox0 0 1>, <&mailbox3 0 0>;
-               };
-
                /* fdma audio */
                fdma0: dma-controller@8e20000 {
                        compatible = "st,stih407-fdma-mpe31-11", "st,slim-rproc";
 
                        status = "disabled";
                };
-
-               delta0@0 {
-                       compatible = "st,st-delta";
-                       reg = <0 0>;
-                       clock-names = "delta",
-                                     "delta-st231",
-                                     "delta-flash-promip";
-                       clocks = <&clk_s_c0_flexgen CLK_VID_DMU>,
-                                <&clk_s_c0_flexgen CLK_ST231_DMU>,
-                                <&clk_s_c0_flexgen CLK_FLASH_PROMIP>;
-               };
        };
 };
index 9d579c16c295db6b8b0bd5d2864037baf1ecaf0e..c2d3b6de55d0b3ecbf3b7fdbc55ee744f16f0dab 100644 (file)
                };
        };
 
+       miphy28lp_phy: miphy28lp {
+
+               phy_port1: port@9b2a000 {
+                       st,osc-force-ext;
+               };
+       };
+
        soc {
                /* Low speed expansion connector */
                uart0: serial@9830000 {
                        status = "okay";
                };
 
-               miphy28lp_phy: miphy28lp@0 {
-
-                       phy_port1: port@9b2a000 {
-                               st,osc-force-ext;
-                       };
-               };
-
                sata1: sata@9b28000 {
                        status = "okay";
                };
index b66e2b29edea1d1d78e2725ba6125eaa65dbe520..d21bcc7c12716b7bce93b4682ba2ca9682852af0 100644 (file)
                };
        };
 
+       miphy28lp_phy: miphy28lp {
+
+               phy_port0: port@9b22000 {
+                       st,osc-rdy;
+               };
+
+               phy_port1: port@9b2a000 {
+                       st,osc-force-ext;
+               };
+       };
+
        soc {
                sbc_serial0: serial@9530000 {
                        status = "okay";
                        non-removable;
                };
 
-               miphy28lp_phy: miphy28lp@0 {
-
-                       phy_port0: port@9b22000 {
-                               st,osc-rdy;
-                       };
-
-                       phy_port1: port@9b2a000 {
-                               st,osc-force-ext;
-                       };
-               };
-
                st_dwc3: dwc3@8f94000 {
                        status = "okay";
                };
index d051f080e52ec36a55f62e0d6f642a08ec21b6d9..4c72dedcd1be76cb87fc123da6175625d0573d36 100644 (file)
                };
        };
 
+       miphy28lp_phy: miphy28lp {
+
+               phy_port0: port@9b22000 {
+                       st,osc-rdy;
+               };
+
+               phy_port1: port@9b2a000 {
+                       st,osc-force-ext;
+               };
+       };
+
        soc {
                sbc_serial0: serial@9530000 {
                        status = "okay";
                        st,i2c-min-sda-pulse-width-us = <5>;
                };
 
-               miphy28lp_phy: miphy28lp@0 {
-
-                       phy_port0: port@9b22000 {
-                               st,osc-rdy;
-                       };
-
-                       phy_port1: port@9b2a000 {
-                               st,osc-force-ext;
-                       };
-               };
-
                st_dwc3: dwc3@8f94000 {
                        status = "okay";
                };