Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3248269imm; Fri, 25 May 2018 02:18:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZopgN/Vr7rIeT0F+hh+mnYqU8z/pk+iPLJaJWvm0ZPR415eDvnUYoFJufX1CYZbSm1oK67O X-Received: by 2002:a62:1211:: with SMTP id a17-v6mr1764324pfj.104.1527239909905; Fri, 25 May 2018 02:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527239909; cv=none; d=google.com; s=arc-20160816; b=wyQx3QKa2exZBcsucVAZVDjQwHX1Eg+COZUSKwCvQ+fsgxPCYCBubCXyy6UmCk8eWT 6iyCU1akRJm2N3O6a+QmAJxoj3n13eMji34Rd1w5VHbMTblqgg8SAnfqoW9JgU7cBasB rnDDIhlQDdKK3DfZDe9Khru6v7k4rxBC9ASfchFUpGmUyWsFlW4bCvdLxH/iLA1E9buI JPNfhfCCPCnZSsXRUKe5FxN8/4o2bAOK9HmRi4RdToCrAjWuPdpFGfHy1O2z6qTRqFQA h8iRjhuFi5qTZTZz57ZCu7JTJAcsmPV1u1YV0G2KXukeE+6fqHV3ugNS5vL24TMW4XNZ XMPw== 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=j9352QSmX8d+anxyTjJjxIMaeNayXQoajNLKyuqcpnQ=; b=VkYDpdQ35XRi/SAH8mAgLDDBFYmMtgUb0D+HeYvsxkIn30IrBju2MQBGR5xXANHpsm EmEMRpPlok47YNVV0c+nMpwzmG2O6KaHH8ILMxHIbcUowPVDv+FOBXDWaMK07PAu16ko YYya1smYazYgOe+UUkqYNgCWm6v+pZMtlLMG3Q+X3fEuZqXW3avEl4SXSzDrjQMoPaQ+ EJrYzSPcy56P0p7uZYIONLiO4qKWLCMH5fO09G75k5sGNJR5c4ZDF2CZA3ppvJXzEiZZ LzxQHr11P7AyHMOOLLqQYqsrqwHFh2TGE2FYn6kFc8GPA19Uj4z3zx2My4PNbFE9V5eL 7UmQ== 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 v26-v6si809324pgc.416.2018.05.25.02.18.15; Fri, 25 May 2018 02:18:29 -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 S965471AbeEYJRk (ORCPT + 99 others); Fri, 25 May 2018 05:17:40 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8139 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965367AbeEYJRg (ORCPT ); Fri, 25 May 2018 05:17:36 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E4DBE5C118F63; Fri, 25 May 2018 17:17:22 +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.382.0; Fri, 25 May 2018 17:17:15 +0800 From: Li Wei To: , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v10 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs Date: Fri, 25 May 2018 17:17:09 +0800 Message-ID: <20180525091712.37227-3-liwei213@huawei.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180525091712.37227-1-liwei213@huawei.com> References: <20180525091712.37227-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 | 41 ++++++++++++++++++++++ .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 10 ++++-- 2 files changed, 48 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..a48c44817367 --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/ufs-hisi.txt @@ -0,0 +1,41 @@ +* 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 +- clocks : List of phandle and clock specifier pairs +- clock-names : List of clock input name strings sorted in the same + order as the clocks property. "ref_clk", "phy_clk" is optional +- freq-table-hz : Array of operating frequencies stored in the same + order as the clocks property. If this property is not + defined or a value in the array is "0" then it is assumed + that the frequency is set by the parent clock or a + fixed rate clock source. +- resets : describe reset node register +- reset-names : reset node register, the "rst" corresponds to reset the whole UFS IP. + +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 = ; + clocks = <&crg_ctrl HI3660_CLK_GATE_UFSIO_REF>, + <&crg_ctrl HI3660_CLK_GATE_UFSPHY_CFG>; + clock-names = "ref_clk", "phy_clk"; + freq-table-hz = <0 0>, <0 0>; + /* offset: 0x84; bit: 12 */ + resets = <&crg_rst 0x84 12>; + reset-names = "rst"; + }; diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt index c39dfef76a18..2df00524bd21 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 +- reset-names : describe reset node register, the "rst" corresponds to reset the whole UFS IP. 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