summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/battery/celxpert,c235-41.yaml
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2022-08-11 16:48:09 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-15 07:23:58 +0000
commitd18d22cdde23c540e91d0effcb969dc150c302e6 (patch)
tree2052b80ed5767c2f53305adadfd7f44ce87d10a7 /zephyr/dts/bindings/battery/celxpert,c235-41.yaml
parent98641ff3ea8faf65316ca04da245d0c343abc490 (diff)
downloadchrome-ec-d18d22cdde23c540e91d0effcb969dc150c302e6.tar.gz
krabby: use proper battery vendor name
the first part of a compatible string should be a vendor name. BUG=b:240110919 TEST=zmake build krabby BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I6c25115b85887c02635054ee7202eeb0dfa51b33 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3825345 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/battery/celxpert,c235-41.yaml')
-rw-r--r--zephyr/dts/bindings/battery/celxpert,c235-41.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/battery/celxpert,c235-41.yaml b/zephyr/dts/bindings/battery/celxpert,c235-41.yaml
new file mode 100644
index 0000000000..cffe1c2f0d
--- /dev/null
+++ b/zephyr/dts/bindings/battery/celxpert,c235-41.yaml
@@ -0,0 +1,56 @@
+description: "Celxpert C235-41"
+compatible: "celxpert,c235-41"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "celxpert,c235-41"
+
+ # Fuel gauge
+ manuf_name:
+ default: "AS3GWRc3KA"
+ device_name:
+ default: "C235-41"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x10, 0x10 ]
+ # Documentation: b/150833879
+ # Charging/Discharging FETs Status
+ # Register SBS_PackStatus_ACCESS (0x99)
+ # Bit-3: XDSG
+ # Bit-2: XCHG
+ fet_reg_addr:
+ default: 0x99
+ fet_reg_mask:
+ default: 0x08
+ fet_disconnect_val:
+ default: 0x08
+ fet_cfet_mask:
+ default: 0x04
+ fet_cfet_off_val:
+ default: 0x04
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: 0
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: 0
+ charging_max_c:
+ default: 60
+ discharging_min_c:
+ default: 0
+ discharging_max_c:
+ default: 60