From patchwork Wed Oct 1 09:06:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 38224 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3C55B202E7 for ; Wed, 1 Oct 2014 09:06:49 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id b13sf289929wgh.8 for ; Wed, 01 Oct 2014 02:06:48 -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=piSTOnUtO+P8lFpaKhx6rDJ7FNM9s7TqR5pTBAXH7pA=; b=EIUlY0ZBNJnI/McVLFHsREJg6TClhQkWktsvV6ni1FDH7o5rYqJFR9pLCzXlylFH/l WX5Hq/q2Z6IjbryP82/cBn3SVyCzAnO6gz63DTZAuaNBrqe7JDtQ/oGJ0MWq6bvKzUZP hacxyapjPYxebkkzZsMt4K74ThWMHbM9Eri0AWVrzUFyxAOyIDYgUWomelGeLLcGCuAC 75Asi3odYSAD3XVNsGb80emEXkrW4LhTiueipn/uC41C8/GsETm1etAlw0uOVkZryRy7 CR6TXAIJAHHCEivg0XM6NE7W8IQuIPyk8jYrZHyiZYAxD4OX1KVVu6KC7gZ8JG/MGb/P rGQA== X-Gm-Message-State: ALoCoQnAt3A0fCAZbjkrFmWR4X3MbEfG76c7xzM9vXoEj/CLcv+bmm2Xbo0+SMcBQ6nXselzqAPy X-Received: by 10.194.63.206 with SMTP id i14mr269066wjs.5.1412154408407; Wed, 01 Oct 2014 02:06:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.2 with SMTP id cq2ls127054lad.102.gmail; Wed, 01 Oct 2014 02:06:48 -0700 (PDT) X-Received: by 10.112.9.234 with SMTP id d10mr16059898lbb.98.1412154408253; Wed, 01 Oct 2014 02:06:48 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id m10si516830lam.90.2014.10.01.02.06.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 02:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id z11so361062lbi.13 for ; Wed, 01 Oct 2014 02:06:48 -0700 (PDT) X-Received: by 10.152.5.168 with SMTP id t8mr53016473lat.67.1412154408029; Wed, 01 Oct 2014 02:06:48 -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 of9csp494347lbb; Wed, 1 Oct 2014 02:06:47 -0700 (PDT) X-Received: by 10.70.118.9 with SMTP id ki9mr98959799pdb.104.1412154406502; Wed, 01 Oct 2014 02:06:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fq1si311640pbb.72.2014.10.01.02.06.45 for ; Wed, 01 Oct 2014 02:06:46 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1751765AbaJAJGn (ORCPT + 5 others); Wed, 1 Oct 2014 05:06:43 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:49456 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbaJAJGl (ORCPT ); Wed, 1 Oct 2014 05:06:41 -0400 Received: by mail-wi0-f175.google.com with SMTP id d1so1203399wiv.14 for ; Wed, 01 Oct 2014 02:06:39 -0700 (PDT) X-Received: by 10.194.189.115 with SMTP id gh19mr11666138wjc.119.1412154399744; Wed, 01 Oct 2014 02:06:39 -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 o1sm447780wja.25.2014.10.01.02.06.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Oct 2014 02:06:39 -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, linux-arm-msm@vger.kernel.org, bjorn.andersson@sonymobile.com, Srinivas Kandagatla Subject: [PATCH v3 1/4] ARM: dts: apq8064: add RPM regulators support Date: Wed, 1 Oct 2014 10:06:36 +0100 Message-Id: <1412154396-2712-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412154355-2639-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1412154355-2639-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.217.182 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 | 241 ++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index b3154c0..db5fc59 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,246 @@ #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 = ; + }; + + pm8921_s2: pm8921-s2 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + }; + + pm8921_s3: pm8921-s3 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + }; + + pm8921_s4: pm8921-s4 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + }; + + pm8921_s5: pm8921-s5 { + compatible = "qcom,rpm-pm8921-ftsmps"; + reg = ; + }; + + pm8921_s6: pm8921-s6 { + compatible = "qcom,rpm-pm8921-ftsmps"; + reg = ; + }; + + pm8921_s7: pm8921-s7 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + }; + + pm8921_s8: pm8921-s8 { + compatible = "qcom,rpm-pm8921-smps"; + reg = ; + }; + + /* PMOS LDO */ + pm8921_l1: pm8921-l1 { + compatible = "qcom,rpm-pm8921-nldo"; + reg = ; + }; + + pm8921_l2: pm8921-l2 { + compatible = "qcom,rpm-pm8921-nldo"; + reg = ; + }; + + pm8921_l3: pm8921-l3 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l4: pm8921-l4 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l5: pm8921-l5 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l6: pm8921-l6 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l7: pm8921-l7 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l8: pm8921-l8 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l9: pm8921-l9 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l10: pm8921-l10 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l11: pm8921-l11 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l12: pm8921-l12 { + compatible = "qcom,rpm-pm8921-nldo"; + reg = ; + }; + + pm8921_l14: pm8921-l14 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l15: pm8921-l15 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l16: pm8921-l16 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l17: pm8921-l17 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l18: pm8921-l18 { + compatible = "qcom,rpm-pm8921-nldo"; + reg = ; + }; + + pm8921_l21: pm8921-l21 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l22: pm8921-l22 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l23: pm8921-l23 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + pm8921_l24: pm8921-l24 { + compatible = "qcom,rpm-pm8921-nldo1200"; + reg = ; + }; + + pm8921_l25: pm8921-l25 { + compatible = "qcom,rpm-pm8921-nldo1200"; + reg = ; + }; + + pm8921_l26: pm8921-l26 { + compatible = "qcom,rpm-pm8921-nldo1200"; + reg = ; + }; + + pm8921_l27: pm8921-l27 { + compatible = "qcom,rpm-pm8921-nldo1200"; + reg = ; + }; + + pm8921_l28: pm8921-l28 { + compatible = "qcom,rpm-pm8921-nldo1200"; + reg = ; + }; + + pm8921_l29: pm8921-l29 { + compatible = "qcom,rpm-pm8921-pldo"; + reg = ; + }; + + /* 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 = ; + }; + + pm8921_usb_switch: pm8921-usb-switch { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_hdmi_switch: pm8921-hdmi-switch { + compatible = "qcom,rpm-pm8921-switch"; + reg = ; + }; + + pm8921_ncp: pm8921-ncp { + compatible = "qcom,rpm-pm8921-ncp"; + reg = ; + }; + }; + /* Temporary fixed regulator */ vsdcc_fixed: vsdcc-regulator { compatible = "regulator-fixed";