From: Vincent Guittot Date: Mon, 14 Jan 2019 08:24:34 +0000 (+0100) Subject: arm64: dts: hikey960: fix SDcard detection X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~3432^2~39^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=11d1447e954b1101ac955688ed9c7575951e9af9;p=mirror_ubuntu-focal-kernel.git arm64: dts: hikey960: fix SDcard detection The SDcard detection of hikey960 is active low so cd-inverted is wrong. Instead of adding cd-inverted, we should better set correctly cd-gpios to use GPIO_ACTIVE_LOW. Signed-off-by: Vincent Guittot Reviewed-by: Linus Walleij Signed-off-by: Wei Xu --- diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 46435466f1ab..e035cf195b19 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -581,8 +581,7 @@ sd-uhs-sdr50; sd-uhs-sdr104; disable-wp; - cd-inverted; - cd-gpios = <&gpio25 3 0>; + cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func