HomeFreeBSD

sdhci_fsl_fdt: Fix vccq reconfiguration

Description

sdhci_fsl_fdt: Fix vccq reconfiguration

As vqmmc-supply is an optional Device Tree property, don't skip vccq
reconfiguration when the regulator is not specified. Instead, accept
voltage specified by the voltage-ranges property.

The actual voltage switch is done through a hw register in LS1028A.
Add errata flag for other boards, as they are not supported. Return
not supported error code when switching to 1.8V on affected platforms.

Fixes: b08bf4c35ca ("sdhci_fsl_fdt: Skip vccq reconfiguration without regulator")

Co-authored-by: Artur Rojek <ar@semihalf.com>

Reviewed by: manu, mw
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D33319

Details

Provenance
ar_semihalf.comAuthored on Sep 10 2021, 4:03 PM
wmaCommitted on Dec 8 2021, 10:21 AM
Reviewer
manu
Differential Revision
D33319: sdhci_fsl_fdt: Fix vccq reconfiguration
Parents
rG44a95c49c2d7: sdhci_fsl_fdt: Add LS1012A compat string
Branches
Unknown
Tags
Unknown