From patchwork Mon Feb 23 07:54:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 44889 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 2F48621570 for ; Mon, 23 Feb 2015 07:55:05 +0000 (UTC) Received: by labge10 with SMTP id ge10sf10688225lab.3 for ; Sun, 22 Feb 2015 23:55:04 -0800 (PST) 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=ZxtJqlLEbizG2haCp8pUzjt9GUvtOfvr5O1dZ+OL4/V8sveKe+PIob4U4FoiFezYol 1fWEZviTloP1oce/RkKNfM/v7EuS7ek7XG+9HDudpmgMuYF65ivbKaAawTugG8+jjZEe 63N2y7srqU0Rt61KisCMnafLFnLSIJ99FqTLzruWPqgPR2Ic63hC7TRUPXyMx8dyhYIG +XzvdFBswcV833vBTadd3GFMxPVQ2hR1IuljJnJJY+E1VpS8yaw457JosRgyjkQKtuT7 6qKE2ZdtJAfC/OWRxV8LBRg7uGoDtJQBpoOciaHsSYRsGFI2JejOxUsv6d0BUQjopnFj pdaw== X-Gm-Message-State: ALoCoQlROgbuCUPkh9SrklIqKoxnXeYR6GL02bsNWEzxNNnWz6YvVm/nkHZ6bxoNW5FvJnxxbG1U X-Received: by 10.180.91.76 with SMTP id cc12mr1048122wib.7.1424678104048; Sun, 22 Feb 2015 23:55:04 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.72 with SMTP id h8ls457121laa.46.gmail; Sun, 22 Feb 2015 23:55:03 -0800 (PST) X-Received: by 10.152.1.170 with SMTP id 10mr8526385lan.89.1424678103808; Sun, 22 Feb 2015 23:55:03 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id gh10si23735429lbc.38.2015.02.22.23.55.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 23:55:03 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labgd6 with SMTP id gd6so16671605lab.7 for ; Sun, 22 Feb 2015 23:55:03 -0800 (PST) X-Received: by 10.112.188.165 with SMTP id gb5mr8765019lbc.35.1424678103531; Sun, 22 Feb 2015 23:55:03 -0800 (PST) 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.35.133 with SMTP id h5csp1103573lbj; Sun, 22 Feb 2015 23:55:02 -0800 (PST) X-Received: by 10.68.233.232 with SMTP id tz8mr16915763pbc.166.1424678101411; Sun, 22 Feb 2015 23:55:01 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si11058454pdr.140.2015.02.22.23.55.00; Sun, 22 Feb 2015 23:55:01 -0800 (PST) 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 S1752241AbbBWHy7 (ORCPT + 5 others); Mon, 23 Feb 2015 02:54:59 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:46958 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbbBWHy7 (ORCPT ); Mon, 23 Feb 2015 02:54:59 -0500 Received: by wevm14 with SMTP id m14so16233782wev.13 for ; Sun, 22 Feb 2015 23:54:57 -0800 (PST) X-Received: by 10.194.157.68 with SMTP id wk4mr19637846wjb.123.1424678097619; Sun, 22 Feb 2015 23:54:57 -0800 (PST) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-96-88-56.as13285.net. [2.96.88.56]) by mx.google.com with ESMTPSA id u16sm15188000wjr.5.2015.02.22.23.54.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Feb 2015 23:54:56 -0800 (PST) From: Srinivas Kandagatla To: Kumar Gala , linux-arm-msm@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 01/12] ARM: dts: apq8064: add RPM regulators support Date: Mon, 23 Feb 2015 07:54:53 +0000 Message-Id: <1424678093-12966-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <424678035-12862-1-git-send-email-srinivas.kandagatla@linaro.org> References: <424678035-12862-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.215.42 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";