From patchwork Tue Sep 30 14:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38155 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0390B20549 for ; Tue, 30 Sep 2014 14:10:08 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gi9sf6384685lab.6 for ; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ojaYtcdSlPqzB5t5B9VYd5sW0PQun/XjotVKveS9/Js=; b=K+u0vukJR9AfjG+DyHx05u9F3pQfhN2kNOK6X3NzEdH78IuB+72oZqPtgGsiDbJOEN /6LR0wuopmW18OewQIEP7nY6iN6fpN7TspOiz5EGbI15lInGuaRtAIJaWmrXmF9kGYh6 SbYw47HTIk1kvTm6gboafyRaJYhd6RaVLZx71KNQGxB/RYCT2uZBTBx9BRd+hIboh4c2 /9hpNgIIXlgiD9BGtozT2BwZpqsdolxhhpMlf6TgWvVEsGuTEygLxxGCEhBcYsqJ3TXB kUF/1BcI2rBnI5ep80WXmE5TYs9SQeKNKOSGcw4Sc6xUJCMNF4OJh78I1KrlfdNXdU0C iHjA== X-Gm-Message-State: ALoCoQkWnELTNqhVoYscOcUE1xVKWU/rLG5dPs/XrT6E9/Mn72CffdgCu/DrxpaGGPH4JoofFPl1 X-Received: by 10.180.38.11 with SMTP id c11mr904436wik.5.1412086207769; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.227 with SMTP id z3ls48024lad.44.gmail; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) X-Received: by 10.112.164.203 with SMTP id ys11mr44999674lbb.83.1412086207486; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id xt8si22976417lab.44.2014.09.30.07.10.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 07:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id mc6so20585205lab.34 for ; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) X-Received: by 10.112.134.229 with SMTP id pn5mr19006929lbb.22.1412086207361; Tue, 30 Sep 2014 07:10:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp354310lbb; Tue, 30 Sep 2014 07:10:06 -0700 (PDT) X-Received: by 10.66.137.2 with SMTP id qe2mr24751400pab.133.1412086204953; Tue, 30 Sep 2014 07:10:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fm5si26845229pbd.234.2014.09.30.07.10.03 for ; Tue, 30 Sep 2014 07:10:04 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752029AbaI3OJ6 (ORCPT + 27 others); Tue, 30 Sep 2014 10:09:58 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:53377 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbaI3OJz (ORCPT ); Tue, 30 Sep 2014 10:09:55 -0400 Received: by mail-wi0-f173.google.com with SMTP id bs8so4411760wib.12 for ; Tue, 30 Sep 2014 07:09:54 -0700 (PDT) X-Received: by 10.180.86.33 with SMTP id m1mr5981477wiz.11.1412086194257; Tue, 30 Sep 2014 07:09:54 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-99-232-3.as13285.net. [2.99.232.3]) by mx.google.com with ESMTPSA id bl9sm11397904wib.24.2014.09.30.07.09.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 07:09:53 -0700 (PDT) From: Srinivas Kandagatla To: Kumar Gala , devicetree@vger.kernel.org Cc: broonie@kernel.org, lee.jones@linaro.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH v2 1/4] ARM: dts: apq8064: add RPM regulators support Date: Tue, 30 Sep 2014 15:09:48 +0100 Message-Id: <1412086188-20940-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412086159-20894-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412086159-20894-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds rpm node to apq8064 dt as rpm would be used by other devices for regulator support. Also adds all the regulators in the rpm. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064.dtsi | 297 ++++++++++++++++++++++++++++++++++++ 1 file changed, 297 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index b3154c0..64708cb 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -3,6 +3,7 @@ #include "skeleton.dtsi" #include #include +#include #include #include @@ -246,6 +247,302 @@ #reset-cells = <1>; }; + l2cc: clock-controller@2011000 { + compatible = "syscon"; + reg = <0x2011000 0x1000>; + }; + + rpm@108000 { + compatible = "qcom,rpm-apq8064"; + reg = <0x108000 0x1000>; + qcom,ipc = <&l2cc 0x8 2>; + + interrupts = <0 19 0>, <0 21 0>, <0 22 0>; + interrupt-names = "ack", "err", "wakeup"; + + #address-cells = <1>; + #size-cells = <0>; + + /* Buck SMPS */ + pm8921_s1: pm8921-s1 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; + + pm8921_s2: pm8921-s2 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + }; + + pm8921_s3: pm8921-s3 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + qcom,switch-mode-frequency = <4800000>; + }; + + pm8921_s4: pm8921-s4 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,switch-mode-frequency = <3200000>; + }; + + pm8921_s5: pm8921-s5 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = < 850000>; + regulator-max-microvolt = <1300000>; + }; + + pm8921_s6: pm8921-s6 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = < 850000>; + regulator-max-microvolt = <1300000>; + }; + + pm8921_s7: pm8921-s7 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = < 500000>; + regulator-max-microvolt = <1350000>; + }; + + pm8921_s8: pm8921-s8 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2350000>; + }; + + /* PMOS LDO */ + pm8921_l1: pm8921-l1 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1450000>; + }; + + pm8921_l2: pm8921-l2 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + pm8921_l3: pm8921-l3 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <3050000>; + regulator-max-microvolt = <3300000>; + }; + + pm8921_l4: pm8921-l4 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + }; + + pm8921_l5: pm8921-l5 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l6: pm8921-l6 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l7: pm8921-l7 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2750000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l8: pm8921-l8 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l9: pm8921-l9 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l10: pm8921-l10 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + }; + + pm8921_l11: pm8921-l11 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8921_l12: pm8921-l12 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1500000>; + }; + + pm8921_l14: pm8921-l14 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1900000>; + }; + + pm8921_l15: pm8921-l15 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + pm8921_l16: pm8921-l16 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3000000>; + }; + + pm8921_l17: pm8921-l17 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3600000>; + }; + + pm8921_l18: pm8921-l18 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1500000>; + }; + + pm8921_l21: pm8921-l21 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <2100000>; + }; + + pm8921_l22: pm8921-l22 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <2850000>; + }; + + pm8921_l23: pm8921-l23 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1900000>; + }; + + pm8921_l24: pm8921-l24 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <0750000>; + regulator-max-microvolt = <1250000>; + }; + + pm8921_l25: pm8921-l25 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <0750000>; + regulator-max-microvolt = <1250000>; + }; + + pm8921_l26: pm8921-l26 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <0750000>; + regulator-max-microvolt = <1250000>; + }; + + pm8921_l27: pm8921-l27 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <0750000>; + regulator-max-microvolt = <1250000>; + }; + + pm8921_l28: pm8921-l28 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <0750000>; + regulator-max-microvolt = <1500000>; + }; + + pm8921_l29: pm8921-l29 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <2200000>; + }; + + /* Low Voltage Switch */ + pm8921_lvs1: pm8921-lvs1 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs2: pm8921-lvs2 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs3: pm8921-lvs3 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs4: pm8921-lvs4 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs5: pm8921-lvs5 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs6: pm8921-lvs6 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_lvs7: pm8921-lvs7 { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";