Fix nokia-beatles closed-flip cover wake via dynamic TLMM gpiochip resolution
- Resolve MSM8909 TLMM (1000000.pinctrl) dynamically across /dev/gpiochip* in bananarchy-cover-idle (BA_GPIO_GET_CHIPINFO / hw_ensure_gpiochip) and bananarchy-cover-diagnose.sh, and default cover-display.conf to gpiochip_device = auto so strict fw_devlink/MPM probe order shifts never leave closed-flip button wakes in backend=none. - Guard gpiochip_device = auto and BA_GPIO_GET_CHIPINFO in test-cover-kernel.py and check-rebuild.sh, and update a1114 (carbonara) image and release archive SHA-256 pins in check-rebuild.sh and CHANGELOG.md.
This commit is contained in:
1 parent
2ae4ef34a2
commit
a23a9b4edb
9 files changed
+121
-23
No files matched your search
@@ -6,7 +6,20 @@ set -u
|
||||
FB=/dev/fb1
|
||||
SYSFS=/sys/class/graphics/fb1
|
||||
SPI=/dev/spidev0.1
|
||||
GPIOCHIP=/dev/gpiochip0
|
||||
resolve_tlmm_gpiochip() {
|
||||
for dev in /sys/bus/gpio/devices/gpiochip*; do
|
||||
[ -e "$dev" ] || continue
|
||||
target="$(readlink -f "$dev" 2>/dev/null || true)"
|
||||
case "$target" in
|
||||
*pinctrl*|*tlmm*)
|
||||
printf '/dev/%s\n' "${dev##*/}"
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
printf '/dev/gpiochip0\n'
|
||||
}
|
||||
GPIOCHIP="$(resolve_tlmm_gpiochip)"
|
||||
FW=/lib/firmware/nokia,beatles-gc9305-ext-panel.bin
|
||||
CMD=/sys/kernel/debug/dri/0/command
|
||||
BL=/sys/class/backlight/backlight/brightness
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user