Allwinner A10 MDIO Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun4i-a10-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Allowed values (
enum):"allwinner,sun4i-a10-mdio","allwinner,sun4i-mdio"
Properties and child nodes (properties) #
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
compatible — required here #
Exact value (const): "allwinner,sun4i-a10-mdio"
reg — required here #
Maximum number of items (maxItems): 1
phy-supply — not listed as required here #
PHY regulator
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@1c0b080 {
compatible = "allwinner,sun4i-a10-mdio";
reg = <0x01c0b080 0x14>;
#address-cells = <1>;
#size-cells = <0>;
phy-supply = <®_emac_3v3>;
phy0: ethernet-phy@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: Select every compatible, including the deprecated ones. This way, we
Line 17: will be able to report a warning when we have that compatible, since
Line 18: we will validate the node thanks to the select, but won't report it
Line 19: as a valid value in the compatible property description
Line 26: Deprecated