diff mbox series

[1/5] dt-bindings: dma: qcom: gpi: use sm6350 fallback

Message ID 20221015140447.55221-2-krzysztof.kozlowski@linaro.org
State Superseded
Headers show
Series dma/arm64: qcom: use one compatible also for 0x10000 offset | expand

Commit Message

Krzysztof Kozlowski Oct. 15, 2022, 2:04 p.m. UTC
Several devices like SM6350, SM8150 and SC7280 are actually compatible,
so use one compatible fallback for all of them.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Vinod Koul Oct. 17, 2022, 10:37 a.m. UTC | #1
On 15-10-22, 10:04, Krzysztof Kozlowski wrote:
> Several devices like SM6350, SM8150 and SC7280 are actually compatible,
> so use one compatible fallback for all of them.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> index 750b40c32213..0c2894498845 100644
> --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> @@ -20,12 +20,14 @@ properties:
>    compatible:
>      oneOf:
>        - enum:
> -          - qcom,sc7280-gpi-dma
>            - qcom,sdm845-gpi-dma
>            - qcom,sm6350-gpi-dma
> -          - qcom,sm8350-gpi-dma
> -          - qcom,sm8450-gpi-dma
> -
> +      - items:
> +          - enum:
> +              - qcom,sc7280-gpi-dma
> +              - qcom,sm8350-gpi-dma
> +              - qcom,sm8450-gpi-dma
> +          - const: qcom,sm6350-gpi-dma

I think it makes sense but can we document this in binding as well that
why people should use these two compatibles. I am fine with this being
comments here..

>        - items:
>            - enum:
>                - qcom,sdm670-gpi-dma
> -- 
> 2.34.1
Rob Herring Oct. 17, 2022, 6:33 p.m. UTC | #2
On Sat, 15 Oct 2022 10:04:43 -0400, Krzysztof Kozlowski wrote:
> Several devices like SM6350, SM8150 and SC7280 are actually compatible,
> so use one compatible fallback for all of them.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
Richard Acayan Oct. 17, 2022, 9:10 p.m. UTC | #3
> Several devices like SM6350, SM8150 and SC7280 are actually compatible,
> so use one compatible fallback for all of them.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> index 750b40c32213..0c2894498845 100644
> --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
> @@ -20,12 +20,14 @@ properties:
>    compatible:
>      oneOf:
>        - enum:
> -          - qcom,sc7280-gpi-dma
>            - qcom,sdm845-gpi-dma
>            - qcom,sm6350-gpi-dma
> -          - qcom,sm8350-gpi-dma
> -          - qcom,sm8450-gpi-dma
> -

If you don't want this empty line here, you can still ask for it to be removed
in the original patch. It doesn't look like it was applied yet.

> +      - items:
> +          - enum:
> +              - qcom,sc7280-gpi-dma
> +              - qcom,sm8350-gpi-dma
> +              - qcom,sm8450-gpi-dma
> +          - const: qcom,sm6350-gpi-dma
>        - items:
>            - enum:
>                - qcom,sdm670-gpi-dma
> -- 
> 2.34.1
>
Krzysztof Kozlowski Oct. 17, 2022, 9:35 p.m. UTC | #4
On 17/10/2022 06:37, Vinod Koul wrote:
> On 15-10-22, 10:04, Krzysztof Kozlowski wrote:
>> Several devices like SM6350, SM8150 and SC7280 are actually compatible,
>> so use one compatible fallback for all of them.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>>  Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 10 ++++++----
>>  1 file changed, 6 insertions(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
>> index 750b40c32213..0c2894498845 100644
>> --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
>> +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
>> @@ -20,12 +20,14 @@ properties:
>>    compatible:
>>      oneOf:
>>        - enum:
>> -          - qcom,sc7280-gpi-dma
>>            - qcom,sdm845-gpi-dma
>>            - qcom,sm6350-gpi-dma
>> -          - qcom,sm8350-gpi-dma
>> -          - qcom,sm8450-gpi-dma
>> -
>> +      - items:
>> +          - enum:
>> +              - qcom,sc7280-gpi-dma
>> +              - qcom,sm8350-gpi-dma
>> +              - qcom,sm8450-gpi-dma
>> +          - const: qcom,sm6350-gpi-dma
> 
> I think it makes sense but can we document this in binding as well that
> why people should use these two compatibles. I am fine with this being
> comments here..

It is kind of implied (and maybe obvious) from the bindings - a list of
two items, one enum and one fallback compatible.

We usually do not document such patterns in the bindings with comments
for that reason. If you insist, I can add it.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
index 750b40c32213..0c2894498845 100644
--- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml
@@ -20,12 +20,14 @@  properties:
   compatible:
     oneOf:
       - enum:
-          - qcom,sc7280-gpi-dma
           - qcom,sdm845-gpi-dma
           - qcom,sm6350-gpi-dma
-          - qcom,sm8350-gpi-dma
-          - qcom,sm8450-gpi-dma
-
+      - items:
+          - enum:
+              - qcom,sc7280-gpi-dma
+              - qcom,sm8350-gpi-dma
+              - qcom,sm8450-gpi-dma
+          - const: qcom,sm6350-gpi-dma
       - items:
           - enum:
               - qcom,sdm670-gpi-dma