summaryrefslogtreecommitdiff
path: root/zephyr/projects/trogdor/trogdor/battery.dts
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-08-19 15:04:49 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-03 21:30:58 +0000
commitd64c9ddf0459370f09a4ec9189c2426e50e1f323 (patch)
tree88afd6253420c8c607ca9b0bd51bc18c7c7e04e0 /zephyr/projects/trogdor/trogdor/battery.dts
parent970bd536ade4a2f4922a0dc95dfc7a7458ada89a (diff)
downloadchrome-ec-d64c9ddf0459370f09a4ec9189c2426e50e1f323.tar.gz
zephyr: define trogdor's batteries in device tree
This commit adds trogdor's batteries definitions to device tree and removes old battery.c usage in Zephyr. BRANCH=main BUG=b:183544739 TEST=Compile and flash CrOS EC firmware to trogdor. It should work the same as without this commit. TEST=Compile and flash Zephyr, battery should be detected correctly and its model should be logged in EC console. Change-Id: I75c30b4d278dbb88ff4e0776924d9b85d3d0b4ad Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3107386 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor/trogdor/battery.dts')
-rw-r--r--zephyr/projects/trogdor/trogdor/battery.dts8
1 files changed, 3 insertions, 5 deletions
diff --git a/zephyr/projects/trogdor/trogdor/battery.dts b/zephyr/projects/trogdor/trogdor/battery.dts
index 1dd7527241..ab4b28999a 100644
--- a/zephyr/projects/trogdor/trogdor/battery.dts
+++ b/zephyr/projects/trogdor/trogdor/battery.dts
@@ -4,11 +4,9 @@
*/
/ {
- named-batteries {
- compatible = "named-batteries";
-
- ap16l5j {
- enum-name = "ap16l5j";
+ batteries {
+ default_battery: ap16l5j {
+ compatible = "panasonic,ap16l5j";
};
};
};