diff mbox series

[v3,3/3] dt-bindings: net: Add the properties for ipq4019 MDIO

Message ID 20210812100642.1800-4-luoj@codeaurora.org
State Accepted
Commit 2a4c32e767adb8041fb41af199759b8c4162f7e2
Headers show
Series [v3,1/3] net: mdio: Add the reset function for IPQ MDIO driver | expand

Commit Message

Jie Luo Aug. 12, 2021, 10:06 a.m. UTC
The new added properties resource "reg" is for configuring
ethernet LDO in the IPQ5018 chipset, the property "clocks"
is for configuring the MDIO clock source frequency.

Signed-off-by: Luo Jie <luoj@codeaurora.org>
---
 .../bindings/net/qcom,ipq4019-mdio.yaml           | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

Comments

Andrew Lunn Aug. 15, 2021, 2:50 p.m. UTC | #1
On Thu, Aug 12, 2021 at 06:06:42PM +0800, Luo Jie wrote:
> The new added properties resource "reg" is for configuring

> ethernet LDO in the IPQ5018 chipset, the property "clocks"

> is for configuring the MDIO clock source frequency.

> 

> Signed-off-by: Luo Jie <luoj@codeaurora.org>

> ---


Reviewed-by: Andrew Lunn <andrew@lunn.ch>


    Andrew
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
index 0c973310ada0..2af304341772 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -14,7 +14,9 @@  allOf:
 
 properties:
   compatible:
-    const: qcom,ipq4019-mdio
+    enum:
+      - qcom,ipq4019-mdio
+      - qcom,ipq5018-mdio
 
   "#address-cells":
     const: 1
@@ -23,7 +25,18 @@  properties:
     const: 0
 
   reg:
+    minItems: 1
+    maxItems: 2
+    description:
+      the first Address and length of the register set for the MDIO controller.
+      the second Address and length of the register for ethernet LDO, this second
+      address range is only required by the platform IPQ50xx.
+
+  clocks:
     maxItems: 1
+    description: |
+      MDIO clock source frequency fixed to 100MHZ, this clock should be specified
+      by the platform IPQ807x, IPQ60xx and IPQ50xx.
 
 required:
   - compatible