diff mbox series

[2/6] dt-bindings: imx-thermal: add imx6sll and imx6ul compatible

Message ID 20230305225901.7119-3-stefan.wahren@i2se.com
State Changes Requested, archived
Headers show
Series ARM: dts: imx6ull: Fix dtbs_check warnings | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dt-meta-schema fail build log

Commit Message

Stefan Wahren March 5, 2023, 10:58 p.m. UTC
Currently the dtbs_check for imx6 generates warnings like this:

['fsl,imx6sll-tempmon', 'fsl,imx6sx-tempmon'] is too long

So add them to the devicetree binding.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 .../devicetree/bindings/thermal/imx-thermal.yaml    | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Comments

Krzysztof Kozlowski March 6, 2023, 6:37 a.m. UTC | #1
On 05/03/2023 23:58, Stefan Wahren wrote:
> Currently the dtbs_check for imx6 generates warnings like this:
> 
> ['fsl,imx6sll-tempmon', 'fsl,imx6sx-tempmon'] is too long
> 
> So add them to the devicetree binding.
> 
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> ---
>  .../devicetree/bindings/thermal/imx-thermal.yaml    | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> index b22c8b59d5c7..9a20c5d74617 100644
> --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
> @@ -12,10 +12,15 @@ maintainers:
>  
>  properties:
>    compatible:
> -    enum:
> -      - fsl,imx6q-tempmon
> -      - fsl,imx6sx-tempmon
> -      - fsl,imx7d-tempmon
> +    oneOf:
> +      - const: fsl,imx6q-tempmon
> +      - const: fsl,imx6sx-tempmon

Keep the old three compatibles an enum.

> +      - items:
> +          - enum:
> +              - fsl,imx6sll-tempmon
> +              - fsl,imx6ul-tempmon
> +          - const: fsl,imx6sx-tempmon
> +      - const: fsl,imx7d-tempmon
>  
>    interrupts:
>      description: |

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
index b22c8b59d5c7..9a20c5d74617 100644
--- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml
@@ -12,10 +12,15 @@  maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,imx6q-tempmon
-      - fsl,imx6sx-tempmon
-      - fsl,imx7d-tempmon
+    oneOf:
+      - const: fsl,imx6q-tempmon
+      - const: fsl,imx6sx-tempmon
+      - items:
+          - enum:
+              - fsl,imx6sll-tempmon
+              - fsl,imx6ul-tempmon
+          - const: fsl,imx6sx-tempmon
+      - const: fsl,imx7d-tempmon
 
   interrupts:
     description: |