Mediatek/Ralink USB PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/mediatek,mt7628-usbphy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt7620-usbphy", "mediatek,mt7628-usbphy", "ralink,rt3352-usbphy"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#phy-cells — required here #
Exact value (const): 0
ralink,sysctl — required here #
phandle to a ralink syscon register region.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
resets — required here #
Array item rules (items) #
Item 1
USB Host reset controller
Item 2
USB Device reset controller
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"host"
Item 2
Exact value (
const):"device"
Required in this object (required): "compatible", "#phy-cells", "ralink,sysctl", "resets", "reset-names"
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)Exact value (
const):"mediatek,mt7628-usbphy"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
phy@10120000 {
compatible = "mediatek,mt7628-usbphy";
reg = <0x10120000 0x1000>;
#phy-cells = <0>;
ralink,sysctl = <&sysc>;
resets = <&rstctrl 22>,
<&rstctrl 25>;
reset-names = "host", "device";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)