arm64: dts: hikey960: fix SDcard detection
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 14 Jan 2019 08:24:34 +0000 (09:24 +0100)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 31 Jan 2019 15:09:28 +0000 (15:09 +0000)
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 <vincent.guittot@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts

index 4643546..e035cf1 100644 (file)
        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