From patchwork Wed Nov 23 08:07:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9442709 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 A104B60778 for ; Wed, 23 Nov 2016 08:11:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92047200DF for ; Wed, 23 Nov 2016 08:11:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 866A9208C2; Wed, 23 Nov 2016 08:11:17 +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 588D8200DF for ; Wed, 23 Nov 2016 08:11:16 +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 1c9Scp-0001gr-Aw; Wed, 23 Nov 2016 08:09:51 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9Scd-0001Y5-3q for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2016 08:09:41 +0000 Received: by mail-pg0-x22d.google.com with SMTP id x23so3477100pgx.1 for ; Wed, 23 Nov 2016 00:09:18 -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=AO/Yd9JpVqQu4zA/+DhwJFiakL177KGgcFrZDfqdnJztRrAeBqvqIzD2IG0sDn6dHK 3pcdtCk/5SXFaDHW2Flc4vded9h5Dx02tPnRMeY+RF2OoFNQXRdds8VCDdMEMnbRRuT7 Ey+UhjO441X+5yHIZEHUMfXxhSC3jMXfeDC30= 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=SOuI+cKd9uZeFUgvexsf2iQzp/FcdtTERyPar5fzGmTrIKYUg0Ew+jMhWrA96DyX0H 0OvTVm4/tc8zUX04whFXKNh86VuqS8/ejpandMb5xanmkKvErPT2jQmvyR7LxU81mYsL Wz8pQGtTZLlVosKB1+ILKMTVj3/x2iM5xpXAwOpGpaVxs7RDa8mkqEku68USVcR6y4Im 5YAzCensIgS6KnNi5dwwuaPDDwQ2BTrxvf2No9sEVD5qeQwXHl/x3jUnidj4fozBOdy8 1aG4ETBA6WcpDrviKVIMkqT6TybIKD8PYTZITG99uwU9/VEXaqMyWiQZGj/owqaulOV/ k5iA== X-Gm-Message-State: AKaTC01AWERD7AbeuLu8/qxIbHB/cPnEX7vmtDo6sFJXz+CGeJBE6aXPu7SRKWP3FccSJd+T X-Received: by 10.98.194.130 with SMTP id w2mr1670666pfk.143.1479888558117; Wed, 23 Nov 2016 00:09:18 -0800 (PST) Received: from localhost.localdomain ([104.237.91.22]) by smtp.gmail.com with ESMTPSA id s8sm50422542pfj.45.2016.11.23.00.09.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 00:09:17 -0800 (PST) From: Zhangfei Gao To: Philipp Zabel Subject: [RFC v2: PATCH 1/2] dt-bindings: Document the hi3660 reset bindings Date: Wed, 23 Nov 2016 16:07:55 +0800 Message-Id: <1479888476-13138-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479888476-13138-1-git-send-email-zhangfei.gao@linaro.org> References: ,> <1479888476-13138-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_000939_298004_500E5564 X-CRM114-Status: GOOD ( 12.40 ) 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>; + ... + };