No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
yanyh2 c86591b770 Add a new DLKM to support smart pen charger driver
Create a new DLKM smart_pen_charger.ko to be the driver
for smart pen charging management.

DeviceTree property:
mmi,pen-psy-name = "wireless";

module parameter:
/sys/module/smart_pen_charger/parameters/simulator_enabled
N: Use pen_data from ADSP over OEM glink
Y: Use the simulator_data from user input over sysfs nodes

sysfs path: /sys/class/power_supply/wireless/device/
pen_control: wo, u32 value range:
  PEN_CTRL_DETACHED,
  PEN_CTRL_ATTACHED,
  PEN_CTRL_CHG_EN,
  PEN_CTRL_CHG_DIS,
pen_id: rw, u32
pen_soc: rw, u32 value range: 0~100
pen_status: rw, string value range:
"detached", "attached", "ready", "charging", "discharging", "charged",
pen_mac: rw, string value format: xx:xx:xx:xx:xx:xx
pen_error: rw, u32

Uevent to HAL:
POWER_SUPPLY_PEN_ID=xx
POWER_SUPPLY_PEN_SOC=xx
POWER_SUPPLY_PEN_STATUS=xx
POWER_SUPPLY_PEN_MAC=xx:xx:xx:xx:xx:xx
POWER_SUPPLY_PEN_ERROR=xx

Change-Id: Ic3466d9bca7fa9b30ac7256f9e05dc1022a4c500
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2076942
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
2021-09-27 04:49:37 -05:00
Documentation/devicetree/bindings dlkm: add goodix fod driver 2019-09-26 22:46:49 -05:00
drivers Add a new DLKM to support smart pen charger driver 2021-09-27 04:49:37 -05:00
fs/exfat exfat:Fix panic of handlings of unhashed alias 2021-01-19 19:32:36 -06:00
include mmi_info: provide check dynamic device status interface 2021-09-23 05:08:14 -05:00
sound/soc/codecs restrict compilation for snd_soc_tfa9874 2020-08-25 13:13:14 -05:00
AndroidKernelModule.mk build: Only include modules needed by product 2021-09-09 21:54:53 -05:00