diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-09-03 17:57:08 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-08 22:36:05 +0000 |
commit | b35f8f07daaf148ffc4039c33f2fedcc4cb42cc2 (patch) | |
tree | 1d3d7ccf9f2340e1ebe6d264d49dc9d33b5d95d7 /zephyr/dts/bindings | |
parent | f3ffccd7d0fe4d0ce60434310795a7bfdaa5274c (diff) | |
download | chrome-ec-b35f8f07daaf148ffc4039c33f2fedcc4cb42cc2.tar.gz |
zephyr: add missing battery Kconfigs
Add missing Kconfigs for:
- PLATFORM_EC_BATTERY_CRITICAL_SHUTDOWN_CUT_OFF
- PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS
- PLATFORM_EC_BATTERY_MEASURE_IMBALANCE
- PLATFORM_EC_BATTERY_MAX_IMBALANCE_MV
Change help text in battery yamls to use Kconfigs instead of
legacy CONFIGs
BRANCH=main
BUG=b:183544739
TEST=Define added configs to prj.conf file and verify that
compilation takes them into account.
Change-Id: I01716c1515350550c18bbfd4944638034a25c7b5
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3141598
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings')
-rw-r--r-- | zephyr/dts/bindings/battery/battery-fuel-gauge.yaml | 3 | ||||
-rw-r--r-- | zephyr/dts/bindings/battery/battery-info.yaml | 16 |
2 files changed, 10 insertions, 9 deletions
diff --git a/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml b/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml index 9365910aa6..2572090024 100644 --- a/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml +++ b/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml @@ -78,7 +78,8 @@ properties: type: int imbalance_mv: description: | - This property is used if CONFIG_BATTERY_MEASURE_IMBALANCE is defined. + This property is used only if + CONFIG_PLATFORM_EC_BATTERY_MEASURE_IMBALANCE is enabled. It should be an enum and its value should be a name of function which will be assigned to imbalance_mv pointer. type: string diff --git a/zephyr/dts/bindings/battery/battery-info.yaml b/zephyr/dts/bindings/battery/battery-info.yaml index b84056c266..3a4cb875e7 100644 --- a/zephyr/dts/bindings/battery/battery-info.yaml +++ b/zephyr/dts/bindings/battery/battery-info.yaml @@ -36,28 +36,28 @@ properties: start_charging_min_c: description: | Minimum temperature of battery to start charging it. - This value is used only if CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS - is defined. + This value is used only if + CONFIG_PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS is enabled. type: int start_charging_max_c: description: | Maximum temperature of battery to start charging it. - This value is used only if CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS - is defined. + This value is used only if + CONFIG_PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS is enabled. type: int charging_min_c: description: | Minimum temperature of battery during charging it. If the battery temperature falls below this value, charging will be stopped. - This value is used only if CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS - is defined. + This value is used only if + CONFIG_PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS is enabled. type: int charging_max_c: description: | Maximum temperature of battery during charging it. If the battery temperature raises above this value, charging will be stopped. - This value is used only if CONFIG_BATTERY_CHECK_CHARGE_TEMP_LIMITS - is defined. + This value is used only if + CONFIG_PLATFORM_EC_BATTERY_CHECK_CHARGE_TEMP_LIMITS is enabled. type: int discharging_min_c: description: | |