Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2537137rdb; Wed, 4 Oct 2023 04:32:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnsNi2/QS4bIg3RD7ROAGPX5Y43wwiTPIOo0atFCy6uXE+z9kTvf5Y7q8nV30ptUfgmSGv X-Received: by 2002:a17:903:1247:b0:1c4:3cd5:4298 with SMTP id u7-20020a170903124700b001c43cd54298mr2327487plh.18.1696419164049; Wed, 04 Oct 2023 04:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696419164; cv=none; d=google.com; s=arc-20160816; b=cTSNabty6LX07CkOP44GDDjlta4d7ubf62PTaT+wJuetKIlsiiYc+1wndG/0sf7XiI v/54D1igR9TYme2Qsl3YehSuSYHwR1kUkTA6QUBpQ3bNUE/Yf8vf7b9BTSdPEWtTM2Pr h6PWaB+gxEGqbB9NOgiK2dtmeinIBQZTAVrRKRLCkLj+NOubNP37pZ/wp5AMdPatMgT9 +w73w1maU560CPnogKS8BPsmFqZuduBCTSEOQbRrKYMYi80Mg2495E+ig5Q+ZPxWDabz VPtXkL9y3Smke7o4j5tuRLIwVY+zVqLDw0jDh+CaXmwuVy3uR6DYEAOKInNYwoM0k61j 3aSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=jiGdNZliZJFxAotjLXsFjydngfAocFp3/JRLhQoNFiw=; fh=pd3aqlvYC874N5JNoRE0i3O/qNh7EH7kVFuAo2Gge6M=; b=aGcRXx60VSwDEgXxvoLv9jTdmzKdIPHHwU8PA69rCpDnBYDRXUnKNhMgGMoL5k4skV JaCbyul9QXv96VebVAY8TmaPEUjvBkPIW0LKoN6qHzSfn3cVuPsuLAiTTHPyGfjWzkTg UCtBmribGUf6vaeToX/v8tFUKs5N7aTswbp0a104xg00YY8BZLW3x40q+H3aXhtCKcpf 0slPIfUIv/GFtLzA9U/93IHL5Stzuv5Req6NlIMlzFrFhsZUbKJkg1WXKRGixfZ79nhn yCPjXiWzRH3btMhtGjSAkbVZSXIJGs01QPodLF7jlYScaE3bbuGuMiRyFyDQQZcuWICh Iz8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Q2yyudk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id la7-20020a170902fa0700b001c61af1e683si3286612plb.641.2023.10.04.04.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:32:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Q2yyudk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 24A1B81A8A11; Wed, 4 Oct 2023 04:32:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242218AbjJDLce (ORCPT + 99 others); Wed, 4 Oct 2023 07:32:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233037AbjJDLce (ORCPT ); Wed, 4 Oct 2023 07:32:34 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A3690; Wed, 4 Oct 2023 04:32:29 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id D535160004; Wed, 4 Oct 2023 11:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696419148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jiGdNZliZJFxAotjLXsFjydngfAocFp3/JRLhQoNFiw=; b=Q2yyudk2DeopG4p/IJKJNvz/uUKI7L36/M+bfZvjO2okJ7jIuoKVMEUwQ6pbqN6uwNgGm3 ew+0dgaPuzhqPTV/Z6kO1X/4Ll3VjaXd3wP/96HWhhfZYHXlIA8Cv0pm33+uzmJoK3vJ4j 2/RCWmSDgs4fvpAl5v82tLPeg5ASmofwjH2wKpcoUUwVXaSc5Lu9NyS+mOFqKhSFUoTS7Z F1AxubzkvrfW0z+C4uKsZMNtLoDGrmNTO6i2lwKBCru+AyRMk6PtE0xfPTXMubReQ6sbte v48enjubU5DdXQYvSgeSb3GTiEV9k0fYmlUCZRskOCdk/n3bQJepsib/6BlcnQ== Date: Wed, 4 Oct 2023 13:32:25 +0200 From: Miquel Raynal To: "Rabara, Niravkumar L" Cc: Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml Message-ID: <20231004133225.4a770789@xps-13> In-Reply-To: References: <20231004061214.17176-1-niravkumar.l.rabara@intel.com> <20231004094455.1a6a19e1@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:32:41 -0700 (PDT) Hello, > > > -Child nodes represent the available NAND chips. =20 > >=20 > > This is not fully pictured in the current schema, by referencing nand- > > controller.yaml I believe you allow all kind of direct partitioning (wh= ich is legacy, > > and not supposed to be supported here). > > Can you try to define a partition directly within the controller node i= n the example > > and see whether it still passes the checks? > >=20 > > Thanks, > > Miqu=C3=A8l =20 >=20 > Hi Miquel, >=20 > I tried below in the controller node in example, >=20 > ... > clocks =3D <&nf_clk>; > cdns,board-delay-ps =3D <4830>; >=20 > partition@0 { > label =3D "boot"; > reg =3D <0 0x00200000>; > }; >=20 > nand@0 { > reg =3D <0>; > }; >=20 > It shows 'partition@0' was unexpected. >=20 > DTC_CHK Documentation/devicetree/bindings/mtd/cadence,nand.example.dtb > Documentation/devicetree/bindings/mtd/cadence,nand.example.dts:35.23-38.1= 4: Warning (unique_unit_address_if_enabled): /example-0/nand-controller@10b= 80000/partition@0: duplicate unit-address (also used in node /example-0/nan= d-controller@10b80000/nand@0) > /mnt/newvolume/users/nrabara/kernel.org/3oct23/Documentation/devicetree/b= indings/mtd/cadence,nand.example.dtb: nand-controller@10b80000: Unevaluated= properties are not allowed ('partition@0' was unexpected) > From schema: /mnt/newvolume/users/nrabara/kernel.org/3oct23/Docum= entation/devicetree/bindings/mtd/cadence,nand.yaml >=20 > However using partition in nand node is OK. > nand@0 { > reg =3D <0>; > =20 > #address-cells =3D <1>; > #size-cells =3D <1>; >=20 > partition@0 { > label =3D "boot"; > reg =3D <0 0x00200000>; > }; >=20 > partition@200000 { > label =3D "env"; > reg =3D <0x00200000 0x00400000>; > }; > }; >=20 > "make dt_binding_check DT_SCHEMA_FILES=3Dmtd/cadence,nand.yaml" is OK wi= thout any warnings.=20 >=20 > DTEX Documentation/devicetree/bindings/mtd/cadence,nand.example.dts > DTC_CHK Documentation/devicetree/bindings/mtd/cadence,nand.example.dtb >=20 > Any additional changes required for this patch? No, should be fine then. Thanks, Miqu=C3=A8l