From: Shawn Guo <shengchao.guo@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Ilia Lin <ilia.lin@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings
Date: Mon, 23 Nov 2026 21:30:31 +0800 [thread overview]
Message-ID: <awQ_90R8_uGWm2Sz@QCOM-aGQu4IUr3Y> (raw)
In-Reply-To: <20261122-qcom-socinfo-id-dt-bindings-v1-1-eeee0ffa25da@oss.qualcomm.com>
On Sun, Nov 22, 2026 at 06:46:20PM +0100, Krzysztof Kozlowski wrote:
> The IDs of newer Qualcomm SoCs, as reported by hardware or firmware, are
> currently used only in the socinfo.c driver. There should no and there
s/should no/should be no/
> is no in-tree DTS user of these, so none of these constants are really
> proper Devicetree ABI. IDs of older SoCs were being used in DTS, thus
> that part matches the concept behind DT bindings.
Not quite true for the start of the range. The constants themselves
are not referenced, but the values are used as raw numbers in
qcom,msm-id:
qrb5165-rb5.dts: qcom,msm-id = <455 0x20001>;
sm7225-fairphone-fp4.dts: qcom,msm-id = <459 0x10000>;
sm6350-sony-xperia-lena-pdx213.dts: qcom,msm-id = <434 0x10000>, <459 0x10000>;
So QRB5165 and SM7225 are still consumed by bootloaders through DTS,
which is the same category as the older IDs you keep.
> Copy arbitrarily chosen newer SoC IDs from DT bindings to the regular
> header of socinfo driver and use it when needed, so later they could be
> removed from the bindings.
I would suggest converting the boards above to QCOM_ID_QRB5165 and
QCOM_ID_SM7225, and keeping those two IDs in the bindings. Then
the in-tree DTS users become visible, and the cut is no longer arbitrary:
everything left in qcom,ids.h is an ID actually used by DTS.
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
> drivers/clk/qcom/apss-ipq6018.c | 2 +-
> drivers/cpufreq/qcom-cpufreq-nvmem.c | 1 +
> include/linux/soc/qcom/socinfo.h | 94 ++++++++++++++++++++++++++++++++++++
> 3 files changed, 96 insertions(+), 1 deletion(-)
[...]
> diff --git a/include/linux/soc/qcom/socinfo.h b/include/linux/soc/qcom/socinfo.h
> index ba823a0013c5..cd2e8eddf3b5 100644
> --- a/include/linux/soc/qcom/socinfo.h
> +++ b/include/linux/soc/qcom/socinfo.h
> @@ -112,4 +112,98 @@ enum qcom_socinfo_feature_code {
> #define SOCINFO_PCn(n) ((n) + 1)
> #define SOCINFO_PC_RESERVE (BIT(31) - 1)
>
> +/* SoC IDs */
> +#define QCOM_ID_QRB5165 455
> +#define QCOM_ID_SM8450 457
> +#define QCOM_ID_SM7225 459
> +#define QCOM_ID_SA8295P 460
> +#define QCOM_ID_SA8540P 461
> +#define QCOM_ID_QCM4290 469
> +#define QCOM_ID_QCS4290 470
> +#define QCOM_ID_SM7325 475
[...]
> +#define QCOM_ID_IPQ5404 671
> +#define QCOM_ID_QCS9100 667
Since the list is being moved anyway, this might be a good moment to
fix the ordering.
Also, drivers/clk/qcom/apss-ipq5424.c includes qcom,ids.h without using
any QCOM_ID_* constant, so the include could be dropped while at it.
Shawn
next prev parent reply other threads:[~2026-11-23 13:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 17:46 [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Krzysztof Kozlowski
2026-11-22 17:46 ` [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings Krzysztof Kozlowski
2026-11-23 13:30 ` Shawn Guo [this message]
2026-11-22 17:46 ` [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants Krzysztof Kozlowski
2026-11-23 13:34 ` Shawn Guo
2026-11-23 15:17 ` Konrad Dybcio
2026-11-23 15:22 ` Krzysztof Kozlowski
2026-11-23 19:06 ` Konrad Dybcio
2026-11-23 13:06 ` [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Shawn Guo
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=awQ_90R8_uGWm2Sz@QCOM-aGQu4IUr3Y \
--to=shengchao.guo@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ilia.lin@kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=viresh.kumar@linaro.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®