From patchwork Sun Sep 28 10:22:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jinkun.hong" X-Patchwork-Id: 4991331 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9CD959F1D4 for ; Sun, 28 Sep 2014 10:24:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D19D12021B for ; Sun, 28 Sep 2014 10:24:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 127A620200 for ; Sun, 28 Sep 2014 10:24:25 +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 1XYBeS-0005HN-ER; Sun, 28 Sep 2014 10:24:24 +0000 Received: from mail-pa0-f68.google.com ([209.85.220.68]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYBe8-0004yo-GD; Sun, 28 Sep 2014 10:24:05 +0000 Received: by mail-pa0-f68.google.com with SMTP id kq14so1652493pab.3 for ; Sun, 28 Sep 2014 03:23:43 -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=wJTrTGt0eB/nyqpyzw9xRq50HEjAWmVm/R5wx4YbRLY=; b=Xg5hgtr5LD94faaLYg6YaN8U9Z1D3w2xkSIU4Xp7IcLyG/CB3q8HTcrtS3woWIhZPQ OIcFUluUBCePTWTx5rRB2ON26dP1eNWxnwWNgMQ0p+2OY8S6gUikt1XHWvpCJ7MwywbE lfUK83TuyzQGMJJt3YZKdaPgXnSEsAthWXU9MlsSmK2IAl7AAv+yquWFW5edqfmbinsS tt1yrdVVhGn3B5gq2f5xX4YaBIf0RRBcYG5bf069VwwH8VvJDf0hcFbKlWdv7aOIEJFK ln6PfnNNUDUyIMN6Boc1p/c0ld7pOifvJMA32nYuk6JwigzGU5TniTKJpxcSO03JHpaa Y5Yw== X-Received: by 10.66.183.235 with SMTP id ep11mr47829912pac.113.1411899823330; Sun, 28 Sep 2014 03:23:43 -0700 (PDT) Received: from localhost.localdomain ([58.22.7.114]) by mx.google.com with ESMTPSA id uj7sm9533715pac.4.2014.09.28.03.23.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Sep 2014 03:23:42 -0700 (PDT) From: "jinkun.hong" To: Russell King , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Randy Dunlap , linux-doc@vger.kernel.org, dianders@chromium.org, Heiko Stuebner Subject: [PATCH v2 2/3] dt-bindings: add document of Rockchip power domain Date: Sun, 28 Sep 2014 03:22:53 -0700 Message-Id: <1411899774-8484-3-git-send-email-jinkun.hong@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411899774-8484-1-git-send-email-jinkun.hong@rock-chips.com> References: <1411899774-8484-1-git-send-email-jinkun.hong@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140928_032404_580349_222E7956 X-CRM114-Status: GOOD ( 12.30 ) X-Spam-Score: -0.7 (/) Cc: linux-rockchip@lists.infradead.org, Jack Dai , "jinkun.hong" X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 From: "jinkun.hong" Signed-off-by: Jack Dai Signed-off-by: jinkun.hong --- Changes in v2: Adviced by Doug - move clocks to "optional" .../bindings/arm/rockchip/power_domain.txt | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/power_domain.txt diff --git a/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt b/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt new file mode 100644 index 0000000..3e74e6d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt @@ -0,0 +1,48 @@ +* 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 type power domain. +- #power-domain-cells: Number of cells in a power-domain specifier. + should be 1. +- rockchip,pmu: phandle referencing a syscon providing the pmu registers +- #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>; + rockchip,pmu = <&pmu>; + #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>; + /* ... */ + };