MDIO bus multiplexer/glue of Amlogic G12a SoC family

Schema identifier ($id): "http://devicetree.org/schemas/net/amlogic,g12a-mdio-mux.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This is a special case of a MDIO bus multiplexer. It allows to choose between the internal mdio bus leading to the embedded 10/100 PHY or the external MDIO bus.

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): mdio-mux.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "amlogic,g12a-mdio-mux"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

peripheral clock

Item 2

platform crytal

Item 3

SoC 50MHz MPLL

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "clkin0"

Item 3

Exact value (const): "clkin1"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mdio-multiplexer@4c000 {
    compatible = "amlogic,g12a-mdio-mux";
    reg = <0x4c000 0xa4>;
    clocks = <&clkc_eth_phy>, <&xtal>, <&clkc_mpll>;
    clock-names = "pclk", "clkin0", "clkin1";
    mdio-parent-bus = <&mdio0>;
    #address-cells = <1>;
    #size-cells = <0>;

    mdio@0 {
        reg = <0>;
        #address-cells = <1>;
        #size-cells = <0>;
    };

    mdio@1 {
        reg = <1>;
        #address-cells = <1>;
        #size-cells = <0>;

        ethernet-phy@8 {
            compatible = "ethernet-phy-id0180.3301",
                         "ethernet-phy-ieee802.3-c22";
            interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
            reg = <8>;
            max-speed = <100>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page