From patchwork Tue Nov 22 07:49:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9440577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0714D60237 for ; Tue, 22 Nov 2016 07:52:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF8D12844E for ; Tue, 22 Nov 2016 07:52:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E483F28479; Tue, 22 Nov 2016 07:52:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C78A2844E for ; Tue, 22 Nov 2016 07:52:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c95r3-00077I-5q; Tue, 22 Nov 2016 07:51:01 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c95qn-0006MH-8v for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2016 07:50:46 +0000 Received: by mail-pf0-x22b.google.com with SMTP id d2so2986662pfd.0 for ; Mon, 21 Nov 2016 23:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qNiqDeyWJF8eH5EvE+r0s5zhBX//0MzIs70fNosVfPQ=; b=WBKdciliKrv6RlGSrqXoWHtP3xxKxFC+Gei4p88Q6cax/jT2H7t1AK7FGyPy+cifmI NSsfX2w8RFBVso+/1pAyjzFzSIMTEb8zDcl18Hz0So46eC6K5xBOg/93D4tigU0y9iH8 4Mwee3cuhjtJD0EWO1pLw5Ox1+xwpNaWaEFxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qNiqDeyWJF8eH5EvE+r0s5zhBX//0MzIs70fNosVfPQ=; b=bRG2807FIQgSH+mx0eJ9IOktpScJ9yVzZ9R0KWuQit4ApORZPQKkkrv+UkjiVTCjQu lRcKhdvJbeoVPCQkv9gy+bZQvw/KGxiSPnTXdOo8CGYHXpqJp5lQOYONM+PC+lbnDuTF F+d0kUC7OStUIRJM1K/ituAPALwzj97mZOoQ+RWYeKMUfYl2u68ErZGebBMuiaq5EJNQ DC1nIOH9oQ3DtKF5uc9gTCXIw6ff8ZhKybhpnzB734SJydFJjoYXXhsWp/WByvLXCeFq yILt9TJzM35AAiMI1OTJ7IMsEaSnIIMSg427SfvQWetS5CLpMml1cMBecSD4sH/HFfh3 u3FQ== X-Gm-Message-State: AKaTC00SjzSYo8Ioh2tonGulL6O3J4QQyN2q0RNkySuLEM59VDH6VlLoDz9YOY+o4rOyCBuA X-Received: by 10.99.139.199 with SMTP id j190mr41339428pge.115.1479801024458; Mon, 21 Nov 2016 23:50:24 -0800 (PST) Received: from localhost.localdomain ([104.237.91.214]) by smtp.gmail.com with ESMTPSA id d1sm42635008pfb.76.2016.11.21.23.50.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 23:50:24 -0800 (PST) From: Zhangfei Gao To: Philipp Zabel , Rob Herring , haojian.zhuang@linaro.org, xuwei5@hisilicon.com, Chen Feng , Xinliang Liu , Xia Qing , Jiancheng Xue Subject: [PATCH 2/6] dt-bindings: Document the hi3660 reset bindings Date: Tue, 22 Nov 2016 15:49:17 +0800 Message-Id: <1479800961-6249-3-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479800961-6249-1-git-send-email-zhangfei.gao@linaro.org> References: <1479800961-6249-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161121_235045_506085_65FFCF61 X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT bindings documentation for hi3660 SoC reset controller. Signed-off-by: Zhangfei Gao --- .../bindings/reset/hisilicon,hi3660-reset.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt new file mode 100644 index 0000000..20e03a8 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -0,0 +1,42 @@ +Hisilicon System Reset Controller +====================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The reset controller registers are part of the system-ctl block on +hi3660 SoC. + +Required properties: +- compatible: should be one of the following: + - "hisilicon,hi3660-reset-crgctrl : reset control for peripherals in crgctrl. + - "hisilicon,hi3660-reset-iomcu : reset control for peripherals in iomcu. +- hisi,rst-syscon: phandle of the reset's syscon. +- #reset-cells: 1, see below + +Example: + crg_ctrl: crg_ctrl@fff35000 { + compatible = "hisilicon,hi3660-crgctrl", "syscon"; + reg = <0x0 0xfff35000 0x0 0x1000>; + #clock-cells = <1>; + }; + + crg_rst: crg_rst_controller { + compatible = "hisilicon,hi3660-reset-crgctrl"; + #reset-cells = <1>; + hisi,rst-syscon = <&crg_ctrl>; + }; + +Specifying reset lines connected to IP modules +============================================== +example: + + ufs: ufs@..... { + ... + resets = <&crg_rst HI3660_RST_UFS>, + <&crg_rst HI3660_RST_UFS_ASSERT>; + reset-names = "rst", "assert"; + ... + }; + +The index could be found in .