From patchwork Thu Dec 1 00:48:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9455183 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 26E1060585 for ; Thu, 1 Dec 2016 00:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17C3A21050 for ; Thu, 1 Dec 2016 00:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A9A9284B3; Thu, 1 Dec 2016 00:51:31 +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 A7B2721050 for ; Thu, 1 Dec 2016 00:51:30 +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 1cCFZU-0001VY-VI; Thu, 01 Dec 2016 00:49:56 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCFZ9-0001Ew-1L for linux-arm-kernel@lists.infradead.org; Thu, 01 Dec 2016 00:49:36 +0000 Received: by mail-pg0-x22e.google.com with SMTP id f188so87558370pgc.3 for ; Wed, 30 Nov 2016 16:49:14 -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=iMSbsmSlRvxDEwWdJ0jved8vF7k9QSaxW3IPHWmu8oA=; b=KC7R87odLfc3TH6lqe5ZIcofBYbxKpGM/4nt1Y3QgMkDFGx4MhlK1EfGSdgtGRTJ1s r0i4GDj3v9UFUM/terMSfEdBXFTXWMKagtGh/SeASLLyAQyThFSVEKFWqJWJiab6K7eb rGjNivnpd1wAKcIcSObfd7iL9mkjYKp75o+Lk= 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=iMSbsmSlRvxDEwWdJ0jved8vF7k9QSaxW3IPHWmu8oA=; b=BBfZLmtUyDxpCf1WzuUsOnnpXohAE+ZrE1XufYyVrhIil1uW+hg2rEOVsyZ3+QQrqE VAm11VzWCKG+toZwXvDsnVLsJQdq/vKCoYEhoVoQ1nbzDw3MDi90Fxj++mdIJqm42nHo opFfozXk2Kiy0HJB9/VZIvZ6ZMUwbkB7Cytxaa2g68mxcirQAxEKcbWYnBzODQWr6lau nsZv/4iCADfs3ErXdqP/r4WkQzVxzilavfyvMyRZXAB8XfEuo3i4qpXbD/+CyN2fCyJT guScL8lw06UPfrFPGSaS50+2fd+TH8OBnclgvN+sFW/Bv3DtCkRg2VQ+NL7Vfxr7Cf/w Hfew== X-Gm-Message-State: AKaTC02h43voR0lbqsUy/SiXYAbM50sORQGfne1ZjqYmTVtkDhv1gD4wttA9higfci0JlEpd X-Received: by 10.99.218.85 with SMTP id l21mr64606800pgj.102.1480553354081; Wed, 30 Nov 2016 16:49:14 -0800 (PST) Received: from localhost.localdomain ([104.237.91.22]) by smtp.gmail.com with ESMTPSA id w11sm93408530pfk.75.2016.11.30.16.49.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 16:49:13 -0800 (PST) From: Zhangfei Gao To: Rob Herring , Philipp Zabel , Arnd Bergmann Subject: [resend v2: PATCH 1/2] dt-bindings: Document the hi3660 reset bindings Date: Thu, 1 Dec 2016 08:48:40 +0800 Message-Id: <1480553321-17400-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480553321-17400-1-git-send-email-zhangfei.gao@linaro.org> References: <1480553321-17400-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161130_164935_268501_01EA5554 X-CRM114-Status: GOOD ( 12.33 ) 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 | 51 ++++++++++++++++++++++ 1 file changed, 51 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..250daf2 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -0,0 +1,51 @@ +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 + "hisilicon,hi3660-reset" +- #reset-cells: 1, see below +- hisi,rst-syscon: phandle of the reset's syscon. +- hisi,reset-bits: Contains the reset control register information + Should contain 2 cells for each reset exposed to + consumers, defined as: + Cell #1 : offset from the syscon register base + Cell #2 : bits position of the control register + +Example: + iomcu: iomcu@ffd7e000 { + compatible = "hisilicon,hi3660-iomcu", "syscon"; + reg = <0x0 0xffd7e000 0x0 0x1000>; + }; + + iomcu_rst: iomcu_rst_controller { + compatible = "hisilicon,hi3660-reset"; + #reset-cells = <1>; + hisi,rst-syscon = <&iomcu>; + hisi,reset-bits = <0x20 0x8 /* 0: i2c0 */ + 0x20 0x10 /* 1: i2c1 */ + 0x20 0x20 /* 2: i2c2 */ + 0x20 0x8000000>; /* 3: i2c6 */ + }; + +Specifying reset lines connected to IP modules +============================================== +example: + + i2c0: i2c@..... { + ... + resets = <&iomcu_rst 0>; + ... + }; + + i2c1: i2c@..... { + ... + resets = <&iomcu_rst 1>; + ... + };