From: Conor Dooley <conor@kernel.org>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Huacai Chen <chenhuacai@kernel.org>,
Xuerui Wang <kernel@xen0n.name>,
loongarch@lists.linux.dev, devicetree@vger.kernel.org,
linux-mmc@vger.kernel.org
Subject: Re: [PATCH v2 1/4] dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
Date: Thu, 8 May 2025 16:00:59 +0100 [thread overview]
Message-ID: <20250508-snagged-amber-432ed9bf3d41@spud> (raw)
In-Reply-To: <9b5a416143d5d5da7084f3a868cf01e6827cd653.1746581751.git.zhoubinbin@loongson.cn>
[-- Attachment #1: Type: text/plain, Size: 3356 bytes --]
On Wed, May 07, 2025 at 03:28:05PM +0800, Binbin Zhou wrote:
> Add the Loongson-2K SoC's SD/SDIO/eMMC controller binding with DT schema
> format using json-schema.
>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> ---
> .../bindings/mmc/loongson,ls2k-mmc.yaml | 69 +++++++++++++++++++
> MAINTAINERS | 6 ++
> 2 files changed, 75 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mmc/loongson,ls2k-mmc.yaml
>
> diff --git a/Documentation/devicetree/bindings/mmc/loongson,ls2k-mmc.yaml b/Documentation/devicetree/bindings/mmc/loongson,ls2k-mmc.yaml
> new file mode 100644
> index 000000000000..97a0853399f1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mmc/loongson,ls2k-mmc.yaml
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mmc/loongson,ls2k-mmc.yaml#
Filename matching a compatible please.
Otherwise this looks okay to me.
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: The SD/SDIO/eMMC host controller for Loongson-2K family SoCs
> +
> +description:
> + The MMC host controller on the Loongson-2K0500/2K1000 (using an externally
> + shared apbdma controller) provides the SD and SDIO device interfaces.
> +
> +maintainers:
> + - Binbin Zhou <zhoubinbin@loongson.cn>
> +
> +allOf:
> + - $ref: mmc-controller.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - loongson,ls2k0500-mmc
> + - loongson,ls2k1000-mmc
> +
> + reg:
> + items:
> + - description: Loongson-2K MMC controller registers.
> + - description: APB DMA config register for Loongson-2K MMC controller.
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + dmas:
> + maxItems: 1
> +
> + dma-names:
> + const: rx-tx
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - dmas
> + - dma-names
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/clock/loongson,ls2k-clk.h>
> +
> + mmc@1fe2c000 {
> + compatible = "loongson,ls2k1000-mmc";
> + reg = <0x1fe2c000 0x68>,
> + <0x1fe00438 0x8>;
> + interrupt-parent = <&liointc0>;
> + interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk LOONGSON2_APB_CLK>;
> + dmas = <&apbdma1 0>;
> + dma-names = "rx-tx";
> + bus-width = <4>;
> + cd-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 96b827049501..5bf74aa63299 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -13935,6 +13935,12 @@ S: Maintained
> F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml
> F: drivers/soc/loongson/loongson2_guts.c
>
> +LOONGSON-2 SOC SERIES MMC/SD/SDIO CONTROLLER DRIVER
> +M: Binbin Zhou <zhoubinbin@loongson.cn>
> +L: linux-mmc@vger.kernel.org
> +S: Maintained
> +F: Documentation/devicetree/bindings/mmc/loongson,ls2k-mmc.yaml
> +
> LOONGSON-2 SOC SERIES PM DRIVER
> M: Yinbo Zhu <zhuyinbo@loongson.cn>
> L: linux-pm@vger.kernel.org
> --
> 2.47.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-05-08 15:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 7:28 [PATCH v2 0/4] LoongArch: Introduce the Loongson-2K MMC host controller driver Binbin Zhou
2025-05-07 7:28 ` [PATCH v2 1/4] dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding Binbin Zhou
2025-05-08 15:00 ` Conor Dooley [this message]
2025-05-09 1:22 ` Binbin Zhou
2025-05-07 7:28 ` [PATCH v2 2/4] mmc: loongson2: Add Loongson-2K SD/SDIO controller driver Binbin Zhou
2025-05-08 10:13 ` kernel test robot
2025-05-13 2:09 ` kernel test robot
2025-05-19 11:03 ` Ulf Hansson
2025-06-05 3:03 ` Binbin Zhou
2025-05-07 7:28 ` [PATCH v2 3/4] dt-bindings: mmc: loongson,ls2k-mmc: Add compatible for Loongson-2K2000 Binbin Zhou
2025-05-08 15:00 ` Conor Dooley
2025-05-07 7:28 ` [PATCH v2 4/4] mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driver Binbin Zhou
2025-05-19 11:17 ` Ulf Hansson
2025-06-03 12:54 ` Binbin Zhou
2025-06-10 12:52 ` Ulf Hansson
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=20250508-snagged-amber-432ed9bf3d41@spud \
--to=conor@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@xen0n.name \
--cc=krzk+dt@kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=robh+dt@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/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