From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: mcc45tr Date: Mon, 7 Sep 2026 21:53:55 +0300 Subject: [PATCH 111/117] drm/panel: expose Xiaomi Nabu panel revision --- .../sysfs-driver-panel-novatek-nt36523 | 10 ++ drivers/gpu/drm/panel/panel-novatek-nt36523.c | 109 ++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-panel-novatek-nt36523 diff --git a/Documentation/ABI/testing/sysfs-driver-panel-novatek-nt36523 b/Documentation/ABI/testing/sysfs-driver-panel-novatek-nt36523 new file mode 100644 index 000000000000..2352523ecfe0 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-driver-panel-novatek-nt36523 @@ -0,0 +1,10 @@ +What: /sys/bus/mipi-dsi/devices/*/panel_revision +Date: September 2026 +Contact: mcc45tr +Description: + Read-only hardware revision of the internal display module on + Xiaomi Pad 5 (nabu). The value is detected from the panel lockdown + discriminator used by Xiaomi's downstream display and touchscreen + drivers. Possible values are "36-02-0b", "42-02-0a", and + "unknown". The attribute is present only for the Nabu panel. +Users: SENEMOS Nabu display color-profile integration diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36523.c b/drivers/gpu/drm/panel/panel-novatek-nt36523.c index 94f7fc3eb74d..d6cc20f547a5 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36523.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36523.c @@ -12,6 +12,7 @@ #include #include #include +#include #include