Skip to content

Commit eac600d

Browse files
aiamadeusYixun Lan
authored andcommitted
riscv: dts: spacemit: reorder phy nodes for K1
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>
1 parent 28a7f75 commit eac600d

1 file changed

Lines changed: 54 additions & 54 deletions

File tree

  • arch/riscv/boot/dts/spacemit

arch/riscv/boot/dts/spacemit/k1.dtsi

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,60 @@
359359
#reset-cells = <1>;
360360
};
361361

362+
usbphy2: phy@c0a30000 {
363+
compatible = "spacemit,k1-usb2-phy";
364+
reg = <0x0 0xc0a30000 0x0 0x200>;
365+
clocks = <&syscon_apmu CLK_USB30>;
366+
#phy-cells = <0>;
367+
status = "disabled";
368+
};
369+
370+
combo_phy: phy@c0b10000 {
371+
compatible = "spacemit,k1-combo-phy";
372+
reg = <0x0 0xc0b10000 0x0 0x1000>;
373+
clocks = <&vctcxo_24m>,
374+
<&syscon_apmu CLK_PCIE0_DBI>,
375+
<&syscon_apmu CLK_PCIE0_MASTER>,
376+
<&syscon_apmu CLK_PCIE0_SLAVE>;
377+
clock-names = "refclk",
378+
"dbi",
379+
"mstr",
380+
"slv";
381+
resets = <&syscon_apmu RESET_PCIE0_GLOBAL>,
382+
<&syscon_apmu RESET_PCIE0_DBI>,
383+
<&syscon_apmu RESET_PCIE0_MASTER>,
384+
<&syscon_apmu RESET_PCIE0_SLAVE>;
385+
reset-names = "phy",
386+
"dbi",
387+
"mstr",
388+
"slv";
389+
#phy-cells = <1>;
390+
spacemit,apmu = <&syscon_apmu>;
391+
status = "disabled";
392+
};
393+
394+
pcie1_phy: phy@c0c10000 {
395+
compatible = "spacemit,k1-pcie-phy";
396+
reg = <0x0 0xc0c10000 0x0 0x1000>;
397+
clocks = <&vctcxo_24m>;
398+
clock-names = "refclk";
399+
resets = <&syscon_apmu RESET_PCIE1_GLOBAL>;
400+
reset-names = "phy";
401+
#phy-cells = <0>;
402+
status = "disabled";
403+
};
404+
405+
pcie2_phy: phy@c0d10000 {
406+
compatible = "spacemit,k1-pcie-phy";
407+
reg = <0x0 0xc0d10000 0x0 0x1000>;
408+
clocks = <&vctcxo_24m>;
409+
clock-names = "refclk";
410+
resets = <&syscon_apmu RESET_PCIE2_GLOBAL>;
411+
reset-names = "phy";
412+
#phy-cells = <0>;
413+
status = "disabled";
414+
};
415+
362416
i2c0: i2c@d4010800 {
363417
compatible = "spacemit,k1-i2c";
364418
reg = <0x0 0xd4010800 0x0 0x38>;
@@ -429,60 +483,6 @@
429483
status = "disabled";
430484
};
431485

432-
usbphy2: phy@c0a30000 {
433-
compatible = "spacemit,k1-usb2-phy";
434-
reg = <0x0 0xc0a30000 0x0 0x200>;
435-
clocks = <&syscon_apmu CLK_USB30>;
436-
#phy-cells = <0>;
437-
status = "disabled";
438-
};
439-
440-
combo_phy: phy@c0b10000 {
441-
compatible = "spacemit,k1-combo-phy";
442-
reg = <0x0 0xc0b10000 0x0 0x1000>;
443-
clocks = <&vctcxo_24m>,
444-
<&syscon_apmu CLK_PCIE0_DBI>,
445-
<&syscon_apmu CLK_PCIE0_MASTER>,
446-
<&syscon_apmu CLK_PCIE0_SLAVE>;
447-
clock-names = "refclk",
448-
"dbi",
449-
"mstr",
450-
"slv";
451-
resets = <&syscon_apmu RESET_PCIE0_GLOBAL>,
452-
<&syscon_apmu RESET_PCIE0_DBI>,
453-
<&syscon_apmu RESET_PCIE0_MASTER>,
454-
<&syscon_apmu RESET_PCIE0_SLAVE>;
455-
reset-names = "phy",
456-
"dbi",
457-
"mstr",
458-
"slv";
459-
#phy-cells = <1>;
460-
spacemit,apmu = <&syscon_apmu>;
461-
status = "disabled";
462-
};
463-
464-
pcie1_phy: phy@c0c10000 {
465-
compatible = "spacemit,k1-pcie-phy";
466-
reg = <0x0 0xc0c10000 0x0 0x1000>;
467-
clocks = <&vctcxo_24m>;
468-
clock-names = "refclk";
469-
resets = <&syscon_apmu RESET_PCIE1_GLOBAL>;
470-
reset-names = "phy";
471-
#phy-cells = <0>;
472-
status = "disabled";
473-
};
474-
475-
pcie2_phy: phy@c0d10000 {
476-
compatible = "spacemit,k1-pcie-phy";
477-
reg = <0x0 0xc0d10000 0x0 0x1000>;
478-
clocks = <&vctcxo_24m>;
479-
clock-names = "refclk";
480-
resets = <&syscon_apmu RESET_PCIE2_GLOBAL>;
481-
reset-names = "phy";
482-
#phy-cells = <0>;
483-
status = "disabled";
484-
};
485-
486486
syscon_apbc: system-controller@d4015000 {
487487
compatible = "spacemit,k1-syscon-apbc";
488488
reg = <0x0 0xd4015000 0x0 0x1000>;

0 commit comments

Comments
 (0)