From patchwork Fri Nov 9 09:44:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150620 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1923115ljp; Fri, 9 Nov 2018 01:45:10 -0800 (PST) X-Google-Smtp-Source: AJdET5dUz3cbKIU03SQWkhEZ0vihCQ9a3Dcl0VuDuOu2bBBFG+5Mtwd9LjLPOE+VoIMyJSOkiZm9 X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr7891320pln.224.1541756710082; Fri, 09 Nov 2018 01:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541756710; cv=none; d=google.com; s=arc-20160816; b=TetkPNrEh8gDIjxWNVzmL96J/sAGbTfvKnLQ6gtdpiACY7j2BLCablpcLOxiII1mSz wz9HjPh7NBuylO3vZBhsSelNXArFeYHbjOQrkfJTg8ipGhE3t4WBUHr/nD3AMBkyWzSg 2hvARvflBR7opLq4CzCMTXZLVI2RrFG7jVRV7hx24fcXqErla5nKhNlpauI6FlC9l2IE NsheHIN0byCQnSW/l+b5D5FQM1ujw+YKNx8lsVnDDEikoGDYewMroqVpUPfkHEhHDYR3 ZtxIvCP0aJjBH8n+Y2E7YN9EOGAevdxWhmP9KeXB+KBUdBWcmCnmiye01O02jLOx0nW+ YNvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=W8coTERldxOo3t5RkfE8xyw4n8W0oT0hifd3M5eWdPA=; b=HsP4dnbcFcsWDNzMALrbSCsCvdSgNmdefpVcbbH6pkHeQOANf26UhE89WgJy/fR4d5 UEBKC3zWPu9cVa15vT3xYT1RYtqSznCjDIT+MHNRe/s8bJd26aqDAk0K+RVWPDsS8eds vINi3UpWD/lPMWoO9xwJMiXr4SaqfgAeJF7xtTPUnEFDhs/QLecxfygIYmwDr4gGu5yj DZqtAfpd4toscodzeClr3DFo8fb0Mgd4Wxc9nnIRc7W6C/Pu6XlN35/3v6lj6tz75+aw 6ge3r/HUIBrYzjimbBMW2WDuUGumSTNIBbCnHywQEB60oL9u/Y7oSTzlIAZdEtiJC+sO jsCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QONzCB31; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m63-v6si7361632pld.161.2018.11.09.01.45.09; Fri, 09 Nov 2018 01:45:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QONzCB31; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728095AbeKITYz (ORCPT + 14 others); Fri, 9 Nov 2018 14:24:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:53458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727560AbeKITYy (ORCPT ); Fri, 9 Nov 2018 14:24:54 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 498D420883; Fri, 9 Nov 2018 09:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541756707; bh=oUrcVeQbYHWg+1r8GbVt5MAbuUBH+VkUNqaqh7yK/O4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QONzCB311Jls+5XhUlE13PDkeiiXccm30jrKADSKMrFjc4G2eOel0pqAGRo73yw8T JyJ/Eh374uYfE5l5agZSdItZbO3JQmBQ8+9C8yRW443snK+ivJRVIDMXxoHQZKcUK1 Tq1CtS74CtZeaXcnP1Ic0Zzi7X1aI73SgeqUKXB0= From: Vinod Koul To: Andy Gross Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul Subject: [PATCH v5 05/18] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators Date: Fri, 9 Nov 2018 15:14:04 +0530 Message-Id: <20181109094417.12109-6-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181109094417.12109-1-vkoul@kernel.org> References: <20181109094417.12109-1-vkoul@kernel.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bjorn Andersson Add the RPM regulators found in PMS405 which is used in qcs404-evb Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 97 ++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi index 91ecbdf0ecda..d1ba8b8ece46 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi @@ -11,4 +11,101 @@ chosen { stdout-path = "serial0"; }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&rpm_requests { + pms405-regulators { + compatible = "qcom,rpm-pms405-regulators"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-l1-l2-supply = <&vreg_s5_1p35>; + vdd-l3-l8-supply = <&vreg_s5_1p35>; + vdd-l4-supply = <&vreg_s5_1p35>; + vdd-l5-l6-supply = <&vreg_s4_1p8>; + vdd-l7-supply = <&vph_pwr>; + vdd-l9-supply = <&vreg_s5_1p35>; + vdd-l10-l11-l12-l13-supply = <&vph_pwr>; + + vreg_s4_1p8: s4 { + regulator-min-microvolt = <1728000>; + regulator-max-microvolt = <1920000>; + }; + + vreg_s5_1p35: s5 { + regulator-min-microvolt = <>; + regulator-max-microvolt = <>; + }; + + vreg_l1_1p3: l1 { + regulator-min-microvolt = <1240000>; + regulator-max-microvolt = <1352000>; + }; + + vreg_l2_1p275: l2 { + regulator-min-microvolt = <1048000>; + regulator-max-microvolt = <1280000>; + }; + + vreg_l3_1p05: l3 { + regulator-min-microvolt = <976000>; + regulator-max-microvolt = <1160000>; + }; + + vreg_l4_1p2: l4 { + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1256000>; + }; + + vreg_l5_1p8: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_l6_1p8: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vreg_l7_1p8: l7 { + regulator-min-microvolt = <1616000>; + regulator-max-microvolt = <3000000>; + }; + + vreg_l8_1p2: l8 { + regulator-min-microvolt = <1136000>; + regulator-max-microvolt = <1352000>; + }; + + vreg_l10_3p3: l10 { + regulator-min-microvolt = <2936000>; + regulator-max-microvolt = <3088000>; + }; + + vreg_l11_sdc2: l11 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + }; + + vreg_l12_3p3: l12 { + regulator-min-microvolt = <2968000>; + regulator-max-microvolt = <3300000>; + }; + + vreg_l13_3p3: l13 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + }; };