summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-02-08 11:48:46 +1100
committerCommit Bot <commit-bot@chromium.org>2022-02-08 04:10:50 +0000
commit80e36d02d24d30030f4fff6774916dd5b71090cc (patch)
treeb6d81121728f45b007b84e0ed18f171e71345893 /zephyr
parentf78f186e9e27d7d0ff6acc6fb9112f21538e76b9 (diff)
downloadchrome-ec-80e36d02d24d30030f4fff6774916dd5b71090cc.tar.gz
nissa/nereid: add definition for USB_C0_PROT_FAULT GPIO
This gets pulled low by the protection chip on the port if there is an overvoltage detected on CC or SBU pins, or if the protection chip is over-temperature. The EC currently takes no action in response to this fault, since the protection chip disconnects the affected lines which should be detected as-is by the TCPC. BUG=b:218388229 TEST=gpioget usb_c0_prot_fault_odl BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: Id6389599531bac1c88a7040a6370d28b6c7d48d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3445703 Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/projects/nissa/nereid_overlay.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/nereid_overlay.dts b/zephyr/projects/nissa/nereid_overlay.dts
index bbc4b3e2ed..ac81462471 100644
--- a/zephyr/projects/nissa/nereid_overlay.dts
+++ b/zephyr/projects/nissa/nereid_overlay.dts
@@ -56,6 +56,14 @@
};
named-gpios {
+ /*
+ * EC doesn't take any specific action on CC/SBU disconnect due to
+ * fault, but this definition is useful for hardware testing.
+ */
+ gpio_usb_c0_prot_fault_odl: usb_c0_prot_fault_odl {
+ gpios = <&gpiok 6 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
+ };
+
gpio_sb_1: sb_1 {
gpios = <&gpioe 6 GPIO_INPUT_PULL_UP>;
no-auto-init;