From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFEB4606A333 for ; Thu, 3 Dec 2026 16:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HNHnhoSL; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d94Lvzxy 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=AcNNAUGt8b5b61FcIqFfp2VLIAY7RQ2yYI2OX4wSwEQ=; b=HNHnhoSLTp9rQfmxygEL6y2OkI j6SUfyuH6hf0Z0njqpvRBw07eAN7PHryyRfzL/7vBkJ6b39qkz70z54qymbZ6TyS3oUo64ztUlp0y WlVnwqtLghZjMtiLJ3QU5brTqKyo4r9T3V3SQJHatNa0vkt4tsiMkMNQnbb3YiV2G/+Sp5QOxIjTe W8agNjOp73FrBvhw45ez5fl8RCQCuUXj+EDL8KqL4aeeWHBlPnmG87h1iNN7fibSG2B0TkNH2U/xC 1ZZtADvMwzq5ved1k45isBNHzN5Oc8fKXjuLxKe0D9bxZQuKVUOjhjd4WJyrliUWUmkEhwx1FsCgS VJk8y17w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ9Z8-0000000FGFa-0lZv; Thu, 03 Dec 2026 16:21:50 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ9Z3-0000000FGFH-352T; Thu, 03 Dec 2026 16:21:47 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A12C641FAB; Thu, 3 Dec 2026 16:21:44 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261203104915.231202-2-gary.yang@cixtech.com> X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 > -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy