miami:
- Use 87 to control lhbm, if lhbm is abnormal, we can read 87 to check.
Previous 86 can not be read.
- exit lhbm, set every commands to last command to fix lhbm can't exit
issue.
- exit lhbm when enter hbm.
Change-Id: I117b9b0a62b41d9ad7c79806f3b784686245f77e
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2271181
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As mm8013 fg need charger mode info, so config this dts
to enable this feature.
Change-Id: Ide85f326a345410f15da5870091e4a1897a6cf96
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274903
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
As miami battery FV is 4480 and refer to main charging IC spec
vbus > vbat +vsleep, so charge vindpm to 4700mv.
Change-Id: Iecd4b233c381843997cd35b32f2a1aa8518f541b
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2270963
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For uevents will be send each power_supply_change()
function called. So if we use "bms" node to notify capacity
100%, it will sennd uevents just after "battery" node. And
as a result, there will be lots of uevents. It is not suitable.
So we change to "battery" node to notify wls-chg.
Change-Id: Ibfc9ca5c7de5722d602f295a2d30e21fc596b5ca
Reviewed-on: https://gerrit.mot.com/2266836
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For wls charger, it will get battery capacity to control charging
led to green when capacity is 100. To get FG driver's notification,
wls charger should register suppied-from element.
And for working for each products with this chip driver, we defined
supplied-from element name in DTS.
Change-Id: I4e81c2e3851a35f6b443f84dd5efbdbb1b9c61a5
Reviewed-on: https://gerrit.mot.com/2264559
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For factory test, we use a mux to control USB/WLS route, and
it is controlled by a gpio. This dts configuration is defined for
this gpio. For MIAMI, it is gpio37
Change-Id: I7a53ad1cddbe5d9a000e36ffcbfa23342c4b0dcf
Reviewed-on: https://gerrit.mot.com/2263380
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
For CPS4019, its int pin is low active, so we should set it
as pull up for default.
Change-Id: I8242e3f48a0c8aa7e784dc167640b00c3cf7811a
Reviewed-on: https://gerrit.mot.com/2262756
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
In the driver of cps4019, it will use charger class to operate main
charger. Because each product may have different name for main
charger, the name of main charger should be defined in dts file.
Refs change: https://gerrit.mot.com/#/c/2255421/
Change-Id: Iff1a0f8510f7a51999fa96f2cdbceac625cdc713
Reviewed-on: https://gerrit.mot.com/2255452
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
/sys/class/leds/red blue green used by google.
if we use red/bule/green name again, there are many
google/qcom services will handle these nodes.
that will cause moto light's action not as expect.
(https://gerrit.mot.com/#/c/1340797/)
Change-Id: Iaa6cb05519500b22d8b7f591bdc2ac48649095bf
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252997
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
arm/dt:
Add csot 6.28 local hbm feature configs:
- alpha-brightness map table
- fod hbm on and off commands
- update fod coordinates.
- update dc on and off codes to avoid flicker
Change-Id: I6a6ed0a30b26635f40694af02d044ad44609d914
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2252100
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Each wls charging chip has its own power and charging current,
we should configure it in dts file to let each wls charging
case could use its own parameter.
Change-Id: I4b20f54e1b47dd50ed8f32d2fc609c4d35a1a59a
Reviewed-on: https://gerrit.mot.com/2251114
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
confirm with QCom, LDO21 not need for HW design with
6375 & 3988 , so remove this from dts to prevent unexpected
operation from wlan sw.
Change-Id: I661f448567b350ac225c71427438d9bc589acace
Reviewed-on: https://gerrit.mot.com/2237242
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bin Liu <liubin7@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add sc8541-master and sc8541-slave for bring up .
Modify "irq-gpio" beause TI BQ25960 and SC8541 are
used this name together.
Change-Id: I433d766a2bcd067e5093ca1d2b859dc3e408dec7
Signed-off-by: wanggc6 <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2239233
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
In OTG mode, the output of VOUT from WLS should be disabled.
So we use gpio 49 to control WLS through mux.
Change-Id: I4d9bc5d8a74f8da93f9069ed061e22af29208485
Reviewed-on: https://gerrit.mot.com/2239282
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
battery param - ui_full update,
current ui_full=98, the current of showing 100% is 380mA
set ui_full=96, then the current of showing 100% change to 510mA.
Change-Id: I3d08310ac6a7f5c245d697a6a7aad4d8cd4a704d
Reviewed-on: https://gerrit.mot.com/2235802
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key