From patchwork Tue Sep 8 06:18:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7138711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C3E769F1CD for ; Tue, 8 Sep 2015 06:23:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D88B520772 for ; Tue, 8 Sep 2015 06:23:07 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 0223920742 for ; Tue, 8 Sep 2015 06:23:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZZCH5-0004gb-Cz; Tue, 08 Sep 2015 06:20:59 +0000 Received: from mail-qg0-f54.google.com ([209.85.192.54]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZZCGw-0004J4-RG; Tue, 08 Sep 2015 06:20:52 +0000 Received: by qgx61 with SMTP id 61so74968080qgx.3; Mon, 07 Sep 2015 23:20:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iBydj3DgA7KbngA9433w6OdNuWH5evd/mggbCmJJ4J8=; b=JRU7W17/iJ157gmEpLYbX8/qc5xu9qUzcIIdwNEDkQOIdrPOEH81zgKCAZYRZfNtLj UowFSnI1I8gqmAukFWaXUAEZqJtBM5+Q5l6krGzGvNMIlh9MTkwbjw2Jq4w0qncMWTba V+IhzakqoISPAVGoGEDkoo0DZEXJZos1KHdiwF8RyFk9gdT+RyKs8qRCKqHscTBbnjmg W2/WjjsBYUduLSFa7hkv3zN2Zqdgmy3n7Pgkzop0oYuFpjA81g7ZScOgFTKvOFNq2iKq SFawsddIGKTELVA6kG8juCIhuthtKyuzpgPH9Y1dzkxRxmy2UEVitFNPmIn8uvgpTOa8 71Ew== X-Received: by 10.140.195.148 with SMTP id q142mr14898839qha.101.1441693229621; Mon, 07 Sep 2015 23:20:29 -0700 (PDT) Received: from localhost.localdomain ([173.239.41.18]) by smtp.gmail.com with ESMTPSA id k89sm1258551qgk.36.2015.09.07.23.20.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 23:20:28 -0700 (PDT) From: Caesar Wang To: khilman@linaro.org, heiko@sntech.de Subject: [PATCH v18 1/4] dt-bindings: add document of Rockchip power domains Date: Tue, 8 Sep 2015 14:18:20 +0800 Message-Id: <1441693103-26712-2-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441693103-26712-1-git-send-email-wxt@rock-chips.com> References: <1441693103-26712-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150907_232051_183179_F3A035E1 X-CRM114-Status: GOOD ( 14.49 ) X-Spam-Score: -2.4 (--) 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, ulf.hansson@linaro.org, linux@arm.linux.org.uk, arnd@arndb.de, ijc+devicetree@hellion.org.uk, "jinkun.hong" , linus.walleij@linaro.org, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, dianders@chromium.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, tomasz.figa@gmail.com, mturquette@baylibre.com, linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This add the necessary binding documentation for the power domains found on Rockchip SoCs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v18: - remove the notes of domains from dt-binding. Changes in v17: - add the decription in detail for RK3288 SoCs. Changes in v16: - remove the pmu node. Changes in v15: None Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: - add document decription. Changes in v8: - document go back to v2. Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - DT structure has changed. Changes in v2: - move clocks to "optional". .../bindings/soc/rockchip/power_domain.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/rockchip/power_domain.txt diff --git a/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt new file mode 100644 index 0000000..4be3418 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt @@ -0,0 +1,46 @@ +* Rockchip Power Domains + +Rockchip processors include support for multiple power domains which can be +powered up/down by software based on different application scenes to save power. + +Required properties for power domain controller: +- compatible: Should be one of the following. + "rockchip,rk3288-power-controller" - for RK3288 SoCs. +- #power-domain-cells: Number of cells in a power-domain specifier. + Should be 1 for multiple PM domains. +- #address-cells: Should be 1. +- #size-cells: Should be 0. + +Required properties for power domain sub nodes: +- reg: index of the power domain, should use macros in: + "include/dt-bindings/power-domain/rk3288.h" - for RK3288 type power domain. +- clocks (optional): phandles to clocks which need to be enabled while power domain + switches state. + +Example: + + power: power-controller { + compatible = "rockchip,rk3288-power-controller"; + #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + pd_gpu { + reg = ; + clocks = <&cru ACLK_GPU>; + }; + }; + +Node of a device using power domains must have a power-domains property, +containing a phandle to the power device node and an index specifying which +power domain to use. +The index should use macros in: + "include/dt-bindings/power-domain/rk3288.h" - for rk3288 type power domain. + +Example of the node using power domain: + + node { + /* ... */ + power-domains = <&power RK3288_PD_GPU>; + /* ... */ + };