Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp152122lqt; Mon, 18 Mar 2024 04:29:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHIlAzOo0DEh3NfGpaZxV6qklxu3UdqdhDEWECkaHJydDdK2narLDQlg8o1BZ6mH/Oz5prY0ijli7YBauN+Q90zT5ENJBkDaH3PYP3TQ== X-Google-Smtp-Source: AGHT+IH+Bwu1nrtdVOtBfhJi4DEURy14LyMLShJU7cvyL8EyIaWy7wcKf4cLPW9EVYnDq4ic+Rpe X-Received: by 2002:a17:906:538d:b0:a40:bff7:6e73 with SMTP id g13-20020a170906538d00b00a40bff76e73mr7931649ejo.36.1710761385005; Mon, 18 Mar 2024 04:29:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710761384; cv=pass; d=google.com; s=arc-20160816; b=frKeEDml6nA7g9MFs0BDD6ahJwUdfoHZJOYbfpMGQnvoMvfHium1EF55eAt96sIgnJ mqxOk8cgdngmybbD0Cuij6ecuyI+ezp2KG9vxguxRXjQd8mjAyAvzdtceFy9f+JzDUFs z3xDy9cTqthHrXsxy5tSaVPojq88msFMmoSCMrt6tqiCktNDyYK9l1K2Aaobp2jTEzOO JSUx5QYNosuEOGUxRyxfA4f9UXZwVuHhVOg3uhvcn1MAkV8ystQwxbqcA7kptCpJzYf2 BPaWKT2B2K2mdBdhZCDYg74JXGnBWuvazj6Ictq5myaYF1HSo0q2JjS2W+ebV4Wj/ooV XUHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fPi93EQJOtOF1SIPbtXkwwUeFSsxlifnbemepmyGbPk=; fh=7n4+NPeCftOHBws3NHRZdStfkzSDIiwomZv0onN+ZJg=; b=wTMeWQpA/a2y3EaP59JDorm+EMteY2mWiwbeEuZ6ypSi1ezTN1DD0vyuGMNfzA5dQA Ynepgg9r6eghLaKOvvZTCokJpMb/tiKTKdST579uPXL6EhMQA2S0uRTZjjfHSzHUSwEr L0obdmt1aqYMu+lL3nLdyunG/HVp5K2YNS2L8S4A7SGL+738SaJyJe6Wz9FEh/V+/7hF hIFYoMgv9QxWkmPje1hWaRmwQi8mUGT+SC/cHu/NGgD4mi+1Da1/kH/zCOizPW76Btxl Iddgwl0eKQC8SwqMItGb6gyF1j9SHaQiVx/H1UJ6vVCn1CeGQkknLzEFwCXosLB0Z5CV +eDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EwUSOlJQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ku7-20020a170907788700b00a4645257729si4257218ejc.527.2024.03.18.04.29.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 04:29:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EwUSOlJQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 B63D91F22E7F for ; Mon, 18 Mar 2024 11:29:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB63D36B11; Mon, 18 Mar 2024 11:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EwUSOlJQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5A4F38382; Mon, 18 Mar 2024 11:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710761375; cv=none; b=K6umvjPZ6jk5DvOpBrDuSAHTH9qZC9Z0NnE76SJT4rGhpJrBWtB2+vWtjnSGf7wUiKInQxXVr115Krc8/12zxf77ImYwANwvp2kUAMLYC5MIikQJJEgALHil3zt/8INHySEaAVBpwGKpRoILumBStnUicznPvN1ejRPyFLowg94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710761375; c=relaxed/simple; bh=CXvlbrCMPnb9yef1bDHrNzW1AMGOSDWEgQsKsUa5qHc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LZTFKPng8sel/b8ksCyi7cIM/hb4BSzgVtcA1c2bworRKA3WFXMo1L0FfA6AqT9l0zSuBVw1gvIP0ll/oIV7aVFSVrY3r+BgibP7JDqIjHVtRlLs4c0ilH0YDOEftU4tcoQB0FG3lJ3jKEIt+5bDHIKrahT1N51e3etG9tlpUWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EwUSOlJQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 823B5C433F1; Mon, 18 Mar 2024 11:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710761375; bh=CXvlbrCMPnb9yef1bDHrNzW1AMGOSDWEgQsKsUa5qHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EwUSOlJQToeinOU4wVaJ8RsNNPCwNRTr5UbDj/stk9hf2On2TMRZYI+wZYWkAtAU2 iCPiS9vB21HLx1IfjtzL3AJi18eTelDa2vZ07SCm+28NfsyCRB9xSIH/CIAtoTs8Ni LeiIbNbkUwB0eyvK8cbSi5KyL9adJb4XuNDEW2mAmeqX39Czpn9+iqPILYS9ktvpwk 98/hEUiYRCrcpuVIWA7KH6Of7Nq9+FXCXHuXpjOqOJuUuSmSqEF3kB1m+AgciRV9Rm /l71F4THAw/n7iaqjj4zXKFRnS8yZxoh9uLPcvCAoBuTVo144iu5P7Va85AEHImcQj 01Zh/sQtUkgZQ== Date: Mon, 18 Mar 2024 11:29:31 +0000 From: Conor Dooley To: Keguang Zhang 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 Subject: Re: [PATCH v6 1/2] dt-bindings: dma: Add Loongson-1 DMA Message-ID: <20240318-value-snide-8733098b9e76@spud> References: <20240316-loongson1-dma-v6-0-90de2c3cc928@gmail.com> <20240316-loongson1-dma-v6-1-90de2c3cc928@gmail.com> <20240317-exorcist-spectator-90f5acb3fe2a@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RdFJ9jAojuY1Z+9n" Content-Disposition: inline In-Reply-To: --RdFJ9jAojuY1Z+9n Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wr= ote: > > > 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.= 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 DMA > > controllers? > > > You are right. Loongson1 is a SoC family. > However, only 1A/1B/1C have DMA controller. You're missing the 1A then. >=20 > > > + > > > + 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? > > > + 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]$" --RdFJ9jAojuY1Z+9n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZfglmwAKCRB4tDGHoIJi 0myiAP9gqCVAPtwBo6/5Xq10Pb546e9hiXfet6M/dCcQh2nfTAD/ZGnnWlZC69Vs HL/FoR4cgDmA6m1mCAf54NbieojKPwc= =gd7t -----END PGP SIGNATURE----- --RdFJ9jAojuY1Z+9n--