arm64: dts: rockchip: add 'chassis-type' property
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Sat, 16 Oct 2021 10:20:25 +0000 (12:20 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 16 Oct 2021 19:26:48 +0000 (21:26 +0200)
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 Rockchip ARM64 processors.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Link: https://lore.kernel.org/r/20211016102025.23346-5-arnaud.ferraris@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts

index e6c1c94c8d69c5e4be895b4d91d7ec38c3c37f22..31ebb4e5fd3307335008ecafd1ca8be1df54a607 100644 (file)
@@ -16,6 +16,7 @@
                     "google,bob-rev7", "google,bob-rev6",
                     "google,bob-rev5", "google,bob-rev4",
                     "google,bob", "google,gru", "rockchip,rk3399";
+       chassis-type = "convertible";
 
        edp_panel: edp-panel {
                compatible = "boe,nv101wxmn51";
index 2bbef9fcbe2704065b2999d0b113b4cf34b318a2..6863689df06ffa3658df19ff95bffd088a762c97 100644 (file)
@@ -24,6 +24,7 @@
                     "google,kevin-rev9", "google,kevin-rev8",
                     "google,kevin-rev7", "google,kevin-rev6",
                     "google,kevin", "google,gru", "rockchip,rk3399";
+       chassis-type = "convertible";
 
        /* Power tree */
 
index 61afb5f0f15ba541952ce3dceed85cd2f5e6f6bb..a9817b3d7edc6b2add6641f05084cf513e7510e5 100644 (file)
@@ -8,6 +8,8 @@
 #include "rk3399-gru.dtsi"
 
 /{
+       chassis-type = "tablet";
+
        /* Power tree */
 
        /* ppvar_sys children, sorted by name */
index dae8c252bc2bb637ced5814d86f80200a23f987b..c2f021a1a18f05ebb14234528748b95a534143d6 100644 (file)
@@ -17,6 +17,7 @@
 / {
        model = "Pine64 Pinebook Pro";
        compatible = "pine64,pinebook-pro", "rockchip,rk3399";
+       chassis-type = "laptop";
 
        aliases {
                mmc0 = &sdio0;