* [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips
@ 2022-01-11 21:23 David Heidelberg
2022-01-17 17:45 ` Guenter Roeck
2022-05-07 17:22 ` Krzysztof Kozlowski
0 siblings, 2 replies; 4+ messages in thread
From: David Heidelberg @ 2022-01-11 21:23 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Wim Van Sebroeck, Guenter Roeck,
Rob Herring, Prakash Ranjan
Cc: ~okias/devicetree, David Heidelberg, Rob Herring, linux-arm-msm,
linux-watchdog, devicetree, linux-kernel
Parse compatible as expected for modern QCOMs.
Fixes warnings as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long
From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected)
From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
v2:
- updated compatible list as two compatibles has been added upstream
-> resolve merge conflict
---
.../bindings/watchdog/qcom-wdt.yaml | 37 +++++++++++--------
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
index 16c6f82a13ca..4ff8c59c59ab 100644
--- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
@@ -14,22 +14,27 @@ allOf:
properties:
compatible:
- enum:
- - qcom,apss-wdt-qcs404
- - qcom,apss-wdt-sc7180
- - qcom,apss-wdt-sc7280
- - qcom,apss-wdt-sdm845
- - qcom,apss-wdt-sdx55
- - qcom,apss-wdt-sm6350
- - qcom,apss-wdt-sm8150
- - qcom,apss-wdt-sm8250
- - qcom,kpss-timer
- - qcom,kpss-wdt
- - qcom,kpss-wdt-apq8064
- - qcom,kpss-wdt-ipq4019
- - qcom,kpss-wdt-ipq8064
- - qcom,kpss-wdt-msm8960
- - qcom,scss-timer
+ oneOf:
+ - items:
+ - enum:
+ - qcom,apss-wdt-qcs404
+ - qcom,apss-wdt-sc7180
+ - qcom,apss-wdt-sc7280
+ - qcom,apss-wdt-sdm845
+ - qcom,apss-wdt-sdx55
+ - qcom,apss-wdt-sm6350
+ - qcom,apss-wdt-sm8150
+ - qcom,apss-wdt-sm8250
+ - const: qcom,kpss-wdt
+ - items:
+ - enum:
+ - qcom,kpss-wdt
+ - qcom,kpss-timer
+ - qcom,kpss-wdt-apq8064
+ - qcom,kpss-wdt-ipq4019
+ - qcom,kpss-wdt-ipq8064
+ - qcom,kpss-wdt-msm8960
+ - qcom,scss-timer
reg:
maxItems: 1
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips
2022-01-11 21:23 [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips David Heidelberg
@ 2022-01-17 17:45 ` Guenter Roeck
2022-05-07 17:22 ` Krzysztof Kozlowski
1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2022-01-17 17:45 UTC (permalink / raw)
To: David Heidelberg, Andy Gross, Bjorn Andersson, Wim Van Sebroeck,
Rob Herring, Prakash Ranjan
Cc: ~okias/devicetree, Rob Herring, linux-arm-msm, linux-watchdog,
devicetree, linux-kernel
On 1/11/22 1:23 PM, David Heidelberg wrote:
> Parse compatible as expected for modern QCOMs.
>
> Fixes warnings as:
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long
> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected)
> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> v2:
> - updated compatible list as two compatibles has been added upstream
> -> resolve merge conflict
> ---
> .../bindings/watchdog/qcom-wdt.yaml | 37 +++++++++++--------
> 1 file changed, 21 insertions(+), 16 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> index 16c6f82a13ca..4ff8c59c59ab 100644
> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> @@ -14,22 +14,27 @@ allOf:
>
> properties:
> compatible:
> - enum:
> - - qcom,apss-wdt-qcs404
> - - qcom,apss-wdt-sc7180
> - - qcom,apss-wdt-sc7280
> - - qcom,apss-wdt-sdm845
> - - qcom,apss-wdt-sdx55
> - - qcom,apss-wdt-sm6350
> - - qcom,apss-wdt-sm8150
> - - qcom,apss-wdt-sm8250
> - - qcom,kpss-timer
> - - qcom,kpss-wdt
> - - qcom,kpss-wdt-apq8064
> - - qcom,kpss-wdt-ipq4019
> - - qcom,kpss-wdt-ipq8064
> - - qcom,kpss-wdt-msm8960
> - - qcom,scss-timer
> + oneOf:
> + - items:
> + - enum:
> + - qcom,apss-wdt-qcs404
> + - qcom,apss-wdt-sc7180
> + - qcom,apss-wdt-sc7280
> + - qcom,apss-wdt-sdm845
> + - qcom,apss-wdt-sdx55
> + - qcom,apss-wdt-sm6350
> + - qcom,apss-wdt-sm8150
> + - qcom,apss-wdt-sm8250
> + - const: qcom,kpss-wdt
> + - items:
> + - enum:
> + - qcom,kpss-wdt
> + - qcom,kpss-timer
> + - qcom,kpss-wdt-apq8064
> + - qcom,kpss-wdt-ipq4019
> + - qcom,kpss-wdt-ipq8064
> + - qcom,kpss-wdt-msm8960
> + - qcom,scss-timer
>
> reg:
> maxItems: 1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips
2022-01-11 21:23 [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips David Heidelberg
2022-01-17 17:45 ` Guenter Roeck
@ 2022-05-07 17:22 ` Krzysztof Kozlowski
2022-05-07 19:30 ` David Heidelberg
1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-07 17:22 UTC (permalink / raw)
To: David Heidelberg, Andy Gross, Bjorn Andersson, Wim Van Sebroeck,
Guenter Roeck, Rob Herring, Prakash Ranjan
Cc: ~okias/devicetree, Rob Herring, linux-arm-msm, linux-watchdog,
devicetree, linux-kernel
On 11/01/2022 22:23, David Heidelberg wrote:
> Parse compatible as expected for modern QCOMs.
>
> Fixes warnings as:
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long
> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected)
> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> v2:
> - updated compatible list as two compatibles has been added upstream
> -> resolve merge conflict
> ---
> .../bindings/watchdog/qcom-wdt.yaml | 37 +++++++++++--------
> 1 file changed, 21 insertions(+), 16 deletions(-)
It seems this patch received three reviews but was not picked up. David,
do you plan to work on this?
>
> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> index 16c6f82a13ca..4ff8c59c59ab 100644
> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> @@ -14,22 +14,27 @@ allOf:
>
> properties:
> compatible:
> - enum:
> - - qcom,apss-wdt-qcs404
> - - qcom,apss-wdt-sc7180
> - - qcom,apss-wdt-sc7280
> - - qcom,apss-wdt-sdm845
> - - qcom,apss-wdt-sdx55
> - - qcom,apss-wdt-sm6350
> - - qcom,apss-wdt-sm8150
> - - qcom,apss-wdt-sm8250
> - - qcom,kpss-timer
> - - qcom,kpss-wdt
> - - qcom,kpss-wdt-apq8064
> - - qcom,kpss-wdt-ipq4019
> - - qcom,kpss-wdt-ipq8064
> - - qcom,kpss-wdt-msm8960
> - - qcom,scss-timer
> + oneOf:
> + - items:
> + - enum:
> + - qcom,apss-wdt-qcs404
> + - qcom,apss-wdt-sc7180
> + - qcom,apss-wdt-sc7280
> + - qcom,apss-wdt-sdm845
> + - qcom,apss-wdt-sdx55
> + - qcom,apss-wdt-sm6350
> + - qcom,apss-wdt-sm8150
> + - qcom,apss-wdt-sm8250
> + - const: qcom,kpss-wdt
> + - items:
> + - enum:
> + - qcom,kpss-wdt
> + - qcom,kpss-timer
> + - qcom,kpss-wdt-apq8064
> + - qcom,kpss-wdt-ipq4019
> + - qcom,kpss-wdt-ipq8064
> + - qcom,kpss-wdt-msm8960
These do not look correct without appropriate fallback.
> + - qcom,scss-timer
>
> reg:
> maxItems: 1
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips
2022-05-07 17:22 ` Krzysztof Kozlowski
@ 2022-05-07 19:30 ` David Heidelberg
0 siblings, 0 replies; 4+ messages in thread
From: David Heidelberg @ 2022-05-07 19:30 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson,
Wim Van Sebroeck, Guenter Roeck, Rob Herring, Prakash Ranjan
Cc: ~okias/devicetree, Rob Herring, linux-arm-msm, linux-watchdog,
devicetree, linux-kernel
On 07/05/2022 19:22, Krzysztof Kozlowski wrote:
> On 11/01/2022 22:23, David Heidelberg wrote:
>> Parse compatible as expected for modern QCOMs.
>>
>> Fixes warnings as:
>> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long
>> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected)
>> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>>
>> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
>> Reviewed-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: David Heidelberg <david@ixit.cz>
>> ---
>> v2:
>> - updated compatible list as two compatibles has been added upstream
>> -> resolve merge conflict
>> ---
>> .../bindings/watchdog/qcom-wdt.yaml | 37 +++++++++++--------
>> 1 file changed, 21 insertions(+), 16 deletions(-)
> It seems this patch received three reviews but was not picked up. David,
> do you plan to work on this?
>
>> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>> index 16c6f82a13ca..4ff8c59c59ab 100644
>> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
>> @@ -14,22 +14,27 @@ allOf:
>>
>> properties:
>> compatible:
>> - enum:
>> - - qcom,apss-wdt-qcs404
>> - - qcom,apss-wdt-sc7180
>> - - qcom,apss-wdt-sc7280
>> - - qcom,apss-wdt-sdm845
>> - - qcom,apss-wdt-sdx55
>> - - qcom,apss-wdt-sm6350
>> - - qcom,apss-wdt-sm8150
>> - - qcom,apss-wdt-sm8250
>> - - qcom,kpss-timer
>> - - qcom,kpss-wdt
>> - - qcom,kpss-wdt-apq8064
>> - - qcom,kpss-wdt-ipq4019
>> - - qcom,kpss-wdt-ipq8064
>> - - qcom,kpss-wdt-msm8960
>> - - qcom,scss-timer
>> + oneOf:
>> + - items:
>> + - enum:
>> + - qcom,apss-wdt-qcs404
>> + - qcom,apss-wdt-sc7180
>> + - qcom,apss-wdt-sc7280
>> + - qcom,apss-wdt-sdm845
>> + - qcom,apss-wdt-sdx55
>> + - qcom,apss-wdt-sm6350
>> + - qcom,apss-wdt-sm8150
>> + - qcom,apss-wdt-sm8250
>> + - const: qcom,kpss-wdt
>> + - items:
>> + - enum:
>> + - qcom,kpss-wdt
>> + - qcom,kpss-timer
>> + - qcom,kpss-wdt-apq8064
>> + - qcom,kpss-wdt-ipq4019
>> + - qcom,kpss-wdt-ipq8064
>> + - qcom,kpss-wdt-msm8960
> These do not look correct without appropriate fallback.
Yes the situation there isn't optimal and I'm afraid I cannot solve it
in scope of this change.
Previously I was thinking about also merging MSM timer into this
binding, which shares the compatible, but uses different driver. Sadly,
currently don't have a time for it (have some WIP patch locally, if
anyone interested to take a look).
I'm (re-)sending v3 with another S-off, but it solves only warnings
described in commit message.
David
>
>> + - qcom,scss-timer
>>
>> reg:
>> maxItems: 1
>
> Best regards,
> Krzysztof
--
David Heidelberg
Consultant Software Engineer
Matrix: @okias:matrix.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-07 19:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 21:23 [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips David Heidelberg
2022-01-17 17:45 ` Guenter Roeck
2022-05-07 17:22 ` Krzysztof Kozlowski
2022-05-07 19:30 ` David Heidelberg
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).