Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13088CCF9EE for ; Tue, 28 Oct 2025 11:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CGm/YeZjdC0tjqeOezbN+n73uyXbSJi2EFVg64qXkAA=; b=Z5nadl+huSyWhW 9DxeLZqH5NqFohqdbJhmYOw3tHOY+z6anUU1XjN1wpuRWx/jNs6c3EiEWJ17pDIta4G1dFi74DgKl ABjUtxEVNCy/UY7vHRGDoLuhAxu+oIV2A2Ieze2xaEP6QHB7ddUFGyPCsvIymNTb1LHzFJaGJC1mR QD/Jbx2X4WcmnmGThas8kTEUPFhZmHrCL5VrBzJTF1dbBMYfdyLvTND8WcIFcs2MRbGhV8IJSTk0i 1PRymF2OqmflLjppEbQK+3AuqX9RXI77DJmh1bsunncXPn4GQQnlY+ztjmU3JBqsyTJGpv6fLcNfC 4j1r45DBTXeQgOGwo+4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vDiEM-0000000FsFC-3AuR; Tue, 28 Oct 2025 11:51:14 +0000 Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vDiEJ-0000000FsEG-3m4i for linux-rockchip@lists.infradead.org; Tue, 28 Oct 2025 11:51:13 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 59SBoll9002909; Tue, 28 Oct 2025 20:50:48 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, liujianfeng1994@gmail.com, dmitry.baryshkov@oss.qualcomm.com, sebastian.reichel@collabora.com, andy.yan@rock-chips.com, nicolas.frattaroli@collabora.com, damon.ding@rock-chips.com, jbx6244@gmail.com, detlev.casanova@collabora.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 1/2] arm64: dts: rockchip: Fix USB Type-C host mode for Radxa ROCK 5B+/5T Date: Tue, 28 Oct 2025 11:50:39 +0000 Message-ID: <20251028115040.101156-1-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251028_045112_157967_E5AC8A9D X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The USB Type-C port on the Radxa ROCK 5B+/5T supports Dual-Role-Data and Dual-Role-Power. However, currently it cannot operate as host/ source. By setting "power-role" to "dual" (along with adding related properties), the power role can operate as source and the data role can operate as host. Unfortunately, a remaining issue is that when a USB 3.0 SuperSpeed device's orientation is reverse, the root port is detected but the device itself is not. This must be addressed separately. (USB 2.0/1.1 devices operate even in reverse orientation.) Furthermore, this file is also used by the Radxa ROCK 5B, but the Type-C port cannot operate as a host regardless of this fix. This must also be addressed separately. Fixes: 67b2c15d8fb3c ("arm64: dts: rockchip: add USB-C support for ROCK 5B/5B+/5T") Signed-off-by: FUKAUMI Naoki --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b-5bp-5t.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b-5bp-5t.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b-5bp-5t.dtsi index 3bbe78810ec6f..b77c5a8229e75 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b-5bp-5t.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b-5bp-5t.dtsi @@ -331,12 +331,14 @@ usb_con: connector { data-role = "dual"; /* fusb302 supports PD Rev 2.0 Ver 1.2 */ pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>; - power-role = "sink"; + power-role = "dual"; try-power-role = "sink"; op-sink-microwatt = <1000000>; sink-pdos = , ; + source-pdos = + ; altmodes { displayport { -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip