Commit 80fd350b authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Ulf Hansson

dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible matching

The i.MX 8 DTSes use two compatibles so update the binding to fix
dtbs_check warnings like:

  arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b40000:
    compatible: ['fsl,imx8mn-usdhc', 'fsl,imx7d-usdhc'] is too long
    From schema: Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

  arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b40000:
    compatible: Additional items are not allowed ('fsl,imx7d-usdhc' was unexpected)

  arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: mmc@30b40000:
    compatible: ['fsl,imx8mn-usdhc', 'fsl,imx7d-usdhc'] is too long
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200829062505.4642-1-krzk@kernel.orgSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 8d62fa83
...@@ -62,7 +62,7 @@ examples: ...@@ -62,7 +62,7 @@ examples:
}; };
mmc@5b010000 { mmc@5b010000 {
compatible = "fsl,imx8qxp-usdhc"; compatible = "fsl,imx8qxp-usdhc", "fsl,imx7d-usdhc";
interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x5b010000 0x10000>; reg = <0x5b010000 0x10000>;
clocks = <&conn_lpcg IMX_CONN_LPCG_SDHC0_IPG_CLK>, clocks = <&conn_lpcg IMX_CONN_LPCG_SDHC0_IPG_CLK>,
......
...@@ -21,23 +21,26 @@ description: | ...@@ -21,23 +21,26 @@ description: |
properties: properties:
compatible: compatible:
enum: oneOf:
- fsl,imx25-esdhc - enum:
- fsl,imx35-esdhc - fsl,imx25-esdhc
- fsl,imx51-esdhc - fsl,imx35-esdhc
- fsl,imx53-esdhc - fsl,imx51-esdhc
- fsl,imx6q-usdhc - fsl,imx53-esdhc
- fsl,imx6sl-usdhc - fsl,imx6q-usdhc
- fsl,imx6sx-usdhc - fsl,imx6sl-usdhc
- fsl,imx6ull-usdhc - fsl,imx6sx-usdhc
- fsl,imx7d-usdhc - fsl,imx6ull-usdhc
- fsl,imx7ulp-usdhc - fsl,imx7d-usdhc
- fsl,imx8mq-usdhc - fsl,imx7ulp-usdhc
- fsl,imx8mm-usdhc - items:
- fsl,imx8mn-usdhc - enum:
- fsl,imx8mp-usdhc - fsl,imx8mm-usdhc
- fsl,imx8qm-usdhc - fsl,imx8mn-usdhc
- fsl,imx8qxp-usdhc - fsl,imx8mp-usdhc
- fsl,imx8mq-usdhc
- fsl,imx8qxp-usdhc
- const: fsl,imx7d-usdhc
reg: reg:
maxItems: 1 maxItems: 1
......
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