summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-04-13 07:22:54 +1200
committerCommit Bot <commit-bot@chromium.org>2021-04-13 05:08:29 +0000
commit2a326d781afaedc10c67012cd5f135f8e1f4e0f0 (patch)
tree56df3797044d0bded4208e141c3b5b1aaf78d80d
parent67d69b365b7a6b9c7a107dbd257a983aa4ac68dc (diff)
downloadchrome-ec-2a326d781afaedc10c67012cd5f135f8e1f4e0f0.tar.gz
zephyr: trogdor: Add a node for the charger
We did this in volteer but not with trogdor. Add it for consistency and to make things easier when we move away from shimming BUG=b:183296099 BRANCH=none TEST=build zephyr on lazor and boot (no apparent change) Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I661089ead0c0d0ea97d6082cbd7a6e41939aa1ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2822389 Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--zephyr/dts/bindings/charger/intersil,isl9238.yaml9
-rw-r--r--zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts6
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/charger/intersil,isl9238.yaml b/zephyr/dts/bindings/charger/intersil,isl9238.yaml
new file mode 100644
index 0000000000..08e00bf313
--- /dev/null
+++ b/zephyr/dts/bindings/charger/intersil,isl9238.yaml
@@ -0,0 +1,9 @@
+# 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.
+
+description: Intersil ISL9238 Charger IC
+
+compatible: "intersil,isl9238"
+
+include: i2c-device.yaml
diff --git a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts
index a6ad1b714e..68a2357279 100644
--- a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts
+++ b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts
@@ -202,6 +202,12 @@
&i2c0_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
+
+ isl9238: isl9238@9 {
+ compatible = "intersil,isl9238";
+ reg = <0x09>;
+ label = "ISL9238_CHARGER";
+ };
};
&i2c1_0 {