From patchwork Tue Dec 6 01:51:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9461865 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 9D8F960236 for ; Tue, 6 Dec 2016 01:54:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BEBB23B23 for ; Tue, 6 Dec 2016 01:54:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FDD42815E; Tue, 6 Dec 2016 01:54:25 +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 1D48423B23 for ; Tue, 6 Dec 2016 01:54:25 +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 1cE4wG-0005MX-19; Tue, 06 Dec 2016 01:53:00 +0000 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cE4vy-0005AN-5i for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 01:52:43 +0000 Received: by mail-pg0-x232.google.com with SMTP id 3so142995897pgd.0 for ; Mon, 05 Dec 2016 17:52:20 -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=ZAmKE3TjwIBKxYpGx6Fn6lP3GpwoxUTUTGQ+2OTpJDA=; b=Um8TsX9oXAPGEYk1o+GF642Y3CrQUp/VOeS/heDk6aD37BdyMUYzPOiK6u931X4R49 YUCMuomRe8RjwL/IsgN2UDHkf8K+t7K9geMQrUqhT0TpjOr1DGVqUXQY0ZYlMq+qQ19h zQ3XnlAHhiLs9TK7GH8TYR0GVXdI8WS9DF96g= 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=ZAmKE3TjwIBKxYpGx6Fn6lP3GpwoxUTUTGQ+2OTpJDA=; b=P9fd3CD79bP1ysqZSidgstGGxvuodcFU+eCEt6qDp2Ve3SWuPWuNyoXGNihntdPuJK h0NFn/m7q49hEHiuLgSNIUCGCleCUnZnyRSVPiPfQ+bbnODIWr1XxK2bfCjI7HKg5nTc wv1dtCQB6Zdu5jqPD7v2ukXp1bz1r5AB3JAKh/OsIkPAwBcIakxKZ2FHsOqE6rgtoSoC adrqglVMOXHN/y9PrA5DtXn9949DVQ1MDp/1bGtHNXW/K8vg7x+Hqv6fltSOIkVOJQCc RupSck+3aWF7pDJiqMyXwejEsG69ff4o413O4yzKPmN62iG1E6nQv02TSNzl673ssV5n S+4Q== X-Gm-Message-State: AKaTC01At8KfZy+RkbtDo0dhyXhIhNP9z9iN7OTyS0ju2rDevGy5zm60FzXFD0k1omxig0T+ X-Received: by 10.84.213.144 with SMTP id g16mr131045023pli.134.1480989140375; Mon, 05 Dec 2016 17:52:20 -0800 (PST) Received: from localhost.localdomain ([104.237.91.147]) by smtp.gmail.com with ESMTPSA id c15sm30204112pfd.36.2016.12.05.17.52.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Dec 2016 17:52:19 -0800 (PST) From: Zhangfei Gao To: Rob Herring , Philipp Zabel , Arnd Bergmann , haojian.zhuang@linaro.org Subject: [PATCH v3 1/2] dt-bindings: Document the hi3660 reset bindings Date: Tue, 6 Dec 2016 09:51:31 +0800 Message-Id: <1480989092-31847-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480989092-31847-1-git-send-email-zhangfei.gao@linaro.org> References: <1480989092-31847-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161205_175242_292262_8E86953C X-CRM114-Status: GOOD ( 12.03 ) 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 | 36 ++++++++++++++++++++++ 1 file changed, 36 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..178e478 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -0,0 +1,36 @@ +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: 2, see below +- hisi,rst-syscon: phandle of the reset's syscon. + +Example: + iomcu: iomcu@ffd7e000 { + compatible = "hisilicon,hi3660-iomcu", "syscon"; + reg = <0x0 0xffd7e000 0x0 0x1000>; + }; + + iomcu_rst: iomcu_rst_controller { + compatible = "hisilicon,hi3660-reset"; + hisi,rst-syscon = <&iomcu>; + #reset-cells = <2>; + }; + +Specifying reset lines connected to IP modules +============================================== +example: + + i2c0: i2c@..... { + ... + resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */ + ... + };