Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4531129pxf; Tue, 16 Mar 2021 16:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUWJ766xUaizpk02wDT5ksqXEfuZmR72ZOXI3Lwu2xdNess+FGwwq240UwQZ6PBpYyXUsk X-Received: by 2002:a17:906:229b:: with SMTP id p27mr33533263eja.287.1615937336198; Tue, 16 Mar 2021 16:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615937336; cv=none; d=google.com; s=arc-20160816; b=d9IZr4djZz7B6MdZshWHeeseV0cMqyNoeVERDexJ7VYtxpxGTpt8e2qQXThiDSlr/G +tRjJElWySqzLZy+3WwHwan03WFr0xStlZwrJZXmQBxfINk7rd3BxA6c8WwkvgD439p2 nu5hhvjuwAyS2xHeyrSXXt+wR99iAdkrpDdc3pDV7CAyVSajTUqEgSv+A4vQ05Icbbpz cSPVhbcdrrO333m3DvSSY9sX3JOKcq97S46B/UWoGPWBtkMWde8k8ufI1TFTwZyFajnd AiIll9lL0r5iDeanTPu/T+6IQi1yEYyLEBwEAMxrKWjl41ABstRcfu3gy7DaG6mOjUOO p22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w5QajIxS6y5Fi0iTPRAGrD8S6mOwAPT15FoB2waGPFM=; b=scqon1j91MUIJIoi93t2AYXlV4Ju6PZSV2Nqu2gVCOiWd5XG52cpu35Ycfl1eWnuq4 jY16cxht7y06UI60H0Bko1HYBfCdX6i89THFBpmWf9n/ShrsWclvTA8fzRfUjUAOocA8 Hy1lKZp+yezxmBMMuDqY2Q6va5bMNWmGxvaxAwI3jHja9D/vLYTHazFxNxSgifwfrdD0 ZnRJO0Rdk+tQ1wtXzn9ebpKQMs5yw2sebmGzMx8L3YU02OQyJVGROftDD05MH8JyM34V DKeFW3J0L7tHAzYFdHWcMaSZnES5m2cCvicbQV4crpEHhPlS7Z/MJFhuuS4ldmF1XYVV TYxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FzPs1avg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si14495423edq.164.2021.03.16.16.28.32; Tue, 16 Mar 2021 16:28:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FzPs1avg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbhCPX0o (ORCPT + 99 others); Tue, 16 Mar 2021 19:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhCPX0T (ORCPT ); Tue, 16 Mar 2021 19:26:19 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4451C06175F for ; Tue, 16 Mar 2021 16:26:19 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id f2-20020a17090a4a82b02900c67bf8dc69so2192889pjh.1 for ; Tue, 16 Mar 2021 16:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=w5QajIxS6y5Fi0iTPRAGrD8S6mOwAPT15FoB2waGPFM=; b=FzPs1avgRjsFZ3d35srKz+eBOPtuhZPWPiqY8vX4CiI+UonDB4LwUENMF1EWSIYIOS 57SgIkt4SgO4qJ5h+GZBUaY/AWZld2KW49mvMOi5iTScTH9ojaR4ieyLJIgbJLatef46 zCepIuqzZRDAbX/HbgGNRErpChZRZ8jjiDmC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=w5QajIxS6y5Fi0iTPRAGrD8S6mOwAPT15FoB2waGPFM=; b=WxXmqp+eEUTTZnLRXZJGcrRzCFinBbX+QP/cOhopNjwSerh076OJD1moNkZuaX8IMD u6Nffdz2DEQqax+UKHb6aoFnISSbs7g2g5WarZ/NNs7Njc1tEC5XC7kf0arYE2mUkSVn R3Uj0TXqDM6GR5olwVzc5XBGR+C1hKw7FlAKnVMpQffEoppvDwOJvdK//i1BxJk3tiJP fOUU7hzvk1Cv5R7+RZOWQGIE8b4bYYlvtryCpnwVdzadpLlkReFwOKY8G9/nqwCEZPQr zSiEsJRR+LuTR3ormuxg27VqjTIug80JmCV4NlrMzCLejoTyzq2FEt+b1PIpAkcTqOfn 8nPQ== X-Gm-Message-State: AOAM532oVuezLG80dmKVV+IDOvf5MWnhX2uF8AP30LLBoZ1xMd+YkRM3 gnFE71B0LYhS7XuplwKpr2eg3Q== X-Received: by 2002:a17:90a:b63:: with SMTP id 90mr1424994pjq.124.1615937179059; Tue, 16 Mar 2021 16:26:19 -0700 (PDT) Received: from localhost ([2620:15c:202:1:b471:7d:bf21:d7dd]) by smtp.gmail.com with UTF8SMTPSA id v7sm17515668pfv.93.2021.03.16.16.26.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Mar 2021 16:26:18 -0700 (PDT) Date: Tue, 16 Mar 2021 16:26:16 -0700 From: Matthias Kaehlcke To: satya priya Cc: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , Rob Herring , rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, David Collins Subject: Re: [PATCH V2 3/5] arm64: dts: qcom: sc7280: Add RPMh regulators for sc7280-idp Message-ID: References: <1615816454-1733-1-git-send-email-skakit@codeaurora.org> <1615816454-1733-4-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1615816454-1733-4-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 07:24:12PM +0530, satya priya wrote: > Add regulator devices for SC7280 as RPMh regulators. This ensures > that consumers are able to modify the physical state of PMIC > regulators. > > Signed-off-by: satya priya > --- > Changes in V2: > - Corrected the indentation for "compatible" and "qcom,pmic-id" under > pm8350c-regulators as per Konrad's comment. > > arch/arm64/boot/dts/qcom/sc7280-idp.dts | 212 ++++++++++++++++++++++++++++++++ > 1 file changed, 212 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > index 428f863..78effe5 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > @@ -22,6 +22,218 @@ > }; > }; > > +&apps_rsc { > + pm7325-regulators { > + compatible = "qcom,pm7325-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + vreg_s1b_1p8: smps1 { > + regulator-min-microvolt = <1856000>; For most LDOs their 'Active minimum voltage' is specified as their minimum, however for S1B and S8B it's the 'Nominal voltage. Is that intentional? There might be a misunderstanding on my side what the values in the datasheet actually mean, see my comment at the end. > + regulator-max-microvolt = <2040000>; > + }; > + > + vreg_s7b_0p9: smps7 { > + regulator-min-microvolt = <535000>; According to the datasheet the minimum voltage of the S7B regulator is 904 mV. > + regulator-max-microvolt = <1120000>; > + }; > + > + vreg_s8b_1p2: smps8 { > + regulator-min-microvolt = <1256000>; > + regulator-max-microvolt = <1500000>; > + }; > + > + vreg_l1b_0p8: ldo1 { > + regulator-min-microvolt = <825000>; > + regulator-max-microvolt = <925000>; > + }; > + > + vreg_l2b_3p0: ldo2 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + }; Another question that came up for sc7180-trogdor regulators, whose core regulator config was derived from sc7180-idp: the label suggests that this regulator is supposed to supply 3V, however the range spans from 2.7 to 3.54V. Shouldn't it be narrower around 3V? Same for other some regulators. > + > + vreg_l6b_1p2: ldo6 { > + regulator-min-microvolt = <1140000>; The datasheet says the minimum for L6B is 1.2V. > + regulator-max-microvolt = <1260000>; > + }; > + > + vreg_l7b_2p9: ldo7 { > + regulator-min-microvolt = <2960000>; > + regulator-max-microvolt = <2960000>; > + }; This regulator has a fixed voltage in difference to the others, why is that? > + > + vreg_l8b_0p9: ldo8 { > + regulator-min-microvolt = <870000>; > + regulator-max-microvolt = <970000>; > + }; > + > + vreg_l9b_1p2: ldo9 { > + regulator-min-microvolt = <1080000>; > + regulator-max-microvolt = <1304000>; > + }; > + > + vreg_l11b_1p7: ldo11 { > + regulator-min-microvolt = <1504000>; The datasheet says the mininum voltage for L11B is 1.776V. > + regulator-max-microvolt = <2000000>; > + }; > + > + vreg_l12b_0p8: ldo12 { > + regulator-min-microvolt = <751000>; > + regulator-max-microvolt = <824000>; > + }; > + > + vreg_l13b_0p8: ldo13 { > + regulator-min-microvolt = <530000>; > + regulator-max-microvolt = <824000>; The max for L13B is 880mV, is this a copy and paste from L12B? > + }; > + > + vreg_l14b_1p2: ldo14 { > + regulator-min-microvolt = <1080000>; The datasheet says the mininum voltage for L14B is 1.2V. > + regulator-max-microvolt = <1304000>; > + }; > + > + vreg_l15b_0p8: ldo15 { > + regulator-min-microvolt = <765000>; > + regulator-max-microvolt = <1020000>; > + }; > + > + vreg_l16b_1p2: ldo16 { > + regulator-min-microvolt = <1100000>; The datasheet says the mininum voltage for L16B is 1.2V. > + regulator-max-microvolt = <1300000>; > + }; > + > + vreg_l17b_1p8: ldo17 { > + regulator-min-microvolt = <1700000>; The datasheet says the mininum voltage for L17B is 1.8V. > + regulator-max-microvolt = <1900000>; > + }; > + > + vreg_l18b_1p8: ldo18 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + }; > + > + vreg_l19b_1p8: ldo19 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; Is a fixed voltage intentional here? > + }; > + }; > + > + pm8350c-regulators { > + compatible = "qcom,pm8350c-rpmh-regulators"; I can't find the datasheet for this chip, skipping this part. > + pmr735a-regulators { > + compatible = "qcom,pmr735a-rpmh-regulators"; > + qcom,pmic-id = "e"; > + > + vreg_l2e_1p2: ldo2 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + vreg_l3e_0p9: ldo3 { > + regulator-min-microvolt = <912000>; > + regulator-max-microvolt = <1020000>; According to the datasheet min and max for L3E is 1.2V. The datasheet lists different voltages for 'SM8350 lineup' and 'SM8xyz' lineup though, does that mean that the voltages aren't limitations of what the regulators can provide but what their consumers support? There are also deltas for the remaining regulators, but now I'm in doubt about what the info in the datasheet actually means. > + }; > + > + vreg_l4e_1p7: ldo4 { > + regulator-min-microvolt = <1776000>; > + regulator-max-microvolt = <1890000>; > + }; > + > + vreg_l5e_0p8: ldo5 { > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <800000>; > + }; > + > + vreg_l6e_0p8: ldo6 { > + regulator-min-microvolt = <480000>; > + regulator-max-microvolt = <904000>; > + }; > + }; > +}; > + > &qupv3_id_0 { > status = "okay"; > };