From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796314904; b=4uFRIhMmh4R/uvyagfVSnhTDKlg7tJgoCEQFeWT+waSDbW1rSPpctFfzh2vr18VvbGeF R8EMmPILphT4x2M4LHA29lHLX0Rll9xI5Xh1FFiZQqKePtEvQbTkBdPikNmyn3Ae7vyaN pBBm2sHkJxPB78nhKDato9qXWecNJWe8mgACRyVk0DUguiNIooKylsV6+Oe/XyFJdBovQ Ubn9fkhwflj79KBlp7aet1CvTvlp09Lg3iY9q4t5MRqEkDnD+1XJzk+usdJvEWnyxaaFG asT83WWPFhA/IwTvigWRUNWcBRC3ugy4X0EmwmUzOrFQto/xjxgBxtpSfuu5js9QV4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796314904; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=4e/mclKrMbvaq0iW74iZmyosT6/9r5cfum32E26eZ3I=; b=lsfmQMgu8D3A5z2txSanvc0b16kiz/WILNPWE5iUUjb+UgL7eCx355GLPw9Kcn2dyp/x KbiwkLnXvLXEvsUNGxcWBbM/MqB5OAEe88ju675gqmlMGYI49yAouCuJ6ft9WHGTEka27 yqpAKV3d5OPlh2PYwkbP7dFYcHHhL844Ecfs4iwWNmKP4788gxsDnGQszeAP+Mva5/W+B A6DM+gxKOPgj29visg5YbWWJuK04y5ZTw8dIo8OZMYBhriV5ayGMO16pWItOm3ieDW1j9 VEW3R3x10toL9MSoWFXD54e3MkbL5wT6jif0ruKJGLw5vtwtt7CLJYH1An7qW3pqI3w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d94Lvzxy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9330606A322; Thu, 3 Dec 2026 16:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d94Lvzxy Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46B9B1F000C1; Thu, 3 Dec 2026 16:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796314904; bh=4e/mclKrMbvaq0iW74iZmyosT6/9r5cfum32E26eZ3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=d94LvzxydwuPh9IOe8Flyq09MLah+Fd/UfZt3xEK+FQ++R/BmWHqkInncta0r/bGj R3T2SkFulxvBAT09g6cLNwNT1mwmHaTseFVP2rjYAQgtxX2GS21IgRvB7LpwPt1USH m0p3R3FSZhRAjp4D/WO12aYaIBTQsu8PasLzg83yAZQAnN33hFWFEizMRC4fCQ6hwg AdztcBeCoOMb4ExJ6DiUR1Vx1wBND/giEkqbBJ+7d9eN/Hx0TRmaOCa9uC9XgaYEM5 ncnV6XLWcwQsvX0jre2g3w0n21hstmJd+wITPqWf6rp/IXTx/m5BCQo9Jrx1EAfmvZ NQvzk4RMcqC7Q== Date: Thu, 3 Dec 2026 10:21:38 -0600 From: Rob Herring To: Gary Yang Cc: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Krzysztof Kozlowski , Conor Dooley , Fugang Duan , Luo Liu , cix-kernel-upstream@cixtech.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Message-ID: <20261203162138.GA3065975-robh@kernel.org> References: <20261203104915.231202-1-gary.yang@cixtech.com> <20261203104915.231202-2-gary.yang@cixtech.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203104915.231202-2-gary.yang@cixtech.com> On Thu, Dec 03, 2026 at 06:49:14PM +0800, Gary Yang wrote: > Document the USB/DP combo PHY of the CIX Sky1 SoC. One PHY instance > provides one SuperSpeedPlus USB lane and up to four DisplayPort lanes of > a USB Type-C port; consumers select the part they need with a PHY type > cell, using PHY_TYPE_USB3 or PHY_TYPE_DP. > > The PHY performs Type-C plug orientation switching and USB/DP lane > muxing in hardware and is therefore described with the properties of > the common USB switch binding. The plug orientation is switched through > the S5 system controller, identified by the "cix,s5-syscon" phandle > followed by the PHY instance index. > > Reviewed-by: Fugang Duan > Signed-off-by: Gary Yang > > --- > Changes in v8: > - Rename the system controller property to cix,s5-syscon, after the S5 > system controller it points to. The previous name read as if the PHY > node referenced a syscon of its own. > - Drop the redundant type of the orientation-switch and mode-switch > properties, which the common USB switch binding already defines. > --- > .../bindings/phy/cix,sky1-usbdp-phy.yaml | 148 ++++++++++++++++++ > 1 file changed, 148 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml > new file mode 100644 > index 000000000000..0dd518768f33 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml > @@ -0,0 +1,148 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/cix,sky1-usbdp-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: CIX Sky1 USB/DP Combo PHY > + > +maintainers: > + - Gary Yang > + > +description: > + The CIX Sky1 USB/DP combo PHY provides one SuperSpeedPlus USB lane and > + up to four DisplayPort lanes for a USB Type-C port. Which of the two > + functions is in use depends on the Type-C alt mode and on the plug > + orientation. > + > +allOf: > + - $ref: /schemas/usb/usb-switch.yaml# > + > +properties: > + compatible: > + const: cix,sky1-usbdp-phy > + > + reg: > + maxItems: 1 > + > + "#phy-cells": > + description: | > + Cell allows setting the type of the PHY. Possible values are: > + - PHY_TYPE_USB3 > + - PHY_TYPE_DP > + const: 1 > + > + clocks: > + maxItems: 1 > + description: PHY APB clock. Please answer sashiko. > + > + resets: > + items: > + - description: PHY core reset > + - description: PHY APB preset > + > + reset-names: > + items: > + - const: core > + - const: apb > + > + orientation-switch: > + description: > + The PHY handles Type-C plug orientation switching. > + > + mode-switch: > + description: > + The PHY handles multiplexing of the USB and DisplayPort lanes. > + > + cix,s5-syscon: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: phandle to the S5 system controller > + - description: PHY instance index within the system controller > + description: > + Phandle to the S5 system controller, which holds the Type-C plug > + orientation control register, followed by the PHY instance index. > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + port@0: > + $ref: /schemas/graph.yaml#/properties/port > + description: > + Output endpoint of the PHY for USB, or for DisplayPort when > + configured into 4-lane mode, which should point to the > + SuperSpeed port of a USB Type-C connector. blank line > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: Incoming endpoint from the USB controller. blank line > + port@2: > + $ref: /schemas/graph.yaml#/properties/port > + description: Incoming endpoint from the DisplayPort controller. > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - "#phy-cells" > + - clocks > + - resets > + - reset-names > + - cix,s5-syscon > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + phy@9030000 { > + compatible = "cix,sky1-usbdp-phy"; > + reg = <0x09030000 0x40000>; > + #phy-cells = <1>; > + clocks = <&scmi_clk CLK_TREE_USB3C_DRD_PHY3_GATE>; > + resets = <&s5_syscon SKY1_USB_DP_PHY0_RST_N>, > + <&s5_syscon SKY1_USB_DP_PHY0_PRST_N>; > + reset-names = "core", "apb"; > + orientation-switch; > + mode-switch; > + cix,s5-syscon = <&s5_syscon 0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + endpoint { > + remote-endpoint = <&usb_c_connector>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + endpoint { > + remote-endpoint = <&usb3_controller>; > + }; > + }; > + > + port@2 { > + reg = <2>; > + > + endpoint { > + remote-endpoint = <&dp_controller>; > + }; > + }; > + }; > + }; > -- > 2.50.1 >