summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/dts/bindings/battery/battery-smart.yaml1
-rw-r--r--zephyr/dts/bindings/battery/pow-tech,sg20qt1c.yaml57
-rw-r--r--zephyr/dts/bindings/vendor-prefixes.txt3
-rw-r--r--zephyr/program/herobrine/zombie/project.overlay3
4 files changed, 63 insertions, 1 deletions
diff --git a/zephyr/dts/bindings/battery/battery-smart.yaml b/zephyr/dts/bindings/battery/battery-smart.yaml
index 74deb224b2..5fe175a309 100644
--- a/zephyr/dts/bindings/battery/battery-smart.yaml
+++ b/zephyr/dts/bindings/battery/battery-smart.yaml
@@ -31,6 +31,7 @@ properties:
- "dynapack,c140254"
- "ganfeng,7c01"
- "ganfeng,sg20"
+ - "pow-tech,sg20qt1c"
- "getac,bq40z50-R3-S3"
- "getac,bq40z50-R3-S2"
- "lgc,ac17a8m"
diff --git a/zephyr/dts/bindings/battery/pow-tech,sg20qt1c.yaml b/zephyr/dts/bindings/battery/pow-tech,sg20qt1c.yaml
new file mode 100644
index 0000000000..7df7bcc274
--- /dev/null
+++ b/zephyr/dts/bindings/battery/pow-tech,sg20qt1c.yaml
@@ -0,0 +1,57 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "POW-TECH SG20QT1C"
+compatible: "pow-tech,sg20qt1c"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "pow-tech,sg20qt1c"
+
+ # TI BQ40Z50 Fuel Gauge
+ manuf_name:
+ default: "POW-TECH"
+ device_name:
+ default: "SG20QT1C"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [0x0010, 0x0010]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x54
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x4000
+ fet_cfet_off_val:
+ default: 0x4000
+
+ # Battery info
+ voltage_max:
+ default: 8700
+ voltage_normal:
+ default: 7600
+ 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: 53
+ discharging_min_c:
+ default: -23
+ discharging_max_c:
+ default: 63
diff --git a/zephyr/dts/bindings/vendor-prefixes.txt b/zephyr/dts/bindings/vendor-prefixes.txt
index c04ca3b546..d504a6e573 100644
--- a/zephyr/dts/bindings/vendor-prefixes.txt
+++ b/zephyr/dts/bindings/vendor-prefixes.txt
@@ -20,4 +20,5 @@ sunwoda Battery vendor
cosmx Battery vendor
dynapack Battery vendor
atl Battery vendor
-bms-gf Battery vendor \ No newline at end of file
+bms-gf Battery vendor
+pow-tech Battery vendor
diff --git a/zephyr/program/herobrine/zombie/project.overlay b/zephyr/program/herobrine/zombie/project.overlay
index 6f5ed174cf..f07bccd3e6 100644
--- a/zephyr/program/herobrine/zombie/project.overlay
+++ b/zephyr/program/herobrine/zombie/project.overlay
@@ -25,6 +25,9 @@
default_battery: sg20 {
compatible = "ganfeng,sg20", "battery-smart";
};
+ sg20qt1c {
+ compatible = "pow-tech,sg20qt1c", "battery-smart";
+ };
};
};