diff mbox series

[v4,4/4] dt-bindings: i2c: imx: Fix i.MX 7 compatible matching

Message ID 20200917191321.28741-4-krzk@kernel.org
State Superseded
Headers show
Series None | expand

Commit Message

Krzysztof Kozlowski Sept. 17, 2020, 7:13 p.m. UTC
The i.MX 7 DTSes use two compatibles so update the binding to fix
dtbs_check warnings like:

  arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
    compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is not valid under any of the given schemas (Possible causes of the failure):

  arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
    compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is too long

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 Documentation/devicetree/bindings/i2c/i2c-imx.yaml | 3 +++
 1 file changed, 3 insertions(+)

Comments

Rob Herring Sept. 23, 2020, 8:25 p.m. UTC | #1
On Thu, 17 Sep 2020 21:13:21 +0200, Krzysztof Kozlowski wrote:
> The i.MX 7 DTSes use two compatibles so update the binding to fix
> dtbs_check warnings like:
> 
>   arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
>     compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is not valid under any of the given schemas (Possible causes of the failure):
> 
>   arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
>     compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is too long
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
> ---
>  Documentation/devicetree/bindings/i2c/i2c-imx.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
Wolfram Sang Sept. 27, 2020, 6:02 p.m. UTC | #2
On Thu, Sep 17, 2020 at 09:13:21PM +0200, Krzysztof Kozlowski wrote:
> The i.MX 7 DTSes use two compatibles so update the binding to fix
> dtbs_check warnings like:
> 
>   arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
>     compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is not valid under any of the given schemas (Possible causes of the failure):
> 
>   arch/arm/boot/dts/imx7d-cl-som-imx7.dt.yaml: i2c@30a20000:
>     compatible: ['fsl,imx7d-i2c', 'fsl,imx21-i2c'] is too long
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml
index a0c87307ca07..f23966b0d6c6 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml
+++ b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml
@@ -21,6 +21,9 @@  properties:
       - items:
           - const: fsl,imx35-i2c
           - const: fsl,imx1-i2c
+      - items:
+          - const: fsl,imx7d-i2c
+          - const: fsl,imx21-i2c
       - items:
           - enum:
               - fsl,imx25-i2c