From 79d8e224452032ce9ab5bafaddee3ca78370a1c6 Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Sat, 27 Aug 2022 14:17:12 -0700 Subject: rex: Add support for USB-A This CL adds the required config option and the usba-port-enable-list that are required to support USB-A opertation. BRANCH=none BUG=b:243899461 TEST=zmake build rex Signed-off-by: Scott Collyer Change-Id: I69e685133a2b319037feb07bffa48b2f4ccaa869 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3860654 Tested-by: Scott Collyer Commit-Queue: Scott Collyer Reviewed-by: Fabio Baltieri --- zephyr/projects/rex/prj.conf | 3 +++ zephyr/projects/rex/rex.dts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/zephyr/projects/rex/prj.conf b/zephyr/projects/rex/prj.conf index 551bae58db..afa3bc9d97 100644 --- a/zephyr/projects/rex/prj.conf +++ b/zephyr/projects/rex/prj.conf @@ -79,6 +79,9 @@ CONFIG_PLATFORM_EC_CHARGER_SENSE_RESISTOR_AC=10 CONFIG_PLATFORM_EC_CHARGER_MIN_POWER_MW_FOR_POWER_ON=30000 CONFIG_PLATFORM_EC_CHARGER_MIN_POWER_MW_FOR_POWER_ON_WITH_BATT=15000 +# USB-A +CONFIG_PLATFORM_EC_USBA=y + # USBC CONFIG_PLATFORM_EC_USBC_PPC=y CONFIG_PLATFORM_EC_USBC_PPC_SYV682X=y diff --git a/zephyr/projects/rex/rex.dts b/zephyr/projects/rex/rex.dts index 51aeb51762..c761cb7cfe 100644 --- a/zephyr/projects/rex/rex.dts +++ b/zephyr/projects/rex/rex.dts @@ -42,6 +42,11 @@ gpios = <&gpiod 0 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; }; + + usba-port-enable-list { + compatible = "cros-ec,usba-port-enable-pins"; + enable-pins = <&gpio_en_pp5000_usba_r>; + }; }; /* host interface */ -- cgit v1.2.1