Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp29987lqt; Sun, 17 Mar 2024 23:19:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKT9JCP1O6xmPB1ZSYpSA9XUzhD91VKHmCZjWlP+4/M0onqZZonCZiNXqEG/q6IY93HNQj9W79aPDicLI1c6O7++RpWEDnRM2HZzEjkw== X-Google-Smtp-Source: AGHT+IEfUJbCe86H/ai2BDiev3A5HqHrYYZmFwUCZd4oz0LotrYJjV8bn3ybf538QS0fouv2eqry X-Received: by 2002:a05:622a:2a0f:b0:430:aebb:4614 with SMTP id hc15-20020a05622a2a0f00b00430aebb4614mr11436133qtb.30.1710742776681; Sun, 17 Mar 2024 23:19:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710742776; cv=pass; d=google.com; s=arc-20160816; b=dVPWWPeetE53YL7AsvupInVQb6XBQTjkOacNLYsadNt7WFypJ1R95UJbErbyXGKQZB cDq5/9mOzbmT0dAh2YL4BMK/cb2snJXR98fsniOeA7PonXEkLorkAcetE9tFqIlIE2A9 o0055yvLV6gx2WG9Jd+M6qQUlsq4XDYNRwNNTAGEBceydq6ikJTKudbwoKCA/n4bQzyN 937RnBdPM4q8zhnHPc8jF13hPXvpQULhSCKb3NoTI7sEQQin9znWI7xyu3Ly5xN463QF NfIpSLmT52+RWRfi8rejom+fe2U01u+wTJ6UXg2gdsq3k3NWPVRzOTIQykppCWae0OuV aBkg== 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=1ucpTK5ikX0YK4SSOnWQlhYk2l25hLLVmLN0L3ZgMDk=; fh=1B+fKRYfhSSItc5SWbEQoDSC8xi27S9eXRBdg9h7vXo=; b=tSaIewWlGpIgqnlA3PvNB0CSChb8v6vZViNcYpuC1B+7MdLJRu2godJsQsh1D73XxA kt+q2E3Zh/Bw9NbDPHPnEcTmYARL5+ubk584IdrFJ0ozJBI4JR6GxA2myObCyDR6rxPX RsZtYRZv05KFKV1A3Gf6CMxe1tDW8aCGhbhEWwllt+XVH5+/eMZxTfWu3l8OOoViXyMh fULEu9fx/kmxUBjkTLL7k20UZm4Myvxth/PERU5EcnPP/09rfAQR2lvh2n69c+ZPcLyN FvXVmvyP9PolbRJz1Lb67XpOaw5E3kFu+YfgE3E6N9qVhwJLETqgXydF7nM51WY5aUce biBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YWRVEGTe; 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-105737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y6-20020a05622a120600b00430ac721df6si7405465qtx.508.2024.03.17.23.19.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 23:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YWRVEGTe; 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-105737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105737-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 561001C208E3 for ; Mon, 18 Mar 2024 06:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 202AD22F19; Mon, 18 Mar 2024 06:19:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YWRVEGTe" 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 9E38322F0E; Mon, 18 Mar 2024 06:19:06 +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=1710742748; cv=none; b=qRFDMblqd73d16YKQ2AmlWAjYY9YJtkLCigrIA5V3XfTqi8qB3UUi4lTYi4xvrGIQ8QdnsTS8Ana+u83sK+oh8N179EmqOnoQQeaQB2GOzjC+YE+XFgz13gqKzn3Iw6mbKKeJi5ZaSJ6xg2xipMj+j7k7fPcvpQtj5EXAmtxflY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710742748; c=relaxed/simple; bh=3UOolR8JHoqKDwxkh3gJR0lNhSxsx84z8zqGpiIaiuo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pxd9UzASns0T3RPFAodAGs2n+dngATTmUohmUONXzXxj/nvO3CCoEwiXJp0FPo1uTaHJObpoy3Ih+TxEGureEYZ7cVx4FVccrAB4i0/Lwy2B8jVngLsskmh3q7TpOWZxY5/HjZ/N7QV+henOQGiJnGfKq0XJ2OlBo+Gh3KiQgP8= 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=YWRVEGTe; 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-56a9f5694dcso338162a12.1; Sun, 17 Mar 2024 23:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710742745; x=1711347545; 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=1ucpTK5ikX0YK4SSOnWQlhYk2l25hLLVmLN0L3ZgMDk=; b=YWRVEGTeBuRaRas8cWKaokjXBPLecmqD7D2ORlzfoLew9qo209NHq30BGII4JH4tGg dWAOG0r8an90AkIfLImccY94cBUnFduLh9AypbB85Hl7rSSWd8ZVV8+yUH5axJNDSSRO BniLy13CuXrDpynhv9EQ1Fa9CKNklyiAY8QMbzvXzNpeGnhCLuaQdm8bmsL4CQmIZEu8 Vz8oLqReOAX7SmM0w+OCSJLHtn4ST8AXXMgmOQ7NPMhYDJakZOfTBuRSjVAj9XI/PyRg P/QOjN7yPWEA3PaD7/cpFAYAgCENXUP1aZwS9mBaN5/xdCbNv9OMkUwEroHVcH0+7D+F 8jyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710742745; x=1711347545; 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=1ucpTK5ikX0YK4SSOnWQlhYk2l25hLLVmLN0L3ZgMDk=; b=GIgJAAFnhNLGXe1JzZ0N+9dHVB9S3WKyPR1DS1EO4cEfy7HwpfyxBr47xjWqY3TjW0 m0pDUrcam1Tyf1WUSpVq6JeMAfl7/qgUlS6KPx/AaEsSN27NNRcgjkOeF3YGjCAhyX4b DfJER2a64JI3p/gE3hmS+h6xGRRAXGgvQSeU1WICp+BTX4OuJx7S2+1Qr+Z6yPaxXjJg MIRcebpdmIF126drNstYdQNB/t/95WsXdwMfYuM5/FgC/CY/mfZFkcAo+nLkD63kUUr0 YWG3eH2pBZnRfQ34kT1f7yb220K5B4pn5ZXMwPAHVG47RfKJqKvFQWpVfhf7w+RiBTgF TB0A== X-Forwarded-Encrypted: i=1; AJvYcCVs2Yrr7KchQCKLoko/Eo8eRsUwACPQC+iPnPbpJAMvG9kDZLLMHBZBRq9Ioe5MZ1n+tlmqVZARiZ/+2qALSIj5S1eOkp3khWXYHpDUvw78ikgHeOKc/3MwLK1RM5k4tRvb6LkFABpveHp+02tZAtu2h4rUXc1W3Y3xJDIvKVLYBHIvQ7FhV1pK13qJZtTCqgJFb15qSlnSSz9Xp9XUMq4= X-Gm-Message-State: AOJu0YwBASIg5p/N0KJ99hcPXJj4B1o1IDcIfGYSL3skjJAL3GF8Fmv9 pq1J6Oec0VFsQGS5F25zYDJuuf47htGb1FO1KlZXmcM8TPm4rl6hTnNKUVXRRuyDheCAbiCkagA jlbYdJxJVqIEDo7RuKAi5GtgTqvc= X-Received: by 2002:a05:6402:528a:b0:569:a0e9:3409 with SMTP id en10-20020a056402528a00b00569a0e93409mr981538edb.41.1710742744931; Sun, 17 Mar 2024 23:19:04 -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> In-Reply-To: <20240317-exorcist-spectator-90f5acb3fe2a@spud> From: Keguang Zhang Date: Mon, 18 Mar 2024 14:18:27 +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 Sun, Mar 17, 2024 at 10:40=E2=80=AFPM Conor Dooley wr= ote: > > On Sat, Mar 16, 2024 at 07:33:53PM +0800, Keguang Zhang via B4 Relay wrot= e: > > 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-dma.ya= ml 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 DMA > controllers? > You are right. Loongson1 is a SoC family. However, only 1A/1B/1C have DMA controller. > > + > > + 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. > > + 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 at > all. > Will change items to the following regex. interrupt-names: minItems: 1 items: - pattern: "^ch[0-2]$" Thanks! > Cheers, > Cono4. --=20 Best regards, Keguang Zhang