diff mbox series

[v3,1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible

Message ID 8de887697c90cd432b7ab5fe0d833c87fc17f0f1.1646031524.git.baruch@tkos.co.il
State New
Headers show
Series [v3,1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible | expand

Commit Message

Baruch Siach Feb. 28, 2022, 6:58 a.m. UTC
From: Baruch Siach <baruch.siach@siklu.com>

The IPQ60xx MDIO bus is the same as IPQ4019.

Update the schema to allow qcom,ipq4019-mdio compatible as fallback for
newer IPQ series.

Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
---

v3:

  Correct the schema to fix yamllint failure (Rob's bot)

v2:

  Update the schema to allow fallback compatible (Rob Herring)
---
 .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml     | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Comments

Rob Herring March 4, 2022, 11:55 p.m. UTC | #1
On Mon, 28 Feb 2022 08:58:43 +0200, Baruch Siach wrote:
> From: Baruch Siach <baruch.siach@siklu.com>
> 
> The IPQ60xx MDIO bus is the same as IPQ4019.
> 
> Update the schema to allow qcom,ipq4019-mdio compatible as fallback for
> newer IPQ series.
> 
> Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
> ---
> 
> v3:
> 
>   Correct the schema to fix yamllint failure (Rob's bot)
> 
> v2:
> 
>   Update the schema to allow fallback compatible (Rob Herring)
> ---
>  .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml     | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
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 2af304341772..dde8e6931ed3 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -14,9 +14,13 @@  allOf:
 
 properties:
   compatible:
-    enum:
-      - qcom,ipq4019-mdio
-      - qcom,ipq5018-mdio
+    oneOf:
+      - const: qcom,ipq4019-mdio
+      - items:
+          - enum:
+              - qcom,ipq5018-mdio
+              - qcom,ipq6018-mdio
+          - const: qcom,ipq4019-mdio
 
   "#address-cells":
     const: 1