summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/usbc_console_pd
diff options
context:
space:
mode:
authorJason Yuan <jasonyuan@google.com>2022-12-14 15:23:05 -0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-09 22:55:11 +0000
commit00986ffb1ca9dc71e292003691d6c03024a6d26f (patch)
treec57d35d1a91b347447229cdfd2f17b16297c8dd4 /zephyr/test/drivers/usbc_console_pd
parent5b5dee8e82c6c633d8efa92901d6100c0e4b846c (diff)
downloadchrome-ec-00986ffb1ca9dc71e292003691d6c03024a6d26f.tar.gz
zephyr: move usbc interrupt handler to shim
TCPC interrupt no longer uses gpio-int. Instead the shim tcpc completely handles its own interrupt. An optional config is added to allow projects to use the legacy tcpc interrupt. The program intelrvp is excluded from this CL. BUG=b:254148652 TEST=twister, usbc charging on villager, lazor, and xivu BRANCH=none Change-Id: Ieeb4fb61ca6cf8f44df212a6cf520d265cff5147 Signed-off-by: Jason Yuan <jasonyuan@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4108942 Commit-Queue: zhi cheng yuan <jasonyuan@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'zephyr/test/drivers/usbc_console_pd')
-rw-r--r--zephyr/test/drivers/usbc_console_pd/usbc_legacy.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/zephyr/test/drivers/usbc_console_pd/usbc_legacy.dts b/zephyr/test/drivers/usbc_console_pd/usbc_legacy.dts
new file mode 100644
index 0000000000..c07f379f77
--- /dev/null
+++ b/zephyr/test/drivers/usbc_console_pd/usbc_legacy.dts
@@ -0,0 +1,25 @@
+/* Copyright 2023 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+&{/gpio-interrupts} {
+ int_usb_c0: usb_c0 {
+ irq-pin = <&usb_c0_tcpc_int_odl>;
+ flags = <GPIO_INT_EDGE_FALLING>;
+ handler = "tcpc_alert_event";
+ };
+ int_usb_c1: usb_c1 {
+ irq-pin = <&usb_c1_tcpc_int_odl>;
+ flags = <GPIO_INT_EDGE_FALLING>;
+ handler = "tcpc_alert_event";
+ };
+};
+
+&tcpci_emul {
+ int-pin = <&usb_c0_tcpc_int_odl>;
+};
+
+&ps8xxx_emul {
+ int-pin = <&usb_c1_tcpc_int_odl>;
+};