From 80e36d02d24d30030f4fff6774916dd5b71090cc Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Tue, 8 Feb 2022 11:48:46 +1100 Subject: 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 Change-Id: Id6389599531bac1c88a7040a6370d28b6c7d48d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3445703 Reviewed-by: Andrew McRae --- zephyr/projects/nissa/nereid_overlay.dts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zephyr') 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; -- cgit v1.2.1