Freescale Gianfar (TSEC) MDIO Device
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,gianfar-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes the MDIO is a bus to which the PHY devices are connected. For each device that exists on this bus, a child node should be created. Some TSECs are associated with an internal Ten-Bit Interface (TBI) PHY. This PHY is accessed through the local MDIO bus. These buses are defined similarly to the mdio buses, except they are compatible with "fsl,gianfar-tbi". The TBI PHYs underneath them are similar to normal PHYs, but the reg property is considered instructive, rather than descriptive. The reg property should be chosen so it doesn't interfere with other PHYs on the bus.
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Automatic schema selection (select) #
Exactly one of these rules must match (
oneOf) #Rule 1 #
Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"gianfar"
device_type— required hereExact value (
const):"mdio"Rule 2 #
Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,gianfar-tbi","fsl,gianfar-mdio","fsl,etsec2-tbi","fsl,etsec2-mdio","fsl,ucc-mdio","ucc_geth_phy"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "fsl,gianfar-tbi", "fsl,gianfar-mdio", "fsl,etsec2-tbi", "fsl,etsec2-mdio", "fsl,ucc-mdio", "gianfar", "ucc_geth_phy"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Offset and length of the register set for the device
Item 2
Optionally, the offset and length of the TBIPA register (TBI PHY address register). If TBIPA register is not specified, the driver will attempt to infer it from the register set specified (your mileage may vary).
device_type — not listed as required here #
Exact value (const): "mdio"
Required in this object (required): "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ucc_geth_phy"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
mdio@24520 {
reg = <0x24520 0x20>;
compatible = "fsl,gianfar-mdio";
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: This is needed to distinguish gianfar.yaml and gianfar-mdio.yaml, because
Line 25: both use compatible = "gianfar" (with different device_type values)