bangkk: sensors: Support both display nodes

* Depending on which display the device uses, the node path changes so modify the hal to verify which one actually exists and set it.
* Goodix ts uses spi0.0 and fts uses spi0.1, so suppport both of them.

Signed-off-by: BarryBlackCat <silva.tiago0910@gmail.com>
Change-Id: I2d3ff57651655d5612ff355241a5933137a7bbec
This commit is contained in:
BarryBlackCat 2024-10-28 23:59:30 +05:30 committed by Michael Bestas
parent 3c6ac1c248
commit 19bf6bf4de
No known key found for this signature in database
2 changed files with 21 additions and 1 deletions

View file

@ -7,6 +7,10 @@ on post-fs
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.1/touchscreen/primary/double_tap_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.1/touchscreen/primary/double_tap_pressed
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.1/touchscreen/primary/udfps_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.1/touchscreen/primary/udfps_pressed
on post-fs-data