From patchwork Fri Dec 9 02:11:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9467385 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 AED2F607D8 for ; Fri, 9 Dec 2016 02:14:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B2082863B for ; Fri, 9 Dec 2016 02:14:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DEBE2864D; Fri, 9 Dec 2016 02:14:39 +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 202432863B for ; Fri, 9 Dec 2016 02:14:38 +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 1cFAgE-0004AM-7I; Fri, 09 Dec 2016 02:12:58 +0000 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFAg9-00042b-RL for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2016 02:12:55 +0000 Received: by mail-pg0-x234.google.com with SMTP id x23so2054815pgx.1 for ; Thu, 08 Dec 2016 18:12:31 -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=ie9UYl9UlszL9SlvmzQ+X85oRlIQx8VoTGaRc3rS3DA=; b=QSrjRZftMzLEI+X2zZN6EfEPliIr+3olr15IPusBfhB9XaWUtUCZlTiBCEFMwlkVSp ylnzRdfx1nPeV+FTndHpAXT7hoDzhWMSymY+wZDfzsNeXYz7uh1m7QiQBlM/Ch0V5Mee yQ5KSG5EnFPZhDaQPGqGBy9R25jiuH2PafXxw= 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=ie9UYl9UlszL9SlvmzQ+X85oRlIQx8VoTGaRc3rS3DA=; b=RXg1LAtI46yTXE8MVUvTvBJ529CBr4+a3WjHKcsYyl9FGKwuHvdneB/Rl/ON/hfvTT L9YiB8FROYMM+drQuffYmJtOHUbteRrxx64jyz2vDIDOInEaa8ZTu6dfVYdJj2zBv6rc SwXLgfsfPeAniFfMOLkX3Ten9M3Jptvtmj4fKMaFEE5JeqVX5g67UHBe3YjWOI3TGQzV gcyCs9+++byItQxv5JWddGOTrBDT8XOoLx2JQpJAxYRZvFGhXz3g1+rfw90CHiXnZ+gj NuBuVSAxSvXZ2skM5lfkyxoogxtbW2raTsy7PawhyLVGaHKje7aIkvofBU4waORWbnVm Qp/w== X-Gm-Message-State: AKaTC019rPf7DcmQ2omcDNwnFRgF6gLaOuWkqQfuTRjzY30lsDb+GlLKLZwHN+7amuHjCdvs X-Received: by 10.99.50.67 with SMTP id y64mr138252897pgy.146.1481249551373; Thu, 08 Dec 2016 18:12:31 -0800 (PST) Received: from localhost.localdomain ([45.56.152.14]) by smtp.gmail.com with ESMTPSA id u3sm22913257pfk.3.2016.12.08.18.12.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Dec 2016 18:12:30 -0800 (PST) From: Zhangfei Gao To: Rob Herring , Philipp Zabel , Arnd Bergmann Subject: [PATCH] dt-bindings: Document the hi3660 reset bindings Date: Fri, 9 Dec 2016 10:11:44 +0800 Message-Id: <1481249504-7942-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480989092-31847-2-git-send-email-zhangfei.gao@linaro.org> References: <1480989092-31847-2-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161208_181253_957914_CC5BD8D0 X-CRM114-Status: GOOD ( 14.19 ) 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 Acked-by: Rob Herring --- .../bindings/reset/hisilicon,hi3660-reset.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 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..2bf3344 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -0,0 +1,43 @@ +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" +- hisi,rst-syscon: phandle of the reset's syscon. +- #reset-cells : Specifies the number of cells needed to encode a + reset source. The type shall be a and the value shall be 2. + + Cell #1 : offset of the reset assert control + register from the syscon register base + offset + 4: deassert control register + offset + 8: status control register + Cell #2 : bit position of the reset in the reset 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"; + 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 */ + ... + };