Alex Marginean | 6c8bafd | 2019-07-25 12:33:18 +0300 | [diff] [blame] | 1 | Common MDIO bus properties. |
| 2 | |
| 3 | These are generic properties that can apply to any MDIO bus. |
| 4 | |
| 5 | Optional properties: |
| 6 | - device-name - If present it is used to name the device and MDIO bus. |
| 7 | The name must be unique and must not contain spaces. |
| 8 | |
| 9 | A list of child nodes, one per device on the bus is expected. These could be |
| 10 | PHYs, switches or similar devices and child nodes should follow the specific |
| 11 | binding for the device type. |
| 12 | |
| 13 | Example : |
| 14 | This example shows the structure used for the external MDIO bus on NXP LS1028A |
| 15 | RDB board. Note that this MDIO device is an integrated PCI function and |
| 16 | requires no compatible property for probing. |
| 17 | |
| 18 | /* definition in SoC dtsi file */ |
| 19 | pcie@1f0000000 { |
| 20 | |
| 21 | mdio0: pci@0,3 { |
| 22 | #address-cells=<0>; |
| 23 | #size-cells=<1>; |
| 24 | reg = <0x000300 0 0 0 0>; |
| 25 | status = "disabled"; |
| 26 | device-name = "emdio"; |
| 27 | }; |
| 28 | }; |
| 29 | /* definition of PHYs in RDB dts file */ |
| 30 | &mdio0 { |
| 31 | status = "okay"; |
| 32 | rdb_phy0: phy@2 { |
| 33 | reg = <2>; |
| 34 | }; |
| 35 | }; |