* [PATCH v2 0/2] Add USB support for AM62D2
@ 2025-08-23 3:23 Paresh Bhagat
2025-08-23 3:23 ` [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties Paresh Bhagat
2025-08-23 3:23 ` [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
0 siblings, 2 replies; 5+ messages in thread
From: Paresh Bhagat @ 2025-08-23 3:23 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, s-vadapalli
This patch series introduces following changes:
* Patch 1 fixes the register 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:
v1->v2:
- Added fixes and Cc tag for Patch 1.
- Dropped two patches for OPP (applied).
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 pinctrl properties
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] 5+ messages in thread
* [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties
2025-08-23 3:23 [PATCH v2 0/2] Add USB support for AM62D2 Paresh Bhagat
@ 2025-08-23 3:23 ` Paresh Bhagat
2025-09-02 8:52 ` s-vadapalli
2025-08-23 3:23 ` [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
1 sibling, 1 reply; 5+ messages in thread
From: Paresh Bhagat @ 2025-08-23 3:23 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, s-vadapalli
From: Vibhore Vardhan <vibhore@ti.com>
Correct reg length to match end address - start address for main
PADCFG registers. The last physical address for the main pad
configuration registers (MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG150) is
0x000f4258. Adding 4 bytes gives 0x000f425c, so the size in device
tree should be defined as 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] 5+ messages in thread
* [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support
2025-08-23 3:23 [PATCH v2 0/2] Add USB support for AM62D2 Paresh Bhagat
2025-08-23 3:23 ` [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties Paresh Bhagat
@ 2025-08-23 3:23 ` Paresh Bhagat
2025-09-03 5:18 ` Hrushikesh Salunke
1 sibling, 1 reply; 5+ messages in thread
From: Paresh Bhagat @ 2025-08-23 3:23 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, 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>
---
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] 5+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties
2025-08-23 3:23 ` [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties Paresh Bhagat
@ 2025-09-02 8:52 ` s-vadapalli
0 siblings, 0 replies; 5+ messages in thread
From: s-vadapalli @ 2025-09-02 8:52 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, s-vadapalli
On Sat, Aug 23, 2025 at 08:53:03AM +0530, Paresh Bhagat wrote:
> From: Vibhore Vardhan <vibhore@ti.com>
>
> Correct reg length to match end address - start address for main
nitpick: s/reg/register
I assume that you are implying "end address - start address" as
subtracting the "start address" from the "end address" to get the
length. This description might not be required given that you are
stating the 'last physical address for the main pad configuration
registers' below. You might rephrase it to indicate that the main pad
configuration register region starts with the
MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG0 register having the address of
0x000f4000 and the region ends with the
MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG150 register having the address of
0x000f4258, as a result of which, the length of the region is 0x25c
instead of 0x2ac.
> PADCFG registers. The last physical address for the main pad
> configuration registers (MAIN_PADCFG_CTRL_MMR_CFG0_PADCONFIG150) is
> 0x000f4258. Adding 4 bytes gives 0x000f425c, so the size in device
> tree should be defined as 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>
[...]
Regards,
Siddharth.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support
2025-08-23 3:23 ` [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
@ 2025-09-03 5:18 ` Hrushikesh Salunke
0 siblings, 0 replies; 5+ messages in thread
From: Hrushikesh Salunke @ 2025-09-03 5:18 UTC (permalink / raw)
To: Paresh Bhagat, nm, vigneshr, praneeth
Cc: kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree,
linux-kernel, khasim, v-singh1, afd, bb, s-vadapalli
On 23/08/25 08:53, Paresh Bhagat wrote:
> 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>
Regards,
Hrushikesh.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-09-03 5:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-23 3:23 [PATCH v2 0/2] Add USB support for AM62D2 Paresh Bhagat
2025-08-23 3:23 ` [PATCH v2 1/2] arm64: dts: ti: k3-am62a-main: Fix pinctrl properties Paresh Bhagat
2025-09-02 8:52 ` s-vadapalli
2025-08-23 3:23 ` [PATCH v2 2/2] arm64: dts: ti: k3-am62d2-evm: Enable USB support Paresh Bhagat
2025-09-03 5:18 ` Hrushikesh Salunke
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).