diff mbox series

[1/2] dt-bindings: net: qcom: Add binding for shared mdio bus

Message ID 1536829493-10088-2-git-send-email-dongsheng.wang@hxt-semitech.com
State Changes Requested, archived
Headers show
Series net: qcom/emac: add shared mdio bus support | expand

Commit Message

Wang, Dongsheng Sept. 13, 2018, 9:04 a.m. UTC
This property copy from "ibm,emac.txt" to describe a shared MIDO bus.
Since QDF2400 emac include MDIO, so If the motherboard has more than one
PHY connected to an MDIO bus, this property will point to the MAC device
that has the MDIO bus.

Signed-off-by: Wang Dongsheng <dongsheng.wang@hxt-semitech.com>
---
 Documentation/devicetree/bindings/net/qcom-emac.txt | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Timur Tabi Sept. 13, 2018, 3:02 p.m. UTC | #1
On 9/13/18 4:04 AM, Wang Dongsheng wrote:
> This property copy from "ibm,emac.txt" to describe a shared MIDO bus.
> Since QDF2400 emac include MDIO, so If the motherboard has more than one
> PHY connected to an MDIO bus, this property will point to the MAC device
> that has the MDIO bus.
> 
> Signed-off-by: Wang Dongsheng<dongsheng.wang@hxt-semitech.com>

The QDF2400 does not support device trees, so please don't talk about DT 
support in the context of the QDF2400.
Wang, Dongsheng Sept. 13, 2018, 3:19 p.m. UTC | #2
On 9/13/2018 11:02 PM, Timur Tabi wrote:
> On 9/13/18 4:04 AM, Wang Dongsheng wrote:
>> This property copy from "ibm,emac.txt" to describe a shared MIDO bus.
>> Since QDF2400 emac include MDIO, so If the motherboard has more than one
>> PHY connected to an MDIO bus, this property will point to the MAC device
>> that has the MDIO bus.
>>
>> Signed-off-by: Wang Dongsheng<dongsheng.wang@hxt-semitech.com>
> The QDF2400 does not support device trees, so please don't talk about DT 
> support in the context of the QDF2400.
>
Ok, remove QDF2400.

s/QDF2400 emac/emac/


Cheers,

-Dongsheng
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/qcom-emac.txt b/Documentation/devicetree/bindings/net/qcom-emac.txt
index 346e6c7f47b7..50db71771358 100644
--- a/Documentation/devicetree/bindings/net/qcom-emac.txt
+++ b/Documentation/devicetree/bindings/net/qcom-emac.txt
@@ -24,6 +24,9 @@  Internal PHY node:
 The external phy child node:
 - reg : The phy address
 
+Optional properties:
+- mdio-device : Shared MIDO bus.
+
 Example:
 
 FSM9900:
@@ -86,6 +89,7 @@  soc {
 		reg = <0x0 0x38800000 0x0 0x10000>,
 		      <0x0 0x38816000 0x0 0x1000>;
 		interrupts = <0 256 4>;
+		mdio-device = <&emac1>;
 
 		clocks = <&gcc 0>, <&gcc 1>, <&gcc 3>, <&gcc 4>, <&gcc 5>,
 			 <&gcc 6>, <&gcc 7>;