Skip to contentSkip to conversation

mmc: sdhci_am654: Add Support for TI's AM62 SoC

PATCH In review Aswath Govindraju 2 participants 2 messages Feb 18, 2022 – Feb 28, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci_am654: Add Support for TI's AM62 SoC

Add support for the controller present on the AM62x SoC.

There are instances:
sdhci0: 8bit bus width, max 200 MBps
sdhci1: 4bit bus width, max 100 MBps
sdhci2: 4bit bus width, max 100 MBps

The PHY used for 8 bit instance is same as the PHY for the 4 bit instance. Therefore, introduce a new bus width independent compatible for AM62 SoC that uses the driver data required for 4 bit instance.

---
 drivers/mmc/host/sdhci_am654.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/host/sdhci_am654.c +4 -0
index b4891bb26648..e54fe24d47e7 100644
@@ -745,6 +745,10 @@ static const struct of_device_id sdhci_am654_of_match[] = {
 		.compatible = "ti,am64-sdhci-4bit",
 		.data = &sdhci_j721e_4bit_drvdata,
 	},
+	{
+		.compatible = "ti,am62-sdhci",
+		.data = &sdhci_j721e_4bit_drvdata,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, sdhci_am654_of_match);
Signature · 1 line
2.17.1
#1 lore raw
Quoted 8 lines · Aswath Govindraju

Add support for the controller present on the AM62x SoC.

There are instances:
sdhci0: 8bit bus width, max 200 MBps
sdhci1: 4bit bus width, max 100 MBps
sdhci2: 4bit bus width, max 100 MBps

Quoted 5 lines

The PHY used for 8 bit instance is same as the PHY for the 4 bit instance. Therefore, introduce a new bus width independent compatible for AM62 SoC that uses the driver data required for 4 bit instance.

Applied for next, thanks!

Kind regards
Uffe

Quoted 22 lines
---
 drivers/mmc/host/sdhci_am654.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/host/sdhci_am654.c +4 -1
index b4891bb26648..e54fe24d47e7 100644
@@ -745,6 +745,10 @@ static const struct of_device_id sdhci_am654_of_match[] = {
                .compatible = "ti,am64-sdhci-4bit",
                .data = &sdhci_j721e_4bit_drvdata,
        },
+       {
+               .compatible = "ti,am62-sdhci",
+               .data = &sdhci_j721e_4bit_drvdata,
+       },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, sdhci_am654_of_match);
--

2.17.1