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 757E5C83F17 for ; Fri, 18 Jul 2025 06:37:46 +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=Pq/3upPmHnwqGG7wquJMxCRo2Lnsc6UcXDWYWFld3cA=; b=Qg78MUdNrC05eD 25+BfvZVARHx7uTwJLlKW0+Oao1vKQKmX9w4i8aQKG1c1QGHKzuEYTe/4FrVTD/skWTA8ifMWQC+d y9HlFqY9FlHzc7UKuqyCHGJGoB+V/h7xa8GNqve0KnjBAoluYKW5OUpZdGDmNW3h3b2s3Ku0a1KuU ejMUXkJtRI6ewxnrEvedorMjnRjS+4ctj24jClVtnwUNx1VlbUoGONkjXsmX2FdpUl7xBfmoZRuCO Vzy+WvZZpaCVezPPY+crH+2g4pmOZcLelbTJbGR0jUEJlNnDVZpmmD4VHWDAMjxK2VGPQmlWaBexA xpOqwovLjBbaQZBQD1yA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ucej4-0000000Bmnb-0zVw; Fri, 18 Jul 2025 06:37:46 +0000 Received: from smtpbgbr2.qq.com ([54.207.22.56]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uceZM-0000000BlkM-3aaB; Fri, 18 Jul 2025 06:27:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airkyi.com; s=altu2504; t=1752819998; bh=SfD49mysx56ByrkZgSzhxvm/5yDPMJ1rme9Y1NDR4zs=; h=From:To:Subject:Date:Message-Id; b=ubgSrIdLsKNnDnBm8/JtA7YulCQ2zdKhrvZATAEtmhnVmc2lZDgElxVQtcwpl4hqw bXLm7wJ5DOCYpE1sCqbaJL95pxnYBBMRHCHIWrSJMK/8tYwTlNxxnnwmm1zUTh9b83 KPSIhZpx15JEnCK4F/Egqy3A3Dz5KIpDJS2by9+c= X-QQ-mid: zesmtpgz7t1752819989t339e2657 X-QQ-Originating-IP: eoutYZ05PQmrVxRHP07fLErhbre+iSdNkklahpAft/g= Received: from DESKTOP-8BT1A2O.localdomain ( [58.22.7.114]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 18 Jul 2025 14:26:27 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5159759228802639268 From: Chaoyi Chen To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Sandy Huang , Andy Yan , Yubing Zhang , Frank Wang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Amit Sunil Dhamne , Greg Kroah-Hartman , Chaoyi Chen , Dragan Simic , Johan Jonker , Diederik de Haas , Dmitry Baryshkov Cc: 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 Subject: [PATCH v2 1/5] dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode-switch Date: Fri, 18 Jul 2025 14:26:15 +0800 Message-Id: <20250718062619.99-2-kernel@airkyi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250718062619.99-1-kernel@airkyi.com> References: <20250718062619.99-1-kernel@airkyi.com> X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpgz:airkyi.com:qybglogicsvrsz:qybglogicsvrsz4a-0 X-QQ-XMAILINFO: NSQm2ODd9qLZih9YKEYtYvSvMiUwSCssyG3FIXzarvXaiRaail6jBAwx Yic9phCkJM19XwtqwA+QeeqJA9zH9G8owvtB+NkLW9TdHb4gh1hUFgf7fnNrANwAA0lX+sT 5JIeeeB0wwb2U774Dt8wqNlO25Z9DThkDD78yXm4l2+kOxHPkO/L9AJDbgcFpH0rd8FeWjR u3mXjWPKgg90w9cDv0jXb9Lh6Pqwr7GOMiwOWCeb5j67bIrXwYBrNp4UjBzet/KWXafevHu DZIS0Bv/NyIdJbGUGGn8Epd8WdaDKA1qj77lY9wWH6nzS1nO4kJeqM8YTxtQYtDLoizgS46 nrHxdGu9mFEWGL3L3lhanoYWnczCtinDCNKaq+1y332nxnt32uDYlEXWsApk5IsMMfNNuLp 60iQ7gf3AY4OXjfb4UsaJgb2X2iLWfijC3NZ1PCQC0sJUQ3bb5oS6zlRuDdNuYITzb0t02B umjaaNTVtOhi45LF48W4qU2IYVN7kghjM9V2bxZdocLdkr/sRnPBLHxbVs+O7tMIe/fyVS5 WjHQC6KlLAm3xUyIKyvHexE5XTEW93hVZ8G2nZgu1pT5+cvNuwtG78UDdCHT6WEatGzxTmY /61AVHg9DobMLhbMvSrpb+l/kwxiu+ITLEY4Msdx5XaFDRshfWS2EBXvp7sdthuef7vuFjK eYt/x6rFYsVQrM+13/JHWxgVntHRI+sZrH+zlfGynLzEpFu1kAJyB0adSbd7RfEe5otegkd 7E/8TvXqliK8kvdPnAsFapfemesMRZA0f49ItQyKc43CAfXWMpp0uQ2TpTXNvI0pdrB6V1R hDRuspbp9jothDtppfn0SG8H4NLU8vmkWp7wKi8WR5cccjX/v7rPwjEdbox9Ptyxb8HXsU7 W4wj4KACAMpkwgsOTbnAATbcN+n+h5TcQ7qdnSAbwq8IjOChU3Ev2Lladoadhz6sXroXHBq 8ooN7WYb/S5VzHDs3ndJXdSenb+HJSvQnqbnQ/UMTNURkfQ== X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= X-QQ-RECHKSPAM: 0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250717_232745_785757_1D1262FE X-CRM114-Status: GOOD ( 10.48 ) 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 has two USB/DP combo PHY. With the help of external Type-C controller, the PHY can switch altmode between USB and DP. Their connection diagram is shown below: external Type-C Chip0 ---> USB/DP PHY0 ---+ | <----> CDN-DP controller external Type-C Chip1 ---> USB/DP PHY1 ---+ This patch add new "mode-switch" property for dp-port to indicate whether the PHY can handle altmode switching. Signed-off-by: Chaoyi Chen --- Changes in v2: - Reuse dp-port/usb3-port in rk3399-typec-phy binding. .../devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml index 91c011f68cd0..d503de7c7569 100644 --- a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml @@ -51,6 +51,10 @@ properties: '#phy-cells': const: 0 + mode-switch: + description: Flag the port as possible handler of altmode switching + type: boolean + port: $ref: /schemas/graph.yaml#/properties/port description: Connection to USB Type-C connector -- 2.49.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy