From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757967AbcAKBWc (ORCPT ); Sun, 10 Jan 2016 20:22:32 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:19988 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbcAKBWa (ORCPT ); Sun, 10 Jan 2016 20:22:30 -0500 Subject: Re: [PATCH v2] mtd: spi-nor: add hisilicon spi-nor flash controller driver To: Rob Herring References: <1452216405-10826-1-git-send-email-xuejiancheng@huawei.com> <20160109154249.GA28102@rob-hp-laptop> CC: , , , , , , , , , , , , , , , , , , , , , From: xuejiancheng Message-ID: <56930369.1050000@huawei.com> Date: Mon, 11 Jan 2016 09:20:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160109154249.GA28102@rob-hp-laptop> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.217.211] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.56930379.003C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: c0f52b1fdf44d57966db89b78f56b5b5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 2016/1/9 23:42, Rob Herring wrote: > On Fri, Jan 08, 2016 at 09:26:45AM +0800, Jiancheng Xue wrote: >> add hisilicon spi-nor flash controller driver >> >> Signed-off-by: Binquan Peng >> Signed-off-by: Jiancheng Xue >> --- > > Next time, please include changes in v2 here. > OK. I will remember it. Thank you. In v2, I mainly fixed some compile warnings. >> .../devicetree/bindings/spi/spi-hisi-sfc.txt | 24 + >> drivers/mtd/spi-nor/Kconfig | 6 + >> drivers/mtd/spi-nor/Makefile | 1 + >> drivers/mtd/spi-nor/hisi-sfc.c | 498 +++++++++++++++++++++ >> 4 files changed, 529 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/spi/spi-hisi-sfc.txt >> create mode 100644 drivers/mtd/spi-nor/hisi-sfc.c >> >> diff --git a/Documentation/devicetree/bindings/spi/spi-hisi-sfc.txt b/Documentation/devicetree/bindings/spi/spi-hisi-sfc.txt >> new file mode 100644 >> index 0000000..a0d1e04 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/spi/spi-hisi-sfc.txt >> @@ -0,0 +1,24 @@ >> +HiSilicon SPI-NOR Flash Controller >> + >> +Required properties: >> +- compatible : Should be "hisilicon,hisi-sfc". > > I missed this last time, but you also need a more specific compatible > string with the SOC name in it. > This IP block is used in many SOCs. Do I need to add a specific compatible string for every SOC? Thank you. >> +- address-cells : number of cells required to define a chip select >> + address on the SPI bus. Should be set to 1. See spi-bus.txt. >> +- size-cells : Should be 0. >> +- reg : Offset and length of the register set for the controller device. >> +- reg-names : Must include the following two entries: "control", "memory". >> +- clocks : handle to spi-nor flash controller clock. >> + >> +Example: >> +spi-nor-controller@10000000 { >> + compatible = "hisilicon,hisi-sfc"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + reg = <0x10000000 0x1000>, <0x14000000 0x1000000>; >> + reg-names = "control", "memory"; >> + clocks = <&clock HI3519_FMC_CLK>; >> + spi-nor@0 { >> + compatible = "jedec,spi-nor"; >> + reg = <0>; >> + }; >> +}; > > . >