Maxime Ripard | 4bdcb1d | 2013-05-30 03:49:21 +0000 | [diff] [blame] | 1 | * Allwinner A10 MDIO Ethernet Controller interface |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: should be "allwinner,sun4i-mdio". |
| 5 | - reg: address and length of the register set for the device. |
| 6 | |
| 7 | Optional properties: |
| 8 | - phy-supply: phandle to a regulator if the PHY needs one |
| 9 | |
| 10 | Example at the SoC level: |
| 11 | mdio@01c0b080 { |
| 12 | compatible = "allwinner,sun4i-mdio"; |
| 13 | reg = <0x01c0b080 0x14>; |
| 14 | #address-cells = <1>; |
| 15 | #size-cells = <0>; |
| 16 | }; |
| 17 | |
| 18 | And at the board level: |
| 19 | |
| 20 | mdio@01c0b080 { |
| 21 | phy-supply = <®_emac_3v3>; |
| 22 | |
| 23 | phy0: ethernet-phy@0 { |
| 24 | reg = <0>; |
| 25 | }; |
| 26 | }; |