From patchwork Tue Feb 18 20:32:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 3674651 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 02697BF13A for ; Tue, 18 Feb 2014 20:34:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EB7E20117 for ; Tue, 18 Feb 2014 20:34:52 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 384EA20142 for ; Tue, 18 Feb 2014 20:34:51 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFrMN-0000FD-6L; Tue, 18 Feb 2014 20:33:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFrMB-0006m5-6f; Tue, 18 Feb 2014 20:33:31 +0000 Received: from comal.ext.ti.com ([198.47.26.152]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFrLe-0006fu-Qz for linux-arm-kernel@lists.infradead.org; Tue, 18 Feb 2014 20:33:06 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1IKWXPM025311; Tue, 18 Feb 2014 14:32:33 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1IKWXCN014854; Tue, 18 Feb 2014 14:32:33 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 18 Feb 2014 14:32:32 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1IKWWvo009444; Tue, 18 Feb 2014 14:32:32 -0600 From: Nishanth Menon To: "Rafael J. Wysocki" , Viresh Kumar , MyungJoo Ham , Mark Brown , Mike Turquette Subject: [RFC PATCH 4/6] devicetree: bindings: add documentation for voltagedomain Date: Tue, 18 Feb 2014 14:32:21 -0600 Message-ID: <1392755543-28335-5-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392755543-28335-1-git-send-email-nm@ti.com> References: <1392755543-28335-1-git-send-email-nm@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140218_153259_401358_07D2E642 X-CRM114-Status: UNSURE ( 7.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.6 (----) Cc: Nishanth Menon , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 Add documentation for voltage domain binding format. Specific voltage domains will have bindings corresponding to them. Signed-off-by: Nishanth Menon --- .../bindings/power/voltdm/voltage_domain.txt | 65 ++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/voltdm/voltage_domain.txt diff --git a/Documentation/devicetree/bindings/power/voltdm/voltage_domain.txt b/Documentation/devicetree/bindings/power/voltdm/voltage_domain.txt new file mode 100644 index 0000000..da48a19 --- /dev/null +++ b/Documentation/devicetree/bindings/power/voltdm/voltage_domain.txt @@ -0,0 +1,65 @@ +Specifying Voltage Domain information for devices +================================================= + +1. Specifying a voltage domain. + +SoCs may have multiple voltage domains under which various clocks operate. + +Mandatory Properties: +- #voltdm-cells - indicates if there are specifiers needed to reference the + voltage domain + +Optional Properties: +- voltage-tolerance: Specify the voltage tolerance in percentage + +2. Voltage domain consumer +consumer nodes can be reference using the below binding: +- -voltdm: phandle to the voltage domain node. + +Examples: + +A. Voltage Domain controlling multiple regulator +voltage_domain_mpu: voltdm@1 { + compatible = "xyz"; + #voltdm-cells = <0>; + vdd-supply = <&vcc>; + vbb-supply = <&abb_mpu>; + ... +}; + +voltage_domain_gpu: voltdm@2 { + compatible = "xyz"; + #voltdm-cells = <0>; + vdd-supply = <&dcdc2>; + vbb-supply = <&abb_gpu>; + ... +}; +... +&cpu0 { + cpu0-voltdm = <&voltage_domain_mpu>; + voltage-tolerance = <1>; +}; + +&gpu { + gpu-voltdm = <&voltage_domain_gpu>; +}; + +B. Indexed voltage domain device + +#define SOC_XYZ_VOLTAGE_DOMAIN_MPU 0 +#define SOC_XYZ_VOLTAGE_DOMAIN_GFX 1 + +voltage_domain_socx: voltdm@1 { + compatible = "abc"; + #voltdm-cells = <1>; + ... +}; +... +&cpu0 { + cpu0-voltdm = <&voltage_domain_socx SOC_XYZ_VOLTAGE_DOMAIN_MPU>; + voltage-tolerance = <1>; +}; + +&gpu { + gpu-voltdm = <&voltage_domain_socx SOC_XYZ_VOLTAGE_DOMAIN_GFX>; +};