devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add USB support for AM62D2
@ 2025-09-03  6:25 Paresh Bhagat
  2025-09-03  6:25 ` [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length Paresh Bhagat
  2025-09-03  6:25 ` [PATCH v3 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
  0 siblings, 2 replies; 4+ messages in thread
From: Paresh Bhagat @ 2025-09-03  6:25 UTC (permalink / raw)
  To: nm, vigneshr, praneeth
  Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree,
	linux-kernel, khasim, v-singh1, afd, bb, devarsht, s-vadapalli

This patch series introduces following changes:

* Patch 1 fixes the main pad length in main_pmx/padconfig for AM62D
 and AM62A. This also fixes "i2c 0-003f: deferred probe pending".

* Patch 2 enables USB support for AM62D2-EVM by adding pinmux and device
 tree nodes.

Change Log:

	v2->v3:
		- Update commit description for first patch.

	v1->v2:
		- Added fixes and Cc tag for Patch 1.
		- Dropped two patches for OPP (applied).

v2-https://lore.kernel.org/all/20250823032304.1085775-1-p-bhagat@ti.com/
v1-https://lore.kernel.org/all/20250820083331.3412378-1-p-bhagat@ti.com/

Boot Logs-
https://gist.github.com/paresh-bhagat12/e29d33c3fd92ff17580edf1441ece9f9

Tech Ref Manual-https://www.ti.com/lit/pdf/sprujd4
Schematics Link-https://www.ti.com/lit/zip/sprcal5

Paresh Bhagat (1):
  arm64: dts: ti: k3-am62d2-evm: Enable USB support

Vibhore Vardhan (1):
  arm64: dts: ti: k3-am62a-main: Fix main padcfg length

 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi |  2 +-
 arch/arm64/boot/dts/ti/k3-am62d2-evm.dts  | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length
  2025-09-03  6:25 [PATCH v3 0/2] Add USB support for AM62D2 Paresh Bhagat
@ 2025-09-03  6:25 ` Paresh Bhagat
  2025-09-03  6:32   ` s-vadapalli
  2025-09-03  6:25 ` [PATCH v3 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
  1 sibling, 1 reply; 4+ messages in thread
From: Paresh Bhagat @ 2025-09-03  6:25 UTC (permalink / raw)
  To: nm, vigneshr, praneeth
  Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree,
	linux-kernel, khasim, v-singh1, afd, bb, devarsht, s-vadapalli

From: Vibhore Vardhan <vibhore@ti.com>

The main pad configuration register region starts with the register
MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG0 with address 0x000f4000 and ends
with the MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG150 register with address
0x000f4258, as a result of which, total size of the region is 0x25c
instead of 0x2ac.

Reference Docs
TRM (AM62A) - https://www.ti.com/lit/ug/spruj16b/spruj16b.pdf
TRM (AM62D) - https://www.ti.com/lit/ug/sprujd4/sprujd4.pdf

Fixes: 5fc6b1b62639c ("arm64: dts: ti: Introduce AM62A7 family of SoCs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Vibhore Vardhan <vibhore@ti.com>
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi
index 9cad79d7bbc1..260279702c01 100644
--- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi
@@ -267,7 +267,7 @@ secure_proxy_sa3: mailbox@43600000 {
 
 	main_pmx0: pinctrl@f4000 {
 		compatible = "pinctrl-single";
-		reg = <0x00 0xf4000 0x00 0x2ac>;
+		reg = <0x00 0xf4000 0x00 0x25c>;
 		#pinctrl-cells = <1>;
 		pinctrl-single,register-width = <32>;
 		pinctrl-single,function-mask = <0xffffffff>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support
  2025-09-03  6:25 [PATCH v3 0/2] Add USB support for AM62D2 Paresh Bhagat
  2025-09-03  6:25 ` [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length Paresh Bhagat
@ 2025-09-03  6:25 ` Paresh Bhagat
  1 sibling, 0 replies; 4+ messages in thread
From: Paresh Bhagat @ 2025-09-03  6:25 UTC (permalink / raw)
  To: nm, vigneshr, praneeth
  Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree,
	linux-kernel, khasim, v-singh1, afd, bb, devarsht, s-vadapalli

Add pinmux configuration for USB1 interface and enable the node for
functionality. Also enable data transfer on USB0, on existing power
delivery configuration.

Co-developed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
Reviewed-by: Hrushikesh Salunke <h-salunke@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62d2-evm.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts b/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
index daea18b0bc61..9704c2d97f43 100644
--- a/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62d2-evm.dts
@@ -367,6 +367,12 @@ usr_led_pins_default: usr-led-default-pins {
 			AM62DX_IOPAD(0x0244, PIN_INPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
 		>;
 	};
+
+	main_usb1_pins_default: main-usb1-default-pins {
+		pinctrl-single,pins = <
+			AM62DX_IOPAD(0x0258, PIN_OUTPUT, 0) /* (D19) USB1_DRVVBUS */
+		>;
+	};
 };
 
 &mcu_gpio0 {
@@ -499,6 +505,11 @@ &main_uart0 {
 	status = "okay";
 };
 
+&usbss0 {
+	status = "okay";
+	ti,vbus-divider;
+};
+
 &usb0 {
 	usb-role-switch;
 
@@ -509,6 +520,16 @@ usb0_hs_ep: endpoint {
 	};
 };
 
+&usbss1 {
+	status = "okay";
+};
+
+&usb1 {
+	dr_mode = "host";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_usb1_pins_default>;
+};
+
 &cpsw3g {
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_rgmii1_pins_default>,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length
  2025-09-03  6:25 ` [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length Paresh Bhagat
@ 2025-09-03  6:32   ` s-vadapalli
  0 siblings, 0 replies; 4+ messages in thread
From: s-vadapalli @ 2025-09-03  6:32 UTC (permalink / raw)
  To: Paresh Bhagat
  Cc: nm, vigneshr, praneeth, kristo, robh, krzk+dt, conor+dt,
	linux-arm-kernel, devicetree, linux-kernel, khasim, v-singh1, afd,
	bb, devarsht, s-vadapalli

On Wed, Sep 03, 2025 at 11:55:12AM +0530, Paresh Bhagat wrote:
> From: Vibhore Vardhan <vibhore@ti.com>
> 
> The main pad configuration register region starts with the register
> MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG0 with address 0x000f4000 and ends
> with the MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG150 register with address
> 0x000f4258, as a result of which, total size of the region is 0x25c
> instead of 0x2ac.
> 
> Reference Docs
> TRM (AM62A) - https://www.ti.com/lit/ug/spruj16b/spruj16b.pdf
> TRM (AM62D) - https://www.ti.com/lit/ug/sprujd4/sprujd4.pdf
> 
> Fixes: 5fc6b1b62639c ("arm64: dts: ti: Introduce AM62A7 family of SoCs")
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Vibhore Vardhan <vibhore@ti.com>
> Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>

Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>

Regards,
Siddharth.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-03  6:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03  6:25 [PATCH v3 0/2] Add USB support for AM62D2 Paresh Bhagat
2025-09-03  6:25 ` [PATCH v3 1/2] arm64: dts: ti: k3-am62a-main: Fix main padcfg length Paresh Bhagat
2025-09-03  6:32   ` s-vadapalli
2025-09-03  6:25 ` [PATCH v3 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).