Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roger Quadros and committed by
Nishanth Menon
ef80ebe4 556e0504

+24 -4
+2 -2
arch/arm64/boot/dts/ti/k3-am62-main.dtsi
··· 623 623 <0x00 0x0f908000 0x00 0x400>; 624 624 clocks = <&k3_clks 161 3>; 625 625 clock-names = "ref"; 626 - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>; 626 + ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; 627 627 #address-cells = <2>; 628 628 #size-cells = <2>; 629 629 power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; ··· 649 649 <0x00 0x0f918000 0x00 0x400>; 650 650 clocks = <&k3_clks 162 3>; 651 651 clock-names = "ref"; 652 - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; 652 + ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; 653 653 #address-cells = <2>; 654 654 #size-cells = <2>; 655 655 power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
+10
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
··· 21 21 compatible = "ti,am654-chipid"; 22 22 reg = <0x14 0x4>; 23 23 }; 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 + }; 24 34 }; 25 35 26 36 target-module@2b300050 {
+2 -2
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi
··· 607 607 <0x00 0x0f908000 0x00 0x400>; 608 608 clocks = <&k3_clks 161 3>; 609 609 clock-names = "ref"; 610 - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>; 610 + ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl 0x0>; 611 611 #address-cells = <2>; 612 612 #size-cells = <2>; 613 613 power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; ··· 631 631 <0x00 0x0f918000 0x00 0x400>; 632 632 clocks = <&k3_clks 162 3>; 633 633 clock-names = "ref"; 634 - ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; 634 + ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; 635 635 #address-cells = <2>; 636 636 #size-cells = <2>; 637 637 power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
+10
arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi
··· 17 17 compatible = "ti,am654-chipid"; 18 18 reg = <0x14 0x4>; 19 19 }; 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 + }; 20 30 }; 21 31 22 32 wkup_uart0: serial@2b300000 {