Re: [PATCH v4 2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS

From: Stanislav Zaikin

Date: Mon Mar 23 2026 - 04:04:57 EST


On 3/21/26 8:36 AM, Val Packett wrote:
Hello again :)

On 3/5/26 6:39 AM, Stanislav Zaikin wrote:
Xiaomi 12 Lite 5G is a handset released in 2022
[…]
+    touchscreen@0 {
+        compatible = "goodix,gt9916";
+        reg = <0>;
+
+        interrupts-extended = <&tlmm 81 IRQ_TYPE_LEVEL_LOW>;
+
+        reset-gpios = <&tlmm 105 GPIO_ACTIVE_LOW>;
+
+        avdd-supply = <&vreg_l7c_3p0>;
+        vddio-supply = <&vreg_l2c_1p8>;
+
+        spi-max-frequency = <5000000>;
+
+        touchscreen-size-x = <10800>;
+        touchscreen-size-y = <24000>;
[…]

I have noticed this previously and started wondering why the size was 10x higher. Now with my own device (motorola-dubai) I actually found out why…

With the actual 1080x2400 size, the mm values reported by libinput are 10x higher than what they should be, e.g. touching the bottom right corner with libinput debug-events:

 event3   TOUCH_MOTION              2  +1.493s  0 (0) 98.80/98.75 (1067.00/2370.00mm)

(2.4 meter tall phone! :D) which was mooooostly "fine" except Phosh's on-screen keyboard was accidentally detecting super-fast down swipes as I was typing normally, and suddenly closing the keyboard as I was typing.

I wonder why some other devices with gt9916 (there are a couple in mainline) that specifies 1080x2400. I don't think we can make this assumption unless there was a mistake already in those mainline dts.

Best regards,
Stanislav