Roger Quadros | 6922689 | 2017-04-21 16:15:38 +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: |
Florian Fainelli | 4c5e7a2 | 2017-04-25 11:33:03 -0700 | [diff] [blame^] | 6 | - reset-gpios: One GPIO that control the RESET lines of all PHYs on that MDIO |
| 7 | bus. |
| 8 | - reset-delay-us: RESET pulse width in microseconds. |
Roger Quadros | 6922689 | 2017-04-21 16:15:38 +0300 | [diff] [blame] | 9 | |
| 10 | A list of child nodes, one per device on the bus is expected. These |
| 11 | should follow the generic phy.txt, or a device specific binding document. |
| 12 | |
Florian Fainelli | 4c5e7a2 | 2017-04-25 11:33:03 -0700 | [diff] [blame^] | 13 | The 'reset-delay-us' indicates the RESET signal pulse width in microseconds and |
| 14 | applies to all PHY devices. It must therefore be appropriately determined based |
| 15 | on all PHY requirements (maximum value of all per-PHY RESET pulse widths). |
| 16 | |
Roger Quadros | 6922689 | 2017-04-21 16:15:38 +0300 | [diff] [blame] | 17 | Example : |
| 18 | This example shows these optional properties, plus other properties |
| 19 | required for the TI Davinci MDIO driver. |
| 20 | |
| 21 | davinci_mdio: ethernet@0x5c030000 { |
| 22 | compatible = "ti,davinci_mdio"; |
| 23 | reg = <0x5c030000 0x1000>; |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <0>; |
| 26 | |
| 27 | reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; |
Florian Fainelli | 4c5e7a2 | 2017-04-25 11:33:03 -0700 | [diff] [blame^] | 28 | reset-delay-us = <2>; |
Roger Quadros | 6922689 | 2017-04-21 16:15:38 +0300 | [diff] [blame] | 29 | |
| 30 | ethphy0: ethernet-phy@1 { |
| 31 | reg = <1>; |
| 32 | }; |
| 33 | |
| 34 | ethphy1: ethernet-phy@3 { |
| 35 | reg = <3>; |
| 36 | }; |
| 37 | }; |