Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3312006imm; Tue, 17 Jul 2018 02:38:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe04QzuAy+OX4sXw/Mo2NK3xEa1YLi8EEhhe85WJ9FxoTxgvylklSxpkKnW7tosyHi6J6rF X-Received: by 2002:a63:4a07:: with SMTP id x7-v6mr911898pga.34.1531820315674; Tue, 17 Jul 2018 02:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531820315; cv=none; d=google.com; s=arc-20160816; b=lCXiwSkplT0X6ltjtXDcmzifn87hWN1SaCx7eS+YOib4vnGTGAwLYYOvGRMHd2HuAU FO2pizXtu9RwWwhNiRoPR1TsHxLJAraNpLmXkYwFMPPR9tg923IkwCaa6btDEGzCsfqS tD3SkeFMxCPsQ0db43Th2fSdZOskJACWhQSBVJ6llD7pvnXyh1/uTTcOb+8XV0nJZN04 2WjKeLv6RL62t+fRxF9zVHqOkdYirZuEmWGkOQQJF0WbpUUui3svxy14wr5UdUj2QdaX Gla9yZ2KmAdWc2+VwU1jdHt55Gxxk3hHCsWezuQN3NJJREIVuY5xXsRVA56Vxku0EFs8 6CBQ== 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=Tz4a7u/hWhjg+UNUzDWlJX8KqlWkrzPi+rxkSHJ1IU4=; b=hNF0IGeQRE33EHKpO9K9FMGLLO3BE08x4hxE1ZzU5hH1JRe61P4bSm2JsguRXG2Wt/ pjMJKyAL7zsB1WWnrQYTYC5Vn+HxmHTm2EzYQned3jDgD6E7H+KrIHbI2U+LywPCX00l UvrRnGvF2hb+hSMf/AXFP6OU3uZzRhXkFPySIQYelGg+a6xTUYlw4OUnlcaGRiel46Qp bEI0FZ3NeWkwV61bCYV5Ks9djxD/Y8T7uAaDb+6uVFpbKsNMFODq+22E8VWfqbt865EX 6D3A+9u5iBmfCt8KGM7N6hhXGq+Ykbq1vUUX9GjLCDHa48anKIizz+uCmjl9+03UOTZY cNmQ== 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 m14-v6si468922pfh.92.2018.07.17.02.38.20; Tue, 17 Jul 2018 02:38:35 -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 S1731186AbeGQKJE (ORCPT + 99 others); Tue, 17 Jul 2018 06:09:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9683 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729640AbeGQKJE (ORCPT ); Tue, 17 Jul 2018 06:09:04 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C8164F972FA2C; Tue, 17 Jul 2018 17:37:06 +0800 (CST) Received: from vm107-89-192.huawei.com (100.107.89.192) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.382.0; Tue, 17 Jul 2018 17:37:02 +0800 From: Li Wei To: , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH v11 2/4] [RESEND] dt-bindings: scsi: ufs: add document for hisi-ufs Date: Tue, 17 Jul 2018 17:36:57 +0800 Message-ID: <20180717093659.103263-3-liwei213@huawei.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180717093659.103263-1-liwei213@huawei.com> References: <20180717093659.103263-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 Tested-by: John Stultz --- 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