* [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible
@ 2022-11-14 19:47 Robert Marko
2022-11-14 19:47 ` [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Robert Marko
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: Robert Marko @ 2022-11-14 19:47 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Cc: Robert Marko
Document IPQ6018 compatible that is already being used in the DTS along
with the fallback IPQ4019 compatible as driver itself only gets probed
on IPQ4019 and IPQ5018 compatibles.
This is also required in order to specify which platform require clock to
be defined and validate it in schema.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
Changes in v2:
* Drop items from IPQ4019 and IPQ5018 compatible enum
---
.../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
index ad8b2b41c140..1ba8de982bd1 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -14,9 +14,15 @@ allOf:
properties:
compatible:
- enum:
- - qcom,ipq4019-mdio
- - qcom,ipq5018-mdio
+ oneOf:
+ - enum:
+ - qcom,ipq4019-mdio
+ - qcom,ipq5018-mdio
+
+ - items:
+ - enum:
+ - qcom,ipq6018-mdio
+ - const: qcom,ipq4019-mdio
"#address-cells":
const: 1
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
@ 2022-11-14 19:47 ` Robert Marko
2022-11-14 19:47 ` [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Robert Marko
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-11-14 19:47 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Cc: Robert Marko, Krzysztof Kozlowski
Allow using IPQ8074 specific compatible along with the fallback IPQ4019
one in order to be able to specify which compatibles require clocks to
be able to validate them via schema.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
index 1ba8de982bd1..f4918c9e6fd2 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -22,6 +22,7 @@ properties:
- items:
- enum:
- qcom,ipq6018-mdio
+ - qcom,ipq8074-mdio
- const: qcom,ipq4019-mdio
"#address-cells":
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
2022-11-14 19:47 ` [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Robert Marko
@ 2022-11-14 19:47 ` Robert Marko
2022-11-15 8:15 ` Krzysztof Kozlowski
2022-11-14 19:47 ` [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Robert Marko
` (4 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Robert Marko @ 2022-11-14 19:47 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Cc: Robert Marko
Now that we can match the platforms requiring clocks by compatible start
using those to allow clocks per compatible and make them required.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
Changes in v2:
* Keep clocks under properties and disallow per compatible
---
.../bindings/net/qcom,ipq4019-mdio.yaml | 27 ++++++++++++++-----
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
index f4918c9e6fd2..72561e3aeee3 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -9,9 +9,6 @@ title: Qualcomm IPQ40xx MDIO Controller
maintainers:
- Robert Marko <robert.marko@sartura.hr>
-allOf:
- - $ref: "mdio.yaml#"
-
properties:
compatible:
oneOf:
@@ -40,10 +37,8 @@ properties:
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.
+ items:
+ - description: MDIO clock source frequency fixed to 100MHZ
required:
- compatible
@@ -51,6 +46,24 @@ required:
- "#address-cells"
- "#size-cells"
+allOf:
+ - $ref: "mdio.yaml#"
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,ipq5018-mdio
+ - qcom,ipq6018-mdio
+ - qcom,ipq8074-mdio
+ then:
+ required:
+ - clocks
+ else:
+ properties:
+ clocks: false
+
unevaluatedProperties: false
examples:
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
2022-11-14 19:47 ` [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Robert Marko
2022-11-14 19:47 ` [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Robert Marko
@ 2022-11-14 19:47 ` Robert Marko
2022-11-15 8:15 ` Krzysztof Kozlowski
2022-11-14 19:47 ` [PATCH v2 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO Robert Marko
` (3 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Robert Marko @ 2022-11-14 19:47 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Cc: Robert Marko
IPQ5018, IPQ6018 and IPQ8074 require clock-names to be set as driver is
requesting the clock based on it and not index, so document that and make
it required for the listed SoC-s.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
Changes in v2:
* Define clock-names under properties and disallow it per compatible
like clocks
---
.../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
index 72561e3aeee3..7631ecc8fd01 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
@@ -40,6 +40,10 @@ properties:
items:
- description: MDIO clock source frequency fixed to 100MHZ
+ clock-names:
+ items:
+ - const: gcc_mdio_ahb_clk
+
required:
- compatible
- reg
@@ -60,9 +64,11 @@ allOf:
then:
required:
- clocks
+ - clock-names
else:
properties:
clocks: false
+ clock-names: false
unevaluatedProperties: false
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
` (2 preceding siblings ...)
2022-11-14 19:47 ` [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Robert Marko
@ 2022-11-14 19:47 ` Robert Marko
2022-11-15 8:14 ` [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Krzysztof Kozlowski
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Robert Marko @ 2022-11-14 19:47 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Cc: Robert Marko, Krzysztof Kozlowski
Add the newly documented SoC compatible to MDIO in order to be able to
validate clocks for it.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index a0481c671faf..583871c29586 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -331,7 +331,7 @@ pcie_phy1: phy@8e200 {
};
mdio: mdio@90000 {
- compatible = "qcom,ipq4019-mdio";
+ compatible = "qcom,ipq8074-mdio", "qcom,ipq4019-mdio";
reg = <0x00090000 0x64>;
#address-cells = <1>;
#size-cells = <0>;
--
2.38.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
` (3 preceding siblings ...)
2022-11-14 19:47 ` [PATCH v2 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO Robert Marko
@ 2022-11-15 8:14 ` Krzysztof Kozlowski
2022-11-18 5:20 ` patchwork-bot+netdevbpf
2022-12-28 2:41 ` (subset) " Bjorn Andersson
6 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-15 8:14 UTC (permalink / raw)
To: Robert Marko, agross, andersson, konrad.dybcio, davem, edumazet,
kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm,
netdev, devicetree, linux-kernel
On 14/11/2022 20:47, Robert Marko wrote:
> Document IPQ6018 compatible that is already being used in the DTS along
> with the fallback IPQ4019 compatible as driver itself only gets probed
> on IPQ4019 and IPQ5018 compatibles.
>
> This is also required in order to specify which platform require clock to
> be defined and validate it in schema.
>
> Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks
2022-11-14 19:47 ` [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Robert Marko
@ 2022-11-15 8:15 ` Krzysztof Kozlowski
0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-15 8:15 UTC (permalink / raw)
To: Robert Marko, agross, andersson, konrad.dybcio, davem, edumazet,
kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm,
netdev, devicetree, linux-kernel
On 14/11/2022 20:47, Robert Marko wrote:
> Now that we can match the platforms requiring clocks by compatible start
> using those to allow clocks per compatible and make them required.
>
> Signed-off-by: Robert Marko <robimarko@gmail.com>
> ---
> Changes in v2:
> * Keep clocks under properties and disallow per compatible
> ---
> .../bindings/net/qcom,ipq4019-mdio.yaml | 27 ++++++++++++++-----
> 1 file changed, 20 insertions(+), 7 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
> index f4918c9e6fd2..72561e3aeee3 100644
> --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml
> @@ -9,9 +9,6 @@ title: Qualcomm IPQ40xx MDIO Controller
> maintainers:
> - Robert Marko <robert.marko@sartura.hr>
>
> -allOf:
> - - $ref: "mdio.yaml#"
> -
> properties:
> compatible:
> oneOf:
> @@ -40,10 +37,8 @@ properties:
> 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.
> + items:
> + - description: MDIO clock source frequency fixed to 100MHZ
>
> required:
> - compatible
> @@ -51,6 +46,24 @@ required:
> - "#address-cells"
> - "#size-cells"
>
> +allOf:
> + - $ref: "mdio.yaml#"
If there is going to be resend, drop the quotes from above during the move.
Anyway:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names
2022-11-14 19:47 ` [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Robert Marko
@ 2022-11-15 8:15 ` Krzysztof Kozlowski
0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-15 8:15 UTC (permalink / raw)
To: Robert Marko, agross, andersson, konrad.dybcio, davem, edumazet,
kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, linux-arm-msm,
netdev, devicetree, linux-kernel
On 14/11/2022 20:47, Robert Marko wrote:
> IPQ5018, IPQ6018 and IPQ8074 require clock-names to be set as driver is
> requesting the clock based on it and not index, so document that and make
> it required for the listed SoC-s.
>
> Signed-off-by: Robert Marko <robimarko@gmail.com>
> ---
> Changes in v2:
> * Define clock-names under properties and disallow it per compatible
> like clocks
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
` (4 preceding siblings ...)
2022-11-15 8:14 ` [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Krzysztof Kozlowski
@ 2022-11-18 5:20 ` patchwork-bot+netdevbpf
2022-12-28 2:41 ` (subset) " Bjorn Andersson
6 siblings, 0 replies; 10+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-18 5:20 UTC (permalink / raw)
To: Robert Marko
Cc: agross, andersson, konrad.dybcio, davem, edumazet, kuba, pabeni,
robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, netdev,
devicetree, linux-kernel
Hello:
This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 14 Nov 2022 20:47:30 +0100 you wrote:
> Document IPQ6018 compatible that is already being used in the DTS along
> with the fallback IPQ4019 compatible as driver itself only gets probed
> on IPQ4019 and IPQ5018 compatibles.
>
> This is also required in order to specify which platform require clock to
> be defined and validate it in schema.
>
> [...]
Here is the summary with links:
- [v2,1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible
https://git.kernel.org/netdev/net-next/c/cbe5f7c0fbcd
- [v2,2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible
https://git.kernel.org/netdev/net-next/c/05c1cbb96f3d
- [v2,3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks
https://git.kernel.org/netdev/net-next/c/e50c50367d98
- [v2,4/5] dt-bindings: net: ipq4019-mdio: document required clock-names
https://git.kernel.org/netdev/net-next/c/4a8c14384fa9
- [v2,5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO
(no matching commit)
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: (subset) [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
` (5 preceding siblings ...)
2022-11-18 5:20 ` patchwork-bot+netdevbpf
@ 2022-12-28 2:41 ` Bjorn Andersson
6 siblings, 0 replies; 10+ messages in thread
From: Bjorn Andersson @ 2022-12-28 2:41 UTC (permalink / raw)
To: linux-kernel, robimarko, pabeni, davem, agross,
krzysztof.kozlowski+dt, konrad.dybcio, netdev, robh+dt,
devicetree, kuba, linux-arm-msm, edumazet
On Mon, 14 Nov 2022 20:47:30 +0100, Robert Marko wrote:
> Document IPQ6018 compatible that is already being used in the DTS along
> with the fallback IPQ4019 compatible as driver itself only gets probed
> on IPQ4019 and IPQ5018 compatibles.
>
> This is also required in order to specify which platform require clock to
> be defined and validate it in schema.
>
> [...]
Applied, thanks!
[5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO
commit: 36e830a5656d6c22110c5dcffb611fc69a57a269
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-12-28 2:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 19:47 [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Robert Marko
2022-11-14 19:47 ` [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Robert Marko
2022-11-14 19:47 ` [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Robert Marko
2022-11-15 8:15 ` Krzysztof Kozlowski
2022-11-14 19:47 ` [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Robert Marko
2022-11-15 8:15 ` Krzysztof Kozlowski
2022-11-14 19:47 ` [PATCH v2 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO Robert Marko
2022-11-15 8:14 ` [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Krzysztof Kozlowski
2022-11-18 5:20 ` patchwork-bot+netdevbpf
2022-12-28 2:41 ` (subset) " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).