2021-09-25 20:17:18

by Nishanth Menon

[permalink] [raw]
Subject: [PATCH V2 2/4] dt-bindings: arm: ti: am642/am654: Allow for SoC only compatibles

Maintain consistency in K3 SoCs by allowing AM654 and AM642 platforms
just state SoC compatibles without specific board specific compatibles
aligned with what we have done for J721E/J7200 platforms as well.

Signed-off-by: Nishanth Menon <[email protected]>
---

Motivation to introduce in V2:
* Retain consistency with both "soc only" and "board specific" as two
schemes we support across k3.

V1: did'nt exist

.../devicetree/bindings/arm/ti/k3.yaml | 23 +++++++++++--------
1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/arm/ti/k3.yaml
index cefb06424a4a..30c3f5c70014 100644
--- a/Documentation/devicetree/bindings/arm/ti/k3.yaml
+++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml
@@ -20,12 +20,15 @@ properties:
oneOf:

- description: K3 AM654 SoC
- items:
- - enum:
- - ti,am654-evm
- - siemens,iot2050-basic
- - siemens,iot2050-advanced
+ oneOf:
- const: ti,am654
+ - items:
+ - enum:
+ - ti,am654-evm
+ - siemens,iot2050-basic
+ - siemens,iot2050-advanced
+ - const: ti,am654
+

- description: K3 J721E SoC
oneOf:
@@ -44,11 +47,13 @@ properties:
- const: ti,j7200

- description: K3 AM642 SoC
- items:
- - enum:
- - ti,am642-evm
- - ti,am642-sk
+ oneOf:
- const: ti,am642
+ - items:
+ - enum:
+ - ti,am642-evm
+ - ti,am642-sk
+ - const: ti,am642

additionalProperties: true

--
2.32.0


2021-09-27 14:29:40

by Suman Anna

[permalink] [raw]
Subject: Re: [PATCH V2 2/4] dt-bindings: arm: ti: am642/am654: Allow for SoC only compatibles

On 9/25/21 3:14 PM, Nishanth Menon wrote:
> Maintain consistency in K3 SoCs by allowing AM654 and AM642 platforms
> just state SoC compatibles without specific board specific compatibles
> aligned with what we have done for J721E/J7200 platforms as well.
>
> Signed-off-by: Nishanth Menon <[email protected]>

Acked-by: Suman Anna <[email protected]>

> ---
>
> Motivation to introduce in V2:
> * Retain consistency with both "soc only" and "board specific" as two
> schemes we support across k3.

Thanks for the updates and making it consistent across the K3 platforms.

regards
Suman

>
> V1: did'nt exist
>
> .../devicetree/bindings/arm/ti/k3.yaml | 23 +++++++++++--------
> 1 file changed, 14 insertions(+), 9 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/arm/ti/k3.yaml
> index cefb06424a4a..30c3f5c70014 100644
> --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml
> +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml
> @@ -20,12 +20,15 @@ properties:
> oneOf:
>
> - description: K3 AM654 SoC
> - items:
> - - enum:
> - - ti,am654-evm
> - - siemens,iot2050-basic
> - - siemens,iot2050-advanced
> + oneOf:
> - const: ti,am654
> + - items:
> + - enum:
> + - ti,am654-evm
> + - siemens,iot2050-basic
> + - siemens,iot2050-advanced
> + - const: ti,am654
> +
>
> - description: K3 J721E SoC
> oneOf:
> @@ -44,11 +47,13 @@ properties:
> - const: ti,j7200
>
> - description: K3 AM642 SoC
> - items:
> - - enum:
> - - ti,am642-evm
> - - ti,am642-sk
> + oneOf:
> - const: ti,am642
> + - items:
> + - enum:
> + - ti,am642-evm
> + - ti,am642-sk
> + - const: ti,am642
>
> additionalProperties: true
>
>

2021-10-04 23:53:16

by Nishanth Menon

[permalink] [raw]
Subject: Re: [PATCH V2 2/4] dt-bindings: arm: ti: am642/am654: Allow for SoC only compatibles

