Add driver for Cadence SD6HC SD/eMMC controller
From: | Alex Soo <yuklin.soo-AT-starfivetech.com> | |
To: | Ulf Hansson <ulf.hansson-AT-linaro.org>, Adrian Hunter <adrian.hunter-AT-intel.com>, Yangtao Li <frank.li-AT-vivo.com>, Andy Shevchenko <andriy.shevchenko-AT-linux.intel.com>, Linus Walleij <linus.walleij-AT-linaro.org>, Rob Herring <robh+dt-AT-kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt-AT-linaro.org>, Conor Dooley <conor+dt-AT-kernel.org>, Emil Renner Berthing <kernel-AT-esmil.dk> | |
Subject: | [PATCH 0/3] Add driver for Cadence SD6HC SD/eMMC controller | |
Date: | Thu, 28 Dec 2023 14:53:19 +0800 | |
Message-ID: | <20231228065322.1176351-1-yuklin.soo@starfivetech.com> | |
Cc: | <linux-mmc-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org>, <devicetree-AT-vger.kernel.org>, <linux-riscv-AT-lists.infradead.org>, "Paul Walmsley" <paul.walmsley-AT-sifive.com>, Palmer Dabbelt <palmer-AT-dabbelt.com>, Albert Ou <aou-AT-eecs.berkeley.edu>, Alex Soo <yuklin.soo-AT-starfivetech.com> | |
Archive-link: | Article |
Starfive JH8100 SoC consists of a Cadence SD/eMMC host controller (Version 6) with Combo PHY which provides DFI interface to SD/eMMC removable or embedded devices. This patch adds initial SD/eMMC support for JH8100 SoC by providing device drivers for Cadence SD/eMMC Version 6 host controller and Combo PHY. This patch series is depending on the JH8100 base patch series in [1], [2], and [3]. The relevant dt-bindings documentation has been updated accordingly. [1] https://lore.kernel.org/lkml/20231201121410.95298-1-jeehe... [2] https://lore.kernel.org/lkml/20231206115000.295825-1-jeeh... [3] https://lore.kernel.org/lkml/20231221083622.3445726-1-yuk... Alex Soo (3): dt-bindings: mmc: sdhci-cadence6: add DT bindings documentation mmc: sdhci-cadence6: add Cadence SD6HC support riscv: dts: starfive: jh8100: Add SD/eMMC device tree nodes .../devicetree/bindings/mmc/cdns,sd6hci.yaml | 65 +++ MAINTAINERS | 6 + arch/riscv/boot/dts/starfive/jh8100.dtsi | 34 ++ drivers/mmc/host/Kconfig | 11 + drivers/mmc/host/Makefile | 2 + drivers/mmc/host/sdhci-cadence6-phy.c | 384 +++++++++++++ drivers/mmc/host/sdhci-cadence6.c | 531 ++++++++++++++++++ drivers/mmc/host/sdhci-cadence6.h | 148 +++++ 8 files changed, 1181 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml create mode 100644 drivers/mmc/host/sdhci-cadence6-phy.c create mode 100644 drivers/mmc/host/sdhci-cadence6.c create mode 100644 drivers/mmc/host/sdhci-cadence6.h -- 2.25.1