Commit | Line | Data |
---|---|---|
4bdcb1dd MR |
1 | * Allwinner A10 MDIO Ethernet Controller interface |
2 | ||
3 | Required properties: | |
efe20570 MR |
4 | - compatible: should be "allwinner,sun4i-a10-mdio" |
5 | (Deprecated: "allwinner,sun4i-mdio"). | |
4bdcb1dd MR |
6 | - reg: address and length of the register set for the device. |
7 | ||
8 | Optional properties: | |
9 | - phy-supply: phandle to a regulator if the PHY needs one | |
10 | ||
11 | Example at the SoC level: | |
12 | mdio@01c0b080 { | |
efe20570 | 13 | compatible = "allwinner,sun4i-a10-mdio"; |
4bdcb1dd MR |
14 | reg = <0x01c0b080 0x14>; |
15 | #address-cells = <1>; | |
16 | #size-cells = <0>; | |
17 | }; | |
18 | ||
19 | And at the board level: | |
20 | ||
21 | mdio@01c0b080 { | |
22 | phy-supply = <®_emac_3v3>; | |
23 | ||
24 | phy0: ethernet-phy@0 { | |
25 | reg = <0>; | |
26 | }; | |
27 | }; |