Skip to content

Commit eabb53f

Browse files
Heiko Stuebnermmind
authored andcommitted
arm64: dts: rockchip: add usb-id extcon on rk3588 tiger
The Q7 standard specifies a usb-id pin on the connector to distiuish between host and device mode. Model this via the usb-id extcon binding. While the pin is part of the Q7 standard, so part of the module, the extcon stays disabled in the som dtsi and will only be enabled in a baseboard using it. Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de> Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Link: https://lore.kernel.org/r/20240422163951.2604273-3-heiko@sntech.de Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 3482efe commit eabb53f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
2424
};
2525

26+
extcon_usb3: extcon-usb3 {
27+
compatible = "linux,extcon-usb-gpio";
28+
id-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
29+
pinctrl-names = "default";
30+
pinctrl-0 = <&usb3_id>;
31+
status = "disabled";
32+
};
33+
2634
leds {
2735
compatible = "gpio-leds";
2836
pinctrl-names = "default";
@@ -327,6 +335,13 @@
327335
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
328336
};
329337
};
338+
339+
usb3 {
340+
usb3_id: usb3-id {
341+
rockchip,pins =
342+
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
343+
};
344+
};
330345
};
331346

332347
&saradc {

0 commit comments

Comments
 (0)