Rockchip Type-C PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/rockchip,rk3399-typec-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rockchip,rk3399-typec-phy"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tcpdcore"
Item 2
Exact value (
const):"tcpdphy-ref"
extcon — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 3
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"uphy"
Item 2
Exact value (
const):"uphy-pipe"
Item 3
Exact value (
const):"uphy-tcphy"
rockchip,grf — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon managing the "general register files" (GRF).
dp-port — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#phy-cells — required here
Exact value (const): 0
port — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Connection to USB Type-C connector
Required in this object (required): "#phy-cells"
usb3-port — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#phy-cells — required here
Exact value (const): 0
orientation-switch — not listed as required here
true — No constraints added by this property rule.
port — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Connection to USB Type-C connector SS port
Required in this object (required): "#phy-cells"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "dp-port", "usb3-port"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3399-cru.h>
phy@ff7c0000 {
compatible = "rockchip,rk3399-typec-phy";
reg = <0xff7c0000 0x40000>;
rockchip,grf = <&grf>;
extcon = <&fusb0>;
clocks = <&cru SCLK_UPHY0_TCPDCORE>,
<&cru SCLK_UPHY0_TCPDPHY_REF>;
clock-names = "tcpdcore", "tcpdphy-ref";
resets = <&cru SRST_UPHY0>,
<&cru SRST_UPHY0_PIPE_L00>,
<&cru SRST_P_UPHY0_TCPHY>;
reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
dp-port {
#phy-cells = <0>;
};
usb3-port {
#phy-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0