Devicetree
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: <yogo.0917.sabu@gmail.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>
Cc: "Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Thomas Gleixner" <tglx@kernel.org>,
	"Radu Rendec" <radu@rendec.net>,
	"Daniel Lezcano" <daniel.lezcano@kernel.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Ulf Hansson" <ulfh@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Russell King" <linux@armlinux.org.uk>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Linus Walleij" <linusw@kernel.org>,
	"Drew Fustini" <fustini@kernel.org>,
	"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	linux-mmc@vger.kernel.org, linux-doc@vger.kernel.org,
	soc@lists.linux.dev
Subject: Re: [PATCH RFC v3 10/13] mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver
Date: Thu, 3 Dec 2026 10:16:51 +0200	[thread overview]
Message-ID: <4c6e8177-bd68-4ee9-8554-abacf1e2039f@intel.com> (raw)
In-Reply-To: <20261127-at550-rfc-v1-v3-10-f2221008912b@gmail.com>

On 27/11/2026 12:13, Yuugo Yoneda via B4 Relay wrote:
> From: Yuugo Yoneda <yogo.0917.sabu@gmail.com>
> 
> Add a platform SDHCI host driver for the SiRF AT550 using programmed
> I/O, as CPU-to-controller DMA address translation is not yet validated.
> 
> Use sdhci_pltfm_init() with default platform ops and
> sdhci_pltfm_remove(), leaving bus width, clock limits, and
> card-discovery constraints to the device tree.
> 
> Signed-off-by: Yuugo Yoneda <yogo.0917.sabu@gmail.com>
> ---
>  MAINTAINERS                    |  1 +
>  drivers/mmc/host/Kconfig       | 10 +++++++++
>  drivers/mmc/host/Makefile      |  2 ++
>  drivers/mmc/host/sdhci-at550.c | 50 ++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 63 insertions(+)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 1164152dc..9d02a79a2 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -25858,6 +25858,7 @@ F:	Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
>  F:	drivers/clocksource/timer-at550.c
>  F:	drivers/input/touchscreen/at550-ts.c
>  F:	drivers/irqchip/irq-at550.c
> +F:	drivers/mmc/host/sdhci-at550.c
>  
>  SIS 190 ETHERNET DRIVER
>  M:	Francois Romieu <romieu@fr.zoreil.com>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index 79bfc425e..72e7c279a 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -1125,3 +1125,13 @@ config MMC_LITEX
>  	  module will be called litex_mmc.
>  
>  	  If unsure, say N.
> +
> +config MMC_SDHCI_AT550
> +	tristate "SiRF AT550 SDHCI host"
> +	depends on MMC_SDHCI_PLTFM && OF
> +	help
> +	  Say Y to enable the AT550 removable SD host using programmed I/O.
> +	  Firmware must configure the peripheral clock and pin multiplexing.
> +	  DMA address translation is not supported by this initial driver.
> +	  Card discovery and bus frequency are configured by the device tree.
> +	  To build as a module, choose M; it will be called sdhci-at550.
> diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
> index fd043afab..6f7b0dd14 100644
> --- a/drivers/mmc/host/Makefile
> +++ b/drivers/mmc/host/Makefile
> @@ -115,3 +115,5 @@ endif
>  
>  obj-$(CONFIG_MMC_SDHCI_XENON)	+= sdhci-xenon-driver.o
>  sdhci-xenon-driver-y		+= sdhci-xenon.o sdhci-xenon-phy.o
> +
> +obj-$(CONFIG_MMC_SDHCI_AT550) += sdhci-at550.o
> diff --git a/drivers/mmc/host/sdhci-at550.c b/drivers/mmc/host/sdhci-at550.c
> new file mode 100644
> index 000000000..c1f7399ad
> --- /dev/null
> +++ b/drivers/mmc/host/sdhci-at550.c
> @@ -0,0 +1,50 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/* Standard SDHCI PIO only: do not assume CPU/PCI DMA address equivalence. */

What has it got to do with PCI?

> +#include <linux/mmc/host.h>
> +#include <linux/module.h>
> +#include <linux/platform_device.h>
> +
> +#include "sdhci-pltfm.h"
> +
> +static const struct sdhci_pltfm_data at550_sdhci_data = {
> +	.quirks = SDHCI_QUIRK_BROKEN_DMA | SDHCI_QUIRK_BROKEN_ADMA,
> +	.quirks2 = SDHCI_QUIRK2_NO_1_8_V,

But you are already using "no-1-8-v" property

> +};
> +
> +static int at550_sdhci_probe(struct platform_device *pdev)
> +{
> +	struct sdhci_host *host;
> +	int ret;
> +
> +	host = sdhci_pltfm_init(pdev, &at550_sdhci_data, 0);
> +	if (IS_ERR(host))
> +		return PTR_ERR(host);
> +
> +	ret = mmc_of_parse(host->mmc);
> +	if (ret)
> +		return ret;
> +
> +	sdhci_get_property(pdev);
> +
> +	return sdhci_add_host(host);
> +}
> +
> +static const struct of_device_id at550_sdhci_of_match[] = {
> +	{ .compatible = "sirf,at550-sdhci" },
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(of, at550_sdhci_of_match);
> +
> +static struct platform_driver at550_sdhci_driver = {
> +	.probe = at550_sdhci_probe,
> +	.remove = sdhci_pltfm_remove,
> +	.driver = {
> +		.name = "sdhci-at550",
> +		.of_match_table = at550_sdhci_of_match,
> +		.pm = &sdhci_pltfm_pmops,
> +	},
> +};
> +module_platform_driver(at550_sdhci_driver);
> +
> +MODULE_DESCRIPTION("SiRF AT550 SDHCI PIO host");
> +MODULE_LICENSE("GPL");
> 


  reply	other threads:[~2026-12-03  8:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 10:13 [PATCH RFC v3 00/13] SiRF AT550 / YPL514si initial RAM-boot platform support Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 01/13] dt-bindings: vendor-prefixes: add Yupiteru Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 02/13] dt-bindings: arm: add SiRF AT550 and Yupiteru YPL514si Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 03/13] dt-bindings: interrupt-controller: add SiRF AT550 interrupt controller Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 04/13] irqchip: add SiRF AT550 interrupt controller driver Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 05/13] dt-bindings: timer: add SiRF AT550 system timer Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 06/13] clocksource/drivers/timer-at550: add SiRF AT550 counter and match timer Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 07/13] dt-bindings: input: touchscreen: add SiRF AT550 touchscreen Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 08/13] Input: add polled SiRF AT550 resistive touchscreen driver Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 09/13] dt-bindings: mmc: add SiRF AT550 SDHCI host controller Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 10/13] mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver Yuugo Yoneda via B4 Relay
2026-12-03  8:16   ` Adrian Hunter [this message]
2026-11-27 10:13 ` [PATCH RFC v3 11/13] ARM: at550: add SiRF AT550 platform support Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 12/13] ARM: dts: sirf: add SiRF AT550 SoC and Yupiteru YPL514si board Yuugo Yoneda via B4 Relay
2026-11-27 10:13 ` [PATCH RFC v3 13/13] ARM: configs: add at550_defconfig Yuugo Yoneda via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c6e8177-bd68-4ee9-8554-abacf1e2039f@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=daniel.lezcano@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=fustini@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=radu@rendec.net \
    --cc=rdunlap@infradead.org \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=soc@lists.linux.dev \
    --cc=tglx@kernel.org \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=ulfh@kernel.org \
    --cc=yogo.0917.sabu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox