From patchwork Wed Aug 12 04:42:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 6995681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A1F78C05AC for ; Wed, 12 Aug 2015 04:47:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99A062070D for ; Wed, 12 Aug 2015 04:47:42 +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 B2D4E2070A for ; Wed, 12 Aug 2015 04:47:41 +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 1ZPNui-0007yk-Ui; Wed, 12 Aug 2015 04:45:20 +0000 Received: from mail-io0-f176.google.com ([209.85.223.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPNue-0006kA-5X; Wed, 12 Aug 2015 04:45:18 +0000 Received: by iods203 with SMTP id s203so9039890iod.0; Tue, 11 Aug 2015 21:44:53 -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=dOTQ25BRY2Yhu84+OSP1mDwBTPSnZBYetBQuui+gDIo=; b=YhnJZ48y2hVGc2+vbvQJYBIcuhyiBI7Qh69PpClrqacdmnHv20hqdGTF3+wGc7hxID e+yFC6OZwEKlepZJtWFU0fRxQJHDJ6rOWdrSdxgoalfLwZqHr5DR/i9PYZyGs0FdaSyR jU48LFqLRDRQCwa9aItqZ3G0DiimL+gdQDBsNISq7pCd7fgbbksNUa1RXIm9cRvl/i9p S5FU74QgxqmMxeL6IwMQ7wJLUbebQmYEgOdyIw8s55DmjITLOiUBR/Q8G4KBJao42l08 aaLe75QzBfbA3PeT/hs2ixn5DZ3y8V87C2I569Y/fXPzsBseLObNA7rbGVCOEKyzHHkS RZMg== X-Received: by 10.107.138.87 with SMTP id m84mr1980832iod.115.1439354693695; Tue, 11 Aug 2015 21:44:53 -0700 (PDT) Received: from localhost.localdomain ([172.245.164.28]) by smtp.gmail.com with ESMTPSA id s12sm3134827ioe.14.2015.08.11.21.44.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 21:44:52 -0700 (PDT) From: Caesar Wang To: ulf.hansson@linaro.org, khilman@linaro.org, heiko@sntech.de Subject: [PATCH v16 1/4] dt-bindings: add document of Rockchip power domain Date: Wed, 12 Aug 2015 12:42:29 +0800 Message-Id: <1439354552-20098-2-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439354552-20098-1-git-send-email-wxt@rock-chips.com> References: <1439354552-20098-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150811_214516_303944_A13AFD80 X-CRM114-Status: GOOD ( 14.03 ) 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, "jinkun.hong" , dmitry.torokhov@gmail.com, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, tomasz.figa@gmail.com, linux-arm-kernel@lists.infradead.org, wxt@rock-chips.com 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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 domain found on Rockchip Socs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v16: - remove the pmu node. Series-changes:9 - add document decription. Series-changes: 8 - document go back to v2. Series-changes: 3 - DT structure has changed. Series-changes: 2 - 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..138754d --- /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>; + /* ... */ + };