summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-09-13 11:11:06 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-14 21:08:15 +0000
commitdfbeff4b5f6d8e078c7f69b1fe5050a4288a1d66 (patch)
treed288fc2e3a83d2e7918793584d7040918a37174e /zephyr/dts
parent17b10f589a23ab208222742f9864201a85512e00 (diff)
downloadchrome-ec-dfbeff4b5f6d8e078c7f69b1fe5050a4288a1d66.tar.gz
zephyr: Automatically detect shared I2C ports
Delete the "physical-port" node from named-i2c-ports, and automatically detected when multiple children point to the same I2C bus. This ensures that the I2C bus locking always blocks all matching I2C nodes, without the user needing to specify this relationship manually in the devicetree. BUG=none BRANCH=none TEST=Dump out i2c_physical_ports[] on herobrine. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I3d254684483a95af12e7940446f4cd8743684708 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3154694 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml8
1 files changed, 0 insertions, 8 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 b1b7916f85..ba2cc7b172 100644
--- a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
+++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
@@ -54,11 +54,3 @@ properties:
description:
Human readable string describing the device (used as device_get_binding()
argument).
- physical-port:
- type: int
- # TODO: Change the field to true once all boards' named-i2c-ports support
- # this property.
- required: false
- description:
- In the named-i2c-ports, it's a number indicated an i2c device
- (eg. battery, charger, etc.) connected to which soc's i2c port.