Thread (35 messages) 35 messages, 6 authors, 2020-08-28

Re: [PATCH 21/22] arm64: dts: imx8qxp: Remove i.MX7 compatible from USDHC

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2020-08-24 10:32:47
Also in: linux-devicetree, linux-gpio, linux-mmc, linux-pm, linux-pwm, linux-serial, linux-watchdog, lkml

On Mon, Aug 24, 2020 at 10:31:31AM +0000, Bough Chen wrote:
quoted
-----Original Message-----
From: Dong Aisheng [mailto:dongas86@gmail.com]
Sent: 2020年8月24日 17:45
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Aisheng Dong <aisheng.dong@nxp.com>; devicetree@vger.kernel.org;
linux-serial@vger.kernel.org; Anson Huang [off-list ref];
linux-gpio@vger.kernel.org; Fabio Estevam [off-list ref]; Linus
Walleij [off-list ref]; linux-pm@vger.kernel.org;
linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org;
linux-pwm@vger.kernel.org; Bartosz Golaszewski
[off-list ref]; Rob Herring [off-list ref];
linux-mtd@lists.infradead.org; dl-linux-imx [off-list ref]; Pengutronix
Kernel Team [off-list ref]; Thierry Reding
[off-list ref]; Shawn Guo [off-list ref]; Sascha
Hauer [off-list ref]; linux-arm-kernel@lists.infradead.org;
linux-watchdog@vger.kernel.org; Bough Chen [off-list ref]
Subject: Re: [PATCH 21/22] arm64: dts: imx8qxp: Remove i.MX7 compatible
from USDHC

On Mon, Aug 24, 2020 at 5:15 PM Krzysztof Kozlowski [off-list ref]
wrote:
quoted
On Mon, Aug 24, 2020 at 09:00:19AM +0000, Aisheng Dong wrote:
quoted
quoted
From: Krzysztof Kozlowski <krzk@kernel.org>
Sent: Monday, August 24, 2020 12:16 AM

The USDHC on i.MX 8QXP has its own compatible described in
bindings and used in the driver (with its own quirks).  Remove
additional fsl,imx7d-usdhc compatible to fix dtbs_check warnings like:

  arch/arm64/boot/dts/freescale/imx8qxp-ai_ml.dt.yaml:
mmc@5b010000:
quoted
quoted
quoted
    compatible: ['fsl,imx8qxp-usdhc', 'fsl,imx7d-usdhc'] is too long
    From schema:
/ocumentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

  arch/arm64/boot/dts/freescale/imx8qxp-ai_ml.dt.yaml:
mmc@5b010000:
quoted
quoted
quoted
    compatible: Additional items are not allowed
('fsl,imx7d-usdhc' was
unexpected)

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
For Patch 19-22, I think we should fix dt binding doc.
Are you sure that these USDHC controllers are compatible with i.MX 7D?
Could they really run with fsl,imx7d-usdhc compatible?
AFAIK uSDHC on QXP is derived from the former platforms with adding a few
more new features. e.g. HS400ES/CMDQ.
Let me loop in uSDHC driver owner Haibo Chen to double confirm.
Yes, usdhc of imx8qxp can work by using the compatible "fsl, imx7d-usdhc", but will not support HS400ES/Command Queue any more. Also imx8qxp support Auto CMD23, but imx7d not.
And imx8qxp need to re-config the clock rate after system PM, imx7d do not need to do this.
Then we can leave the compatible in DTS and I will correct the device
tree schema.

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help