From ad6935415681abff0707e96ad214f9d24ed9d3c3 Mon Sep 17 00:00:00 2001 From: mcc45tr Date: Mon, 7 Sep 2026 21:53:55 +0300 Subject: [PATCH] drm/panel: expose Xiaomi Nabu panel revision --- .../sysfs-driver-panel-novatek-nt36523 | 12 ++ drivers/gpu/drm/panel/panel-novatek-nt36523.c | 195 ++++++++++++++++++ 2 files changed, 207 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 000000000..ddebc26cf --- /dev/null +++ b/Documentation/ABI/testing/sysfs-driver-panel-novatek-nt36523 @@ -0,0 +1,12 @@ +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. Qualcomm UEFI's detected panel configuration is preferred; + the panel lockdown registers are a fallback. 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 07ae4f00e..3b349dacc 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36523.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36523.c @@ -7,11 +7,14 @@ #include #include +#include #include #include #include #include #include +#include +#include #include