Linux's documentation (Documentation/devicetree/bindings/mmc/mmc.txt) says the property should be named cd-gpios, not cd-gpio. All the dts files use cd-gpios.
Signed-off-by: Marek Behún <marek.be...@nic.cz> Cc: T Karthik Reddy <t.karthik.re...@xilinx.com> Cc: Michal Simek <michal.si...@xilinx.com> Cc: Peng Fan <peng....@nxp.com> --- drivers/mmc/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index c4e88790bc..d0e9cc55f6 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -594,7 +594,7 @@ static int sdhci_init(struct mmc *mmc) #if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO) struct udevice *dev = mmc->dev; - gpio_request_by_name(dev, "cd-gpio", 0, + gpio_request_by_name(dev, "cd-gpios", 0, &host->cd_gpio, GPIOD_IS_IN); #endif -- 2.21.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot