Message ID | 20231228065322.1176351-1-yuklin.soo@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1841047dyb; Wed, 27 Dec 2023 22:54:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IER13KqmtVy3Yy/mgUxI8+aI8B3+Sdz+/bTgPBYbRc1fRQOMmlvlS+pwzWYUNxYYiE6bc62 X-Received: by 2002:a05:620a:2982:b0:781:5c46:1787 with SMTP id r2-20020a05620a298200b007815c461787mr3861491qkp.100.1703746444662; Wed, 27 Dec 2023 22:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703746444; cv=none; d=google.com; s=arc-20160816; b=VRe0AvVN7QuZHIMd7jjH7jsAubTh7dQY4cKxY3y6ge+8bSZvmGDNsP6P90YTtSW/KK 2jyrRdhfeipz5RScYvgXEwJRsw+8csJZiczFIWf/zxDzlPoZhjdv1vetmiby0Oe8PlE5 LT6M/OQ99XlGVAY4P9dndHTSpConASRQF+NBDT31I2mIdpkp8OsHdZVwML/v2OBPXvFl l2bWjrysLUeiwMYm5FVYMTPjd3oJ3dtolRP82p1ykQB+1Iv24294LQ/zpZrukuOVhwAc cOCwz26BBmxRvTbEnyymZZfBt2n913Po3x8S+uwPh4Tp39exTjhro4DT55hmO4z8ybGV SzMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=vOx7pRXg8ax8pL+4e6ZS6wxfMHnc0whKPj7ch/AcOcY=; fh=SujmxNWP6UUgOFmttKopM1tRLkthr7qfPRUP3RWwLJc=; b=z9LeFWllgWtQlqvrIDw5UYg9dQSExP1m62v+qxWnUDS2XewdK3N9qEPjfBmbJV3H5l YytyXmR99UMNe7tY9KaVxFx/tdEUyoy1KpeHB/VQZO6v95jp4TYEBviHJtaSIfRJwAEe PUKkCkS0mn5m6WWNIBFkawX9fwjW1/8X/Pun1T2g7Eh1yjCLAjUjOwr4CKUDtgahXXY4 a9y3+c5ZnfAn3iSzxrmgyRz4KKgKkUb5I0MkO9i13SOwJA4xeGPg4FQ3djxcVMbVCzxV VdSK2ng39UnwqnzAh+gVhysdbGR0nDyUjknICEO4oSe+L1VrOlPOjUmTE+2DzNq0Xkq8 h/pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e3-20020a05620a014300b0078155df8139si4923235qkn.442.2023.12.27.22.54.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:54:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12468-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7421D1C211F9 for <ouuuleilei@gmail.com>; Thu, 28 Dec 2023 06:54:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91826523F; Thu, 28 Dec 2023 06:53:48 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 <yuklin.soo@starfivetech.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Adrian Hunter <adrian.hunter@intel.com>, Yangtao Li <frank.li@vivo.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Emil Renner Berthing <kernel@esmil.dk> CC: <linux-mmc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-riscv@lists.infradead.org>, "Paul Walmsley" <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alex Soo <yuklin.soo@starfivetech.com> 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: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786507631651784278 X-GMAIL-MSGID: 1786507631651784278 |
Series |
Add driver for Cadence SD6HC SD/eMMC controller
|
|
Message
Alex Soo
Dec. 28, 2023, 6:53 a.m. UTC
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