summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2021-06-02 11:57:59 +0200
committerCommit Bot <commit-bot@chromium.org>2021-06-08 08:08:44 +0000
commita4dc0476c7b0955fbc8d0885a5d442bc41504db4 (patch)
tree4e7f65dab82c621dde80489e9cfc81d67ac0da63 /zephyr/dts/bindings
parentd5e9773ea42c8ea3c2666b031abef85f3d43b162 (diff)
downloadchrome-ec-a4dc0476c7b0955fbc8d0885a5d442bc41504db4.tar.gz
zephyr: Fix I2C_PASSTHRU host command
ZephyrEC uses different I2C port numbers than CrosEC does, so convert the received remote port via I2C_PASSTHRU command into a proper one. The conversion is done based on a new property remote-port, which tells what port number is used by external components like kernel. The change fixes an issue with unexpected entering OTG mode by the charger. BUG=b:188885798 BRANCH=none TEST=Flash Lazor and make sure that no "charge problem" prints are displayed. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Id00265a3abf286ca59cbecb38ff7933d75e0d361 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2933296 Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings')
-rw-r--r--zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
index d00e1346b8..7f7350b668 100644
--- a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
+++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
@@ -7,6 +7,12 @@ properties:
i2c-port:
type: phandle
required: true
+ remote-port:
+ type: int
+ required: false
+ description:
+ A port number used by remote components like Kernel via the I2C_PASSTHRU
+ Host Command
enum-name:
type: string
required: true