From nobody Sat Oct 4 08:06:50 2025 Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2271199BC; Mon, 18 Aug 2025 20:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755549196; cv=none; b=ewc42cpGLyh5TMUbCiH+Z9S48RhPQ2ZvcXAwftxtmr6NlKiVG9wJw1JiBmvYipqY+tXo/OB6xnB0thMon6TzP0OEj5JIezfPKNTXxYmkqlVgI0hfV47g8+jymlhv31bV3GqEkRvwRgGDodIEs5hvXF6tmjH1SitGBkdiJAtdxQM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755549196; c=relaxed/simple; bh=Sez7dSRnO6KxpgtkcL9ClvHBvUep4IDePODisQnXZ+8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hbR38lYPAixcGmY04b6+t9UbakkYE4qpKsyDIhu4lxTFuI9LdBEr1rFQU1mtKTKidPO7ZwmKaj+i4QueSY2ztDN/U0oK9T+0+IB0epwzoq4SSKDECCPHreKSmQC0aGUZh2lXVfE5TBqasVwid+6kpivdl4+VIUOcCLh07x/1834= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=F9uV7pJR; arc=none smtp.client-ip=198.47.23.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="F9uV7pJR" Received: from fllvem-sh03.itg.ti.com ([10.64.41.86]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTP id 57IKXB3G2795289; Mon, 18 Aug 2025 15:33:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1755549191; bh=IzzNOVctT9Ql4Qww2ajbvBZh+2KeckCVVmggygEskIM=; h=From:To:CC:Subject:Date; b=F9uV7pJRZv5nrPjg9SqKxlMLx64U7G5M80wD26B+lhuqqUbFWnN8cTFAnWnLuAZZb 8SB6PQUJZ7mYLxbrEKTAs0PR/sLHoVxBiOZJbxiC2h4fLK4x4732q7ZXNnDG70iN4g fNr4o0EHsD5h20pU2XN1pg49iZdOzN8g8rK33ZuA= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllvem-sh03.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 57IKXAva072645 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Mon, 18 Aug 2025 15:33:10 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Mon, 18 Aug 2025 15:33:10 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Mon, 18 Aug 2025 15:33:10 -0500 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 57IKXAkH1598805; Mon, 18 Aug 2025 15:33:10 -0500 From: Judith Mendez To: Judith Mendez , Adrian Hunter , Ulf Hansson CC: , , Andrew Davis Subject: [PATCH v3] mmc: sdhci_am654: Disable HS400 for AM62P SR1.0 and SR1.1 Date: Mon, 18 Aug 2025 15:33:10 -0500 Message-ID: <20250818203310.3066985-1-jm@ti.com> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" This adds SDHCI_AM654_QUIRK_DISABLE_HS400 quirk which shall be used to disable HS400 support. AM62P SR1.0 and SR1.1 do not support HS400 due to errata i2458 [0] so disable HS400 for these SoC revisions. [0] https://www.ti.com/lit/er/sprz574a/sprz574a.pdf Signed-off-by: Judith Mendez Acked-by: Adrian Hunter Reviewed-by: Andrew Davis --- This patch was separated from [0] since it will be merged to different trees anyways. Link to v2: [0] https://lore.kernel.org/linux-mmc/20250807225138.1228333-1-jm@ti.com --- drivers/mmc/host/sdhci_am654.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 8a099508b939..cc8c4145bf2b 100644 --- a/drivers/mmc/host/sdhci_am654.c +++ b/drivers/mmc/host/sdhci_am654.c @@ -155,6 +155,7 @@ struct sdhci_am654_data { =20 #define SDHCI_AM654_QUIRK_FORCE_CDTEST BIT(0) #define SDHCI_AM654_QUIRK_SUPPRESS_V1P8_ENA BIT(1) +#define SDHCI_AM654_QUIRK_DISABLE_HS400 BIT(2) }; =20 struct window { @@ -764,6 +765,7 @@ static int sdhci_am654_init(struct sdhci_host *host) { struct sdhci_pltfm_host *pltfm_host =3D sdhci_priv(host); struct sdhci_am654_data *sdhci_am654 =3D sdhci_pltfm_priv(pltfm_host); + struct device *dev =3D mmc_dev(host->mmc); u32 ctl_cfg_2 =3D 0; u32 mask; u32 val; @@ -819,6 +821,12 @@ static int sdhci_am654_init(struct sdhci_host *host) if (ret) goto err_cleanup_host; =20 + if (sdhci_am654->quirks & SDHCI_AM654_QUIRK_DISABLE_HS400 && + host->mmc->caps2 & (MMC_CAP2_HS400 | MMC_CAP2_HS400_ES)) { + dev_info(dev, "Disable descoped HS400 mode for this silicon revision\n"); + host->mmc->caps2 &=3D ~(MMC_CAP2_HS400 | MMC_CAP2_HS400_ES); + } + ret =3D __sdhci_add_host(host); if (ret) goto err_cleanup_host; @@ -882,6 +890,12 @@ static int sdhci_am654_get_of_property(struct platform= _device *pdev, return 0; } =20 +static const struct soc_device_attribute sdhci_am654_descope_hs400[] =3D { + { .family =3D "AM62PX", .revision =3D "SR1.0" }, + { .family =3D "AM62PX", .revision =3D "SR1.1" }, + { /* sentinel */ } +}; + static const struct of_device_id sdhci_am654_of_match[] =3D { { .compatible =3D "ti,am654-sdhci-5.1", @@ -969,6 +983,10 @@ static int sdhci_am654_probe(struct platform_device *p= dev) if (ret) return dev_err_probe(dev, ret, "parsing dt failed\n"); =20 + soc =3D soc_device_match(sdhci_am654_descope_hs400); + if (soc) + sdhci_am654->quirks |=3D SDHCI_AM654_QUIRK_DISABLE_HS400; + host->mmc_host_ops.start_signal_voltage_switch =3D sdhci_am654_start_sign= al_voltage_switch; host->mmc_host_ops.execute_tuning =3D sdhci_am654_execute_tuning; =20 --=20 2.49.0