sm6250-common: Add power AIDL DT2W support via sysfs node

Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
This commit is contained in:
Sebastiano Barezzi 2021-06-03 00:30:05 +02:00 committed by Alexander Winkowski
parent dd47e7c538
commit 79f9c76594
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
4 changed files with 10 additions and 0 deletions

View File

@ -150,6 +150,9 @@ BOARD_USES_QCOM_HARDWARE := true
BOARD_VENDOR := xiaomi
TARGET_BOARD_PLATFORM := atoll
# Power
TARGET_TAP_TO_WAKE_NODE := "/sys/touchpanel/double_tap"
# Properties
TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop
TARGET_PRODUCT_PROP += $(COMMON_PATH)/product.prop

View File

@ -14,4 +14,6 @@ type sysfs_msm_subsys, sysfs_type, fs_type;
type thermal_link_device, dev_type;
type sysfs_touchpanel, fs_type, sysfs_type;
type vendor_sysfs_iio, fs_type, sysfs_type;

View File

@ -19,6 +19,9 @@ genfscon sysfs /devices/platform/soc/soc:maxim_ds28e16/power_supply/batt_verify
# LED
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/c440000.qcom,spmi:qcom,pm6150l@5:qcom,leds@d000/leds/white u:object_r:sysfs_leds:s0
# Touchpanel
genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0
# UFS
genfscon sysfs /devices/platform/soc/1d84000.ufshc/clkgate_enable u:object_r:vendor_sysfs_scsi_host:s0

View File

@ -7,6 +7,7 @@ r_dir_file(hal_power_default, input_device)
allow hal_power_default {
vendor_sysfs_devfreq
sysfs_msm_subsys
sysfs_touchpanel
}:dir search;
allow hal_power_default {
@ -17,6 +18,7 @@ allow hal_power_default {
vendor_sysfs_graphics
vendor_sysfs_kgsl
sysfs_msm_subsys
sysfs_touchpanel
vendor_sysfs_scsi_host
}:{
file