From: "Barnabás Czémán" <barnabas.czeman@mainlining.org>
To: Amir Hanip <killdeath104@gmail.com>
Cc: abelvesa@kernel.org, andersson@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, konradybcio@kernel.org,
krzk+dt@kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, robh@kernel.org, a39skl@gmail.com
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: Add Xiaomi Poco M3
Date: Sun, 01 Nov 2026 20:44:29 +0100 [thread overview]
Message-ID: <9304e75396496855881251cac2edb0a5@mainlining.org> (raw)
In-Reply-To: <20261101164930.17976-1-killdeath104@gmail.com>
On 2026-11-01 17:49, Amir Hanip wrote:
> On Fri, 30 Oct 2026 13:30:28 +0100, Barnabas Czeman wrote:
>> Poco M3 (citrus) is same HW like Redmi 9T (lime) and Remi 9T NFC
>> (lemon) basically is a lime with NFC.
>> So i think it would be better make a common base from lemon's
>> devicetree instead of making the same devicetree again for the
>> different variants where only the compatible and the model property
>> will be the difference.
>> Check sm6115-xiaomi-gingkgo-common for example, it was the same case
>> for Redmi Note 8 (ginkgo) and 8T (willow).
>
> Hi Barnabas, Adam,
>
> Thanks for the review, that makes sense. I am preparing a v3 that
> moves the shared parts of lemon into sm6115-xiaomi-lime-common.dtsi
> and has both lemon and citrus include it. I used the name lime-common
> following your naming. Happy to rename it.
>
> Plan for v3:
> 1. dt-bindings (unchanged)
> 2. lemon: move the shared nodes into the common dtsi, no functional
> change intended
> 3. citrus on top of the common dtsi
>
> I can only test citrus. I do not own a Redmi 9T, so lemon is untested
> on hardware. Instead, I compared the lemon DTS before and after the
> split, normalized with dtc (dtc -I dts -O dts -s). The only
> difference is the numbering of two auto-generated phandles. I will
> describe the check in the cover letter. Adam,
> would you be able to test lemon once v3 is posted, or look at the
> split beforehand?
>
> The IPA carve-outs (pil_ipa_fw_mem and pil_ipa_gsi_mem) are identical
> on both, so they now live in the common dtsi.
>
> I kept the following per variant because I cannot tell whether they
> are real hardware differences or just differences between the stock
> firmware images:
>
> - ADSP carve-out: 0x53800000/0x2200000 on citrus, 0x53400000/0x2600000
> on lemon. Both regions end at 0x55a00000, so only the start and
> size differ. I can only confirm that the citrus value works on my
> device.
If there are no overlaps the bigger range could work for both of them.
> - GPU carve-out: 0x55a15000 on citrus (right after pil_ipa_gsi_mem,
> like the SoC dtsi defaults), 0xfa400000 on lemon. The citrus value
> works: the GPU runs with a full DT that includes the display
> pipeline, which is not part of this series. I cannot verify
> lemon's value. Adam, is 0xfa400000 intentional?
> - PM6125 regulators: seven have different voltage ranges (s7, l5,
> l7, l11, l17, l18, l22). l24 has the same range, but only citrus
> sets regulator-allow-set-load. lemon also marks l5, l7 and l22 as
> always-on, citrus does not.
You should check where the regulators are used, at downstream many times
driver bindings are overriding the ranges. You should check properties
like these:
-min-voltage = <1800000 0>;
-max-voltage = <1800000 0>;
-load-current = <180000 0>;
For the always-on it could be a bad habit from downstream
where they are not leave to the driver to set the regulator on/off,
keeping always-on properties not always necessary with the upstream
drivers.
> - citrus deletes cdsp_sec_mem and the orientation-switch property of
> usb_qmpphy, lemon does not.
I think it could be just left over from the reference design since
these devices are not supporting DP.
>
> Barnabas, Adam: do you know whether these differences are real, or
> whether they only come from the firmware of each model?
>
> Thanks,
> Amir
prev parent reply other threads:[~2026-11-01 19:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 20:51 [PATCH v2 0/2] arm64: dts: qcom: Add Xiaomi Poco M3 (citrus) Amir Hanip
2026-10-27 20:51 ` [PATCH v2 1/2] dt-bindings: arm: qcom: Document Xiaomi Poco M3 Amir Hanip
2026-10-28 12:52 ` Krzysztof Kozlowski
2026-10-27 20:51 ` [PATCH v2 2/2] arm64: dts: qcom: Add " Amir Hanip
2026-10-28 12:35 ` Konrad Dybcio
2026-10-30 12:30 ` Barnabás Czémán
2026-11-01 16:49 ` Amir Hanip
2026-11-01 19:44 ` Barnabás Czémán [this message]
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=9304e75396496855881251cac2edb0a5@mainlining.org \
--to=barnabas.czeman@mainlining.org \
--cc=a39skl@gmail.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=killdeath104@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
all inboxes | Powered by JetHome®