Received: by 10.192.165.156 with SMTP id m28csp99946imm; Tue, 17 Apr 2018 07:10:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+r1voFTV6OSgOaCtAeu2oNpSgCZCbpty4AG02vVTZnzY4Qlp1ZsLzJsugbH2igLDiVT2Gm X-Received: by 10.99.120.138 with SMTP id t132mr1943560pgc.280.1523974240330; Tue, 17 Apr 2018 07:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523974240; cv=none; d=google.com; s=arc-20160816; b=OXV5Gr7dQcMlB6MCqAcEM0FNoSC2RRw67H3ZLchLoEZ6U4r2Dj9s672NhqducFfiuA k9l87Fe9GeKWWDF/OwEFPD9uW5+0sV93Ihe9PF6/t23wfm+MiRUCcVp1i27QV9CJnTtD KxQSr5mXQ+9/hUHa6IK8VDH6nhYIHW7tQhcSxsSohHaMXuZq/JN3rsh5nyzrQbWhCa3W QDbC8rOzteXi96P2IHpMHZPJOqedMVlyrV/kHZMqx9ws9TRFGPaquD33wnPRnhxF7P3B 2XMnQ0A2fqDyFogW5CDWvYPg0e+eVZ44AL8j4kNs5xXTOInMrDylX4BYkLDkD8oUqDuV hILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=QNEzhNEc0+1P8pgJg3BDjP7hUH7NIfIoVWbMcSYhL0A=; b=TYyXR6ln7CaxPLkybT/JGiL0zRNAXLQW1WqJ+/YWA35ct6+l6AM5zIRy3SGjd6F8xk pOAb+CiRdWrTWcKx2a3IRFCBq+MTxeWh/z9wJrOgULcJQlthGHADEIbFGxyZJ+mf5JoX kx7n5fiH9AB0gcnaphZs4+zsZKYDX+YIVHCSzUV/5VvY7SDMwLRWn33iFNs14Od3JiMU oj3j0g8vNadeO4pgC6blU5kgBiQphn36Ii97S6mmqRFAvW6lArXrHUpEN/NkGTsvwwCF HBp0A68hAlw4ZfVDHDoxev3QZix4BdEXiqjF+c6wsVKDK59NmTl7w0KXsAmVMUN80+km 9xEw== 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 h10si11423964pgq.514.2018.04.17.07.10.25; Tue, 17 Apr 2018 07:10:40 -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 S1753098AbeDQOIc (ORCPT + 99 others); Tue, 17 Apr 2018 10:08:32 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55999 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752145AbeDQOI2 (ORCPT ); Tue, 17 Apr 2018 10:08:28 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7728454D3060D; Tue, 17 Apr 2018 22:08:24 +0800 (CST) Received: from vm107-89-192.huawei.com (100.107.89.192) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Tue, 17 Apr 2018 22:08:17 +0800 From: Li Wei To: , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH v9 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs Date: Tue, 17 Apr 2018 22:08:11 +0800 Message-ID: <20180417140814.38098-3-liwei213@huawei.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180417140814.38098-1-liwei213@huawei.com> References: <20180417140814.38098-1-liwei213@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.107.89.192] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. +- reset-names : describe reset node register + +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 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