summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-03-10 13:31:15 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-17 16:23:33 +0000
commit2ac0ecc246d5d982c31f9edcbd7eef74ddfd8a6d (patch)
tree3232d70f9d4bf279d322923f0f563187679b1843 /zephyr/dts
parent57629d8a2335d5d6e8fd817abe5b711eb42843e4 (diff)
downloadchrome-ec-2ac0ecc246d5d982c31f9edcbd7eef74ddfd8a6d.tar.gz
isl9241: Add devicetree property for switching frequency
Update the isl9241 driver to support overriding the charger switching frequency using a devicetree property. BUG=b:182300938 BRANCH=none TEST=make buildall, zmake testall TEST=Boot zephyr-ec on volteer, verify ISL9241 charging frequency via register dump. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ic1c3bb24b79ae6e10082cdb79bdb9edc327064a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2754489 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/charger/intersil,isl9241.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/charger/intersil,isl9241.yaml b/zephyr/dts/bindings/charger/intersil,isl9241.yaml
new file mode 100644
index 0000000000..7557b949d8
--- /dev/null
+++ b/zephyr/dts/bindings/charger/intersil,isl9241.yaml
@@ -0,0 +1,18 @@
+# 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 ISL9241 Charger IC
+
+compatible: "intersil,isl9241"
+
+include: i2c-device.yaml
+
+properties:
+ switching-frequency:
+ type: int
+ required: false
+ description:
+ Sets the charger switching frequency. If not defined then the switching
+ frequency is configured by the resistor connected to the PROG pin on
+ the board.