Allwinner A80 USB PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/allwinner,sun9i-a80-usb-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
#phy-cells — required here #
Exact value (const): 0
compatible — required here #
Exact value (const): "allwinner,sun9i-a80-usb-phy"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
At least one of these rules must match (anyOf) #
Rule 1
Maximum number of items (
maxItems):1Main PHY Clock
Rule 2
Array item rules (
items)Item 1
Main PHY clock
Item 2
HSIC 12MHz clock
Item 3
HSIC 480MHz clock
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"phy"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"phy"Item 2
Exact value (
const):"hsic_12M"Item 3
Exact value (
const):"hsic_480M"
resets — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Normal USB PHY reset
Item 2
HSIC Reset
reset-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"phy"
Item 2
Exact value (
const):"hsic"
phy_type — not listed as required here #
Exact value (const): "hsic"
When absent, the PHY type will be assumed to be normal USB.
phy-supply — not listed as required here #
Regulator that powers VBUS
Required in this object (required): "#phy-cells", "compatible", "reg", "clocks", "clock-names", "resets", "reset-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Condition (if) #
Properties and child nodes (
properties) #
phy_type— required here #Exact value (
const):"hsic"
When the condition matches (then) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Maximum number of items (
maxItems):3
clock-names— not listed as required here #Maximum number of items (
maxItems):3
resets— not listed as required here #Maximum number of items (
maxItems):2
reset-names— not listed as required here #Maximum number of items (
maxItems):2
Examples (examples) #
#include <dt-bindings/clock/sun9i-a80-usb.h>
#include <dt-bindings/reset/sun9i-a80-usb.h>
usbphy1: phy@a00800 {
compatible = "allwinner,sun9i-a80-usb-phy";
reg = <0x00a00800 0x4>;
clocks = <&usb_clocks CLK_USB0_PHY>;
clock-names = "phy";
resets = <&usb_clocks RST_USB0_PHY>;
reset-names = "phy";
phy-supply = <®_usb1_vbus>;
#phy-cells = <0>;
};
#include <dt-bindings/clock/sun9i-a80-usb.h>
#include <dt-bindings/reset/sun9i-a80-usb.h>
usbphy3: phy@a02800 {
compatible = "allwinner,sun9i-a80-usb-phy";
reg = <0x00a02800 0x4>;
clocks = <&usb_clocks CLK_USB2_PHY>,
<&usb_clocks CLK_USB_HSIC>,
<&usb_clocks CLK_USB2_HSIC>;
clock-names = "phy",
"hsic_12M",
"hsic_480M";
resets = <&usb_clocks RST_USB2_PHY>,
<&usb_clocks RST_USB2_HSIC>;
reset-names = "phy",
"hsic";
phy_type = "hsic";
phy-supply = <®_usb3_vbus>;
#phy-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0