arm64: dts: allwinner: add 'chassis-type' property
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Sat, 16 Oct 2021 10:20:22 +0000 (12:20 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 15 Nov 2021 07:57:48 +0000 (08:57 +0100)
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 Allwinner ARM64 processors.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211016102025.23346-2-arnaud.ferraris@collabora.com
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts

index 34e67f5f829794fde53be977d601f2adf7c108d2..63571df24da4f23afe85a5ccd5661da72c864906 100644 (file)
@@ -15,6 +15,7 @@
 / {
        model = "Pinebook";
        compatible = "pine64,pinebook", "allwinner,sun50i-a64";
+       chassis-type = "laptop";
 
        aliases {
                serial0 = &uart0;
index 5b44a979f2503dd8c7c06bca3b05a44d072bf245..87847116ab6d9b4d31b1f36d5584d9cf02645597 100644 (file)
@@ -12,6 +12,8 @@
 #include <dt-bindings/pwm/pwm.h>
 
 / {
+       chassis-type = "handset";
+
        aliases {
                ethernet0 = &rtl8723cs;
                serial0 = &uart0;
index adb0b28b06d835113ca5020e6b74486417884f3b..0a5607f73049e19ba9d3334b0907abbc7dd781f1 100644 (file)
@@ -16,6 +16,7 @@
 / {
        model = "PineTab, Development Sample";
        compatible = "pine64,pinetab", "allwinner,sun50i-a64";
+       chassis-type = "tablet";
 
        aliases {
                serial0 = &uart0;
index aef571acd67fb4ee130f008126129cbf6916f7d2..aff0660b899ce8f0009fea6ef32acff0a91758c4 100644 (file)
@@ -14,6 +14,7 @@
 / {
        model = "Olimex A64 Teres-I";
        compatible = "olimex,a64-teres-i", "allwinner,sun50i-a64";
+       chassis-type = "laptop";
 
        aliases {
                serial0 = &uart0;