Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3787072rdb; Wed, 27 Dec 2023 22:53:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIjmdLZFzS8i5mM/8Lix+HufZg7Ywr+He3HMyI9ab030d5uoVFSIJckz/GwSknf5l0scQm X-Received: by 2002:a05:620a:24d3:b0:781:7994:6ebc with SMTP id m19-20020a05620a24d300b0078179946ebcmr115706qkn.97.1703746436635; Wed, 27 Dec 2023 22:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703746436; cv=none; d=google.com; s=arc-20160816; b=LiCwOLVqfeymyntkNO1Ziv4B/lwuBFCARN9Vfwntie7z58UJzxvCQ+Xh7437pSHZwz Ynbd85Rd/lON9n23VXSfN7YX02pvI6F/+HOzKEecJ+XXeTAnCU3vchBcDl0fqEuBOQd6 3dApNlROtNp4yaUKcIqHQtWzD5plW8oZP/AAmPZ+Ad2MIAJkerpqmuYHcMYwRGKccow4 iJ7eWoiWWl4nRQgIdMUfID0ypfO95VX78RpEWwMdAboG8hJxtKooatkLc0Lvz6epWfjn alFq5x66uXna1lGrA1RR5uRngt/U4z2NkBH8f1PFZkR4GuW3EqZOQI5RyC8glnxczNuv l8lQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12468-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id de11-20020a05620a370b00b0077f56993a3esi17327676qkb.377.2023.12.27.22.53.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12468-linux.lists.archive=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 5C6991C21025 for ; Thu, 28 Dec 2023 06:53:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95D433D8E; Thu, 28 Dec 2023 06:53:47 +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 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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@starf= ivetech.com/ [2] https://lore.kernel.org/lkml/20231206115000.295825-1-jeeheng.sia@star= fivetech.com/ [3] https://lore.kernel.org/lkml/20231221083622.3445726-1-yuklin.soo@star= fivetech.com/=20 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.yam= l 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 --=20 2.25.1