On 12:54-20211004, Rob Herring wrote:
> On Sat, Sep 25, 2021 at 03:14:28PM -0500, Nishanth Menon wrote:
> > Maintain consistency in K3 SoCs by allowing AM654 and AM642 platforms
> > just state SoC compatibles without specific board specific compatibles
> > aligned with what we have done for J721E/J7200 platforms as well.
>
> This is the wrong direction IMO. Why do you want this other than
> alignment?

Many downstream boards tend not to have an specific compatible at least
during initial phase and I would like folks to start using checks to
make sure that the easy to catch issues via match against bindings are
already handled.

I am curious as to why you think this is wrong - because we permit an
alternative option that allows the board files to be less specific?

[...]
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D

2021-10-05 00:20:10

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH V2 2/4] dt-bindings: arm: ti: am642/am654: Allow for SoC only compatibles

On Sat, Sep 25, 2021 at 03:14:28PM -0500, Nishanth Menon wrote:
> Maintain consistency in K3 SoCs by allowing AM654 and AM642 platforms
> just state SoC compatibles without specific board specific compatibles
> aligned with what we have done for J721E/J7200 platforms as well.

This is the wrong direction IMO. Why do you want this other than
alignment?

>
> Signed-off-by: Nishanth Menon <[email protected]>
> ---
>
> Motivation to introduce in V2:
> * Retain consistency with both "soc only" and "board specific" as two
> schemes we support across k3.
>
> V1: did'nt exist
>
> .../devicetree/bindings/arm/ti/k3.yaml | 23 +++++++++++--------
> 1 file changed, 14 insertions(+), 9 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/arm/ti/k3.yaml
> index cefb06424a4a..30c3f5c70014 100644
> --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml
> +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml
> @@ -20,12 +20,15 @@ properties:
> oneOf:
>
> - description: K3 AM654 SoC
> - items:
> - - enum:
> - - ti,am654-evm
> - - siemens,iot2050-basic
> - - siemens,iot2050-advanced
> + oneOf:
> - const: ti,am654
> + - items:
> + - enum:
> + - ti,am654-evm
> + - siemens,iot2050-basic
> + - siemens,iot2050-advanced
> + - const: ti,am654
> +
>
> - description: K3 J721E SoC
> oneOf:
> @@ -44,11 +47,13 @@ properties:
> - const: ti,j7200
>
> - description: K3 AM642 SoC
> - items:
> - - enum:
> - - ti,am642-evm
> - - ti,am642-sk
> + oneOf:
> - const: ti,am642
> + - items:
> + - enum:
> + - ti,am642-evm
> + - ti,am642-sk
> + - const: ti,am642
>
> additionalProperties: true
>
> --
> 2.32.0
>
>

2021-10-05 18:35:18

by Nishanth Menon

[permalink] [raw]
Subject: Re: [PATCH V2 2/4] dt-bindings: arm: ti: am642/am654: Allow for SoC only compatibles

On 13:59-20211004, Nishanth Menon wrote:
> On 12:54-20211004, Rob Herring wrote:
> > On Sat, Sep 25, 2021 at 03:14:28PM -0500, Nishanth Menon wrote:
> > > Maintain consistency in K3 SoCs by allowing AM654 and AM642 platforms
> > > just state SoC compatibles without specific board specific compatibles
> > > aligned with what we have done for J721E/J7200 platforms as well.
> >
> > This is the wrong direction IMO. Why do you want this other than
> > alignment?
>
> Many downstream boards tend not to have an specific compatible at least
> during initial phase and I would like folks to start using checks to
> make sure that the easy to catch issues via match against bindings are
> already handled.
>
> I am curious as to why you think this is wrong - because we permit an
> alternative option that allows the board files to be less specific?


Thinking again, I get the rationale. We are attempting to be specific,
and this patch reverses the direction. Agreed. Will drop applying this
patch. Also, for future SoCs, will insist on being specific compatible.

--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D