From patchwork Thu Dec 28 06:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Soo X-Patchwork-Id: 759072 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7948063AB; Thu, 28 Dec 2023 06:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id CE72724DBFD; Thu, 28 Dec 2023 14:53:30 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:30 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:25 +0800 From: Alex Soo To: Ulf Hansson , Adrian Hunter , Yangtao Li , Andy Shevchenko , Linus Walleij , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing CC: , , , , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Alex Soo 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> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag 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-jeeheng.sia@starfivetech.com/ [2] https://lore.kernel.org/lkml/20231206115000.295825-1-jeeheng.sia@starfivetech.com/ [3] https://lore.kernel.org/lkml/20231221083622.3445726-1-yuklin.soo@starfivetech.com/ 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