diff options
author | Diana Z <dzigterman@chromium.org> | 2021-11-01 11:05:23 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-01 18:42:08 +0000 |
commit | f405c2f13969140fa1347b32b408199b072bcd04 (patch) | |
tree | 682c8ab73b6cdcb8389ddeed31b8c0751395c3bd | |
parent | ab2b59f19ed156656a3895e98a881da72c6c609a (diff) | |
download | chrome-ec-f405c2f13969140fa1347b32b408199b072bcd04.tar.gz |
Zephyr: Guybrush alternate mode support
Flesh out the alternate mode support for Guybrush, which has only DP.
Also set up HPD GPIOs.
BRANCH=None
BUG=b:195137794
TEST=on guybrush, verify display over USB-C on C0 and C1
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I1ee85a05f34291e33484dc445e40e14381e694d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3254892
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/projects/guybrush/gpio.dts | 2 | ||||
-rw-r--r-- | zephyr/projects/guybrush/prj.conf | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/projects/guybrush/gpio.dts b/zephyr/projects/guybrush/gpio.dts index 4969d37dd5..e3be6833c7 100644 --- a/zephyr/projects/guybrush/gpio.dts +++ b/zephyr/projects/guybrush/gpio.dts @@ -188,10 +188,12 @@ usb_c0_hpd { gpios = <&gpiof 5 GPIO_OUT_LOW>; label = "USB_C0_HPD"; + enum-name = "GPIO_USB_C0_DP_HPD"; }; usb_c1_hpd { gpios = <&gpiof 4 GPIO_OUT_LOW>; label = "USB_C1_HPD"; + enum-name = "GPIO_USB_C1_DP_HPD"; }; 3axis_int_l { gpios = <&gpioa 2 (GPIO_INPUT | GPIO_PULL_DOWN)>; diff --git a/zephyr/projects/guybrush/prj.conf b/zephyr/projects/guybrush/prj.conf index 2714607afc..6ad01407b8 100644 --- a/zephyr/projects/guybrush/prj.conf +++ b/zephyr/projects/guybrush/prj.conf @@ -73,12 +73,15 @@ CONFIG_PLATFORM_EC_USB_PID=0x504D CONFIG_PLATFORM_EC_USB_PD_5V_EN_CUSTOM=y CONFIG_PLATFORM_EC_USB_PD_VBUS_DETECT_TCPC=y CONFIG_PLATFORM_EC_USB_PD_DISCHARGE_TCPC=y +CONFIG_PLATFORM_EC_USB_PD_DP_HPD_GPIO=y CONFIG_PLATFORM_EC_USB_PD_LOGGING=y CONFIG_PLATFORM_EC_USB_PD_PORT_MAX_COUNT=2 CONFIG_PLATFORM_EC_USB_PD_REV30=y +CONFIG_PLATFORM_EC_USB_PD_TBT_COMPAT_MODE=n CONFIG_PLATFORM_EC_USB_PD_TCPC_LOW_POWER=y CONFIG_PLATFORM_EC_USB_PD_TCPM_NCT38XX=y CONFIG_PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG=n +CONFIG_PLATFORM_EC_USB_PD_USB4=n CONFIG_PLATFORM_EC_USB_PD_VBUS_MEASURE_CHARGER=y # This is not yet supported |