All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible
@ 2022-02-28  6:58 Baruch Siach
  2022-02-28  6:58 ` [PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description Baruch Siach
  2022-03-04 23:55 ` [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Baruch Siach @ 2022-02-28  6:58 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Robert Marko
  Cc: Baruch Siach, Bryan O'Donoghue, netdev, devicetree, linux-arm-msm

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(-)

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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description
  2022-02-28  6:58 [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Baruch Siach
@ 2022-02-28  6:58 ` Baruch Siach
  2022-03-04 23:55 ` [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2022-02-28  6:58 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Robert Marko
  Cc: Baruch Siach, Bryan O'Donoghue, netdev, devicetree, linux-arm-msm

From: Baruch Siach <baruch.siach@siklu.com>

The IPQ60xx has the same MDIO bug block as IPQ4019. Add IO range and
clock resources description.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
---

v2:

   Add review tag from Bryan O'Donoghue
---
 arch/arm64/boot/dts/qcom/ipq6018.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
index 5eb7dc9cc231..093011d18ca6 100644
--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
@@ -635,6 +635,16 @@ qrtr_requests {
 			};
 		};
 
+		mdio: mdio@90000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "qcom,ipq6018-mdio", "qcom,ipq4019-mdio";
+			reg = <0x0 0x90000 0x0 0x64>;
+			clocks = <&gcc GCC_MDIO_AHB_CLK>;
+			clock-names = "gcc_mdio_ahb_clk";
+			status = "disabled";
+		};
+
 		qusb_phy_1: qusb@59000 {
 			compatible = "qcom,ipq6018-qusb2-phy";
 			reg = <0x0 0x059000 0x0 0x180>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible
  2022-02-28  6:58 [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Baruch Siach
  2022-02-28  6:58 ` [PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description Baruch Siach
@ 2022-03-04 23:55 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-03-04 23:55 UTC (permalink / raw)
  To: Baruch Siach
  Cc: Baruch Siach, linux-arm-msm, netdev, devicetree, Andy Gross,
	Bryan O'Donoghue, Robert Marko, Bjorn Andersson

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-04 23:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28  6:58 [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Baruch Siach
2022-02-28  6:58 ` [PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description Baruch Siach
2022-03-04 23:55 ` [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.