Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1652743pxk; Fri, 4 Sep 2020 15:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwut4dE9cu7X+i1MFXv2sNYOtT2z2B2mLGdk2c71KhInOkQrivuJR+ji6A3ZOl+XeWXpS5z X-Received: by 2002:a50:875c:: with SMTP id 28mr10820865edv.20.1599258621335; Fri, 04 Sep 2020 15:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599258621; cv=none; d=google.com; s=arc-20160816; b=htWzhZubrooTOWPiC/wfqbJWvtC9GwTXxkmWKvkY+MyD1VE8NHd2mTOI5IZrosYOHi DfsM6AfnNGeDcF77Zj6cP60xzNr13HyN72oUwLYsKQO+ync9EZKw0QXAHngiK1CbPYVP /xuWxPpWqeKEPwAxyY7cym8R1PxtKp2LBbHEyTPzH8cqx8+PGwctATS7fNW+UE+13eLo deAHtzd4O5xnFa8qC+WHiA1IkhXr4cS0SxkfwymUUk5Y8upPOdPa8mGMfFSNvQ/hegi4 qQeOWcW7Ob2PKespDM19+utq+pdk2EDx6pNyAUKNo93/xGVbh7XEzkNAG2RW6QT4Ivem mKLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CUoo4UZem3qSG04+pwJvowu0B72O1RPUYkPRRbN4QPI=; b=EnsNFJc8SAs3ZH4vuQKGX9P+a/rBtsTctQnBM1zckd/gOnOkt2NoMy/ayOfs9vUFch q4aSQJ4dIGMW/iXMEGn//MutHvETUgS5evew86YB8+AOwOOTDdU6Fx6LWZ1wDCO73W3b 1gy2TvaP7QRR3qfpai3eiKwGz2q5Wt7zonoCfgNiNh3WnmHFgd47Kb5FijClp47L25PV HZXHkI1/ELun9LjIQjp0/tNTDh5OUD18KNYCdUZKAHAtg/9mQmZaedWyjrNkxMMv7hEo 9kPROUN4EwWcgZphAsY5zgqR4gJcLGwkCrrjckHjatxldB01WEeIaztoXDK9Q+hHbEr+ kKCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FPfVtLk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx17si4699955edb.409.2020.09.04.15.29.58; Fri, 04 Sep 2020 15:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FPfVtLk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728161AbgIDW32 (ORCPT + 99 others); Fri, 4 Sep 2020 18:29:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:41384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbgIDW31 (ORCPT ); Fri, 4 Sep 2020 18:29:27 -0400 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6AA67208C7; Fri, 4 Sep 2020 22:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599258566; bh=+8dgVfOXgmURomqOzPuR2s0d+0XktF+kVIZ4JamC1Yk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FPfVtLk3VgVy9YY2bppjWvDV2nvJ00oTy/jZPGsp1pSsT+kcmQKDELrZFVKOe/MW4 zJ45aqs0sB4ogJLfi9CwwVOS1v0zgXZFL4fluzz0xaGojKmgqLJSTmIwDbIBjLZCDs e36mpUibGpzlRequFLGXPuBTspvr9u7SNO8bieYo= Received: by mail-ot1-f53.google.com with SMTP id g96so7253810otb.12; Fri, 04 Sep 2020 15:29:26 -0700 (PDT) X-Gm-Message-State: AOAM530HI8S9w97j5PgXqi3vtRBxS4qaUMIMg4IDLgsN+4mUyfAvzmGg 1lBYOqogNOdrbP+dn0+qOhkmDJ2fNHZwlCDxBg== X-Received: by 2002:a9d:7f84:: with SMTP id t4mr7261177otp.192.1599258565768; Fri, 04 Sep 2020 15:29:25 -0700 (PDT) MIME-Version: 1.0 References: <20200904152404.20636-1-krzk@kernel.org> <20200904152404.20636-14-krzk@kernel.org> In-Reply-To: <20200904152404.20636-14-krzk@kernel.org> From: Rob Herring Date: Fri, 4 Sep 2020 16:29:14 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 13/14] dt-bindings: mtd: nand-controller: Fix matching with size-cells==1 To: Krzysztof Kozlowski Cc: linux-clk , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , MTD Maling List , Linux PWM List , "open list:SERIAL DRIVERS" , "open list:THERMAL" , LINUX-WATCHDOG , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 4, 2020 at 9:25 AM Krzysztof Kozlowski wrote: > > Most of Freescale/NXP GPMI device trees use size-cells==1 (even when > actually not needed except few boards). This fixes dtbs_check warnings > like: > > arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: nand-controller@33002000: #size-cells:0:0: 0 was expected > > Signed-off-by: Krzysztof Kozlowski > --- > Documentation/devicetree/bindings/mtd/nand-controller.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml > index 40fc5b0b2b8c..0879e1108837 100644 > --- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml > +++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml > @@ -34,7 +34,10 @@ properties: > const: 1 > > "#size-cells": > - const: 0 > + description: > + Depends on your controller. Put zero unless you need a mapping between CS > + lines and dedicated memory regions. > + enum: [0, 1] Humm, seems that was to describe partitions, but the expectation of the nand binding is describing nand chips. It seems the nand chips are never described and on 1 board even has partitions. I think you should fix the dts to move 'partition@N' nodes under 'partitions' which is preferred and needed if you ever describe nand chips. And then fix '#size-cells' to be 0. Rob