[PATCH 1/6] ARM: k3: AM62l3-EVM: add usb0
Sascha Hauer
s.hauer at pengutronix.de
Thu Aug 14 03:46:49 PDT 2025
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/dts/k3-am62l3-evm.dts | 47 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/arch/arm/dts/k3-am62l3-evm.dts b/arch/arm/dts/k3-am62l3-evm.dts
index bb1e3a891c3847cb6cbb458810a8decca779c845..921b58cad2f00b6026143f9955c6811fa31c7579 100644
--- a/arch/arm/dts/k3-am62l3-evm.dts
+++ b/arch/arm/dts/k3-am62l3-evm.dts
@@ -205,6 +205,31 @@ exp2: gpio at 23 {
};
};
+&i2c2 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_pins_default>;
+ clock-frequency = <400000>;
+
+ typec_pd0: tps6598x at 3f {
+ compatible = "ti,tps6598x";
+ reg = <0x3f>;
+
+ connector {
+ compatible = "usb-c-connector";
+ label = "USB-C";
+ self-powered;
+ data-role = "dual";
+ power-role = "sink";
+ port {
+ usb_con_hs: endpoint {
+ remote-endpoint = <&usb0_hs_ep>;
+ };
+ };
+ };
+ };
+};
+
&pmx0 {
gpio0_ioexp_intr_pins_default: gpio0-ioexp-intr-default-pins {
pinctrl-single,pins = <
@@ -228,6 +253,13 @@ AM62LX_IOPAD(0x01d8, PIN_INPUT_PULLUP, 0) /* (A6) I2C1_SDA */
>;
};
+ i2c2_pins_default: i2c2-default-pins {
+ pinctrl-single,pins = <
+ AM62LX_IOPAD(0x01dc, PIN_INPUT_PULLUP, 0) /* (B8) I2C2_SCL */
+ AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */
+ >;
+ };
+
mmc0_pins_default: mmc0-default-pins {
pinctrl-single,pins = <
AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (D2) MMC0_CMD */
@@ -376,3 +408,18 @@ &usbss1 {
ti,vbus-divider;
status = "okay";
};
+
+&usb0 {
+ usb-role-switch;
+
+ port {
+ usb0_hs_ep: endpoint {
+ remote-endpoint = <&usb_con_hs>;
+ };
+ };
+};
+
+&usbss0 {
+ ti,vbus-divider;
+ status = "okay";
+};
--
2.39.5
More information about the barebox
mailing list