From mboxrd@z Thu Jan 1 00:00:00 1970 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 E2989EB7EB5 for ; Wed, 4 Mar 2026 09:44:19 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=K5AAd6oeYdEXDQfjNuYxH9AAka3awPCAOb0znLj8DEY=; b=aTxtiiLkQ57jNp eQI/esyPEPkkfsfmuYw3HMQxWxd3JtfFQx+mMuQGVv8bDXunliaggaBOgFBrZn5zwecVaw2o6lZIX 6Yja56COd612LO2/rmiMg9+cmHtU/CzbfgVZcKHH/S/ZGW0GY1b6LGRAyNkwF+tUlUJHzwctBwIG4 aIVYSl4RFUKcLT/LKTR6yhf2NuH1/B1yCFOLMvz+FLb0dp0jVL6w1/KJj7zPZ3PlebswBAYj80Lgm hFrPy+GyGYX+BUvDPxZJMBHZUZ/AwhfnHmOxQedmptF0+l1FqrYaXq/pNvlXtcpJxNdMBrP3Wihl4 pqiPgXEgVpZCI1wBglMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vximB-0000000Gv2u-2kFw; Wed, 04 Mar 2026 09:44:19 +0000 Received: from smtpbgau1.qq.com ([54.206.16.166]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxim9-0000000Guaw-0MUl; Wed, 04 Mar 2026 09:44:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airkyi.com; s=altu2504; t=1772617403; bh=U0ahzAOwsK3I30DVXt7Ne0dyRxyxzPxU5WVcboIAjPU=; h=From:To:Subject:Date:Message-Id; b=oezLy6befit3xlAwnlvDl4wyDQKYHbBXlnuaR66yrz9v07SdNT3OoL/hS71EMdHp2 rFyXnqhF0T9lE8hX+JNQZq6qnI+7JDVd3JstRZmbu4SN7PRmwxSINXugUgDfAit6l6 qXMi921LWUL8I94GeqyzxM96hRqg2QjdFi5OQHL0= X-QQ-mid: esmtpsz11t1772617395tde8e239e X-QQ-Originating-IP: JQiDnpZOp9sbnCIVGgg12RmREDzeCVvO6+avcXRIBig= Received: from DESKTOP-8BT1A2O.localdomain ( [58.22.7.114]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 04 Mar 2026 17:43:10 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15628589041787151726 From: Chaoyi Chen To: Heikki Krogerus , Greg Kroah-Hartman , Dmitry Baryshkov , Peter Chen , Luca Ceresoli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Sandy Huang , Andy Yan , Yubing Zhang , Frank Wang , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Amit Sunil Dhamne , Dragan Simic , Johan Jonker , Diederik de Haas , Peter Robinson , Hugh Cole-Baker Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, Chaoyi Chen Subject: [PATCH v15 9/9] arm64: dts: rockchip: rk3399-evb-ind: Add support for DisplayPort Date: Wed, 4 Mar 2026 17:41:52 +0800 Message-Id: <20260304094152.92-10-kernel@airkyi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20260304094152.92-1-kernel@airkyi.com> References: <20260304094152.92-1-kernel@airkyi.com> X-QQ-SENDSIZE: 520 Feedback-ID: esmtpsz:airkyi.com:qybglogicsvrgz:qybglogicsvrgz6b-0 X-QQ-XMAILINFO: NGX5+lQVxpC+QRxO863//DVpeI5nv89T/AOwRWID9FLWuflRYg1Fcn6I gBVCBpprkK95q4YDHsOEOwzcRQnCeUPj93r3b7Slxw1h4Hv5/a13mC6dRMwhjo/xqa1LdNP jL1K199K1WKEzPa5/7APiYtYGNN4koGPnUW0JeBhGQhmLZc7MOLnh8hULBHYBV9nvNnCdTH 8CLRe6xmuoMHAvjzeoDvRp+SUSJAuEUMS+XkSEB6bEF4F7Owtjggi/VIogxHxqicvHSmKgX 1zXw0sbsUZ2EjhS0E3Hex2cSlpoywxzOe+jmaMukenQA7KaK++rNcnMC+uaUy0D+KpYgJQ1 Pq710n+XPiU7FST/u1PXhr+B72UI+ngFS6yYsuSDJcvsVJ9QhHGpOvjr71MbswHSYjsKgpt xWKHz/Ky0t9MeQVB1MXD8oN+T/GTTvJbOt3zfy4ISRurIitSuzJd3aevf2UKFdSoMb4xnhP qJNM7X6X5EWQTerbhrKRsyua05Vlx1Hs27CYriHQ5tbsYexQRsTxW0JD1+8WdfsS2IDHPUh 9XwBw2bHfn6KfYkNxjZHh7nlZkv4LfZwvOHV5PwuspxriyDmRBplAAwkg+4ri4yZHUNNhG3 zK22JFkzdwik/HxyHuNj0S7JdUU+NGLj9NKCIEmZ1jw/MKu3+umMFX6wvq06QApeLLxrsVq 3b7UixiT3hsycoSbHr0k6sw6nr3hmgF9f68n7idnCbtRfEdnoxVKUsfmE/Gi87g1oPWfCeC DasCOLLMsx8aASkIHvAcvEzQ+pLVClYsnW/+R1+jz9O2iX9L4NR5x+ndoQdPI3e47ZrLwV4 cntz6k4OYwFWKsmdOc2cq8NU2/QKs4RZMxwFQ7v7OAa5Bwuy/pWecvjpJXjeJnG/gx1s5fo 3ofiQ9EhD6k6b9V7PI1cCtl08eVe4DxEoloAZRAK22XsVfXX4HHxb3tek7Kqjtv1DU+Ni4t Cs0leGsdSZkx+kPGRV5pnJhFcp+68K4zBMJMR0zBljuBvKbK+26cRoeArX8D7bm0KxLXAGG 52EFzfIB6XYTPlHTodIzks+mDKSBu10Z7dqA0FIFQIVnN+wCWl X-QQ-XMRINFO: Nq+8W0+stu50tPAe92KXseR0ZZmBTk3gLg== X-QQ-RECHKSPAM: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260304_014417_508509_3CDC687E X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Chaoyi Chen The RK3399 EVB IND board has a Type-C interface DisplayPort. It use fusb302 chip as Type-C controller. fusb302 chip ---> USB/DP PHY0 <----> CDN-DP controller Signed-off-by: Chaoyi Chen --- (no changes since v10) Changes in v9: - Add usb role switch for Type-C. - Remove USB2 PHY in Type-C connection. (no changes since v4) Changes in v3: - Fix wrong vdo value. - Fix port node in usb-c-connector. Changes in v2: - Add endpoint to link DP PHY and DP controller. - Fix devicetree coding style. --- .../boot/dts/rockchip/rk3399-evb-ind.dts | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts index 70aee1ab904c..be1e90f7a453 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +#include #include "rk3399.dtsi" / { @@ -19,6 +20,21 @@ chosen { stdout-path = "serial2:1500000n8"; }; + sound: sound { + compatible = "rockchip,rk3399-gru-sound"; + rockchip,cpu = <&i2s0 &spdif>; + }; + + vbus_typec: regulator-vbus-typec { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_typec0_en>; + regulator-name = "vbus_typec"; + vin-supply = <&vcc5v0_sys>; + }; + vcc5v0_sys: regulator-vcc5v0-sys { compatible = "regulator-fixed"; enable-active-high; @@ -31,6 +47,11 @@ vcc5v0_sys: regulator-vcc5v0-sys { }; }; +&cdn_dp { + phys = <&tcphy0_dp>; + status = "okay"; +}; + &cpu_b0 { cpu-supply = <&vdd_cpu_b>; }; @@ -55,6 +76,12 @@ &cpu_l3 { cpu-supply = <&vdd_cpu_l>; }; +&dp_out { + dp_controller_output: endpoint { + remote-endpoint = <&dp_phy_in>; + }; +}; + &emmc_phy { status = "okay"; }; @@ -341,6 +368,71 @@ regulator-state-mem { }; }; +&i2c4 { + i2c-scl-rising-time-ns = <475>; + i2c-scl-falling-time-ns = <26>; + status = "okay"; + + usbc0: typec-portc@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; + interrupt-parent = <&gpio1>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&usbc0_int>; + vbus-supply = <&vbus_typec>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + op-sink-microwatt = <1000000>; + sink-pdos = + ; + source-pdos = + ; + + altmodes { + displayport { + svid = /bits/ 16 <0xff01>; + vdo = <0x00001c46>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usbc0_orien_sw: endpoint { + remote-endpoint = <&tcphy0_orientation_switch>; + }; + }; + + port@1 { + reg = <1>; + + usbc0_role_sw: endpoint { + remote-endpoint = <&dwc3_0_role_switch>; + }; + }; + + port@2 { + reg = <2>; + + dp_altmode_mux: endpoint { + remote-endpoint = <&tcphy0_typec_dp>; + }; + }; + }; + }; + }; +}; + &i2s2 { status = "okay"; }; @@ -354,6 +446,16 @@ &io_domains { }; &pinctrl { + usb-typec { + usbc0_int: usbc0-int { + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + vcc5v0_typec0_en: vcc5v0-typec0-en { + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; @@ -400,10 +502,48 @@ &sdmmc { status = "okay"; }; +&sound { + rockchip,codec = <&cdn_dp>; + status = "okay"; +}; + +&spdif { + status = "okay"; +}; + &tcphy0 { status = "okay"; }; +&tcphy0_dp { + mode-switch; + + port { + #address-cells = <1>; + #size-cells = <0>; + + tcphy0_typec_dp: endpoint@0 { + reg = <0>; + remote-endpoint = <&dp_altmode_mux>; + }; + + dp_phy_in: endpoint@1 { + reg = <1>; + remote-endpoint = <&dp_controller_output>; + }; + }; +}; + +&tcphy0_usb3 { + orientation-switch; + + port { + tcphy0_orientation_switch: endpoint { + remote-endpoint = <&usbc0_orien_sw>; + }; + }; +}; + &tcphy1 { status = "okay"; }; @@ -461,7 +601,14 @@ &usb_host1_ohci { }; &usbdrd_dwc3_0 { + usb-role-switch; status = "okay"; + + port { + dwc3_0_role_switch: endpoint { + remote-endpoint = <&usbc0_role_sw>; + }; + }; }; &usbdrd3_0 { -- 2.51.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy