* [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs
@ 2026-11-22 17:46 Krzysztof Kozlowski
2026-11-22 17:46 ` [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-22 17:46 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm,
Krzysztof Kozlowski
It turns out that people add SoC IDs as Devicetree bindings, thus ABI,
and then want to change them, for example because whatever
renaming/marketing happened. Well, that makes little sense - either
this is ABI and cannot be changed, or is not an ABI and can be changed.
https://lore.kernel.org/all/9eda2209-d64a-4a1c-915d-4415ac47df45@kernel.org/
Best regards,
Krzysztof
---
Krzysztof Kozlowski (2):
soc: qcom: socinfo: Copy new SoC IDs from bindings
dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
drivers/clk/qcom/apss-ipq6018.c | 2 +-
drivers/cpufreq/qcom-cpufreq-nvmem.c | 1 +
include/dt-bindings/arm/qcom,ids.h | 93 +----------------------------------
include/linux/soc/qcom/socinfo.h | 94 ++++++++++++++++++++++++++++++++++++
4 files changed, 97 insertions(+), 93 deletions(-)
---
base-commit: 74ceacafec02465d922ad68dce9498c8f50e5f5d
change-id: 20261122-qcom-socinfo-id-dt-bindings-e6fe815b4480
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings
2026-11-22 17:46 [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Krzysztof Kozlowski
@ 2026-11-22 17:46 ` Krzysztof Kozlowski
2026-11-23 13:30 ` Shawn Guo
2026-11-22 17:46 ` [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants Krzysztof Kozlowski
2026-11-23 13:06 ` [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Shawn Guo
2 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-22 17:46 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm,
Krzysztof Kozlowski
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
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.
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.
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/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c
index 32347e6d8775..b4babeece2e0 100644
--- a/drivers/clk/qcom/apss-ipq6018.c
+++ b/drivers/clk/qcom/apss-ipq6018.c
@@ -11,9 +11,9 @@
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/soc/qcom/smem.h>
+#include <linux/soc/qcom/socinfo.h>
#include <dt-bindings/clock/qcom,apss-ipq.h>
-#include <dt-bindings/arm/qcom,ids.h>
#include "common.h"
#include "clk-regmap.h"
diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c
index 2b458ed1f6cf..3f933a434526 100644
--- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
+++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
@@ -29,6 +29,7 @@
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/soc/qcom/smem.h>
+#include <linux/soc/qcom/socinfo.h>
#include <dt-bindings/arm/qcom,ids.h>
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_SM8450_2 480
+#define QCOM_ID_SM8450_3 482
+#define QCOM_ID_SC7280 487
+#define QCOM_ID_SC7180P 495
+#define QCOM_ID_QCM6490 497
+#define QCOM_ID_QCS6490 498
+#define QCOM_ID_SM7325P 499
+#define QCOM_ID_IPQ5000 503
+#define QCOM_ID_IPQ0509 504
+#define QCOM_ID_IPQ0518 505
+#define QCOM_ID_SM7450 506
+#define QCOM_ID_SM6375 507
+#define QCOM_ID_IPQ9514 510
+#define QCOM_ID_IPQ9550 511
+#define QCOM_ID_IPQ9554 512
+#define QCOM_ID_IPQ9570 513
+#define QCOM_ID_IPQ9574 514
+#define QCOM_ID_SM8550 519
+#define QCOM_ID_IPQ5016 520
+#define QCOM_ID_IPQ9510 521
+#define QCOM_ID_QRB4210 523
+#define QCOM_ID_QRB2210 524
+#define QCOM_ID_SAR2130P 525
+#define QCOM_ID_SM8475 530
+#define QCOM_ID_SM8475P 531
+#define QCOM_ID_SA8255P 532
+#define QCOM_ID_SA8650P 533
+#define QCOM_ID_SA8775P 534
+#define QCOM_ID_QRU1000 539
+#define QCOM_ID_SM8475_2 540
+#define QCOM_ID_QDU1000 545
+#define QCOM_ID_SM7450P 547
+#define QCOM_ID_X1E80100 555
+#define QCOM_ID_SM8650 557
+#define QCOM_ID_SM4450 568
+#define QCOM_ID_SAR1130P 579
+#define QCOM_ID_QDU1010 587
+#define QCOM_ID_QRU1032 588
+#define QCOM_ID_QRU1052 589
+#define QCOM_ID_QRU1062 590
+#define QCOM_ID_IPQ5332 592
+#define QCOM_ID_IPQ5322 593
+#define QCOM_ID_IPQ5312 594
+#define QCOM_ID_IPQ5302 595
+#define QCOM_ID_QCS8550 603
+#define QCOM_ID_QCM8550 604
+#define QCOM_ID_SM8750 618
+#define QCOM_ID_IPQ5300 624
+#define QCOM_ID_SM7635 636
+#define QCOM_ID_SM6650 640
+#define QCOM_ID_SM6650P 641
+#define QCOM_ID_IPQ5321 650
+#define QCOM_ID_IPQ5424 651
+#define QCOM_ID_QCM6690 657
+#define QCOM_ID_QCS6690 658
+#define QCOM_ID_SM7750 659
+#define QCOM_ID_SM8850 660
+#define QCOM_ID_IPQ5404 671
+#define QCOM_ID_QCS9100 667
+#define QCOM_ID_QCS8300 674
+#define QCOM_ID_QCS8275 675
+#define QCOM_ID_QCS9075 676
+#define QCOM_ID_QCS615 680
+#define QCOM_ID_SA8797P 690
+#define QCOM_ID_SM8975 707
+#define QCOM_ID_CQ7790M 731
+#define QCOM_ID_CQ7790S 732
+#define QCOM_ID_SM8950 735
+#define QCOM_ID_CQ2390M 756
+#define QCOM_ID_CQ2390S 758
+#define QCOM_ID_IQ2390S 759
+#define QCOM_ID_IPQ5200 765
+#define QCOM_ID_IPQ5210 766
+#define QCOM_ID_QCF2200 767
+#define QCOM_ID_QCF3200 768
+#define QCOM_ID_QCF3210 769
+#define QCOM_ID_IPQ9620 770
+#define QCOM_ID_IPQ9650 771
+#define QCOM_ID_IPQ9610 778
+#define QCOM_ID_IPQ9630 779
+#define QCOM_ID_IPQ9640 780
+#define QCOM_ID_IPQ9670 781
+#define QCOM_ID_QCF3211 801
+#define QCOM_ID_IPQ5211 802
+
#endif
--
2.53.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
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-22 17:46 ` Krzysztof Kozlowski
2026-11-23 13:34 ` Shawn Guo
2026-11-23 15:17 ` Konrad Dybcio
2026-11-23 13:06 ` [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Shawn Guo
2 siblings, 2 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-22 17:46 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm,
Krzysztof Kozlowski
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
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.
Driver have local copy of these defines, thus these can be dropped.
This has no impact on in-tree ABI, but any outside users would be
affected.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
include/dt-bindings/arm/qcom,ids.h | 93 +-------------------------------------
1 file changed, 1 insertion(+), 92 deletions(-)
diff --git a/include/dt-bindings/arm/qcom,ids.h b/include/dt-bindings/arm/qcom,ids.h
index d89d3b5dd00c..ede8fb7ee51d 100644
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -229,98 +229,7 @@
#define QCOM_ID_IPQ5028 448
#define QCOM_ID_SC8280XP 449
#define QCOM_ID_IPQ6005 453
-#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_SM8450_2 480
-#define QCOM_ID_SM8450_3 482
-#define QCOM_ID_SC7280 487
-#define QCOM_ID_SC7180P 495
-#define QCOM_ID_QCM6490 497
-#define QCOM_ID_QCS6490 498
-#define QCOM_ID_SM7325P 499
-#define QCOM_ID_IPQ5000 503
-#define QCOM_ID_IPQ0509 504
-#define QCOM_ID_IPQ0518 505
-#define QCOM_ID_SM7450 506
-#define QCOM_ID_SM6375 507
-#define QCOM_ID_IPQ9514 510
-#define QCOM_ID_IPQ9550 511
-#define QCOM_ID_IPQ9554 512
-#define QCOM_ID_IPQ9570 513
-#define QCOM_ID_IPQ9574 514
-#define QCOM_ID_SM8550 519
-#define QCOM_ID_IPQ5016 520
-#define QCOM_ID_IPQ9510 521
-#define QCOM_ID_QRB4210 523
-#define QCOM_ID_QRB2210 524
-#define QCOM_ID_SAR2130P 525
-#define QCOM_ID_SM8475 530
-#define QCOM_ID_SM8475P 531
-#define QCOM_ID_SA8255P 532
-#define QCOM_ID_SA8650P 533
-#define QCOM_ID_SA8775P 534
-#define QCOM_ID_QRU1000 539
-#define QCOM_ID_SM8475_2 540
-#define QCOM_ID_QDU1000 545
-#define QCOM_ID_SM7450P 547
-#define QCOM_ID_X1E80100 555
-#define QCOM_ID_SM8650 557
-#define QCOM_ID_SM4450 568
-#define QCOM_ID_SAR1130P 579
-#define QCOM_ID_QDU1010 587
-#define QCOM_ID_QRU1032 588
-#define QCOM_ID_QRU1052 589
-#define QCOM_ID_QRU1062 590
-#define QCOM_ID_IPQ5332 592
-#define QCOM_ID_IPQ5322 593
-#define QCOM_ID_IPQ5312 594
-#define QCOM_ID_IPQ5302 595
-#define QCOM_ID_QCS8550 603
-#define QCOM_ID_QCM8550 604
-#define QCOM_ID_SM8750 618
-#define QCOM_ID_IPQ5300 624
-#define QCOM_ID_SM7635 636
-#define QCOM_ID_SM6650 640
-#define QCOM_ID_SM6650P 641
-#define QCOM_ID_IPQ5321 650
-#define QCOM_ID_IPQ5424 651
-#define QCOM_ID_QCM6690 657
-#define QCOM_ID_QCS6690 658
-#define QCOM_ID_SM7750 659
-#define QCOM_ID_SM8850 660
-#define QCOM_ID_IPQ5404 671
-#define QCOM_ID_QCS9100 667
-#define QCOM_ID_QCS8300 674
-#define QCOM_ID_QCS8275 675
-#define QCOM_ID_QCS9075 676
-#define QCOM_ID_QCS615 680
-#define QCOM_ID_SA8797P 690
-#define QCOM_ID_SM8975 707
-#define QCOM_ID_CQ7790M 731
-#define QCOM_ID_CQ7790S 732
-#define QCOM_ID_SM8950 735
-#define QCOM_ID_CQ2390M 756
-#define QCOM_ID_CQ2390S 758
-#define QCOM_ID_IQ2390S 759
-#define QCOM_ID_IPQ5200 765
-#define QCOM_ID_IPQ5210 766
-#define QCOM_ID_QCF2200 767
-#define QCOM_ID_QCF3200 768
-#define QCOM_ID_QCF3210 769
-#define QCOM_ID_IPQ9620 770
-#define QCOM_ID_IPQ9650 771
-#define QCOM_ID_IPQ9610 778
-#define QCOM_ID_IPQ9630 779
-#define QCOM_ID_IPQ9640 780
-#define QCOM_ID_IPQ9670 781
-#define QCOM_ID_QCF3211 801
-#define QCOM_ID_IPQ5211 802
+/* Do not grow the list with entries which are not used as Devicetree ABI */
/*
* The board type and revision information, used by Qualcomm bootloaders and
--
2.53.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs
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-22 17:46 ` [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants Krzysztof Kozlowski
@ 2026-11-23 13:06 ` Shawn Guo
2 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2026-11-23 13:06 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar,
linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On Sun, Nov 22, 2026 at 06:46:19PM +0100, Krzysztof Kozlowski wrote:
> It turns out that people add SoC IDs as Devicetree bindings, thus ABI,
> and then want to change them, for example because whatever
> renaming/marketing happened. Well, that makes little sense - either
> this is ABI and cannot be changed, or is not an ABI and can be changed.
I like this cleanup. Keeping ABI as necessary as possible makes sense to
me.
Shawn
>
> https://lore.kernel.org/all/9eda2209-d64a-4a1c-915d-4415ac47df45@kernel.org/
>
> Best regards,
> Krzysztof
>
> ---
> Krzysztof Kozlowski (2):
> soc: qcom: socinfo: Copy new SoC IDs from bindings
> dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
>
> drivers/clk/qcom/apss-ipq6018.c | 2 +-
> drivers/cpufreq/qcom-cpufreq-nvmem.c | 1 +
> include/dt-bindings/arm/qcom,ids.h | 93 +----------------------------------
> include/linux/soc/qcom/socinfo.h | 94 ++++++++++++++++++++++++++++++++++++
> 4 files changed, 97 insertions(+), 93 deletions(-)
> ---
> base-commit: 74ceacafec02465d922ad68dce9498c8f50e5f5d
> change-id: 20261122-qcom-socinfo-id-dt-bindings-e6fe815b4480
>
> Best regards,
> --
> Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings
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
2026-11-23 21:55 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Shawn Guo @ 2026-11-23 13:30 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar,
linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
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 22:05 ` Krzysztof Kozlowski
2026-11-23 15:17 ` Konrad Dybcio
1 sibling, 1 reply; 12+ messages in thread
From: Shawn Guo @ 2026-11-23 13:34 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar,
linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On Sun, Nov 22, 2026 at 06:46:21PM +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
Same typo as in patch 1.
> 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.
>
> Driver have local copy of these defines, thus these can be dropped.
Nit: Drivers have local copies ...
Shawn
> This has no impact on in-tree ABI, but any outside users would be
> affected.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
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
1 sibling, 1 reply; 12+ messages in thread
From: Konrad Dybcio @ 2026-11-23 15:17 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Stephen Boyd,
Brian Masney, Jerome Brunet, Ilia Lin, Rafael J. Wysocki,
Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 11/22/26 6:46 PM, 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
> 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.
>
> Driver have local copy of these defines, thus these can be dropped.
> This has no impact on in-tree ABI, but any outside users would be
> affected.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
I think we can move it altogether, to prevent a situation where one has
to take time out of their day to analyze which one of these is right..
To me, this is the same case as e.g. glymur-ipcc.h where the values are
some foreign constants that are specifically NOT bindings
Konrad
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
2026-11-23 15:17 ` Konrad Dybcio
@ 2026-11-23 15:22 ` Krzysztof Kozlowski
2026-11-23 19:06 ` Konrad Dybcio
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 15:22 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Stephen Boyd,
Brian Masney, Jerome Brunet, Ilia Lin, Rafael J. Wysocki,
Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 23/11/2026 16:17, Konrad Dybcio wrote:
> On 11/22/26 6:46 PM, 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
>> 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.
>>
>> Driver have local copy of these defines, thus these can be dropped.
>> This has no impact on in-tree ABI, but any outside users would be
>> affected.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
>> ---
>
> I think we can move it altogether, to prevent a situation where one has
We cannot move all, because some are actual ABI. I could try to leave
these ones only, but that's a bit too much work, IMO, that's why I cut
everything at ~450 value of ID.
> to take time out of their day to analyze which one of these is right..
>
> To me, this is the same case as e.g. glymur-ipcc.h where the values are
> some foreign constants that are specifically NOT bindings
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
2026-11-23 15:22 ` Krzysztof Kozlowski
@ 2026-11-23 19:06 ` Konrad Dybcio
2026-11-23 22:08 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Konrad Dybcio @ 2026-11-23 19:06 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Stephen Boyd,
Brian Masney, Jerome Brunet, Ilia Lin, Rafael J. Wysocki,
Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 11/23/26 4:22 PM, Krzysztof Kozlowski wrote:
> On 23/11/2026 16:17, Konrad Dybcio wrote:
>> On 11/22/26 6:46 PM, 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
>>> 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.
>>>
>>> Driver have local copy of these defines, thus these can be dropped.
>>> This has no impact on in-tree ABI, but any outside users would be
>>> affected.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
>>> ---
>>
>> I think we can move it altogether, to prevent a situation where one has
>
> We cannot move all, because some are actual ABI. I could try to leave
> these ones only, but that's a bit too much work, IMO, that's why I cut
> everything at ~450 value of ID.
If you mean ABI as in "used in DTS", I don't think that's quite ABI
(again, looking at the glymur-ipcc.h case)
Konrad
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] soc: qcom: socinfo: Copy new SoC IDs from bindings
2026-11-23 13:30 ` Shawn Guo
@ 2026-11-23 21:55 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 21:55 UTC (permalink / raw)
To: Shawn Guo
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar,
linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 23/11/2026 14:30, Shawn Guo wrote:
> 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
I did not perform global search and replace that time and not sure if I
want now, but I can keep the few values if this makes sense.
> 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>;
Indeed, these three are actually still allowed to use that property.
>
> 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:
Not sure if I want to add that dependency...
> 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.
Ack
>
> Also, drivers/clk/qcom/apss-ipq5424.c includes qcom,ids.h without using
Sure
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
2026-11-23 13:34 ` Shawn Guo
@ 2026-11-23 22:05 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 22:05 UTC (permalink / raw)
To: Shawn Guo
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, Brian Masney,
Jerome Brunet, Ilia Lin, Rafael J. Wysocki, Viresh Kumar,
linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 23/11/2026 14:34, Shawn Guo wrote:
> On Sun, Nov 22, 2026 at 06:46:21PM +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
>
> Same typo as in patch 1.
>
>> 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.
>>
>> Driver have local copy of these defines, thus these can be dropped.
>
> Nit: Drivers have local copies ...
>
Thanks
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] dt-bindings: qcom: qcom,ids: Remove unneeded ID constants
2026-11-23 19:06 ` Konrad Dybcio
@ 2026-11-23 22:08 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-23 22:08 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Stephen Boyd,
Brian Masney, Jerome Brunet, Ilia Lin, Rafael J. Wysocki,
Viresh Kumar
Cc: linux-kernel, linux-arm-msm, devicetree, linux-clk, linux-pm
On 23/11/2026 20:06, Konrad Dybcio wrote:
> On 11/23/26 4:22 PM, Krzysztof Kozlowski wrote:
>> On 23/11/2026 16:17, Konrad Dybcio wrote:
>>> On 11/22/26 6:46 PM, 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
>>>> 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.
>>>>
>>>> Driver have local copy of these defines, thus these can be dropped.
>>>> This has no impact on in-tree ABI, but any outside users would be
>>>> affected.
>>>>
>>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
>>>> ---
>>>
>>> I think we can move it altogether, to prevent a situation where one has
>>
>> We cannot move all, because some are actual ABI. I could try to leave
>> these ones only, but that's a bit too much work, IMO, that's why I cut
>> everything at ~450 value of ID.
>
> If you mean ABI as in "used in DTS", I don't think that's quite ABI
> (again, looking at the glymur-ipcc.h case)
True, not ABI in meaning something agreed between DTS and driver, but
the values are used by bootloader, DTS and the driver, so I would just
leave them as is. I rather care about not growing this for newer platforms.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2026-11-23 22:09 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2026-11-23 21:55 ` Krzysztof Kozlowski
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 22:05 ` Krzysztof Kozlowski
2026-11-23 15:17 ` Konrad Dybcio
2026-11-23 15:22 ` Krzysztof Kozlowski
2026-11-23 19:06 ` Konrad Dybcio
2026-11-23 22:08 ` Krzysztof Kozlowski
2026-11-23 13:06 ` [PATCH 0/2] soc: qcom: socinfo: Drop DT bindings with IDs Shawn Guo
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®