From nobody Fri Dec 19 15:48:40 2025 Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAB8C1DFD84; Mon, 19 May 2025 02:49:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.207.22.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747622984; cv=none; b=urxvAsWFHGTjveG5gYStVPOtZTqegQt9URRBFwermrxZoYWlsYWjVxbJ1AWp+uMYfJO+Sj5/bjO75cvS8Ji7UTSt86Ursos71KnWLQM09emowsdqipLXVGHASpVVAd5AJhNprx3J59M/yAufKnUFZtCkX695Kg5EFWimxou0H1k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747622984; c=relaxed/simple; bh=eg0evPTK/0FFGG5C0b4vTaJ/DknuYFTxJyWdgeWB+JM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=kXr5Q6f+KoLRjRfjfZx3GMEiEJLRhPVYqQObi66IJXWMYU2/9qhwC4m7ogXUo47z9NuCmsxtltzwBp/KfOHXJwZthkkiUDNU4ThEdoAlUvhW98+Z6u4rV8tF5W48ySkSaAhBvihrLGpkkxFZvtq7zwmOyz1W9Psj21OjMo6OsWs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=airkyi.com; spf=pass smtp.mailfrom=airkyi.com; dkim=pass (1024-bit key) header.d=airkyi.com header.i=@airkyi.com header.b=JRDn1dtT; arc=none smtp.client-ip=54.207.22.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=airkyi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=airkyi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=airkyi.com header.i=@airkyi.com header.b="JRDn1dtT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airkyi.com; s=altu2504; t=1747622934; bh=0WeBfK84XKo6BwGaQIvaiahY5jByMMmGweFecshqHhA=; h=From:To:Subject:Date:Message-Id; b=JRDn1dtTiYhLuG7xQFbderMkv/IA9BZR7XV8vVq385ZYvI+w5mJQkZQPu6oqTFVYX WLAHCpS2xQ/2rNzMVboxH3MQ5XD5WKwPRoEpRNVePvid8ALIRW6Koi1qCX8GKiEtoM +KFnAT71yoWF5E1f7BYPENhlCfbB+EMJUFRFLOhI= X-QQ-mid: zesmtpgz6t1747622932t38c3880a X-QQ-Originating-IP: 1qM8DlRd+zQizFZjrQ/zm7WNDykiRYLU3hqETrh1PeY= Received: from DESKTOP-8BT1A2O.localdomain ( [58.22.7.114]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 May 2025 10:48:50 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16466651914765562108 From: Chaoyi Chen To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Frank Wang , Zhang Yubing Cc: Dragan Simic , Geert Uytterhoeven , Diederik de Haas , Johan Jonker , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Chaoyi Chen Subject: [PATCH 1/2] arm64: dts: rockchip: Remove unused usb phy prop for rk3399-eaidk-610 Date: Mon, 19 May 2025 10:48:19 +0800 Message-Id: <20250519024820.194-2-kernel@airkyi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250519024820.194-1-kernel@airkyi.com> References: <20250519024820.194-1-kernel@airkyi.com> X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpgz:airkyi.com:qybglogicsvrsz:qybglogicsvrsz4a-0 X-QQ-XMAILINFO: Ms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PAM: 0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Chaoyi Chen The rk3399 tcphy driver does not use the "orientation-switch" property, so it has no real effect. Just remove it. Signed-off-by: Chaoyi Chen --- arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts b/arch/arm64= /boot/dts/rockchip/rk3399-eaidk-610.dts index b90bf26b58be..7b5b83bd90ac 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts @@ -803,7 +803,6 @@ &tcphy0 { }; =20 &tcphy0_usb3 { - orientation-switch; port { tcphy0_typec_ss: endpoint { remote-endpoint =3D <&usbc_ss>; --=20 2.49.0 From nobody Fri Dec 19 15:48:40 2025 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A44FD70823; Mon, 19 May 2025 02:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747622977; cv=none; b=BHVYKtEqdKctRGLkQkOcDloBiHhL73uREQm3e9TAXZkK6Pe3aetPX6bh1RAWfwCeSHNt+bQgqLGJnWkWCpKguokITyDFaKaeMIrHANs2hS1LEVzwBPjbMyFhiQT9KjwN7zuHjnKO2MY3ZepBf2LSOuv6TZ0FeI4B7fxb1wYYkGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747622977; c=relaxed/simple; bh=OXl+s9DLpzDYAUcX/WcfZOaoc99ioVqUyXzyfvYiZYY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=VL4I9d8xEIPPfuAPLOaPQM841FsbJ2yHQjOF2M00YvgFd+nuRxqwhLTiB4cSxCxLoEUbSIHk9QjxSLeVoerz5lb91gBK5I8zrrN2N/vCk/o2rW98aiRPjbroGdz0rDOpAB3AnwdPKqCanN5BT29YHtwJR9+4hLvSJA5thX4NHCU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=airkyi.com; spf=pass smtp.mailfrom=airkyi.com; dkim=pass (1024-bit key) header.d=airkyi.com header.i=@airkyi.com header.b=QuUD/6Zv; arc=none smtp.client-ip=54.92.39.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=airkyi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=airkyi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=airkyi.com header.i=@airkyi.com header.b="QuUD/6Zv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airkyi.com; s=altu2504; t=1747622938; bh=51zla7Xc4LCMggt7iqJMIT3uS5MO7KWP4SC6W8frZC0=; h=From:To:Subject:Date:Message-Id; b=QuUD/6ZvI7y0HqB9qnq3Xny5oLf7xqen1ZtdNJ20ItKZRp/NSVjfinvoaOcsZYbJv UCLWzb/FI2MiIKnnPPIe+A0Um4LPodi7uJrZathUsNbWCzd1r7vE+2OYneHfevBob4 UtLRcMTM0nk9mSdQMsHugZyT3PZsbGzDoJQFZsS8= X-QQ-mid: zesmtpgz6t1747622936t0ff7d94a X-QQ-Originating-IP: 8YgXUJaUaZeSF9bDVSE+OaB+S3xyHum1Mevw1nMQceM= Received: from DESKTOP-8BT1A2O.localdomain ( [58.22.7.114]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 19 May 2025 10:48:54 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10137376230165119651 From: Chaoyi Chen To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Frank Wang , Zhang Yubing Cc: Dragan Simic , Geert Uytterhoeven , Diederik de Haas , Johan Jonker , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Chaoyi Chen Subject: [PATCH 2/2] dt-bindings: phy: Convert phy-rockchip-typec.txt to yaml Date: Mon, 19 May 2025 10:48:20 +0800 Message-Id: <20250519024820.194-3-kernel@airkyi.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250519024820.194-1-kernel@airkyi.com> References: <20250519024820.194-1-kernel@airkyi.com> X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpgz:airkyi.com:qybglogicsvrsz:qybglogicsvrsz4a-0 X-QQ-XMAILINFO: ND42uzdxTIzrwP8w4Ji/p0VKEwTwOZ2W96XNgXu/pdbsQGSs/XzT66Ww MFTM4UcnfdpY0436HN7+4JUgKood9g00wNtDJSRCjuo7RkOSAOCe1APzvTiY4Q225aKutcW YuONBx8BmhpoJGd0gqFknzvexwicWtRTVClVkkNdelq1/EJoE145aVbqpjtOiFZkMCpIShK h6DTuwULtU3EkHx8m3MFphhiqSvBUKt7V97HVmBJBRQfOpDwKqpd4WCQWM5vJG6GzUMm3aL r7e52/yWPD9wqP3AXVp5bTaELVyS2d+aEDpd8zWfyCYxJ83YUv2KTxY5IOZPm5LoaTrr6iF 1P4xL0drQrebK/Eb6nkq/S1IWMWif2CBGmNTAuMF3DSAN7Rn17bunToMErHawBGHYScdkjI Fu1SGHBTJTkgwqOOD3Va5/yi6XMmsVem+tQ2aaXCI3D87DOL7wCfKTLMpglUTGB1lIt8cPy Hgvb422Yc00O00Pzax2yAbxvgR4ituLyYegPd+rAj8tyiqva7YoApYQPxCM3znlGYdFW+D9 M9tkg71M6tB7k/qmsAQ5YSPZozAxVlM+WgURv/36i+pLvY0wmI0tBsKrv6rnOfev1f+RRwo i9pmdGvwdbvsC19ykFgEW+BAgobmSYCFHCZCanDAAuOWJ8vT98U9WnKZsDS+lKu21b4SUP0 vz2szMddLsZU1/KZzdCRraCIREjxttOh1av3r1NQNclyVbHaxFc4kk3KzEeGIG3QJGOsCAS NduREMMNSlL9cWVPRGAd+ssC6LnFtgBtoceVwbUgB55SyTRTxYN9mmLcswFsVg2+zyiH8rr sfYVNpyhKVk+4dOoJ034PV/ZW9h1d5k5FzjrhLRp2KaF/Z5jD6horVLQeafEil3E9LmKKLC S7MdABHMlpftgoIPhNvz5cJ8bSlIrAQSwABjEnCX48N3ylD1aZiAvt7PI2ew9yMLk9ItUdd Yg3K+ZTTtw93lFV4UnK3hMVLQOSq8fHRq8vVqTubaQt1eHp2rgNHXAlMc/gIZ0o71bFqTOI pyT9bIGA== X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= X-QQ-RECHKSPAM: 0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Chaoyi Chen Convert phy-rockchip-typec.txt to yaml. Signed-off-by: Chaoyi Chen --- .../bindings/phy/phy-rockchip-typec.txt | 84 ------------- .../phy/rockchip,rk3399-typec-phy.yaml | 111 ++++++++++++++++++ 2 files changed, 111 insertions(+), 84 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-type= c.txt create mode 100644 Documentation/devicetree/bindings/phy/rockchip,rk3399-t= ypec-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt b= /Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt deleted file mode 100644 index 960da7fcaa9e..000000000000 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt +++ /dev/null @@ -1,84 +0,0 @@ -* ROCKCHIP type-c PHY ---------------------- - -Required properties: - - compatible : must be "rockchip,rk3399-typec-phy" - - reg: Address and length of the usb phy control register set - - rockchip,grf : phandle to the syscon managing the "general - register files" - - clocks : phandle + clock specifier for the phy clocks - - clock-names : string, clock name, must be "tcpdcore", "tcpdphy-ref"; - - assigned-clocks: main clock, should be <&cru SCLK_UPHY0_TCPDCORE> or - <&cru SCLK_UPHY1_TCPDCORE>; - - assigned-clock-rates : the phy core clk frequency, shall be: 50000000 - - resets : a list of phandle + reset specifier pairs - - reset-names : string reset name, must be: - "uphy", "uphy-pipe", "uphy-tcphy" - -Optional properties: - - extcon : extcon specifier for the Power Delivery - -Required nodes : a sub-node is required for each port the phy provides. - The sub-node name is used to identify dp or usb3 port, - and shall be the following entries: - * "dp-port" : the name of DP port. - * "usb3-port" : the name of USB3 port. - -Required properties (port (child) node): -- #phy-cells : must be 0, See ./phy-bindings.txt for details. - -Deprecated properties, do not use in new device tree sources, these -properties are determined by the compatible value: - - rockchip,typec-conn-dir - - rockchip,usb3tousb2-en - - rockchip,external-psm - - rockchip,pipe-status - -Example: - tcphy0: phy@ff7c0000 { - compatible =3D "rockchip,rk3399-typec-phy"; - reg =3D <0x0 0xff7c0000 0x0 0x40000>; - rockchip,grf =3D <&grf>; - extcon =3D <&fusb0>; - clocks =3D <&cru SCLK_UPHY0_TCPDCORE>, - <&cru SCLK_UPHY0_TCPDPHY_REF>; - clock-names =3D "tcpdcore", "tcpdphy-ref"; - assigned-clocks =3D <&cru SCLK_UPHY0_TCPDCORE>; - assigned-clock-rates =3D <50000000>; - resets =3D <&cru SRST_UPHY0>, - <&cru SRST_UPHY0_PIPE_L00>, - <&cru SRST_P_UPHY0_TCPHY>; - reset-names =3D "uphy", "uphy-pipe", "uphy-tcphy"; - - tcphy0_dp: dp-port { - #phy-cells =3D <0>; - }; - - tcphy0_usb3: usb3-port { - #phy-cells =3D <0>; - }; - }; - - tcphy1: phy@ff800000 { - compatible =3D "rockchip,rk3399-typec-phy"; - reg =3D <0x0 0xff800000 0x0 0x40000>; - rockchip,grf =3D <&grf>; - extcon =3D <&fusb1>; - clocks =3D <&cru SCLK_UPHY1_TCPDCORE>, - <&cru SCLK_UPHY1_TCPDPHY_REF>; - clock-names =3D "tcpdcore", "tcpdphy-ref"; - assigned-clocks =3D <&cru SCLK_UPHY1_TCPDCORE>; - assigned-clock-rates =3D <50000000>; - resets =3D <&cru SRST_UPHY1>, - <&cru SRST_UPHY1_PIPE_L00>, - <&cru SRST_P_UPHY1_TCPHY>; - reset-names =3D "uphy", "uphy-pipe", "uphy-tcphy"; - - tcphy1_dp: dp-port { - #phy-cells =3D <0>; - }; - - tcphy1_usb3: usb3-port { - #phy-cells =3D <0>; - }; - }; diff --git a/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-ph= y.yaml b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.ya= ml new file mode 100644 index 000000000000..4b4e37ec13cd --- /dev/null +++ b/Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip,rk3399-typec-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3399 USBDP Combo PHY + +maintainers: + - Frank Wang + - Zhang Yubing + +properties: + compatible: + items: + - const: rockchip,rk3399-typec-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: tcpdcore + - const: tcpdphy-ref + + extcon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + extcon specifier for the Power Delivery + + power-domains: + maxItems: 1 + + resets: + maxItems: 3 + + reset-names: + items: + - const: uphy + - const: uphy-pipe + - const: uphy-tcphy + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Some additional phy settings are access through GRF regs. + + dp-port: + description: A sub-node to identify the dp phy provides. + type: object + additionalProperties: false + properties: + port: + $ref: /schemas/graph.yaml#/properties/port + "#phy-cells": + const: 0 + + usb3-port: + description: A sub-node to identify the usb3 phy provides. + type: object + additionalProperties: false + properties: + port: + $ref: /schemas/graph.yaml#/properties/port + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - rockchip,grf + +additionalProperties: false + +examples: + - | + #include + #include + #include + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + phy@ff7c0000 { + compatible =3D "rockchip,rk3399-typec-phy"; + reg =3D <0x0 0xff7c0000 0x0 0x40000>; + extcon =3D <&fusb0>; + clocks =3D <&cru SCLK_UPHY0_TCPDCORE>, <&cru SCLK_UPHY0_TCPDPH= Y_REF>; + clock-names =3D "tcpdcore", "tcpdphy-ref"; + assigned-clocks =3D <&cru SCLK_UPHY0_TCPDCORE>; + assigned-clock-rates =3D <50000000>; + resets =3D <&cru SRST_UPHY0>, <&cru SRST_UPHY0_PIPE_L00>, <&cr= u SRST_P_UPHY0_TCPHY>; + reset-names =3D "uphy", "uphy-pipe", "uphy-tcphy"; + rockchip,grf =3D <&grf>; + + tcphy0_dp: dp-port { + #phy-cells =3D <0>; + }; + + tcphy0_usb3: usb3-port { + #phy-cells =3D <0>; + }; + }; + }; --=20 2.49.0