]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sdm845-oneplus: Deduplicate shared entries
authorDavid Heidelberg <david@ixit.cz>
Fri, 1 Aug 2025 08:21:40 +0000 (10:21 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 12 Aug 2025 02:26:33 +0000 (21:26 -0500)
Use the definition for qcom,msm-id and put them into the common dtsi.

Signed-off-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250801-sdm845-msmid-v2-2-9f44d125ee44@ixit.cz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts

index b118d666e535a433f44b66c71b36e55df2ce5c80..dcfffb271fcf3146aeabda8fc19e61b456b76887 100644 (file)
@@ -7,6 +7,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/arm/qcom,ids.h>
 #include <dt-bindings/input/linux-event-codes.h>
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
@@ -21,6 +22,9 @@
 /delete-node/ &rmtfs_mem;
 
 / {
+       chassis-type = "handset";
+       qcom,msm-id = <QCOM_ID_SDM845 0x20001>;
+
        aliases {
                serial0 = &uart9;
                serial1 = &uart6;
index 4005e04d998a40d25a64d652a526bf93efc20332..cd5546b69d13d8d7f29373aebab1cfda79666900 100644 (file)
@@ -10,8 +10,6 @@
 / {
        model = "OnePlus 6";
        compatible = "oneplus,enchilada", "qcom,sdm845";
-       chassis-type = "handset";
-       qcom,msm-id = <0x141 0x20001>;
        qcom,board-id = <8 0 17819 22>;
 
        battery: battery {
index 9471ada0d6ad8bd44cc58a6efa07f7eb27921af9..b4212626b42954e10974ec087db2b42b07979f72 100644 (file)
@@ -10,8 +10,6 @@
 / {
        model = "OnePlus 6T";
        compatible = "oneplus,fajita", "qcom,sdm845";
-       chassis-type = "handset";
-       qcom,msm-id = <0x141 0x20001>;
        qcom,board-id = <8 0 18801 41>;
 
        battery: battery {