Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp605793lqt; Mon, 18 Mar 2024 19:17:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3cGiulGYLtmTUh4HZCym9rSRa5gWeQWjgg1rN/+c3QefqDZDAowXivQxBDSjKw2oTnNjd24iftSY8HI+FfOYcWSYowrimjXFzo7603w== X-Google-Smtp-Source: AGHT+IGkzmwNJPwJXLt++1y6UXSVS8dMS/6445b3jsH1eiLxoABQyM6oaPZ43HrYqNBRuBRlIhxu X-Received: by 2002:a05:6402:3901:b0:568:b9cf:3a4b with SMTP id fe1-20020a056402390100b00568b9cf3a4bmr5799283edb.35.1710814670498; Mon, 18 Mar 2024 19:17:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710814670; cv=pass; d=google.com; s=arc-20160816; b=TQ3ETDEjrYh6nobPVn7RlFDG6RqysOxpv5j4nY3LrPdLrkgQCKc3VRJ9WqJaFuBFiW SgFbWpmCUYy9f8iQv7+r/HiHIruldxzMwE6aKSWwftSwRcUY1VRiJmifz7IoaD+2cOKc K1Js3mkM3HLAacxNoIEiOGzkW9bd+LDqvvhJ9D8WvgzjeU7h1IkGdUvpug1losFt+GWT hNAwqTSs7i6g9c6xhHZ9J7GcSFGu7GX42xdiYoHXkdj/Ji6YwdOHkG9Q0yuII33+dxO8 0yCwSg8RrRZbsRsYA14M6C4QKTmYvyMklgVJMNTUh0LMA8JEUs0iA+bqwQ84g3sRV4gJ mriw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=06RPO2L6a0D0jVlzae2rRfq/gkYIWURzVjCd+HP4+0E=; fh=HwfX/7mUpAXlOaRhG412JuTBB14qfJ5mgbaCbBqG7fs=; b=jwf3e/L572yjXhs5nruDMKjzLoGTE8JP/HQEGBdZu2Qgnw1ddAV8jWH3Q0JWcIF9uw BLmOMWBqC3VAcBlpWfIUbsdri8fA5+HZY8uzYUzsV1OXlVOfVEFAglJ3MrYYetGbWr06 mS/c26pA+J5z5iJvHPHor5poERKaOiUAzUcigzeN+NDLVRhSE7P9gk+eclydsC21Sfsp 6t9xvppraPIKDNpFxKykui9dQuN2ciWFHkN/Ua0MJ/C7x2OGjrMaZqA9Eo1gzQ+OUaOk yUyh6NZDenGPES3MJUYuoFkOpZR813mKDMGQpJhHzycODHZR5AcsgfQJeOEJWPJEKFm/ 9d1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KZFjJ969; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-106912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a6-20020a05640213c600b0056a2e369c91si1331866edx.287.2024.03.18.19.17.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 19:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KZFjJ969; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-106912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 181CA1F21EC7 for ; Tue, 19 Mar 2024 02:17:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF99164CFC; Tue, 19 Mar 2024 02:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KZFjJ969" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 5A075657A0; Tue, 19 Mar 2024 02:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710814659; cv=none; b=mrhsrQXh8uvL0iF59tbYVuKsAbsH/je8raN9/Yh4QsADuOXAVgtq19pGImuHrluvmUvfcCsv2zCfbdyh1to8ftBujtHzouQtxgZ/KIveea5g2vJJnV5UYWPa9B+WQsvN9Vfgnx6uDaMOqIh3T2DVCYuEBbt08w9qRtQM8T/lCaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710814659; c=relaxed/simple; bh=CsG3vmxbvFtQ7kIVlmN4FWQj2lM1tpF+IhDqH5t4bhY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mmYlz3NXRxgCXxbpPpPyXJNsbld10hPzTsFxg2pbMecVZLcthphggDvSGZc/gZH4hGECzOY9pCGheHu4HJFSNANqzNCNVNgaLwYUfcjprWf1OE9/BFXtQAoxfCUiJF1UMegbphxHv5h5Qgqbjq7+BX1CpxqjN8bkg7z+0bKZ36Q= 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=KZFjJ969; arc=none smtp.client-ip=209.85.208.50 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 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56b95efd37fso139999a12.0; Mon, 18 Mar 2024 19:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710814656; x=1711419456; 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=06RPO2L6a0D0jVlzae2rRfq/gkYIWURzVjCd+HP4+0E=; b=KZFjJ969KLoF+Fo7KMcYjYfpBk/3EYivKCa82GXPi+UO4yhOnPOYHBGN7V26gTnbGa gkT5Y2zIpMwdE6Wu4GVg1rSkUJxDBV6fsfwaIbw4Z01H/U672NrCjXN91scd0g3MCTDw XQrGMIJvmtfZotVVOLN+/nyH1BatuEdd1/HS89cKPH7idIzz275GORL7YAHLu9Vba4RM wOsa+DTm/XTOH+33p4tM4/IMptrORoRKjT9JD8JePI0Lp2XLtbkBU4N4irV6pT3xT5rt RzUagQh+rzWlgMKXLJLzCvtmCZKpsyYJ9c+6ascDTfjJYNO+Wz+1NUBuqqbtjo24BDtC jp2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710814656; x=1711419456; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=06RPO2L6a0D0jVlzae2rRfq/gkYIWURzVjCd+HP4+0E=; b=BD5wcDvDGYRNA98Px4JxxfDqSahy5QuENOGd50jz+3y6zTkrygtRK5JAwj27nqb0AH 0saANWjKedWA5xhjZ4jhif8dFUwaWdiCLOSBkLxworf9Gwl3T8hKrdeJB56vb1usxaRW 5o9Lq90X8Q+upnZcxSsLyj9aua95jElCHR6yJ2F80pE/5Prj2L7yBmnG53xGR+fWgNFa CE/hnPLJsznHfHmgTfguh8Hawm3/GG2yysIa8fpTRzWL+cp4H4LYeF+NGtIb2E1NO989 74yjWRC350qpwkSkzeWq5JeO873nSQIUmE9jAm3QKDpn7IRs7eI3vEILp9HliHaLkGQ8 VUTg== X-Forwarded-Encrypted: i=1; AJvYcCWYLyNqSSx6N4cYffoYTMUheOEgZkhulfqv47GXKVV5FAEH0rwt1ZW95iZIjzZuX58woln7SfuxmTUxL7EdLwX/uG+yA/+bLkTppqTp6RxLHwAiV/7x6omERfgNJHdPa5YKDbOFHU9JfsKJEY/OC4hQm8TCbK/NHOQIaADUlVRGe0pHMQyCC2UVe651beaWuTfcALjSbI7hFZvQTXCWTas= X-Gm-Message-State: AOJu0YxdwxmW7hcINXt+KimKQRcSXY9jEIQ7sH/JHHSCm/72qA4AmcHN RjIGZKk+8nmLbGLqLrAWblln/oYzaecpW+GKR8n25cHjJjvjivVkXTZvlHZQLzGyZeVZoJaxgm+ QfULUh+quc8xyq6ajBJCkPHjzXF8= X-Received: by 2002:a50:cd87:0:b0:564:f6d5:f291 with SMTP id p7-20020a50cd87000000b00564f6d5f291mr8897173edi.34.1710814655306; Mon, 18 Mar 2024 19:17:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> <20240316-loongson1-dma-v6-1-90de2c3cc928@gmail.com> <20240317-exorcist-spectator-90f5acb3fe2a@spud> <20240318-value-snide-8733098b9e76@spud> In-Reply-To: <20240318-value-snide-8733098b9e76@spud> From: Keguang Zhang Date: Tue, 19 Mar 2024 10:16:59 +0800 Message-ID: Subject: Re: [PATCH v6 1/2] dt-bindings: dma: Add Loongson-1 DMA To: Conor Dooley Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2024 at 7:29=E2=80=AFPM Conor Dooley wro= te: > > On Mon, Mar 18, 2024 at 02:18:27PM +0800, Keguang Zhang wrote: > > On Sun, Mar 17, 2024 at 10:40=E2=80=AFPM Conor Dooley wrote: > > > > > > On Sat, Mar 16, 2024 at 07:33:53PM +0800, Keguang Zhang via B4 Relay = wrote: > > > > From: Keguang Zhang > > > > > > > > Add devicetree binding document for Loongson-1 DMA. > > > > > > > > Signed-off-by: Keguang Zhang > > > > --- > > > > V5 -> V6: > > > > Change the compatible to the fallback > > > > Some minor fixes > > > > V4 -> V5: > > > > A newly added patch > > > > --- > > > > .../devicetree/bindings/dma/loongson,ls1x-dma.yaml | 66 ++++++++++= ++++++++++++ > > > > 1 file changed, 66 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/dma/loongson,ls1x-dm= a.yaml b/Documentation/devicetree/bindings/dma/loongson,ls1x-dma.yaml > > > > new file mode 100644 > > > > index 000000000000..06358df725c6 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/dma/loongson,ls1x-dma.yaml > > > > @@ -0,0 +1,66 @@ > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/dma/loongson,ls1x-dma.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Loongson-1 DMA Controller > > > > + > > > > +maintainers: > > > > + - Keguang Zhang > > > > + > > > > +description: > > > > + Loongson-1 DMA controller provides 3 independent channels for > > > > + peripherals such as NAND and AC97. > > > > + > > > > +properties: > > > > + compatible: > > > > + oneOf: > > > > + - const: loongson,ls1b-dma > > > > + - items: > > > > + - enum: > > > > + - loongson,ls1c-dma > > > > + - const: loongson,ls1b-dma > > > > > > Aren't there several more devices in this family? Do they not have DM= A > > > controllers? > > > > > You are right. Loongson1 is a SoC family. > > However, only 1A/1B/1C have DMA controller. > > You're missing the 1A then. > Will add 1A. > > > > > > + > > > > + reg: > > > > + maxItems: 1 > > > > + > > > > + interrupts: > > > > + description: Each channel has a dedicated interrupt line. > > > > + minItems: 1 > > > > + maxItems: 3 > > > > > > Is this number not fixed for each SoC? > > > > > Yes. Actually, it's fixed for the whole family. > > Then why do you have minItems: 1? Are there multiple DMA controllers > on each SoC that only make use of a subset of the possible channels? > All channels are available on each SoC. Sorry, I will remove the minItems. Thanks for your review! > > > > + interrupt-names: > > > > + minItems: 1 > > > > + items: > > > > + - pattern: ch0 > > > > + - pattern: ch1 > > > > + - pattern: ch2 > > > > > > Why have you made these a pattern? There's no regex being used here a= t > > > all. > > > > > Will change items to the following regex. > > interrupt-names: > > minItems: 1 > > items: > > - pattern: "^ch[0-2]$" > --=20 Best regards, Keguang Zhang