Commit df368298 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: nvmem: imx-ocotp: Update i.MX 8M compatibles

DTSes with new i.MX 8M SoCs use two compatibles so update the binding to
fix dtbs_check warnings like:

  arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000: compatible:1: 'syscon' was expected
    From schema: Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml

  arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000:
    compatible: ['fsl,imx8mn-ocotp', 'fsl,imx8mm-ocotp', 'syscon'] is too long

  arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: efuse@30350000:
    compatible: Additional items are not allowed ('syscon' was unexpected)
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent c0310e49
...@@ -19,7 +19,8 @@ allOf: ...@@ -19,7 +19,8 @@ allOf:
properties: properties:
compatible: compatible:
items: oneOf:
- items:
- enum: - enum:
- fsl,imx6q-ocotp - fsl,imx6q-ocotp
- fsl,imx6sl-ocotp - fsl,imx6sl-ocotp
...@@ -31,8 +32,15 @@ properties: ...@@ -31,8 +32,15 @@ properties:
- fsl,imx7ulp-ocotp - fsl,imx7ulp-ocotp
- fsl,imx8mq-ocotp - fsl,imx8mq-ocotp
- fsl,imx8mm-ocotp - fsl,imx8mm-ocotp
- const: syscon
- items:
- enum:
- fsl,imx8mn-ocotp - fsl,imx8mn-ocotp
# i.MX8MP not really compatible with fsl,imx8mm-ocotp, however
# the code for getting SoC revision depends on fsl,imx8mm-ocotp
# compatible.
- fsl,imx8mp-ocotp - fsl,imx8mp-ocotp
- const: fsl,imx8mm-ocotp
- const: syscon - const: syscon
reg: reg:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment