summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2023-06-06 15:30:09 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-06-07 21:59:27 +0000
commite23c8038f8c43b7971c54cbf15865b7f46989f62 (patch)
treee55a0554f5035faf69ffc26d8358dd65a7537429 /src/mainboard/google
parent07ebe4ae02ccee012258b3df9da9a8cd6f0e9cd4 (diff)
mb/google/myst: Enable USB WWAN
Add usb wwan device tree entry. Also set wwan_rst to high due to HW design active high. BUG=b:285792436 TEST=check FM101 is detected by Linux kernel. Bus 002 Device 002: ID 2cb7:01a2 Fibocom Wireless Inc. Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: I0aa60cb284d4b7f99e16643a92ee58467a355026 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75660 Reviewed-by: Tim Van Patten <timvp@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/myst/variants/baseboard/devicetree.cb19
-rw-r--r--src/mainboard/google/myst/variants/baseboard/gpio.c2
2 files changed, 20 insertions, 1 deletions
diff --git a/src/mainboard/google/myst/variants/baseboard/devicetree.cb b/src/mainboard/google/myst/variants/baseboard/devicetree.cb
index f53f5b760c..01a4389d6f 100644
--- a/src/mainboard/google/myst/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/myst/variants/baseboard/devicetree.cb
@@ -293,6 +293,25 @@ chip soc/amd/phoenix
end
end
end
+ device ref xhci_1 on
+ chip drivers/usb/acpi
+ register "type" = "UPC_TYPE_HUB"
+ device ref xhci_1_root_hub on
+ chip drivers/usb/acpi
+ register "desc" = ""USB3 WWAN""
+ register "type" = "UPC_TYPE_INTERNAL"
+ register "has_power_resource" = "1"
+ register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_6)"
+ register "enable_delay_ms" = "20"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_11)"
+ register "reset_off_delay_ms" = "20"
+ device ref usb3_port7 on
+ probe WWAN WWAN_FM101GL
+ end
+ end
+ end
+ end
+ end
device ref acp on end # Audio Processor (ACP)
device ref mp2 on end # Sensor Fusion Hub (MP2)
end
diff --git a/src/mainboard/google/myst/variants/baseboard/gpio.c b/src/mainboard/google/myst/variants/baseboard/gpio.c
index 79797638a7..efd654e652 100644
--- a/src/mainboard/google/myst/variants/baseboard/gpio.c
+++ b/src/mainboard/google/myst/variants/baseboard/gpio.c
@@ -28,7 +28,7 @@ static const struct soc_amd_gpio base_gpio_table[] = {
/* EN_PP3300_WLAN */
PAD_GPO(GPIO_9, HIGH),
/* WWAN_RST */
- PAD_GPO(GPIO_11, LOW),
+ PAD_GPO(GPIO_11, HIGH),
/* Unused */
PAD_NC(GPIO_12),
/* GPIO_13 - GPIO_15: Not available */