diff options
author | Simon Glass <sjg@chromium.org> | 2021-06-04 13:41:20 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-09 19:55:43 +0000 |
commit | fc9711f65b2c5b51e9bbaa8d36bb799a41a794c2 (patch) | |
tree | a04066947c19d597b9c964f5d75589c5134658da /zephyr/projects/asurada | |
parent | e380bf638f7db25e5d66f3b9a11f8840807f2b1b (diff) | |
download | chrome-ec-fc9711f65b2c5b51e9bbaa8d36bb799a41a794c2.tar.gz |
zephyr: asurada: Add battery information
Add battery information so we can support charging.
BUG=b:189855648
BRANCH=none
TEST=with other CLs, build asurada for Zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I638c5789a2a494bdf811c13f66d5b892f4ebded2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941812
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/projects/asurada')
-rw-r--r-- | zephyr/projects/asurada/hayato/battery.dts | 14 | ||||
-rw-r--r-- | zephyr/projects/asurada/hayato/zmake.yaml | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/projects/asurada/hayato/battery.dts b/zephyr/projects/asurada/hayato/battery.dts new file mode 100644 index 0000000000..abc22b4383 --- /dev/null +++ b/zephyr/projects/asurada/hayato/battery.dts @@ -0,0 +1,14 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/ { + named-batteries { + compatible = "named-batteries"; + + c235 { + enum-name = "c235"; + }; + }; +}; diff --git a/zephyr/projects/asurada/hayato/zmake.yaml b/zephyr/projects/asurada/hayato/zmake.yaml index 8501d63dc3..133c622527 100644 --- a/zephyr/projects/asurada/hayato/zmake.yaml +++ b/zephyr/projects/asurada/hayato/zmake.yaml @@ -4,6 +4,7 @@ board: asurada dts-overlays: + - battery.dts - gpio.dts - motionsense.dts supported-zephyr-versions: |