Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1397548ybk; Thu, 14 May 2020 08:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdMvyWLgA8Zl/Qkyrk9rnkYd2IoW8ZbxlrlO47nepzPfyCAGzwBwN2dZOWBGM5mS1tCNNT X-Received: by 2002:aa7:d28a:: with SMTP id w10mr4186879edq.206.1589468584933; Thu, 14 May 2020 08:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589468584; cv=none; d=google.com; s=arc-20160816; b=ArZ3AAM5uvAdB3eYHusQXFUgHsKosE6o8uisMIZqCxa9PkTCNSM3q8/DTBy7Zl6LB3 ZYZ1qjYBrCOtlor/zM6EDHDgPkOV49/gw7NqLG2NLPBjIYa9521y+lKtXCNefN1DXDkj GmYkQZM1oefEcSvW+oHQ7VQ8Y3Vvixgb8AsNsvXMLniMLOPG5R5z8KxfyO+r95XADmAp SH5BdO9suv1A/ruDWYHyura0td0igBRzczFQE4JUDEUt2Z0EMuqGQqk6rzOlu0DdMRhD ikBS64yPxPgfSXq2VW9r3C3Mju+HBX1dKRwNnRBI6oXA+wddgVBkAzfNSNQJWPsvcquv IDaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=b4HeH81d7CC2pFdjz+KIc9E1a6jJhBx25lXQ9gtMpzM=; b=dBvq0qln57Jgd2EYa2zPC6fNxgfCjiZbz5tNC5PncU2TdJSZrcwbXPcy+iEWiivW7w o1s1eSf5wYVGms/6JktDAmIBYWsV3/Ptilgv2OR3YPKaEeHQ5smJrPWFAVBEX+ZP+5Z2 //UHaJutXxxuSAGuBOORCTMZEhKSFsL09oqjVtw2owtsiRtyGem+CqLRYHY7qH3PelEI 4r8wrr+07ICfe1l2mn48N7nCYIXZLg39SZ77K+6O6vJURqH9TPb8yHdqzUEtWXL52R0j t5Tvl0/ywlPTn7DyrYkXyyHompEXm/u/RkCiMdR1JihPf+2R6V99yZ2BCOBd7bEvkZGT YKmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w13si2093457edf.228.2020.05.14.08.02.41; Thu, 14 May 2020 08:03:04 -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; 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 S1728068AbgENPAe (ORCPT + 99 others); Thu, 14 May 2020 11:00:34 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37341 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbgENPAd (ORCPT ); Thu, 14 May 2020 11:00:33 -0400 Received: by mail-ot1-f65.google.com with SMTP id z17so2577111oto.4; Thu, 14 May 2020 08:00:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=b4HeH81d7CC2pFdjz+KIc9E1a6jJhBx25lXQ9gtMpzM=; b=LDr0V/g7lU4mfrKVFlAzBhPfFjpnLKqUWtDGOZTQRWAcVGUaTfareZm8aCHe0TnVBZ KWC6IPzCkma8QwgBjPiTdVrAzP9Dox6Je/5E9sho2a/+0W9ln0I0iXKilExH9l5KlmO5 1nxKMt6DZiAdXmQGlguq8fwZ0faOWuLa8xd65yyGJ+nxbkNHzQFQzKKPX5qzA9r7EZ1z sp77BNMjgsH50GHKvTtIUaLhUOkMjLJLR/x1ftHapFIi2L0mBPJbo3AtGmyTDSPcT8bR hq5bIuXhreruOcJQuVxRbHpM012FE0h3Xi7ME+fJhtPIR7gy09G6BRGq0K91lEvw2YFt 4e9g== X-Gm-Message-State: AOAM5314U7Ti1EA00J3afmsQkn3Sjb6ew76IrG+GXyFbXWJsL2iQG8Fv 4diMEDSZ0+M5RwG5FCffkQ== X-Received: by 2002:a9d:7343:: with SMTP id l3mr3559142otk.276.1589468430559; Thu, 14 May 2020 08:00:30 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u45sm818344ooi.41.2020.05.14.08.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 08:00:29 -0700 (PDT) Received: (nullmailer pid 8677 invoked by uid 1000); Thu, 14 May 2020 15:00:28 -0000 Date: Thu, 14 May 2020 10:00:28 -0500 From: Rob Herring To: Christophe Kerello Cc: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, mark.rutland@arm.com, gregkh@linuxfoundation.org, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, devicetree@vger.kernel.org, marex@denx.de Subject: Re: [PATCH v4 06/10] dt-bindings: mtd: update STM32 FMC2 NAND controller documentation Message-ID: <20200514150028.GB28489@bogus> References: <1588756279-17289-1-git-send-email-christophe.kerello@st.com> <1588756279-17289-7-git-send-email-christophe.kerello@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588756279-17289-7-git-send-email-christophe.kerello@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 11:11:15AM +0200, Christophe Kerello wrote: > These bindings can be used on SOCs where the FMC2 NAND controller is > in standalone. In case that the FMC2 embeds 2 controllers (an external > bus controller and a raw NAND controller), the register base and the > clock will be defined in the parent node. It is the reason why the > register base address and the clock are now optional. > > Signed-off-by: Christophe Kerello > --- > .../devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml > index b059267..68fac1a 100644 > --- a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml > +++ b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml > @@ -18,13 +18,15 @@ properties: > > reg: > items: > - - description: Registers > + - description: Registers (optional) The only thing that can be optional are the last entries. You have to do a 'oneOf' with 6 entries and 7 entries. And where's your new compatible string for this different h/w? > - description: Chip select 0 data > - description: Chip select 0 command > - description: Chip select 0 address space > - description: Chip select 1 data > - description: Chip select 1 command > - description: Chip select 1 address space > + minItems: 6 > + maxItems: 7 > > interrupts: > maxItems: 1 > @@ -61,7 +63,6 @@ required: > - compatible > - reg > - interrupts > - - clocks > > examples: > - | > @@ -77,13 +78,13 @@ examples: > <0x81000000 0x1000>, > <0x89010000 0x1000>, > <0x89020000 0x1000>; > - interrupts = ; > - dmas = <&mdma1 20 0x10 0x12000a02 0x0 0x0>, > - <&mdma1 20 0x10 0x12000a08 0x0 0x0>, > - <&mdma1 21 0x10 0x12000a0a 0x0 0x0>; > - dma-names = "tx", "rx", "ecc"; > - clocks = <&rcc FMC_K>; > - resets = <&rcc FMC_R>; > + interrupts = ; > + dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, > + <&mdma1 20 0x2 0x12000a08 0x0 0x0>, > + <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; > + dma-names = "tx", "rx", "ecc"; > + clocks = <&rcc FMC_K>; > + resets = <&rcc FMC_R>; > #address-cells = <1>; > #size-cells = <0>; > > -- > 1.9.1 >