Re: [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY

From: Rob Herring

Date: Thu Dec 03 2026 - 11:21:57 EST


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@xxxxxxxxxxx>
> Signed-off-by: Gary Yang <gary.yang@xxxxxxxxxxx>
>
> ---
> 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@xxxxxxxxxxx>
> +
> +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
>