From 2ac0ecc246d5d982c31f9edcbd7eef74ddfd8a6d Mon Sep 17 00:00:00 2001 From: Keith Short Date: Wed, 10 Mar 2021 13:31:15 -0700 Subject: 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 Change-Id: Ic1c3bb24b79ae6e10082cdb79bdb9edc327064a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2754489 Reviewed-by: Jack Rosenthal --- zephyr/dts/bindings/charger/intersil,isl9241.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 zephyr/dts/bindings/charger/intersil,isl9241.yaml (limited to 'zephyr/dts') 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. -- cgit v1.2.1