summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorMadhurima Paruchuri <mparuchuri@google.com>2023-03-20 16:25:19 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-28 17:47:28 +0000
commit9276d50ff561bc03f2e4c8b6f8181f302cd2e1d0 (patch)
tree489b8b0a9eff6c3b1005c94a1fbe999c2a4507ca /zephyr/dts
parent81e7f41c82547ceac167b2848133a082e6fc420d (diff)
downloadchrome-ec-9276d50ff561bc03f2e4c8b6f8181f302cd2e1d0.tar.gz
zephyr: tcpc: Add support for multiple alternatives per port
Add support for multiple TCPC alternatives on each USB-C port TCPC chips that are candidates for runtime selection must add the "is-alt" property to the TCPC definition. The board specific code then calls TCPC_ENABLE_ALTERNATE_BY_NODELABEL, specifying both the USB-C port to update, and the nodelabel of the new TCPC device. BRANCH=none BUG=b:274126703 TEST=none Change-Id: I3d6074f3afbf014101438dfeb535d08c4473e3f7 Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4356351 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml b/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml
index 10a8f04f55..29bd02bd2d 100644
--- a/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml
+++ b/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml
@@ -3,3 +3,11 @@ description: USBC TCPC
compatible: "cros-ec,tcpci"
include: i2c-device.yaml
+
+properties:
+ is-alt:
+ type: boolean
+ required: false
+ description: |
+ If present, this node refers to an alternate TCPC device. The TCPC device
+ is not used by default, and must be manually enabled at runtime.