diff --git a/Documentation/ABI/testing/sysfs-class-backlight-google-tg4c b/Documentation/ABI/testing/sysfs-class-backlight-google-tg4c new file mode 100644 index 0000000000..2d37b0a0ba --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-backlight-google-tg4c @@ -0,0 +1,23 @@ +What: /sys/class/backlight//local_hbm_mode +Date: October 2026 +KernelVersion: 7.3 +Contact: W4HO <87742609+W4HO-ham@users.noreply.github.com> +Description: + (RW) Local high brightness mode of the Google TG4C panel + (Pixel 9a): a bright circle over the under-display + fingerprint sensor, which lights the finger for the sensor. + Write 1 to light it and 0 to turn it off; read gives the + current state. Writing 1 fails with EPERM if the + panel_google_tg4c module parameter allow_lhbm is off or the + brightness is 0, and with EBUSY unless the panel is on and + running at 120 Hz. The circle turns itself off + after local_hbm_max_timeout milliseconds, and when the panel + turns off or leaves 120 Hz. + +What: /sys/class/backlight//local_hbm_max_timeout +Date: October 2026 +KernelVersion: 7.3 +Contact: W4HO <87742609+W4HO-ham@users.noreply.github.com> +Description: + (RO) How long, in milliseconds, local high brightness mode + stays on before the panel driver turns it off by itself. diff --git a/MAINTAINERS b/MAINTAINERS index 00e06c4795..58ac0fdde9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8151,6 +8151,7 @@ F: include/drm/gud.h DRM DRIVER FOR GOOGLE TG4C PANELS M: W4HO <87742609+W4HO-ham@users.noreply.github.com> S: Maintained +F: Documentation/ABI/testing/sysfs-class-backlight-google-tg4c F: Documentation/devicetree/bindings/display/panel/google,tg4c.yaml F: drivers/gpu/drm/panel/panel-google-tg4c.c diff --git a/drivers/gpu/drm/panel/panel-google-tg4c.c b/drivers/gpu/drm/panel/panel-google-tg4c.c index f956318402..d591bc3d1b 100644 --- a/drivers/gpu/drm/panel/panel-google-tg4c.c +++ b/drivers/gpu/drm/panel/panel-google-tg4c.c @@ -17,6 +17,7 @@ #include #include #include +#include #include