]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: dts: spacemit: reorder phy nodes for K1
authorChukun Pan <amadeus@jmu.edu.cn>
Wed, 18 Mar 2026 10:00:00 +0000 (18:00 +0800)
committerYixun Lan <dlan@kernel.org>
Tue, 24 Mar 2026 06:34:52 +0000 (06:34 +0000)
Reorder the PHY nodes of USB and PCIe to the correct positions based on
the register address. This improves the readability and maintainability
of the DT. No functional change is introduced by this reordering.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://lore.kernel.org/r/20260318100000.3934516-1-amadeus@jmu.edu.cn
Signed-off-by: Yixun Lan <dlan@kernel.org>
arch/riscv/boot/dts/spacemit/k1.dtsi

index d2015201f8e5adff8bda75712036b8dc2b79bcb5..f0bad6855c970a609253d4b0ca2a4fcbf06bb8e3 100644 (file)
                        #reset-cells = <1>;
                };
 
+               usbphy2: phy@c0a30000 {
+                       compatible = "spacemit,k1-usb2-phy";
+                       reg = <0x0 0xc0a30000 0x0 0x200>;
+                       clocks = <&syscon_apmu CLK_USB30>;
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
+               combo_phy: phy@c0b10000 {
+                       compatible = "spacemit,k1-combo-phy";
+                       reg = <0x0 0xc0b10000 0x0 0x1000>;
+                       clocks = <&vctcxo_24m>,
+                                <&syscon_apmu CLK_PCIE0_DBI>,
+                                <&syscon_apmu CLK_PCIE0_MASTER>,
+                                <&syscon_apmu CLK_PCIE0_SLAVE>;
+                       clock-names = "refclk",
+                                     "dbi",
+                                     "mstr",
+                                     "slv";
+                       resets = <&syscon_apmu RESET_PCIE0_GLOBAL>,
+                                <&syscon_apmu RESET_PCIE0_DBI>,
+                                <&syscon_apmu RESET_PCIE0_MASTER>,
+                                <&syscon_apmu RESET_PCIE0_SLAVE>;
+                       reset-names = "phy",
+                                     "dbi",
+                                     "mstr",
+                                     "slv";
+                       #phy-cells = <1>;
+                       spacemit,apmu = <&syscon_apmu>;
+                       status = "disabled";
+               };
+
+               pcie1_phy: phy@c0c10000 {
+                       compatible = "spacemit,k1-pcie-phy";
+                       reg = <0x0 0xc0c10000 0x0 0x1000>;
+                       clocks = <&vctcxo_24m>;
+                       clock-names = "refclk";
+                       resets = <&syscon_apmu RESET_PCIE1_GLOBAL>;
+                       reset-names = "phy";
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
+               pcie2_phy: phy@c0d10000 {
+                       compatible = "spacemit,k1-pcie-phy";
+                       reg = <0x0 0xc0d10000 0x0 0x1000>;
+                       clocks = <&vctcxo_24m>;
+                       clock-names = "refclk";
+                       resets = <&syscon_apmu RESET_PCIE2_GLOBAL>;
+                       reset-names = "phy";
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
                i2c0: i2c@d4010800 {
                        compatible = "spacemit,k1-i2c";
                        reg = <0x0 0xd4010800 0x0 0x38>;
                        status = "disabled";
                };
 
-               usbphy2: phy@c0a30000 {
-                       compatible = "spacemit,k1-usb2-phy";
-                       reg = <0x0 0xc0a30000 0x0 0x200>;
-                       clocks = <&syscon_apmu CLK_USB30>;
-                       #phy-cells = <0>;
-                       status = "disabled";
-               };
-
-               combo_phy: phy@c0b10000 {
-                       compatible = "spacemit,k1-combo-phy";
-                       reg = <0x0 0xc0b10000 0x0 0x1000>;
-                       clocks = <&vctcxo_24m>,
-                                <&syscon_apmu CLK_PCIE0_DBI>,
-                                <&syscon_apmu CLK_PCIE0_MASTER>,
-                                <&syscon_apmu CLK_PCIE0_SLAVE>;
-                       clock-names = "refclk",
-                                     "dbi",
-                                     "mstr",
-                                     "slv";
-                       resets = <&syscon_apmu RESET_PCIE0_GLOBAL>,
-                                <&syscon_apmu RESET_PCIE0_DBI>,
-                                <&syscon_apmu RESET_PCIE0_MASTER>,
-                                <&syscon_apmu RESET_PCIE0_SLAVE>;
-                       reset-names = "phy",
-                                     "dbi",
-                                     "mstr",
-                                     "slv";
-                       #phy-cells = <1>;
-                       spacemit,apmu = <&syscon_apmu>;
-                       status = "disabled";
-               };
-
-               pcie1_phy: phy@c0c10000 {
-                       compatible = "spacemit,k1-pcie-phy";
-                       reg = <0x0 0xc0c10000 0x0 0x1000>;
-                       clocks = <&vctcxo_24m>;
-                       clock-names = "refclk";
-                       resets = <&syscon_apmu RESET_PCIE1_GLOBAL>;
-                       reset-names = "phy";
-                       #phy-cells = <0>;
-                       status = "disabled";
-               };
-
-               pcie2_phy: phy@c0d10000 {
-                       compatible = "spacemit,k1-pcie-phy";
-                       reg = <0x0 0xc0d10000 0x0 0x1000>;
-                       clocks = <&vctcxo_24m>;
-                       clock-names = "refclk";
-                       resets = <&syscon_apmu RESET_PCIE2_GLOBAL>;
-                       reset-names = "phy";
-                       #phy-cells = <0>;
-                       status = "disabled";
-               };
-
                syscon_apbc: system-controller@d4015000 {
                        compatible = "spacemit,k1-syscon-apbc";
                        reg = <0x0 0xd4015000 0x0 0x1000>;