Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp289599ybx; Wed, 6 Nov 2019 17:10:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxQbn7QvioYKnPglvf1j09aleq+tpsQRRnDjmvSrYskuP9KA2+BPUbw9dFR/8wclGV1FA56 X-Received: by 2002:a17:906:134c:: with SMTP id x12mr575176ejb.269.1573089037710; Wed, 06 Nov 2019 17:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573089037; cv=none; d=google.com; s=arc-20160816; b=RRoChhL8DMry3o/Iy6+rveG1Ak2fs2m0iy0FYXM0rcyGnQRs/lE2vHd9YmnC0dN06H gvnHuXvTHEkU4z6O2enXcAaGiZTPItAg5Q4PWHJzTMdlqmUTFREaOBTa5rUulHtGGxx5 VonZKV9e2hTHa1UQn+rIboONTyUumch/ByHKdlNlcac4BWCV1J57PQiPgj93tcRlKigp l4sG7Upm7+t5Ij7NZD7ged8ifuS+a3AhrgkOkkVctDJupzNk2Pvy8iMD+avzrC66UK4B ckoXb/LJOGHfXuXJs5G29vQkpDItMrU9SNGPSdYYFN9JpthhDIOUZ7isiWzCRN00xQKd LP4g== 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=NYYQ/Md98Kv7GDY9hpFC9qLnAqCXT03X+kalujOMXqA=; b=c7f3abITfItQZMiDDvwAyuFPe22j9csvZLY3mraPfuTD+VpnAgayYv7Mt8+G8rFlWc cF1mYzwGi9ddG07mSfLkw4HDkSN7HHft5JO5bYXHnGiP9RD+Xy1/uQqP8XXVaJJGADWJ oEgmqc5KZMaJcJ9vww5eRdV5wlduSZFKSZ1kgd871ZdKf9mBPOvNUUFhy63EEdFOKJve IEGQqMbU8NZU0ieriUBuB68L3heDF9XvBDctNK5YLQpGv7AIimisA4kc+BQZ2Z06oVwN JWVFhb0QEhRUO4L73Vgtwvnxb5WGkIKRIhNVkSa0d+7yai2jT7FR2JU9+PYef49Kq7U+ T2fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dv23si405980ejb.338.2019.11.06.17.10.13; Wed, 06 Nov 2019 17:10:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732830AbfKGBJd (ORCPT + 99 others); Wed, 6 Nov 2019 20:09:33 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36088 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728412AbfKGBJc (ORCPT ); Wed, 6 Nov 2019 20:09:32 -0500 Received: by mail-ot1-f66.google.com with SMTP id f10so553453oto.3; Wed, 06 Nov 2019 17:09:30 -0800 (PST) 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=NYYQ/Md98Kv7GDY9hpFC9qLnAqCXT03X+kalujOMXqA=; b=ipSvEgb0Aa7AQN8i5NEAdNGDzooKKj58ddkSyMercF5xL4W/GkdB2X0x/wYb/erwdj XfTYJGvU86LGXtSGNIrumBcQQQUdmYoVupCxyIGowDwKKKKgr93JZxcDyESYdMbPFWSs us0TjBYi4qmfo27EwilYv2JJd/EObi7G8MeUHJLmWKfct7MY1GtNGHNXJF27fzigT9xK wFf+Uz0h0l0BiXdox2QqXYXgOf09QhoWIlvv5G2VYp4YXCnkUkaY1kF+Npq4YkfHuQLL BKTww7nDWyyhbCkXxzZCipOv4HsfiMPwZbyWwDIRCtGLFPXjyN7t2l26X7NmLRrqsEUB Lsig== X-Gm-Message-State: APjAAAUkIogf6wuAG+Avb1Kp73GxGfBOS52bg1EUa/Vu+9KhAh0BL/NN E4fIN8Md37LDl4wQ6iN2GLltCcY= X-Received: by 2002:a9d:6294:: with SMTP id x20mr540695otk.31.1573088970151; Wed, 06 Nov 2019 17:09:30 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 41sm223441otd.67.2019.11.06.17.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 17:09:29 -0800 (PST) Date: Wed, 6 Nov 2019 19:09:28 -0600 From: Rob Herring To: Chuanhong Guo Cc: linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mark Rutland , Matthias Brugger , Tudor Ambarus , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: mtd: mtk-quadspi: update bindings for mmap flash read Message-ID: <20191107010928.GA14186@bogus> References: <20191106140748.13100-1-gch981213@gmail.com> <20191106140748.13100-3-gch981213@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191106140748.13100-3-gch981213@gmail.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, Nov 06, 2019 at 10:07:48PM +0800, Chuanhong Guo wrote: > update register descriptions and add an example binding using it. > > Signed-off-by: Chuanhong Guo > --- > .../devicetree/bindings/mtd/mtk-quadspi.txt | 21 ++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt > index a12e3b5c495d..4860f6e96f5a 100644 > --- a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt > +++ b/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt > @@ -12,7 +12,10 @@ Required properties: > "mediatek,mt7623-nor", "mediatek,mt8173-nor" > "mediatek,mt7629-nor", "mediatek,mt8173-nor" > "mediatek,mt8173-nor" > -- reg: physical base address and length of the controller's register > +- reg: Contains one or two entries, each of which is a tuple consisting of a > + physical address and length. The first entry is the address and length > + of the controller register set. The optional second entry is the address > + and length of the area where the nor flash is mapped to. All the compatibles support 2 entries? If not, which ones? > - clocks: the phandle of the clocks needed by the nor controller > - clock-names: the names of the clocks > the clocks should be named "spi" and "sf". "spi" is used for spi bus, > @@ -48,3 +51,19 @@ nor_flash: spi@1100d000 { > }; > }; > > +nor_flash: spi@11014000 { > + compatible = "mediatek,mt7629-nor", > + "mediatek,mt8173-nor"; > + reg = <0x11014000 0xe0>, > + <0x30000000 0x10000000>; > + clocks = <&pericfg CLK_PERI_FLASH_PD>, > + <&topckgen CLK_TOP_FLASH_SEL>; > + clock-names = "spi", "sf"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + }; > +}; > -- > 2.21.0 >