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: 515282 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A576D140134 for ; Tue, 8 Sep 2015 16:20:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753626AbbIHGUg (ORCPT ); Tue, 8 Sep 2015 02:20:36 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:35923 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753264AbbIHGUa (ORCPT ); Tue, 8 Sep 2015 02:20:30 -0400 Received: by qgx61 with SMTP id 61so74968085qgx.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 Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux@arm.linux.org.uk, arnd@arndb.de, ijc+devicetree@hellion.org.uk, 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 , "jinkun.hong" 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; + /* ... */ + };