From: Rob Herring <robh@kernel.org>
To: Gary Yang <gary.yang@cixtech.com>
Cc: Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Fugang Duan <fugang.duan@cixtech.com>,
Luo Liu <Luo.Liu@cixtech.com>,
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
Date: Thu, 3 Dec 2026 10:21:38 -0600 [thread overview]
Message-ID: <20261203162138.GA3065975-robh@kernel.org> (raw)
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 <fugang.duan@cixtech.com>
> Signed-off-by: Gary Yang <gary.yang@cixtech.com>
>
> ---
> 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 <gary.yang@cixtech.com>
> +
> +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 <dt-bindings/clock/cix,sky1.h>
> + #include <dt-bindings/reset/cix,sky1-s5-system-control.h>
> +
> + 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
>
next prev parent reply other threads:[~2026-12-03 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 10:49 [PATCH v8 0/2] phy: cix: add Sky1 USB/DP combo PHY support Gary Yang
2026-12-03 10:49 ` [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Gary Yang
2026-12-03 11:04 ` sashiko-bot
2026-12-03 16:21 ` Rob Herring [this message]
2026-12-03 10:49 ` [PATCH v8 2/2] phy: cix: add Sky1 USB/DP combo PHY driver Gary Yang
2026-12-03 11:12 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203162138.GA3065975-robh@kernel.org \
--to=robh@kernel.org \
--cc=Luo.Liu@cixtech.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fugang.duan@cixtech.com \
--cc=gary.yang@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox