Received: by 10.192.165.148 with SMTP id m20csp4624508imm; Tue, 24 Apr 2018 06:00:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+aU6nV35fjiOpzy1cvU+iS2gihVSeNzWkRfx9mBT4rzi4XNW3EPTwVXyqUtk/2LtMVZ+JR X-Received: by 2002:a17:902:524:: with SMTP id 33-v6mr20846035plf.25.1524574830439; Tue, 24 Apr 2018 06:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524574830; cv=none; d=google.com; s=arc-20160816; b=sXyCKMLV+j3N16HalJGoSc/QNdXSLd9phu7ngbQAUPtcI6uGIJD+9XHp6tYMrWLgR6 IQlX05QYs7U+OFHoRwXPa0SOZ4kvkMBOPZyGks+L1QyXmn1YyfaU9T+SgyDaLyBAf4sj BkSB4ZSCcnG65kHVQbOqig606VvXbj/enkjmdZf4B+6X1Ubl+1cMTvteI6A6dK/K9+5r /vRPAz+XHUC7VcrRPsRSuQunffgUEaqhMX7KefSov56pOMrS9yaJsGv4KkoVaIj2a4Ij bjBlOAQw7HuEQb8Jc+ZakQ2LKKanAo9CjEffLdyfY5VeVdg0pcrQM3RhchtoDsz5cb6u 7XXw== 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:arc-authentication-results; bh=DCl51dr5piTCdAgGdJLijxI4oHh+y+vvN9hdkUnFxos=; b=Z62Fak8pUBxFErhs9sW9FaDQcHgkeqHjOb3awVAVDh/J1Bpl3wsgidbQpRjoZa5y1U m+AWIVtmWexrEkuih2ZXToRWn7yl7GMr8H/zVG9xjHcT0o52za5gUa/56eMuX+Incmy3 KRaFpwOFij9XPTjwyZqTfeLmN9t0LgCoxHr2777vcUyQVXvq8JPOKZHYsEsixT+S6cwr XgUQhXiQW2LiIfvZAzfP1KqR6YvGnxpkQbrDeRyoPKfSWf6fuA8EK0MyZ5D+jxnChgZP kuioQNp4JkPmd0OV0x6jWB2a6GGkqmCfZEnJD8gZ5nQnXYBAhsFNDbsxOJxWnifuD2/4 X77g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si11780119pgd.395.2018.04.24.06.00.15; Tue, 24 Apr 2018 06:00:30 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933359AbeDXM6c (ORCPT + 99 others); Tue, 24 Apr 2018 08:58:32 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:39204 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932421AbeDXM63 (ORCPT ); Tue, 24 Apr 2018 08:58:29 -0400 Received: by mail-ot0-f196.google.com with SMTP id a14-v6so21119977otf.6; Tue, 24 Apr 2018 05:58:29 -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=DCl51dr5piTCdAgGdJLijxI4oHh+y+vvN9hdkUnFxos=; b=q4jh+6SRTsRMvHekSQsmV+FarncXSrbSUXTY0Wz+UUrkNJdUvVtBOUliq+KvPFCphi 8wvDkzgL6081O53Dr2jb7OGWB9Wc8rutEvVMRGmD3gndCBp+GzwvFaOYkmCzWuTsp+6u rDgN3P78r5SJ2Kxo+RYmEo2KUO+C9skLw62P67jUVBokPwrxq9fE2REVORI9wIqZ+ueP lCNtp1JCuxpUSsdMbgI8S/pv/auQ0NdRDW3l5BDp4Mbc2f2y+Rw/iaw+9kJmsH4ExXBu 64scGRTDPkNOBtoQ2w7HhiC72v/0xmT3oeRtI4Mj2CldG904saJqGinJ1B29m5gKNe65 m70w== X-Gm-Message-State: ALQs6tCxIuPVv/sWa/QjVOYvlEAP8MF0F54hEkdV0LfUHFns3QzRfKZc bhmPnlQK5isPYK5dgxS27Q== X-Received: by 2002:a9d:5415:: with SMTP id j21-v6mr9979045oth.52.1524574709103; Tue, 24 Apr 2018 05:58:29 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id h3-v6sm9074409ote.72.2018.04.24.05.58.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 05:58:28 -0700 (PDT) Date: Tue, 24 Apr 2018 07:58:27 -0500 From: Rob Herring To: Li Wei Cc: mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-scsi@vger.kernel.org, zangleigang@hisilicon.com, gengjianfeng@hisilicon.com, guodong.xu@linaro.org Subject: Re: [PATCH v9 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs Message-ID: <20180424125827.k2dgeu6uon75wzni@rob-hp-laptop> References: <20180417140814.38098-1-liwei213@huawei.com> <20180417140814.38098-3-liwei213@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180417140814.38098-3-liwei213@huawei.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 10:08:11PM +0800, Li Wei wrote: > add ufs node document for Hisilicon. > > Signed-off-by: Li Wei > --- > Documentation/devicetree/bindings/ufs/ufs-hisi.txt | 29 ++++++++++++++++++++++ > .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 10 +++++--- > 2 files changed, 36 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/ufs/ufs-hisi.txt > > diff --git a/Documentation/devicetree/bindings/ufs/ufs-hisi.txt b/Documentation/devicetree/bindings/ufs/ufs-hisi.txt > new file mode 100644 > index 000000000000..d49ab7d8f31d > --- /dev/null > +++ b/Documentation/devicetree/bindings/ufs/ufs-hisi.txt > @@ -0,0 +1,29 @@ > +* Hisilicon Universal Flash Storage (UFS) Host Controller > + > +UFS nodes are defined to describe on-chip UFS hardware macro. > +Each UFS Host Controller should have its own node. > + > +Required properties: > +- compatible : compatible list, contains one of the following - > + "hisilicon,hi3660-ufs", "jedec,ufs-1.1" for hisi ufs > + host controller present on Hi36xx chipset. > +- reg : should contain UFS register address space & UFS SYS CTRL register address, > +- interrupt-parent : interrupt device > +- interrupts : interrupt number > +- resets : reset node register, the "arst" corresponds to reset the APB/AXI bus. arst belongs in reset-names. > +- reset-names : describe reset node register What happened to clocks? You still have to list which ones apply even if documented in the common binding. > + > +Example: > + > + ufs: ufs@ff3b0000 { > + compatible = "hisilicon,hi3660-ufs", "jedec,ufs-1.1"; > + /* 0: HCI standard */ > + /* 1: UFS SYS CTRL */ > + reg = <0x0 0xff3b0000 0x0 0x1000>, > + <0x0 0xff3b1000 0x0 0x1000>; > + interrupt-parent = <&gic>; > + interrupts = ; > + /* offset: 0x84; bit: 7 */ > + resets = <&crg_rst 0x84 7>; > + reset-names = "arst"; > + }; > diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > index c39dfef76a18..adcfb79f63f5 100644 > --- a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > +++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt > @@ -41,6 +41,8 @@ Optional properties: > -lanes-per-direction : number of lanes available per direction - either 1 or 2. > Note that it is assume same number of lanes is used both > directions at once. If not specified, default is 2 lanes per direction. > +- resets : reset node register, the "rst" corresponds to reset the whole UFS IP. > +- reset-names : describe reset node register Does your controller have 1 or 2 resets? There's no point in adding this here if it doesn't apply to your controller. > Note: If above properties are not defined it can be assumed that the supply > regulators or clocks are always on. > @@ -61,9 +63,11 @@ Example: > vccq-max-microamp = 200000; > vccq2-max-microamp = 200000; > > - clocks = <&core 0>, <&ref 0>, <&iface 0>; > - clock-names = "core_clk", "ref_clk", "iface_clk"; > - freq-table-hz = <100000000 200000000>, <0 0>, <0 0>; > + clocks = <&core 0>, <&ref 0>, <&phy 0>, <&iface 0>; > + clock-names = "core_clk", "ref_clk", "phy_clk", "iface_clk"; > + freq-table-hz = <100000000 200000000>, <0 0>, <0 0>, <0 0>; > + resets = <&reset 0 1>; > + reset-names = "rst"; > phys = <&ufsphy1>; > phy-names = "ufsphy"; > }; > -- > 2.15.0 >