Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3638522imm; Mon, 2 Jul 2018 02:52:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLFc9mUVC4mxvZew2v9paxqtNmnkQGv3Z8S0yu961xD48b0sJs/GU5I/55cxksJ423BRoGW X-Received: by 2002:a63:a44a:: with SMTP id c10-v6mr20821046pgp.198.1530525130742; Mon, 02 Jul 2018 02:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530525130; cv=none; d=google.com; s=arc-20160816; b=TNzjyngkrKpwJKp5ph1KpycjNonaGS3fYimXuUyiAEDzLW5FNSM+gNthSDCCMXlVpW tz0HNXlzYZ99L4QjJwTiIxlZI/uBUrKI7DJatIJylwsVf2ZyCJw0kKCqduB2AFoee74o qSRv/AzQErlfgxuwEZ9F5JUSH/MURUeDnwa06iX0bI8+dhLscrwmskeVYjjFKyH/jAOd EelLfh94fOG1SlFAVbaoMul8fdjYWYZsiwu7tBQyQyVwDA0f8fDzdQ27ig2Fc/iMF7sr EDU7OmIwzFmbKI2WxToosaRAQEy9hzjtdyTUjUZaFZp0TdWp6Pa6N4sAzIsIopaXRxcz bzbg== 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=N8y8bVM/IV0g/cG6EbixcFHUjGnFczf3lgVwgv16Yvw=; b=BHPcruROnZ26x8V+dsF5QqdFNWunHSTH48zkkPePivWOTXqE72GkUi+HpfYnywzRh0 JoY/kQW/7Y+YpitKIBPvxj8a4e2QhKyEEJD0eKTA4TwX5ACt4VjvBcQ2t8Smc2mUbekp ca2AYGNRi7NSSPUdNwzB013/cZxBUGNGsHutLhBBxP0d4wYdI2zuFJ42FU1IWCmVAAm2 b65AoPUpbwM82rwjcHQg+fvO6X6jYSMdWbjlQFFpQ/0nFGoCB/e4rjmqWTN8a9+N8+wo 2TISOlHeH6DYBAqhGOz7GkearNNeiXHfBSFBNwuyCGwGF17dj5h8Y27DyfIBASwQOueg Nv9w== 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 v32-v6si16449776plb.273.2018.07.02.02.51.26; Mon, 02 Jul 2018 02:52:10 -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 S964933AbeGBJgL (ORCPT + 99 others); Mon, 2 Jul 2018 05:36:11 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40922 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S964902AbeGBJgE (ORCPT ); Mon, 2 Jul 2018 05:36:04 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3356EA4F036B4; Mon, 2 Jul 2018 17:35:59 +0800 (CST) Received: from vm107-89-192.huawei.com (100.107.89.192) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Mon, 2 Jul 2018 17:35:51 +0800 From: Li Wei To: , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH v11 2/4] dt-bindings: scsi: ufs: add document for hisi-ufs Date: Mon, 2 Jul 2018 17:35:45 +0800 Message-ID: <20180702093547.39507-3-liwei213@huawei.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180702093547.39507-1-liwei213@huawei.com> References: <20180702093547.39507-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 Reviewed-by: Rob Herring --- 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