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

Subsystems: arm/qualcomm mailing list, networking drivers, open firmware and flattened device tree bindings, the rest

STALE1654d

3 messages, 2 authors, 2022-03-04 · open the first message on its own page

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

From: Baruch Siach <baruch@tkos.co.il>
Date: 2022-02-28 06:58:57

From: Baruch Siach <redacted>

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

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

[PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description

From: Baruch Siach <baruch@tkos.co.il>
Date: 2022-02-28 06:58:57

From: Baruch Siach <redacted>

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

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

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

From: Rob Herring <robh@kernel.org>
Date: 2022-03-04 23:55:33

On Mon, 28 Feb 2022 08:58:43 +0200, Baruch Siach wrote:
From: Baruch Siach <redacted>

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

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help