From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: "Eric Gonçalves" <ghatto404@gmail.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] arm64: dts: qcom: r0q: enable ufs storage
Date: Mon, 6 Oct 2025 14:08:54 +0200 [thread overview]
Message-ID: <7875ad35-366d-4480-979f-426f5760aa2a@oss.qualcomm.com> (raw)
In-Reply-To: <97CA26D8-2CB5-4F90-A4C8-BCD81C688F35@gmail.com>
On 9/25/25 11:37 PM, Eric Gonçalves wrote:
>
>
> On September 25, 2025 10:07:31 AM GMT-03:00, Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote:
>> On 9/20/25 3:46 AM, Eric Gonçalves wrote:
>>> Enable UFS internal storage of the Samsung Galaxy S22.
>>>
>>> Signed-off-by: Eric Gonçalves <ghatto404@gmail.com>
>>> ---
>>> .../boot/dts/qcom/sm8450-samsung-r0q.dts | 39 +++++++++++++++++++
>>> 1 file changed, 39 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts
>>> index c088f1acf6ea..0a55ce952f93 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts
>>> @@ -146,6 +146,24 @@ vreg_l5b_0p88: ldo5 {
>>> regulator-max-microvolt = <888000>;
>>> regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
>>> };
>>> +
>>> + vreg_l6b_1p2: ldo6 {
>>> + regulator-min-microvolt = <1200000>;
>>> + regulator-max-microvolt = <1200000>;
>>> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
>>> + };
>>> +
>>> + vreg_l7b_2p5: ldo7 {
>>> + regulator-min-microvolt = <2504000>;
>>> + regulator-max-microvolt = <2504000>;
>>> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
>>> + };
>>> +
>>> + vreg_l9b_1p2: ldo9 {
>>> + regulator-min-microvolt = <1200000>;
>>> + regulator-max-microvolt = <1200000>;
>>> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
>>> + };
>>> };
>>>
>>> regulators-1 {
>>> @@ -370,6 +388,27 @@ tsp_int_sleep: tsp_int_sleep_state {
>>> };
>>> };
>>>
>>> +&ufs_mem_hc {
>>> + reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
>>> +
>>> + vcc-supply = <&vreg_l7b_2p5>;
>>> + vcc-max-microamp = <1100000>;
>>
>> because you set this, you should also set regulator-allow-set-mode and
>> regulator-allowed-modes
>>
>> Konrad
> Why is that necessary?
Because that is then translated into the mode selection, based on
the aggregated usage
That said, you may also choose to omit this if you want to run all
regulators at high-power mode (less efficient at idle), which forcefully
ensures you're not hitting any current limits
Konrad
next prev parent reply other threads:[~2025-10-06 12:08 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-20 1:46 [PATCH 0/5] arm64: dts: qcom: r0q: enable more peripherals Eric Gonçalves
2025-09-20 1:46 ` [PATCH 1/5] arm64: dts: qcom: r0q: add gpio keys Eric Gonçalves
2025-09-20 15:45 ` Dmitry Baryshkov
2025-09-20 18:02 ` Eric Gonçalves
2025-09-20 20:15 ` Dmitry Baryshkov
2025-09-20 20:22 ` Eric Gonçalves
2025-09-20 23:21 ` Dmitry Baryshkov
2025-09-20 1:46 ` [PATCH 2/5] arm64: dts: qcom: r0q: add touchscreen support Eric Gonçalves
2025-09-20 15:46 ` Dmitry Baryshkov
2025-09-25 13:08 ` Konrad Dybcio
2025-09-25 21:37 ` Eric Gonçalves
2025-09-20 1:46 ` [PATCH 3/5] arm64: dts: qcom: r0q: enable max77705 PMIC Eric Gonçalves
2025-09-20 15:48 ` Dmitry Baryshkov
2025-09-20 18:04 ` Eric Gonçalves
2025-09-25 13:06 ` Konrad Dybcio
2025-09-26 2:19 ` Eric Gonçalves
2025-10-08 8:34 ` Konrad Dybcio
2025-10-09 20:31 ` Eric Gonçalves
2025-10-20 12:06 ` Konrad Dybcio
2025-09-20 1:46 ` [PATCH 4/5] arm64: dts: qcom: r0q: enable hardware clocks Eric Gonçalves
2025-09-25 13:09 ` Konrad Dybcio
2025-10-05 3:50 ` Eric Gonçalves
2025-10-06 12:31 ` Konrad Dybcio
2025-10-06 15:49 ` Eric Gonçalves
2025-10-08 8:48 ` Konrad Dybcio
2025-10-09 19:20 ` Eric Gonçalves
2025-09-20 1:46 ` [PATCH 5/5] arm64: dts: qcom: r0q: enable ufs storage Eric Gonçalves
2025-09-20 20:16 ` Dmitry Baryshkov
2025-09-25 13:07 ` Konrad Dybcio
2025-09-25 21:37 ` Eric Gonçalves
2025-10-06 12:08 ` Konrad Dybcio [this message]
2025-10-06 15:49 ` Eric Gonçalves
2025-09-22 17:27 ` [PATCH 0/5] arm64: dts: qcom: r0q: enable more peripherals Rob Herring (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7875ad35-366d-4480-979f-426f5760aa2a@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ghatto404@gmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox