From a4dc0476c7b0955fbc8d0885a5d442bc41504db4 Mon Sep 17 00:00:00 2001 From: Dawid Niedzwiecki Date: Wed, 2 Jun 2021 11:57:59 +0200 Subject: 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 Change-Id: Id00265a3abf286ca59cbecb38ff7933d75e0d361 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2933296 Reviewed-by: Yuval Peress --- zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zephyr/dts/bindings/i2c') 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 -- cgit v1.2.1