Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp158496lqo; Wed, 27 Mar 2024 09:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU34CYDvy1/LXCg1LNzdoKDlyeLC79Q+cwPJtS4yTxFndxYyJVt6puFfGzO3zOtX4DJiO7eHfw4jPrKKo71D+YvnFifyWYxF4yzJV9gg== X-Google-Smtp-Source: AGHT+IHgujc8vyZzmGzE0V6NNyQ6OCkwzmIiQLTx7sfQVdvcxZYHxb4k7CpTNH1tAoGP5myTYtlS X-Received: by 2002:a05:620a:44c4:b0:789:eeb7:2273 with SMTP id y4-20020a05620a44c400b00789eeb72273mr26293qkp.49.1711556619382; Wed, 27 Mar 2024 09:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711556619; cv=pass; d=google.com; s=arc-20160816; b=WBH9Fxti2hrsXArraTC1GXBlAn3AZfVfYJx0ZtNTWFXOpdV2yU5nk7GLrb+VJ9x3Z2 13m+0/j2D+q1QwqI7gY+6aLTieE30K0452sTCz/bcgZNvW/ZMCcFcmC92bzpoh2o16wb mmVIjD/9AauL+2cOVO3rNAoghUZ2ExTfL07m3+yQSPhsMDrZSLoyC4KEiRCOa+kCjDFP KdltLaJE3F9PBhwmzwZ0vN8iqpnOCVkoP4Zc1gqyDO1X4EwJyoxIUkbQbF0pyf2CURSU cwCu5mVuIPfcSYxjanGSwcIHFD3W+Mgulogzb4fwxrsXW/movEEhpPo0xNAm1ycIJUJ6 gn3Q== 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=Y8nj287o5ok6ayEf9TDAw7XX2LkOJyUpBzHjdLK6d5M=; fh=RYbGtF6kXntaT3P5jA7qw47GYJp/Vv0SNQKGFOrQbjU=; b=FNIJ79AznJOXM8lAU70W+kDiZXPeGvf8OgMPbQTjLJwTootMSb+b56hE/7tNM3Jw/I 7ADatAxIYUD6WZgkPY2CRId+0zgj9BeNyHGsWg77qZZPKH3LxKf8BeS9/w31e1HNoKKM FXMiJhqhJ3NTakTQQEkmdT6Yn+UavkJpqB9ed5Zyns4DONa0B25OGSwSaCEnOjFf/b+J k3RzhQbc3P36v5o7+ZLgTs4yI8C0p0jptOr9b/87vunkhi020xJ63uGQT+cDhFV9HTFt hzZFAbvEr/rQtiAMOMthLoXYb+g/5f5NfqDN+IzsH7POG4U/AFS90aUoJYL35/eoKKOK MzCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=antVw9bE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id xy10-20020a05620a5dca00b0078a5e461457si5237438qkn.703.2024.03.27.09.23.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=antVw9bE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121626-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121626-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 128BE1C31F49 for ; Wed, 27 Mar 2024 16:23:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA856130E32; Wed, 27 Mar 2024 16:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="antVw9bE" 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 CA7CC1DFFB; Wed, 27 Mar 2024 16:23:32 +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=1711556612; cv=none; b=eA7b//gJtDflaUmh8A4nZ2Z5O9JkC5Ew8CHFDuzl3WXwypSJrPMWK/d6iDxTIZ6o4z3DQ5L3gqGxM6/GXXWt7p9eJj5mknNzAm7kN5TjQ1W9FkMk108fEv4YGerg6D7OKmfNyPrLtiUfFqYvuhNe66UbFvEj7tHiyRJQh2Jeeys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711556612; c=relaxed/simple; bh=vfPOVeol10GjjIU8ukwbAq6kQFpShA89H7TmSgKAE5Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E0blSf1DfDllbmS4H6rWK4LwLDaenwsj1ELUQoWueV3GQOSVXVjEbRc595kAnFoqWcd9vd9nXhnJFpjNn47L0FJmcfT2fIwO//bK0p/nh7d3FTC+dKW0X4rETIcvJ0Pmzhbzuu05PpCgfd+W7XndIva83jtK7KitmqfGbesAYm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=antVw9bE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AB43C433F1; Wed, 27 Mar 2024 16:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711556612; bh=vfPOVeol10GjjIU8ukwbAq6kQFpShA89H7TmSgKAE5Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=antVw9bEudlvuPfsZTc4U5PdrQ+1Sv1sJpEBD79eHkcA23MRs6E/67Vh7v+GGzwo+ 80UP4CDdyBynFZZhYS1gJUTAbd+NUya50+NYF1FBrPS00OrWRulINJ0v0EE/nmS11I DF7KsVEjQlTZO9kWv5UB8IKfVmCtYDlJtrw6jUBsqG57YiNWV2uFrbP8gu1aOmOOxz PC9bo9vCsmMFKgQRLe2bRFKUnJ7DU0OYP/sGcUsuGqrY3KVmhvEQY+wJKOMDMW6c1j T/OHcS6tovHgtDXoyok9M7rsKgp4a1uRTLEQKAEsfWTDJFjn83qB8e5Qj//O59P45I XjlIEAxaflZwg== Date: Wed, 27 Mar 2024 16:23:28 +0000 From: Conor Dooley To: keguang.zhang@gmail.com Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: Add Loongson-1 NAND Controller Message-ID: <20240327-bonehead-handlebar-1ca8dab95179@spud> References: <20240327-loongson1-nand-v6-0-7f9311cef020@gmail.com> <20240327-loongson1-nand-v6-1-7f9311cef020@gmail.com> 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="yDH5t1GCumTzOBnO" Content-Disposition: inline In-Reply-To: <20240327-loongson1-nand-v6-1-7f9311cef020@gmail.com> --yDH5t1GCumTzOBnO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024 at 06:43:59PM +0800, Keguang Zhang via B4 Relay wrote: > From: Keguang Zhang >=20 > Add devicetree binding document for Loongson-1 NAND Controller. >=20 > Signed-off-by: Keguang Zhang > --- > Changes in v6: > - A newly added patch > --- > .../devicetree/bindings/mtd/loongson,ls1x-nfc.yaml | 66 ++++++++++++++++= ++++++ > 1 file changed, 66 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml= b/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml > new file mode 100644 > index 000000000000..2494c7b3b506 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/loongson,ls1x-nfc.yaml > @@ -0,0 +1,66 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/loongson,ls1x-nfc.yaml# Please make the filename match the compatible. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson-1 NAND Controller > + > +maintainers: > + - Keguang Zhang > + > +allOf: > + - $ref: nand-controller.yaml > + > +properties: > + compatible: > + oneOf: > + - const: loongson,ls1b-nfc > + - items: > + - enum: > + - loongson,ls1a-nfc > + - loongson,ls1c-nfc > + - const: loongson,ls1b-nfc > + > + reg: > + maxItems: 1 > + > + dmas: > + maxItems: 1 > + > + dma-names: > + const: rxtx If you only have one dma, why do you need a dma-names entry for it? Looks fine to me otherwise though, COnor. > + > +patternProperties: > + "^nand@[0-3]$": > + type: object > + $ref: raw-nand-chip.yaml > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - dmas > + - dma-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + nand-controller@1fe78000 { > + compatible =3D "loongson,ls1b-nfc"; > + reg =3D <0x1fe78000 0x40>; > + > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + dmas =3D <&dma 0>; > + dma-names =3D "rxtx"; > + > + nand@0 { > + reg =3D <0>; > + nand-use-soft-ecc-engine; > + nand-ecc-algo =3D "hamming"; > + }; > + }; >=20 > --=20 > 2.40.1 >=20 >=20 --yDH5t1GCumTzOBnO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgRH8AAKCRB4tDGHoIJi 0kj7AP42f1IGw8/uELOCbVdp8rqrSHtY1cdHyVGBqH4jo8IuMwD/U9azUbyS3Hm1 gd8v7u0uXHNq+KiSBtDQOh2Gsg6REQs= =2rtW -----END PGP SIGNATURE----- --yDH5t1GCumTzOBnO--