Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1431427rdb; Wed, 24 Jan 2024 15:36:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsObx0nv9vGuQAh6qzZV8fkAOB5eqjhgjFZnteuBGbyitxPOc/OrckcN9fCqIH8BP3ZlJZ X-Received: by 2002:a05:6871:29a:b0:214:cd1c:bb88 with SMTP id i26-20020a056871029a00b00214cd1cbb88mr40519oae.112.1706139407178; Wed, 24 Jan 2024 15:36:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706139407; cv=pass; d=google.com; s=arc-20160816; b=gMgMRuHFJhxsgNHtvr41js5PviES3LgfXjs/9TyUnSDNtwwbLJ+qjUvueq8J0O8o1N FNBtzJvjDFEYUSB4SlGp+Fw9z3S4qUyFoF3mogQgu492emZ7OWvD2SmXWJzMpS8NOzHS oSjoXxUaOJHOYlCvcGYFPe7qpCD3kBBuq6bTpdMpWcuV8kgB1rX/zujGKmpKSenDFWSd D8jiJpKIUriPnUWXEJlWYyYT/9BlkIX8HMkXdpeF6eBlkwWzQfmubqzaFouNBq0o9H+n lDzUdAgE8WeUpDiZgTZp97md93g/z7AHskbsYApeqmrrsgmqkt7qC9N1+XBFbkqsjKTs KeTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/vKlrOmknMa0N0UOD2DGqbxqnH0CSwsvClTmdidQIo4=; fh=klvHg/7nK9YmY/ldnAZaxfYEP0xeo8JMS9SLrM1l4MU=; b=WqdkCKH37D/UrpllQ4omuznk3Lvmk41mQbrV8ziJyal5RudjOIiXEt1IGATjY/v+x6 6xpZQJPPXoDbO371fZK9oXaTV51W+gGwXf6s7dMLNxedjE33ccU+1bRvKVKadjkhqF3E YPDkS7o0umLgyrR6LnsAXG0+zPXUXVOmgTVJ+zaocwc2PQBkrLEx4e4Z/llDIOghl1Ng FxH/HabJe9dAhS7lRf2Wx1Qof5W6OIw5/zMTJ7j2U85MeA/lFP7eBSm3ZmSFN57qFDTm Zx8kzQLKGNd7xsODbBy1wsaOaOWzfXYyMeknzC7bVspih4ixI+iyIEYhMeKrNdjXR03A 9auw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JRh/uJvD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k127-20020a632485000000b005cd84b844edsi12327635pgk.604.2024.01.24.15.36.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 15:36:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JRh/uJvD"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37802-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E3A9BB228A6 for ; Wed, 24 Jan 2024 23:36:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17CD613667F; Wed, 24 Jan 2024 23:36:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JRh/uJvD" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A143039AC0 for ; Wed, 24 Jan 2024 23:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706139394; cv=none; b=c6Fer3eFmFbqCW/FAPFfMAiyMzXqEBF5qIeDmheyag+jUeDeb1LmgnVaHqTN7U1VTd3jXy6zDnC4/LE7xonEExQdXaQ53ayId6OPgBTNzQuvpvKFg4do1gp73GNuQNJ2iC8MI47CndXGrhSiYdZ0W1qdV6Se+ict4SUgtsniKmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706139394; c=relaxed/simple; bh=+tvGycd8fkh1gM7sNFqcMBJjG5Qf+7FDcOeuXUANgAs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Qxj5b3ZhftZtp9F5XZEwsc/t7cfhoidCL9S64eSjQt2mCZeuu/zdCepWMutUD+9p17Y1zfWrcon/saJG6gfgSL14d4vdGPSmEo18orUd5xWMb5K1rTI1/Xh90v7sXFrQrKDJhXAz0Nm5ZRiv4WHNkfR3DXqxvXLhJkVgglYld1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JRh/uJvD; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2cd04078ebeso2031031fa.1 for ; Wed, 24 Jan 2024 15:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706139391; x=1706744191; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/vKlrOmknMa0N0UOD2DGqbxqnH0CSwsvClTmdidQIo4=; b=JRh/uJvDGC1WO3ui9dBHsdSKYvBITKgSz01cUj8PB/qdJ+tAezgKFkzk0ImvRi+G3x SUcRLeQjYFaJfPw26H7JhID5V+R75HRdvmd7sKf0PvjdQlpD77HvYMuepn0LFeu6sCXY lNue1BBI7eFaSK4+n97BUTxx3W4sWeIbxtPl+Pv/mlHrHaW+TLsj0So/O2X8Kfi0fQeX AH3af3XBq7G4eN+LGM8p/c8zmWqfGG+DVQVNWLC9Q0btkrS9Jj9HP17A2Dme6aom5b40 ezYnRp/2WavI1Agni8WtlSLfkOckXStjKk0SJ3r6GIjUaVc+ZjFrJJtuLaT2RB0SivWp fTnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706139391; x=1706744191; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/vKlrOmknMa0N0UOD2DGqbxqnH0CSwsvClTmdidQIo4=; b=UqwY4YqdX3GJn0LZ/lKMMaI/imFvhXjPbhw13ta07mm8Hkq5LZg6tJi1Mn+aFKk7BR 1zFtJl3CY9EA1sX+I0mVpIsR2gH5VXC57b7xpk5w75eB/fFpMl4E0ivV4QUIU/JjZd++ +TPxeYPmbjiFrk9TX33Cu7BSBlemxA1WZfLc/vIHrhOl+bFrGIaalQQa5G+YRBoYd5IG CmsDx/j8tp1iJeQ1ZLpl3CSmJ4ctgByQ9S5A++u15hlcL+htzTPtMz6KcevMlk3TyPzX SSsJ1KvZTO857vVcmzgwY/beGqgwbdq3LNpJ78YHk9clpE4QtDRKyLdtp2Z7DhKuBI8M gQ2A== X-Gm-Message-State: AOJu0Yx7kjH6dcObzbYadSwm2/5Pj4swoP9Shs1niYb95cB7PfQLJtGo MvhDPmBB//MENQfraPvPhffLjKzpAT5w7nlNmfRCOz74j4ho70Se53pe1hmn3Ws= X-Received: by 2002:a2e:5cc8:0:b0:2cd:fb91:4b1d with SMTP id q191-20020a2e5cc8000000b002cdfb914b1dmr198813ljb.21.1706139390692; Wed, 24 Jan 2024 15:36:30 -0800 (PST) Received: from [172.30.205.155] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id t6-20020a2e9546000000b002cf15a1d917sm104841ljh.105.2024.01.24.15.36.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 15:36:30 -0800 (PST) Message-ID: <30e890e8-42dd-4b36-a133-95bb34c109d8@linaro.org> Date: Thu, 25 Jan 2024 00:36:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: sm8650-mtp: add PM8010 regulators Content-Language: en-US To: David Collins , quic_fenglinw@quicinc.com, kernel@quicinc.com, Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong References: <20240123-sm8650_pm8010_support-v2-0-52f517b20a1d@quicinc.com> <20240123-sm8650_pm8010_support-v2-1-52f517b20a1d@quicinc.com> <892058db-8013-879d-6c6f-3fbbf4ed3c57@quicinc.com> From: Konrad Dybcio In-Reply-To: <892058db-8013-879d-6c6f-3fbbf4ed3c57@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/24/24 20:15, David Collins wrote: > On 1/23/24 00:49, Fenglin Wu via B4 Relay wrote: >> From: Fenglin Wu >> >> Add PM8010 regulator device nodes for sm8650-mtp board. >> >> Reviewed-by: Neil Armstrong >> Signed-off-by: Fenglin Wu >> --- >> arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 118 ++++++++++++++++++++++++++++++++ >> 1 file changed, 118 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts >> index 9d916edb1c73..3791971efee6 100644 >> --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts >> +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts >> @@ -428,6 +428,124 @@ vreg_l3i_1p2: ldo3 { >> RPMH_REGULATOR_MODE_HPM>; >> }; >> }; >> + >> + regulators-6 { >> + compatible = "qcom,pm8010-rpmh-regulators"; >> + qcom,pmic-id = "m"; >> + >> + vdd-l1-l2-supply = <&vreg_s1c_1p2>; >> + vdd-l3-l4-supply = <&vreg_bob2>; >> + vdd-l5-supply = <&vreg_s6c_1p8>; >> + vdd-l6-l7-supply = <&vreg_bob1>; > > Please replace this line with: > > vdd-l6-supply = <&vreg_bob1>; > vdd-l7-supply = <&vreg_bob1>; > >> + >> + vreg_l1m_1p1: ldo1 { >> + regulator-name = "vreg_l1m_1p1"; >> + regulator-min-microvolt = <1104000>; >> + regulator-max-microvolt = <1104000>; >> + regulator-initial-mode = ; > > Optional: > PM8010 L1 and L2 physically support LPM vs HPM configuration. > Therefore, these lines could be added here to allow such configuration > by software at runtime: > > regulator-allow-set-load; > regulator-allowed-modes = RPMH_REGULATOR_MODE_HPM>; David, I was under the impression that *all* RPMh regulators support modesetting. Would that be an incorrect assumption to make? Konrad