Handle active-low cover backlight and restore internal panel
This commit is contained in:
1 parent
b389120328
commit
d61f2848db
11 files changed
+412
-106
No files matched your search
@@ -7,19 +7,26 @@
|
||||
# GC9305s share CS0, gpio110 D/C and one PMIC PWM backlight; gpio13 selects
|
||||
# the panel, gpio23 is the external reset, and gpio21 is TE. While the flip is
|
||||
# closed the daemon claims gpio13/gpio23, pulses reset, replays the stock
|
||||
# 240x240 init through the kernel driver's debugfs command hook, enables the
|
||||
# shared backlight and flushes a 240x240 /dev/fb0 damage rect. The keypad
|
||||
# stays dark. Opening the flip releases the bus and re-initialises the main
|
||||
# panel. auto = /dev/fb1 with the opt-in two-panel DT, otherwise spidev;
|
||||
# fb/spidev force those legacy paths; none keeps the bus untouched.
|
||||
# 240x240 init through the kernel driver's debugfs command hook, and flushes a
|
||||
# 240x240 /dev/fb0 damage rect. Live probing showed the shared PWM is
|
||||
# active-low for the cover and active-high for the main panel: duty 0 lights
|
||||
# the cover, duty 14 lights the internal panel. The marker tells
|
||||
# bananarchy-display-power-sync which side owns the bus. Opening the flip
|
||||
# restores the mux, normal brightness and the internal panel. auto = /dev/fb1
|
||||
# with the opt-in two-panel DT, otherwise spidev; fb/spidev force those legacy
|
||||
# paths; none keeps the bus untouched.
|
||||
backend = kernel
|
||||
main_fb_device = /dev/fb0
|
||||
kernel_dpms_helper = /usr/bin/bananarchy-cover-dpms.sh
|
||||
kernel_power_sync_helper = /usr/bin/bananarchy-display-power-sync
|
||||
kernel_command_path = /sys/kernel/debug/dri/0/command
|
||||
kernel_backlight_path = /sys/class/backlight/backlight/brightness
|
||||
kernel_backlight_power_path = /sys/class/backlight/backlight/bl_power
|
||||
kernel_backlight_marker = /run/bananarchy/cover-backlight
|
||||
# The main and cover panels share this backlight; 14 is the normal UI level.
|
||||
# 14 is the normal internal-panel level and also the external-panel OFF duty.
|
||||
kernel_backlight_level = 14
|
||||
# 1 = external backlight active-low (duty 0 ON), 0 = active-high.
|
||||
kernel_backlight_invert = 1
|
||||
fb_device = /dev/fb1
|
||||
spidev_device = /dev/spidev0.1
|
||||
gpiochip_device = /dev/gpiochip0
|
||||
|
||||
Reference in new issue
Block a user