summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-09-03 19:14:37 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-08 23:50:36 +0000
commit5b4ebe14c85f019a90b6981725cfa49b5d7c6335 (patch)
treefd35212111539b7172d1bb75f8a59d3df1bc3ccc /zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml
parent3bb1c5b1d1ec340bd9def9fc120c6f01d8835578 (diff)
downloadchrome-ec-5b4ebe14c85f019a90b6981725cfa49b5d7c6335.tar.gz
zephyr: fix batteries FET masks
Fix masks and values for charge and discharge FETs. Add missing charge FETs properties. BRANCH=main BUG=b:183544739 TEST=Verify if charge and discharge FETs work correctly Change-Id: I6e3abb9d8f03b9f6372e5bfb97a447b33ee4c7a9 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3141599 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml')
-rw-r--r--zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml b/zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml
index fcfff98de1..fe0923dd87 100644
--- a/zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml
+++ b/zephyr/dts/bindings/battery/panasonic,ap16l5j.yaml
@@ -17,6 +17,12 @@ properties:
default: 0x3A
ship_mode_reg_data:
default: [ 0xC574, 0xC574 ]
+ # Documentation: b/144674480
+ # ManufacturerAccess() 0x00
+ # Bit14 Discharge FET status
+ # Set - Discharge FET is ON, Reset - Discharge FET is OFF
+ # Bit15 Charge FET status
+ # Set - Charge FET is ON, Reset - Charge FET is OFF
fet_mfgacc_support:
default: 0
fet_reg_addr:
@@ -24,7 +30,11 @@ properties:
fet_reg_mask:
default: 0x4000
fet_disconnect_val:
- default: 0x0
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x8000
+ fet_cfet_off_val:
+ default: 0x0000
# Battery info
voltage_max: