Skip to content

Commit ef80ebe

Browse files
rogerqnmenon
authored andcommitted
arm64: dts: ti: k3-am62/a: use sub-node for USB_PHY_CTRL registers
Exposing the entire CTRL_MMR space to syscon is not a good idea. Add sub-nodes for USB0_PHY_CTRL and USB1_PHY_CTRL and use them in the USB0/USB1 nodes. Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20240412-for-v6-10-am62-usb-typec-dt-v7-1-93b827adf97e@kernel.org Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 556e050 commit ef80ebe

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

arch/arm64/boot/dts/ti/k3-am62-main.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@
623623
<0x00 0x0f908000 0x00 0x400>;
624624
clocks = <&k3_clks 161 3>;
625625
clock-names = "ref";
626-
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>;
626+
ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>;
627627
#address-cells = <2>;
628628
#size-cells = <2>;
629629
power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>;
@@ -649,7 +649,7 @@
649649
<0x00 0x0f918000 0x00 0x400>;
650650
clocks = <&k3_clks 162 3>;
651651
clock-names = "ref";
652-
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
652+
ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>;
653653
#address-cells = <2>;
654654
#size-cells = <2>;
655655
power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;

arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
compatible = "ti,am654-chipid";
2222
reg = <0x14 0x4>;
2323
};
24+
25+
usb0_phy_ctrl: syscon@4008 {
26+
compatible = "ti,am62-usb-phy-ctrl", "syscon";
27+
reg = <0x4008 0x4>;
28+
};
29+
30+
usb1_phy_ctrl: syscon@4018 {
31+
compatible = "ti,am62-usb-phy-ctrl", "syscon";
32+
reg = <0x4018 0x4>;
33+
};
2434
};
2535

2636
target-module@2b300050 {

arch/arm64/boot/dts/ti/k3-am62a-main.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
<0x00 0x0f908000 0x00 0x400>;
608608
clocks = <&k3_clks 161 3>;
609609
clock-names = "ref";
610-
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>;
610+
ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>;
611611
#address-cells = <2>;
612612
#size-cells = <2>;
613613
power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>;
@@ -631,7 +631,7 @@
631631
<0x00 0x0f918000 0x00 0x400>;
632632
clocks = <&k3_clks 162 3>;
633633
clock-names = "ref";
634-
ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>;
634+
ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>;
635635
#address-cells = <2>;
636636
#size-cells = <2>;
637637
power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;

arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
compatible = "ti,am654-chipid";
1818
reg = <0x14 0x4>;
1919
};
20+
21+
usb0_phy_ctrl: syscon@4008 {
22+
compatible = "ti,am62-usb-phy-ctrl", "syscon";
23+
reg = <0x4008 0x4>;
24+
};
25+
26+
usb1_phy_ctrl: syscon@4018 {
27+
compatible = "ti,am62-usb-phy-ctrl", "syscon";
28+
reg = <0x4018 0x4>;
29+
};
2030
};
2131

2232
wkup_uart0: serial@2b300000 {

0 commit comments

Comments
 (0)