Rockchip USBDP Combo PHY with Samsung IP block

Schema identifier ($id): "http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Wang <frank.wang@rock-chips.com>", "Zhang Yubing <yubing.zhang@rock-chips.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3576-usbdp-phy", "rockchip,rk3588-usbdp-phy"

reg — required here #

Maximum number of items (maxItems): 1

#phy-cells — required here #

Cell allows setting the type of the PHY. Possible values are: - PHY_TYPE_USB3 - PHY_TYPE_DP

Exact value (const): 1

clocks — required here #

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "refclk"

Item 2

Exact value (const): "immortal"

Item 3

Exact value (const): "pclk"

Item 4

Exact value (const): "utmi"

resets — required here #

Maximum number of items (maxItems): 5

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "init"

Item 2

Exact value (const): "cmn"

Item 3

Exact value (const): "lane"

Item 4

Exact value (const): "pcs_apb"

Item 5

Exact value (const): "pma_apb"

phy-supply — not listed as required here #

Single PHY regulator

rockchip,dp-lane-mux — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Array item rules (items) #

Maximum value (maximum): 3

An array of physical Type-C lanes indexes. Position of an entry determines the DisplayPort (DP) lane index, while the value of an entry indicates physical Type-C lane. The supported DP lanes number are 2 or 4. e.g. for 2 lanes DP lanes map, we could have "rockchip,dp-lane-mux = <2, 3>;", assuming DP lane0 on Type-C phy lane2, DP lane1 on Type-C phy lane3. For 4 lanes DP lanes map, we could have "rockchip,dp-lane-mux = <0, 1, 2, 3>;", assuming DP lane0 on Type-C phy lane0, DP lane1 on Type-C phy lane1, DP lane2 on Type-C phy lane2, DP lane3 on Type-C phy lane3. If DP lanes are mapped by DisplayPort Alt mode, this property is not needed.

rockchip,u2phy-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the syscon managing the 'usb2 phy general register files'.

rockchip,usb-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the syscon managing the 'usb general register files'.

rockchip,usbdpphy-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the syscon managing the 'usbdp phy general register files'.

rockchip,vo-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the syscon managing the 'video output general register files'. When select the DP lane mapping will request its phandle.

sbu1-dc-gpios — not listed as required here #

GPIO connected to the SBU1 line of the USB-C connector via a big resistor (~100K) to apply a DC offset for signalling the connector orientation.

Maximum number of items (maxItems): 1

sbu2-dc-gpios — not listed as required here #

GPIO connected to the SBU2 line of the USB-C connector via a big resistor (~100K) to apply a DC offset for signalling the connector orientation.

Maximum number of items (maxItems): 1

orientation-switch — not listed as required here #

Flag the port as possible handler of orientation switching

Value type (type): "boolean"

mode-switch — not listed as required here #

Flag the port as possible handler of altmode switching

Value type (type): "boolean"

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

A port node to link the PHY to a TypeC controller for the purpose of handling orientation switching.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "#phy-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>

usbdp_phy0: phy@fed80000 {
  compatible = "rockchip,rk3588-usbdp-phy";
  reg = <0xfed80000 0x10000>;
  #phy-cells = <1>;
  clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>,
           <&cru CLK_USBDP_PHY0_IMMORTAL>,
           <&cru PCLK_USBDPPHY0>,
           <&u2phy0>;
  clock-names = "refclk", "immortal", "pclk", "utmi";
  resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>,
           <&cru SRST_USBDP_COMBO_PHY0_CMN>,
           <&cru SRST_USBDP_COMBO_PHY0_LANE>,
           <&cru SRST_USBDP_COMBO_PHY0_PCS>,
           <&cru SRST_P_USBDPPHY0>;
  reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";
  rockchip,u2phy-grf = <&usb2phy0_grf>;
  rockchip,usb-grf = <&usb_grf>;
  rockchip,usbdpphy-grf = <&usbdpphy0_grf>;
  rockchip,vo-grf = <&vo0_grf>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page