From: FUKAUMI Naoki <naoki@radxa.com>
To: heiko@sntech.de
Cc: dmitry.baryshkov@oss.qualcomm.com, robh@kernel.org,
conor+dt@kernel.org, liujianfeng1994@gmail.com,
detlev.casanova@collabora.com,
linux-rockchip@lists.infradead.org,
sebastian.reichel@collabora.com, damon.ding@rock-chips.com,
FUKAUMI Naoki <naoki@radxa.com>,
dmitry.osipenko@collabora.com, jbx6244@gmail.com,
andy.yan@rock-chips.com, krzk+dt@kernel.org,
didi.debian@cknow.org, shreeya.patel@collabora.com,
nicolas.frattaroli@collabora.com, devicetree@vger.kernel.org
Subject: [PATCH v2 2/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5 ITX
Date: Wed, 29 Oct 2025 13:02:00 +0000 [thread overview]
Message-ID: <20251029130200.987580-2-naoki@radxa.com> (raw)
In-Reply-To: <20251029130200.987580-1-naoki@radxa.com>
The Radxa ROCK 5 ITX USB Type-C port supports Dual Role Data and
should also act as a host. However, currently, when acting as a host,
only self-powered devices work.
As a workaround, set the power-role property to "dual" and the
try-power-role property to "sink". (along with related properties)
This allows the port to act as a host, supply power to the port, and
allow bus-powered devices to work.
Note that there is a separate known issue where USB 3.0 SuperSpeed
devices do not work when oriented in reverse. This issue should be
addressed separately. (USB 2.0/1.1 devices work in both orientations)
Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
Changes in v2:
- Refine commit message
---
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
index bc8140883de47..1664f85db4aaa 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
@@ -484,9 +484,14 @@ usb_con: connector {
compatible = "usb-c-connector";
data-role = "dual";
label = "USB-C";
- power-role = "source";
+ op-sink-microwatt = <50000>;
+ /* fusb302 supports PD Rev 2.0 Ver 1.2 */
+ pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>;
+ power-role = "dual";
+ sink-pdos = <PDO_FIXED(5000, 10, PDO_FIXED_USB_COMM)>;
source-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+ try-power-role = "sink";
ports {
#address-cells = <1>;
--
2.43.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: FUKAUMI Naoki <naoki@radxa.com>
To: heiko@sntech.de
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
liujianfeng1994@gmail.com, dmitry.baryshkov@oss.qualcomm.com,
andy.yan@rock-chips.com, sebastian.reichel@collabora.com,
nicolas.frattaroli@collabora.com, dmitry.osipenko@collabora.com,
damon.ding@rock-chips.com, jbx6244@gmail.com,
shreeya.patel@collabora.com, didi.debian@cknow.org,
cristian.ciocaltea@collabora.com, detlev.casanova@collabora.com,
devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
FUKAUMI Naoki <naoki@radxa.com>
Subject: [PATCH v2 2/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5 ITX
Date: Wed, 29 Oct 2025 13:02:00 +0000 [thread overview]
Message-ID: <20251029130200.987580-2-naoki@radxa.com> (raw)
In-Reply-To: <20251029130200.987580-1-naoki@radxa.com>
The Radxa ROCK 5 ITX USB Type-C port supports Dual Role Data and
should also act as a host. However, currently, when acting as a host,
only self-powered devices work.
As a workaround, set the power-role property to "dual" and the
try-power-role property to "sink". (along with related properties)
This allows the port to act as a host, supply power to the port, and
allow bus-powered devices to work.
Note that there is a separate known issue where USB 3.0 SuperSpeed
devices do not work when oriented in reverse. This issue should be
addressed separately. (USB 2.0/1.1 devices work in both orientations)
Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
Changes in v2:
- Refine commit message
---
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
index bc8140883de47..1664f85db4aaa 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
@@ -484,9 +484,14 @@ usb_con: connector {
compatible = "usb-c-connector";
data-role = "dual";
label = "USB-C";
- power-role = "source";
+ op-sink-microwatt = <50000>;
+ /* fusb302 supports PD Rev 2.0 Ver 1.2 */
+ pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>;
+ power-role = "dual";
+ sink-pdos = <PDO_FIXED(5000, 10, PDO_FIXED_USB_COMM)>;
source-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+ try-power-role = "sink";
ports {
#address-cells = <1>;
--
2.43.0
next prev parent reply other threads:[~2025-10-29 13:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 13:01 [PATCH v2 1/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5B+/5T FUKAUMI Naoki
2025-10-29 13:01 ` FUKAUMI Naoki
2025-10-29 13:02 ` FUKAUMI Naoki [this message]
2025-10-29 13:02 ` [PATCH v2 2/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5 ITX FUKAUMI Naoki
2025-11-02 8:28 ` FUKAUMI Naoki
2025-11-02 8:28 ` FUKAUMI Naoki
2025-11-01 11:51 ` [PATCH v2 1/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5B+/5T Heiko Stuebner
2025-11-01 11:51 ` Heiko Stuebner
2025-11-02 8:02 ` FUKAUMI Naoki
2025-11-02 8:02 ` FUKAUMI Naoki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251029130200.987580-2-naoki@radxa.com \
--to=naoki@radxa.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=damon.ding@rock-chips.com \
--cc=detlev.casanova@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=didi.debian@cknow.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dmitry.osipenko@collabora.com \
--cc=heiko@sntech.de \
--cc=jbx6244@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=liujianfeng1994@gmail.com \
--cc=nicolas.frattaroli@collabora.com \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=shreeya.patel@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.