18c2ecf20Sopenharmony_ci* Broadcom UniMAC MDIO bus controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2",
58c2ecf20Sopenharmony_ci  "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5" or
68c2ecf20Sopenharmony_ci  "brcm,unimac-mdio"
78c2ecf20Sopenharmony_ci- reg: address and length of the register set for the device, first one is the
88c2ecf20Sopenharmony_ci  base register, and the second one is optional and for indirect accesses to
98c2ecf20Sopenharmony_ci  larger than 16-bits MDIO transactions
108c2ecf20Sopenharmony_ci- reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
118c2ecf20Sopenharmony_ci- #size-cells: must be 1
128c2ecf20Sopenharmony_ci- #address-cells: must be 0
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciOptional properties:
158c2ecf20Sopenharmony_ci- interrupts: must be one if the interrupt is shared with the Ethernet MAC or
168c2ecf20Sopenharmony_ci  Ethernet switch this MDIO block is integrated from, or must be two, if there
178c2ecf20Sopenharmony_ci  are two separate interrupts, first one must be "mdio done" and second must be
188c2ecf20Sopenharmony_ci  for "mdio error"
198c2ecf20Sopenharmony_ci- interrupt-names: must be "mdio_done_error" when there is a share interrupt fed
208c2ecf20Sopenharmony_ci  to this hardware block, or must be "mdio_done" for the first interrupt and
218c2ecf20Sopenharmony_ci  "mdio_error" for the second when there are separate interrupts
228c2ecf20Sopenharmony_ci- clocks: A reference to the clock supplying the MDIO bus controller
238c2ecf20Sopenharmony_ci- clock-frequency: the MDIO bus clock that must be output by the MDIO bus
248c2ecf20Sopenharmony_ci  hardware, if absent, the default hardware values are used
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciChild nodes of this MDIO bus controller node are standard Ethernet PHY device
278c2ecf20Sopenharmony_cinodes as described in Documentation/devicetree/bindings/net/phy.txt
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciExample:
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cimdio@403c0 {
328c2ecf20Sopenharmony_ci	compatible = "brcm,unimac-mdio";
338c2ecf20Sopenharmony_ci	reg = <0x403c0 0x8 0x40300 0x18>;
348c2ecf20Sopenharmony_ci	reg-names = "mdio", "mdio_indir_rw";
358c2ecf20Sopenharmony_ci	#size-cells = <1>;
368c2ecf20Sopenharmony_ci	#address-cells = <0>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	...
398c2ecf20Sopenharmony_ci	phy@0 {
408c2ecf20Sopenharmony_ci		compatible = "ethernet-phy-ieee802.3-c22";
418c2ecf20Sopenharmony_ci		reg = <0>;
428c2ecf20Sopenharmony_ci	};
438c2ecf20Sopenharmony_ci};
44