Skip to content

Commit bcbc3d4

Browse files
Siddharth-Vadapalli-at-TInmenon
authored andcommitted
arm64: dts: ti: k3-j784s4-j742s2-evm: Add overlay to enable USB0 Type-A
The USB0 instance of the USB controller on both the J742S2 EVM and the J784S4 EVM supports a single USB interface at a time among the following: 1. USB3.1 Gen1 Type C interface 2. Two USB2.0 Type A interfaces via an on-board USB Hub. By default, the USB3.1 Gen1 Type C interface is supported on both of the EVMs. Enable the USB2.0 Type A interface by configuring the USB2.0_MUX_SEL mux. Additionally, set the Dual-Role Mode to Host since a Type-A interface is only associated with the Host Mode of operation. Signed-off-by: Siddharth Vadapalli <[email protected]> Reviewed-by: Udit Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 6a70231 commit bcbc3d4

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

arch/arm64/boot/dts/ti/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb
129129
dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-pcie0-pcie1-ep.dtbo
130130
dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-quad-port-eth-exp1.dtbo
131131
dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-usxgmii-exp1-exp2.dtbo
132+
dtb-$(CONFIG_ARCH_K3) += k3-j784s4-j742s2-evm-usb0-type-a.dtbo
132133

133134
# Boards with J742S2 SoC
134135
dtb-$(CONFIG_ARCH_K3) += k3-j742s2-evm.dtb
@@ -213,10 +214,14 @@ k3-j721e-sk-csi2-dual-imx219-dtbs := k3-j721e-sk.dtb \
213214
k3-j721e-sk-csi2-dual-imx219.dtbo
214215
k3-j721s2-evm-pcie1-ep-dtbs := k3-j721s2-common-proc-board.dtb \
215216
k3-j721s2-evm-pcie1-ep.dtbo
217+
k3-j742s2-evm-usb0-type-a-dtbs := k3-j742s2-evm.dtb \
218+
k3-j784s4-j742s2-evm-usb0-type-a.dtbo
216219
k3-j784s4-evm-pcie0-pcie1-ep-dtbs := k3-j784s4-evm.dtb \
217220
k3-j784s4-evm-pcie0-pcie1-ep.dtbo
218221
k3-j784s4-evm-quad-port-eth-exp1-dtbs := k3-j784s4-evm.dtb \
219222
k3-j784s4-evm-quad-port-eth-exp1.dtbo
223+
k3-j784s4-evm-usb0-type-a-dtbs := k3-j784s4-evm.dtb \
224+
k3-j784s4-j742s2-evm-usb0-type-a.dtbo
220225
k3-j784s4-evm-usxgmii-exp1-exp2-dtbs := k3-j784s4-evm.dtb \
221226
k3-j784s4-evm-usxgmii-exp1-exp2.dtbo
222227
dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
@@ -247,8 +252,10 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
247252
k3-j721e-evm-pcie1-ep.dtb \
248253
k3-j721e-sk-csi2-dual-imx219.dtb \
249254
k3-j721s2-evm-pcie1-ep.dtb \
255+
k3-j742s2-evm-usb0-type-a.dtb \
250256
k3-j784s4-evm-pcie0-pcie1-ep.dtb \
251257
k3-j784s4-evm-quad-port-eth-exp1.dtb \
258+
k3-j784s4-evm-usb0-type-a.dtb \
252259
k3-j784s4-evm-usxgmii-exp1-exp2.dtb
253260

254261
# Enable support for device-tree overlays
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// SPDX-License-Identifier: GPL-2.0-only OR MIT
2+
/**
3+
* DT Overlay for enabling USB0 instance of USB on J784S4 and J742S2 EVMs for
4+
* Host Mode of operation with the Type-A Connector.
5+
*
6+
* J784S4 EVM Product Link: https://www.ti.com/tool/J784S4XEVM
7+
* J742S2 EVM Product Link: https://www.ti.com/tool/J742S2XH01EVM
8+
*
9+
* Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
10+
*/
11+
12+
/dts-v1/;
13+
/plugin/;
14+
15+
#include <dt-bindings/gpio/gpio.h>
16+
17+
&exp2 {
18+
p12-hog {
19+
/* P12 - USB2.0_MUX_SEL */
20+
gpio-hog;
21+
gpios = <12 GPIO_ACTIVE_HIGH>;
22+
output-high;
23+
line-name = "USB2.0_MUX_SEL";
24+
};
25+
};
26+
27+
&usb0 {
28+
dr_mode = "host";
29+
};

0 commit comments

Comments
 (0)