Article View: org.kernel.vger.linux-mmc
Article #1Re: [PATCH v2 1/4] dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
From: Binbin Zhou
Date: Fri, 09 May 2025 01:22
Date: Fri, 09 May 2025 01:22
132 lines
8872 bytes
8872 bytes
Hi Conor:
Thanks for your review.
On Thu, May 8, 2025 at 11:01 PM Conor Dooley <conor@kernel.org> wrote:
>
> 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.
Yes, I forgot about this point, it will be renamed to
loongson,ls2k0500-mmc.yaml.
>
> > +$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
> >
--
Thanks.
Binbin
Technical Details
Message-ID:
<CAMpQs4LXvdd-=r15t2Fbm1xjQKBp8nvxQMR=UU7n0bXHS3MDHQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mailReferences:
<cover.1746581751.git.zhoubinbin@loongson.cn> <9b5a416143d5d5da7084f3a868cf01e6827cd653.1746581751.git.zhoubinbin@loongson.cn> <20250508-snagged-amber-432ed9bf3d41@spud>Show Full Headers
Complete Article Headers
Message-ID: <CAMpQs4LXvdd-=r15t2Fbm1xjQKBp8nvxQMR=UU7n0bXHS3MDHQ@mail.gmail.com>
Subject: Re: [PATCH v2 1/4] dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
Date: Fri, 9 May 2025 09:22:04 +0800
From: Binbin Zhou <zhoubb.aaron@gmail.com>
References: <cover.1746581751.git.zhoubinbin@loongson.cn> <9b5a416143d5d5da7084f3a868cf01e6827cd653.1746581751.git.zhoubinbin@loongson.cn> <20250508-snagged-amber-432ed9bf3d41@spud>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mail
Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DDB1BA53;
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49
ARC-Seal: ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1746753741; cv=none; b=By/HVePNzcgqa819vlB3LguqSYE7DKkjtLspiY0oitFygOEkoOifwIR0rHXfPC/ZSW5VKVgm7F1okizGZ4Xb7sBaDcyt4mFmWQEjwrrtKMjc518CQStbpGfYfLpEU/PkzVpog9tTPCgjGnPBEk3JziEZOjfk4vIN7EAKLlJny1s=
ARC-Message-Signature: ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1746753741; c=relaxed/simple;
bh=K4PGaR75ciFMqUOd832iToV1R6IR+RU5ebaSxi/j4Qw=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=biOE+1oeBqlAlpTxIjAhWjWfDTizDsIz9wF0F1PFfYo0XvTkPFxKdTaOS+vW4YoskNdYAT37OHqRyh82vLzGMEuPs1sqDmR4tObBkEga8XCQkHrlj9AyJbEm63sDlosnasysPS6dhAgNAM+CCQZzLqTyXyxD3zoYNOaoNpVMPgI=
ARC-Authentication-Results: ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OpnSyjbC; arc=none smtp.client-ip=209.85.208.49
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OpnSyjbC"
Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5fca7c14715so314059a12.3;
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1746753738; x=1747358538; darn=vger.kernel.org;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=urXW+BAEYO0CkFqXFETFIXtaSE/jSUmIp1lzCTyc1Ko=;
b=OpnSyjbCUV7VJEzq6CcZlTxeB7qoCeBPokq4t3sKCp+9jAmV1wBmt+RLacwXv52xIo
dRaUc+0euqsRY4pSiAe0UeWB9QfEPokFdjiDv+c75OpQkMqpf6hGdI8czX2HCUMo3q6R
Pf7shq8PcO8IY/5fq62Q3JO65FTOeH3C/vrzpZ16sadU06gtUkiCDzRZpjQROKp5Hmzr
6MfX3IQ7GHjGNGf/10ollDvatA/FeOOwrTeq0L9VycR8r6/DsRApPLWFnN5LJKA0hqD6
pKCgUI0oI2y26REYEDKKbF5KFcc6MDSMuTLrRgjtkLjZsrBQY8ddfJA2MDIV7RVO2HhD
yRhA==
X-Forwarded-Encrypted: i=1; AJvYcCUuTbnXX5lQiRzcMa4gHUr54luwLuITAtoJGU7KDPH+axGsD6y9/eKBSVNW4RY80EfIH7LLUIs123eD@vger.kernel.org, AJvYcCWuwO3cuaTW33GOkahnrJ99/w4S28PyjWwm5+U/y/oIorvP7GLgc7rSdTkI1QCP9wb2yPDBoY4UKFJB@vger.kernel.org
X-Gm-Message-State: AOJu0YztrRVrL/q6oxB1HDaaFH4+AtkD5KJcCVnblF9cz452FX6LNtUV
YDruw+2X/A+md523sGDha130f1GaJqvI03s/K3IVgEJkZkcVNd2FZflRFNyK+MGuE/Nc7QtHHcV
HYWFsbe1/3vxVFsafEgbcXixrsDZoPcuFeoMicg==
X-Gm-Gg: ASbGncvfOPCIGP3IMxBp65VXhLo0pc4BIrEr0+IeCScC43wJdZQCxcHHHPDgIj7dDsS
6PgUpIWbFM5gvkoGu3E3HlrJ6vXhVUeopwwH0xmxIjaTy5Q6pgkUBI/mjQPqt6lhbGG2G1Yel2m
pBT17LGDDBulyt67Me4WP1WTA=
X-Received: by 2002:a17:907:a08b:b0:acb:5583:6fe0 with SMTP id
a640c23a62f3a-ad218f46a45mr159357766b.15.1746753737638; Thu, 08 May 2025
Precedence: bulk
X-Mailing-List: linux-mmc@vger.kernel.org
List-Id: <linux-mmc.vger.kernel.org>
List-Subscribe: <mailto:linux-mmc+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-mmc+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
In-Reply-To: <20250508-snagged-amber-432ed9bf3d41@spud>
X-Gm-Features: AX0GCFszpYExKXqggR86Q3nXf_ADQFMcMy3VvuQnohu3_YCcAHHZlnBuOYM2quk
To: Conor Dooley <conor@kernel.org>
Cc: Binbin Zhou <zhoubinbin@loongson.cn>, 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
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Newsgroups: org.kernel.vger.linux-mmc,dev.linux.lists.loongarch,org.kernel.vger.linux-devicetree