OSDN Git Service

arm64: dts: qcom: add 'chassis-type' property
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Sat, 16 Oct 2021 10:20:24 +0000 (12:20 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 16 Oct 2021 21:55:21 +0000 (16:55 -0500)
A new 'chassis-type' root node property has recently been approved for
the device-tree specification, in order to provide a simple way for
userspace to detect the device form factor and adjust their behavior
accordingly.

This patch fills in this property for end-user devices (such as laptops,
smartphones and tablets) based on Qualcomm ARM64 processors.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Reviewed-by: Stephan Gerhold <stephan@gerhold.net> # msm8916
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211016102025.23346-4-arnaud.ferraris@collabora.com
49 files changed:
arch/arm64/boot/dts/qcom/apq8094-sony-xperia-kitakami-karin_windy.dts
arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
arch/arm64/boot/dts/qcom/msm8992-bullhead-rev-101.dts
arch/arm64/boot/dts/qcom/msm8992-msft-lumia-octagon-talkman.dts
arch/arm64/boot/dts/qcom/msm8992-xiaomi-libra.dts
arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
arch/arm64/boot/dts/qcom/msm8994-msft-lumia-octagon-cityman.dts
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-ivy.dts
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-karin.dts
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-satsuki.dts
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-sumire.dts
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami-suzuran.dts
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-dora.dts
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-kagura.dts
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-keyaki.dts
arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts
arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
arch/arm64/boot/dts/qcom/msm8998-asus-novago-tp370ql.dts
arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
arch/arm64/boot/dts/qcom/msm8998-hp-envy-x2.dts
arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts
arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts
arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-lilac.dts
arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-maple.dts
arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-discovery.dts
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-pioneer.dts
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile-voyager.dts
arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts
arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts
arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-bahamut.dts
arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dts
arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx203.dts
arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dts

index a8dffc8..314d2dc 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia Z4 Tablet (Wi-Fi)";
        compatible = "sony,karin_windy", "qcom,apq8094";
+       chassis-type = "tablet";
 
        /*
         * This model uses the APQ variant of MSM8994 (APQ8094).
index 670bd1b..265e539 100644 (file)
@@ -9,6 +9,7 @@
 / {
        model = "Alcatel OneTouch Idol 3 (4.7)";
        compatible = "alcatel,idol347", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index cee451e..6bc0a29 100644 (file)
@@ -8,6 +8,7 @@
 / {
        model = "Asus Zenfone 2 Laser";
        compatible = "asus,z00l", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index e0075b5..42d93d3 100644 (file)
@@ -25,6 +25,7 @@
 / {
        model = "Huawei Ascend G7";
        compatible = "huawei,g7", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index 285102f..852de62 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Longcheer L8150";
        compatible = "longcheer,l8150", "qcom,msm8916-v1-qrd/9-v1", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index 2784518..f9ce123 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "BQ Aquaris X5 (Longcheer L8910)";
        compatible = "longcheer,l8910", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index 6cc2eae..4ba11b0 100644 (file)
@@ -7,6 +7,7 @@
 / {
        model = "Samsung Galaxy A3U (EUR)";
        compatible = "samsung,a3u-eur", "qcom,msm8916";
+       chassis-type = "handset";
 
        reg_panel_vdd3: regulator-panel-vdd3 {
                compatible = "regulator-fixed";
index c2eff5a..d978c9a 100644 (file)
@@ -7,6 +7,7 @@
 / {
        model = "Samsung Galaxy A5U (EUR)";
        compatible = "samsung,a5u-eur", "qcom,msm8916";
+       chassis-type = "handset";
 
        reg_touch_key: regulator-touch-key {
                compatible = "regulator-fixed";
index 4e20cc0..69a44c6 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Xiaomi Redmi 2 (Wingtech WT88047)";
        compatible = "wingtech,wt88047", "qcom,msm8916";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index 1ccca83..4da6c44 100644 (file)
@@ -16,6 +16,8 @@
 / {
        model = "LG Nexus 5X";
        compatible = "lg,bullhead", "qcom,msm8992";
+       chassis-type = "handset";
+
        /* required for bootloader to select correct board */
        qcom,msm-id = <251 0>, <252 0>;
        qcom,board-id = <0xb64 0>;
index 5322b9c..8933b53 100644 (file)
@@ -12,4 +12,5 @@
 / {
        model = "Microsoft Lumia 950";
        compatible = "microsoft,talkman", "qcom,msm8992";
+       chassis-type = "handset";
 };
index 357d554..69fcb6b 100644 (file)
@@ -14,6 +14,8 @@
 / {
        model = "Xiaomi Mi 4C";
        compatible = "xiaomi,libra", "qcom,msm8992";
+       chassis-type = "handset";
+
        /* required for bootloader to select correct board */
        qcom,msm-id = <251 0 252 0>;
        qcom,pmic-id = <65545 65546 0 0>;
index c096b77..0e3dd48 100644 (file)
@@ -14,6 +14,7 @@
 / {
        model = "Huawei Nexus 6P";
        compatible = "huawei,angler", "qcom,msm8994";
+       chassis-type = "handset";
        /* required for bootloader to select correct board */
        qcom,msm-id = <207 0x20000>;
        qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>;
index d0aaf57..c593418 100644 (file)
@@ -12,4 +12,5 @@
 / {
        model = "Microsoft Lumia 950 XL";
        compatible = "microsoft,cityman", "qcom,msm8994";
+       chassis-type = "handset";
 };
index b5e90c8..99388b0 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia Z3+/Z4";
        compatible = "sony,ivy-row", "qcom,msm8994";
+       chassis-type = "handset";
 };
 
 &pm8994_l3 {
index a1d1a07..71758d2 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia Z4 Tablet (LTE)";
        compatible = "sony,karin-row", "qcom,msm8994";
+       chassis-type = "tablet";
 };
 
 &blsp2_i2c5 {
index 1385956..69b7df0 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia Z5 Premium";
        compatible = "sony,satsuki-row", "qcom,msm8994";
+       chassis-type = "handset";
 };
 
 &pm8994_l14 {
index d3ba986..466508c 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia Z5";
        compatible = "sony,sumire-row", "qcom,msm8994";
+       chassis-type = "handset";
 };
 
 /delete-node/ &pm8994_l19;
index f129479..76bf501 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia Z5 Compact";
        compatible = "sony,suzuran-row", "qcom,msm8994";
+       chassis-type = "handset";
 };
 
 &pm8994_l14 {
index b4cca54..4a0645d 100644 (file)
@@ -12,6 +12,7 @@
 / {
        model = "Sony Xperia X Performance";
        compatible = "sony,dora-row", "qcom,msm8996";
+       chassis-type = "handset";
 };
 
 /delete-node/ &tof_sensor;
index be6ea85..d3100dd 100644 (file)
@@ -12,4 +12,5 @@
 / {
        model = "Sony Xperia XZ";
        compatible = "sony,kagura-row", "qcom,msm8996";
+       chassis-type = "handset";
 };
index 1eee7d0..3e5bdab 100644 (file)
@@ -12,6 +12,7 @@
 / {
        model = "Sony Xperia XZs";
        compatible = "sony,keyaki-row", "qcom,msm8996";
+       chassis-type = "handset";
 };
 
 &pm8994_l19 {
index 77d508e..5513fc2 100644 (file)
@@ -13,6 +13,7 @@
 / {
        model = "Xiaomi Mi 5";
        compatible = "xiaomi,gemini", "qcom,msm8996";
+       chassis-type = "handset";
        qcom,msm-id = <246 0x30001>;
        qcom,pmic-id = <0x20009 0x2000a 0x00 0x00>;
        qcom,board-id = <31 0>;
index ea2ca27..e5b8402 100644 (file)
@@ -13,6 +13,7 @@
 / {
        model = "Xiaomi Mi Note 2";
        compatible = "xiaomi,scorpio", "qcom,msm8996";
+       chassis-type = "handset";
        qcom,msm-id = <305 0x10000>;
        qcom,board-id = <34 0>;
 
index db5821b..e204b70 100644 (file)
@@ -8,6 +8,7 @@
 / {
        model = "Asus NovaGo TP370QL";
        compatible = "asus,novago-tp370ql", "qcom,msm8998";
+       chassis-type = "convertible";
 };
 
 &blsp1_i2c6 {
index 49705fe..3d495ce 100644 (file)
@@ -15,6 +15,7 @@
 / {
        model = "F(x)tec Pro1 (QX1000)";
        compatible = "fxtec,pro1", "qcom,msm8998";
+       chassis-type = "handset";
        qcom,board-id = <0x02000b 0x10>;
 
        /*
index 2407312..1eb406b 100644 (file)
@@ -8,6 +8,7 @@
 / {
        model = "HP Envy x2";
        compatible = "hp,envy-x2", "qcom,msm8998";
+       chassis-type = "convertible";
 };
 
 &blsp1_i2c6 {
index 89492ed..f55f6f3 100644 (file)
@@ -8,6 +8,7 @@
 / {
        model = "Lenovo Miix 630";
        compatible = "lenovo,miix-630", "qcom,msm8998";
+       chassis-type = "convertible";
 };
 
 &blsp1_i2c6 {
index 66b9297..9563eb6 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "OnePlus 5";
        compatible = "oneplus,cheeseburger", "qcom,msm8998";
+       chassis-type = "handset";
        /* Required for bootloader to select correct board */
        qcom,board-id = <8 0 16859 23>;
 
index 544b9b0..5d0dabb 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "OnePlus 5T";
        compatible = "oneplus,dumpling", "qcom,msm8998";
+       chassis-type = "handset";
        /* Required for bootloader to select correct board */
        qcom,board-id = <8 0 17801 43>;
 };
index 0de9193..caacb7c 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia XZ1 Compact";
        compatible = "sony,xperia-lilac", "qcom,msm8998";
+       chassis-type = "handset";
 };
 
 &ibb {
index 87115d6..978495a 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia XZ Premium";
        compatible = "sony,xperia-maple", "qcom,msm8998";
+       chassis-type = "handset";
 
        disp_dvdd_vreg: disp-dvdd-vreg {
                compatible = "regulator-fixed";
index 9fa3583..4a1f98a 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia XZ1";
        compatible = "sony,xperia-poplar", "qcom,msm8998";
+       chassis-type = "handset";
 };
 
 &ibb {
index a4e1fb8..71b4489 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia 10";
        compatible = "sony,kirin-row", "qcom,sdm630";
+       chassis-type = "handset";
 
        chosen {
                framebuffer@9d400000 {
index c574e43..dd484a9 100644 (file)
@@ -11,4 +11,5 @@
 / {
        model = "Sony Xperia XA2 Ultra";
        compatible = "sony,discovery-row", "qcom,sdm630";
+       chassis-type = "handset";
 };
index a93ff3a..2da83cd 100644 (file)
@@ -11,4 +11,5 @@
 / {
        model = "Sony Xperia XA2";
        compatible = "sony,pioneer-row", "qcom,sdm630";
+       chassis-type = "handset";
 };
index 59a679c..a679d4a 100644 (file)
@@ -11,6 +11,7 @@
 / {
        model = "Sony Xperia XA2 Plus";
        compatible = "sony,voyager-row", "qcom,sdm630";
+       chassis-type = "handset";
 
        chosen {
                framebuffer@9d400000 {
index 3e677fb..1edc53f 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Xiaomi Redmi Note 7";
        compatible = "xiaomi,lavender", "qcom,sdm660";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &blsp1_uart2;
index 72842c8..7349307 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "OnePlus 6";
        compatible = "oneplus,enchilada", "qcom,sdm845";
+       chassis-type = "handset";
 };
 
 &display_panel {
index 969b36d..b63ebc4 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "OnePlus 6T";
        compatible = "oneplus,fajita", "qcom,sdm845";
+       chassis-type = "handset";
 };
 
 &display_panel {
index c60c8c6..054fd97 100644 (file)
@@ -29,6 +29,7 @@
 / {
        model = "Xiaomi Pocophone F1";
        compatible = "xiaomi,beryllium", "qcom,sdm845";
+       chassis-type = "handset";
 
        /* required for bootloader to select correct board */
        qcom,board-id = <69 0>;
index cb11b96..5607c5e 100644 (file)
@@ -19,6 +19,7 @@
 / {
        model = "Lenovo Yoga C630";
        compatible = "lenovo,yoga-c630", "qcom,sdm845";
+       chassis-type = "convertible";
 
        aliases {
                hsuart0 = &uart6;
index 58b6b27..45eab02 100644 (file)
@@ -17,6 +17,7 @@
 
        model = "Sony Xperia 10 II";
        compatible = "sony,pdx201", "qcom,sm6125";
+       chassis-type = "handset";
 
        chosen {
                #address-cells = <2>;
index a26c237..36911b9 100644 (file)
@@ -9,6 +9,7 @@
 / {
        model = "Sony Xperia 10 III";
        compatible = "sony,pdx213", "qcom,sm6350";
+       chassis-type = "handset";
        qcom,msm-id = <434 0x10000>, <459 0x10000>;
        qcom,board-id = <0x1000B 0>;
 
index 736da9a..c99979d 100644 (file)
@@ -15,6 +15,7 @@
 / {
        model = "Microsoft Surface Duo";
        compatible = "microsoft,surface-duo", "qcom,sm8150";
+       chassis-type = "handset";
 
        aliases {
                serial0 = &uart2;
index 3b55fdd..b278040 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia 5";
        compatible = "sony,bahamut-generic", "qcom,sm8150";
+       chassis-type = "handset";
 };
 
 &framebuffer {
index 6f490ec..0d6dece 100644 (file)
@@ -10,4 +10,5 @@
 / {
        model = "Sony Xperia 1";
        compatible = "sony,griffin-generic", "qcom,sm8150";
+       chassis-type = "handset";
 };
index 79afeb0..356a816 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia 1 II";
        compatible = "sony,pdx203-generic", "qcom,sm8250";
+       chassis-type = "handset";
 };
 
 /delete-node/ &vreg_l7f_1p8;
index 16c96e8..5ecf7da 100644 (file)
@@ -10,6 +10,7 @@
 / {
        model = "Sony Xperia 5 II";
        compatible = "sony,pdx206-generic", "qcom,sm8250";
+       chassis-type = "handset";
 };
 
 &framebuffer {