xref: /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/net/allwinner,sun4i-mdio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Allwinner A10 MDIO Ethernet Controller interface
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should be "allwinner,sun4i-a10-mdio"
5*4882a593Smuzhiyun              (Deprecated: "allwinner,sun4i-mdio").
6*4882a593Smuzhiyun- reg: address and length of the register set for the device.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunOptional properties:
9*4882a593Smuzhiyun- phy-supply: phandle to a regulator if the PHY needs one
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunExample at the SoC level:
12*4882a593Smuzhiyunmdio@01c0b080 {
13*4882a593Smuzhiyun	compatible = "allwinner,sun4i-a10-mdio";
14*4882a593Smuzhiyun	reg = <0x01c0b080 0x14>;
15*4882a593Smuzhiyun	#address-cells = <1>;
16*4882a593Smuzhiyun	#size-cells = <0>;
17*4882a593Smuzhiyun};
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunAnd at the board level:
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunmdio@01c0b080 {
22*4882a593Smuzhiyun	phy-supply = <&reg_emac_3v3>;
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	phy0: ethernet-phy@0 {
25*4882a593Smuzhiyun		reg = <0>;
26*4882a593Smuzhiyun	};
27*4882a593Smuzhiyun};
28