[PATCH v1 2/2] x86: edison: Don't take SD card detect pin into consideration

Bin Meng bmeng.cn at gmail.com
Wed Oct 27 04:56:52 CEST 2021


Hi Andy,

On Sat, Oct 16, 2021 at 1:27 AM Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> There are two PCB designs in the wild which use the opposite
> signaling for SD card detect. This makes U-Boot working in one case
> and failing in the other. Quirk this out by disconnecting SD card
> detect pin from the PCB by switching to mode 3.
>
> BugLink: https://github.com/edison-fw/meta-intel-edison/issues/136
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> ---
>  arch/x86/dts/edison.dts | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
> index 2c8cf6c07102..04e8a4e457c8 100644
> --- a/arch/x86/dts/edison.dts
> +++ b/arch/x86/dts/edison.dts
> @@ -94,6 +94,7 @@
>         sdcard: mmc at ff3fa000 {
>                 compatible = "intel,sdhci-tangier";
>                 reg = <0xff3fa000 0x1000>;
> +               cd-inverted;

So I wonder how sd card ever worked without the "cd-inverted" property?

>         };
>
>         pmu: power at ff00b000 {
> @@ -131,6 +132,17 @@
>                 compatible = "intel,pinctrl-tangier";
>                 reg = <0xff0c0000 0x8000>;
>
> +               /*
> +                * Disconnect SD card detect, so it won't affect the reality
> +                * on two different PCB designs where it's using the opposite
> +                * signaling: Edison/Arduino uses Active Low, while SparkFun
> +                * went with Active High.
> +                */
> +               sd_cd at 0 {
> +                       pad-offset = <37>;
> +                       mode-func = <3>;
> +               };
> +
>                 /*
>                  * Initial configuration came from the firmware.
>                  * Which quite likely has been used in the phones, where I2C #8,
> --

Regards,
Bin


More information about the U-Boot mailing list