xref: /freebsd/sys/contrib/device-tree/Bindings/net/amlogic,gxl-mdio-mux.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/net/amlogic,gxl-mdio-mux.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Amlogic GXL MDIO bus multiplexer
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Jerome Brunet <jbrunet@baylibre.com>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel Vadotdescription:
13*cb7aa33aSEmmanuel Vadot  This is a special case of a MDIO bus multiplexer. It allows to choose between
14*cb7aa33aSEmmanuel Vadot  the internal mdio bus leading to the embedded 10/100 PHY or the external
15*cb7aa33aSEmmanuel Vadot  MDIO bus on the Amlogic GXL SoC family.
16*cb7aa33aSEmmanuel Vadot
17*cb7aa33aSEmmanuel VadotallOf:
18*cb7aa33aSEmmanuel Vadot  - $ref: mdio-mux.yaml#
19*cb7aa33aSEmmanuel Vadot
20*cb7aa33aSEmmanuel Vadotproperties:
21*cb7aa33aSEmmanuel Vadot  compatible:
22*cb7aa33aSEmmanuel Vadot    const: amlogic,gxl-mdio-mux
23*cb7aa33aSEmmanuel Vadot
24*cb7aa33aSEmmanuel Vadot  reg:
25*cb7aa33aSEmmanuel Vadot    maxItems: 1
26*cb7aa33aSEmmanuel Vadot
27*cb7aa33aSEmmanuel Vadot  clocks:
28*cb7aa33aSEmmanuel Vadot    maxItems: 1
29*cb7aa33aSEmmanuel Vadot
30*cb7aa33aSEmmanuel Vadot  clock-names:
31*cb7aa33aSEmmanuel Vadot    items:
32*cb7aa33aSEmmanuel Vadot      - const: ref
33*cb7aa33aSEmmanuel Vadot
34*cb7aa33aSEmmanuel Vadotrequired:
35*cb7aa33aSEmmanuel Vadot  - compatible
36*cb7aa33aSEmmanuel Vadot  - reg
37*cb7aa33aSEmmanuel Vadot  - clocks
38*cb7aa33aSEmmanuel Vadot  - clock-names
39*cb7aa33aSEmmanuel Vadot
40*cb7aa33aSEmmanuel VadotunevaluatedProperties: false
41*cb7aa33aSEmmanuel Vadot
42*cb7aa33aSEmmanuel Vadotexamples:
43*cb7aa33aSEmmanuel Vadot  - |
44*cb7aa33aSEmmanuel Vadot    eth_phy_mux: mdio@558 {
45*cb7aa33aSEmmanuel Vadot      compatible = "amlogic,gxl-mdio-mux";
46*cb7aa33aSEmmanuel Vadot      reg = <0x558 0xc>;
47*cb7aa33aSEmmanuel Vadot      #address-cells = <1>;
48*cb7aa33aSEmmanuel Vadot      #size-cells = <0>;
49*cb7aa33aSEmmanuel Vadot      clocks = <&refclk>;
50*cb7aa33aSEmmanuel Vadot      clock-names = "ref";
51*cb7aa33aSEmmanuel Vadot      mdio-parent-bus = <&mdio0>;
52*cb7aa33aSEmmanuel Vadot
53*cb7aa33aSEmmanuel Vadot      external_mdio: mdio@0 {
54*cb7aa33aSEmmanuel Vadot        reg = <0x0>;
55*cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
56*cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
57*cb7aa33aSEmmanuel Vadot      };
58*cb7aa33aSEmmanuel Vadot
59*cb7aa33aSEmmanuel Vadot      internal_mdio: mdio@1 {
60*cb7aa33aSEmmanuel Vadot        reg = <0x1>;
61*cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
62*cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
63*cb7aa33aSEmmanuel Vadot      };
64*cb7aa33aSEmmanuel Vadot    };
65