diff options
author | Scott Collyer <scollyer@google.com> | 2022-08-27 14:17:12 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-29 18:17:29 +0000 |
commit | 79d8e224452032ce9ab5bafaddee3ca78370a1c6 (patch) | |
tree | 119731ee02f87bbf7c9becda64f41099834af2ac | |
parent | 64498e0422bac9d9c4b14d637c26c9eccd0fed84 (diff) | |
download | chrome-ec-79d8e224452032ce9ab5bafaddee3ca78370a1c6.tar.gz |
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 <scollyer@google.com>
Change-Id: I69e685133a2b319037feb07bffa48b2f4ccaa869
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3860654
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
-rw-r--r-- | zephyr/projects/rex/prj.conf | 3 | ||||
-rw-r--r-- | zephyr/projects/rex/rex.dts | 5 |
2 files changed, 8 insertions, 0 deletions
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 */ |