Rockchip USB2.0 phy with inno IP block
Schema identifier ($id): "http://devicetree.org/schemas/phy/rockchip,inno-usb2phy.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 #
Allowed values (enum): "rockchip,px30-usb2phy", "rockchip,rk3036-usb2phy", "rockchip,rk3128-usb2phy", "rockchip,rk3228-usb2phy", "rockchip,rk3308-usb2phy", "rockchip,rk3328-usb2phy", "rockchip,rk3366-usb2phy", "rockchip,rk3399-usb2phy", "rockchip,rk3562-usb2phy", "rockchip,rk3568-usb2phy", "rockchip,rk3576-usb2phy", "rockchip,rk3588-usb2phy", "rockchip,rv1108-usb2phy"
reg — required here #
Maximum number of items (maxItems): 1
clock-output-names — required here #
The usb 480m output clock name.
#clock-cells — required here #
Exact value (const): 0
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"phyclk"
Item 2
Exact value (
const):"aclk"
Item 3
Exact value (
const):"aclk_slv"
assigned-clocks — not listed as required here #
Phandle of the usb 480m clock.
assigned-clock-parents — not listed as required here #
Parent of the usb 480m clock. Select between usb-phy output 480m and xin24m. Refer to clk/clock-bindings.txt for generic clock consumer properties.
extcon — not listed as required here #
Phandle to the extcon device providing the cable state for the otg phy.
interrupts — not listed as required here #
Muxed interrupt for both ports
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 2
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"phy"
Item 2
Exact value (
const):"apb"
rockchip,usbgrf — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon managing the 'usb general register files'. When set the driver will request its phandle as one companion-grf for some special SoCs (e.g rv1108).
host-port — not listed as 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
interrupts — not listed as required here
host linestate interrupt
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here
Exact value (const): "linestate"
phy-supply — not listed as required here
Phandle to a regulator that provides power to VBUS. See ./phy-bindings.txt for details.
Required in this object (required): "#phy-cells"
otg-port — not listed as 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
interrupts — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupt-names — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Exact value (
const):"linestate"
Rule 2
Exact value (
const):"otg-mux"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"otg-bvalid"Item 2
Exact value (
const):"otg-id"Item 3
Exact value (
const):"linestate"
phy-supply — not listed as required here
Phandle to a regulator that provides power to VBUS. See ./phy-bindings.txt for details.
Required in this object (required): "#phy-cells"
Required in this object (required): "compatible", "reg", "clock-output-names", "#clock-cells"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3568-usb2phy","rockchip,rk3588-usb2phy"When the condition matches (
then) #Properties and child nodes (
properties)
host-port— not listed as required hereProperties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
otg-port— not listed as required hereProperties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
host-port— not listed as required hereRequired in this object (
required):"interrupts","interrupt-names"
otg-port— not listed as required hereRequired in this object (
required):"interrupts","interrupt-names"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-usb2phy","rockchip,rk3036-usb2phy","rockchip,rk3128-usb2phy","rockchip,rk3228-usb2phy","rockchip,rk3308-usb2phy","rockchip,rk3328-usb2phy","rockchip,rk3366-usb2phy","rockchip,rk3399-usb2phy","rockchip,rk3562-usb2phy","rockchip,rk3568-usb2phy","rockchip,rk3588-usb2phy","rockchip,rv1108-usb2phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereMinimum number of items (
minItems):3
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>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
u2phy0: usb2phy@e450 {
compatible = "rockchip,rk3399-usb2phy";
reg = <0xe450 0x10>;
clocks = <&cru SCLK_USB2PHY0_REF>;
clock-names = "phyclk";
clock-output-names = "clk_usbphy0_480m";
#clock-cells = <0>;
u2phy0_host: host-port {
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "linestate";
#phy-cells = <0>;
};
u2phy0_otg: otg-port {
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "otg-bvalid", "otg-id", "linestate";
#phy-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0