Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | chip soc/amd/cezanne |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 3 | |
| 4 | # eSPI Configuration |
| 5 | register "common_config.espi_config" = "{ |
| 6 | .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, |
| 7 | .generic_io_range[0] = { |
| 8 | .base = 0x62, |
| 9 | /* |
| 10 | * Only 0x62 and 0x66 are required. But, this is not supported by |
| 11 | * standard IO decodes and there are only 4 generic I/O windows |
| 12 | * available. Hence, open a window from 0x62-0x67. |
| 13 | */ |
| 14 | .size = 5, |
| 15 | }, |
| 16 | .generic_io_range[1] = { |
| 17 | .base = 0x800, /* EC_HOST_CMD_REGION0 */ |
| 18 | .size = 256, /* EC_HOST_CMD_REGION_SIZE * 2 */ |
| 19 | }, |
| 20 | .generic_io_range[2] = { |
| 21 | .base = 0x900, /* EC_LPC_ADDR_MEMMAP */ |
| 22 | .size = 255, /* EC_MEMMAP_SIZE */ |
| 23 | }, |
| 24 | .generic_io_range[3] = { |
| 25 | .base = 0x200, /* EC_LPC_ADDR_HOST_DATA */ |
| 26 | .size = 8, /* 0x200 - 0x207 */ |
| 27 | }, |
| 28 | |
| 29 | .io_mode = ESPI_IO_MODE_QUAD, |
Raul E Rangel | 6ef0e80 | 2021-03-30 14:00:24 -0600 | [diff] [blame] | 30 | .op_freq_mhz = ESPI_OP_FREQ_16_MHZ, |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 31 | .crc_check_enable = 1, |
| 32 | .dedicated_alert_pin = 1, |
| 33 | .periph_ch_en = 1, |
| 34 | .vw_ch_en = 1, |
| 35 | .oob_ch_en = 0, |
| 36 | .flash_ch_en = 0, |
| 37 | |
| 38 | .vw_irq_polarity = ESPI_VW_IRQ_LEVEL_HIGH(1) | ESPI_VW_IRQ_LEVEL_HIGH(12), |
| 39 | }" |
| 40 | |
Karthikeyan Ramasubramanian | 699a709 | 2021-03-15 06:42:15 -0600 | [diff] [blame] | 41 | register "i2c_scl_reset" = "GPIO_I2C0_SCL | GPIO_I2C1_SCL | |
| 42 | GPIO_I2C2_SCL | GPIO_I2C3_SCL" |
| 43 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 44 | device domain 0 on |
Mathew King | 095bdec | 2021-03-12 14:01:22 -0700 | [diff] [blame] | 45 | device ref gpp_bridge_0 on end # WLAN |
| 46 | device ref gpp_bridge_1 on end # SD |
| 47 | device ref gpp_bridge_2 on end # WWAN |
| 48 | device ref gpp_bridge_3 on end # NVMe |
| 49 | |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 50 | device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A |
| 51 | device ref gfx on end # Internal GPU (GFX) |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 52 | device ref xhci_0 on # USB 3.1 (USB0) |
| 53 | chip drivers/usb/acpi |
| 54 | device ref xhci_0_root_hub on |
| 55 | chip drivers/usb/acpi |
| 56 | register "desc" = ""Right Type-C Port"" |
| 57 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 58 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 59 | device ref usb3_port0 on end |
| 60 | end |
| 61 | chip drivers/usb/acpi |
| 62 | register "desc" = ""Right Type-A Port"" |
| 63 | register "type" = "UPC_TYPE_USB3_A" |
| 64 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 65 | device ref usb3_port1 on end |
| 66 | end |
| 67 | chip drivers/usb/acpi |
| 68 | register "desc" = ""Right Type-C Port"" |
| 69 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 70 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 71 | device ref usb2_port0 on end |
| 72 | end |
| 73 | chip drivers/usb/acpi |
| 74 | register "desc" = ""Right Type-A Port"" |
| 75 | register "type" = "UPC_TYPE_USB3_A" |
| 76 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 77 | device ref usb2_port1 on end |
| 78 | end |
| 79 | chip drivers/usb/acpi |
| 80 | register "desc" = ""User-Facing Camera"" |
| 81 | register "type" = "UPC_TYPE_INTERNAL" |
| 82 | device ref usb2_port2 on end |
| 83 | end |
| 84 | chip drivers/usb/acpi |
| 85 | register "desc" = ""World-Facing Camera"" |
| 86 | register "type" = "UPC_TYPE_INTERNAL" |
| 87 | device ref usb2_port3 on end |
| 88 | end |
| 89 | end |
| 90 | end |
| 91 | end |
| 92 | device ref xhci_1 on # USB 3.1 (USB1) |
| 93 | chip drivers/usb/acpi |
| 94 | device ref xhci_1_root_hub on |
| 95 | chip drivers/usb/acpi |
| 96 | register "desc" = ""Left Type-C Port"" |
| 97 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 98 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 99 | device ref usb3_port4 on end |
| 100 | end |
| 101 | chip drivers/usb/acpi |
| 102 | register "desc" = ""Left Type-A Port"" |
| 103 | register "type" = "UPC_TYPE_USB3_A" |
| 104 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 105 | device ref usb3_port5 on end |
| 106 | end |
| 107 | chip drivers/usb/acpi |
| 108 | register "desc" = ""Left Type-C Port"" |
| 109 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 110 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 111 | device ref usb2_port4 on end |
| 112 | end |
| 113 | chip drivers/usb/acpi |
| 114 | register "desc" = ""Left Type-A Port"" |
| 115 | register "type" = "UPC_TYPE_USB3_A" |
| 116 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 117 | device ref usb2_port5 on end |
| 118 | end |
| 119 | chip drivers/usb/acpi |
| 120 | register "desc" = ""Bluetooth"" |
| 121 | register "type" = "UPC_TYPE_INTERNAL" |
Karthikeyan Ramasubramanian | d84ce40 | 2021-03-30 16:27:59 -0600 | [diff] [blame^] | 122 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_132)" |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 123 | device ref usb2_port6 on end |
| 124 | end |
| 125 | end |
| 126 | end |
| 127 | end |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 128 | end |
Mathew King | 78f0301 | 2021-03-05 09:04:44 -0700 | [diff] [blame] | 129 | |
| 130 | device ref lpc_bridge on |
| 131 | chip ec/google/chromeec |
| 132 | device pnp 0c09.0 on end |
| 133 | end |
| 134 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 135 | end # domain |
Karthikeyan Ramasubramanian | 8f7fca5 | 2021-03-15 10:31:37 -0600 | [diff] [blame] | 136 | |
| 137 | device ref i2c_3 on |
| 138 | chip drivers/i2c/tpm |
| 139 | register "hid" = ""GOOG0005"" |
| 140 | register "desc" = ""Cr50 TPM"" |
| 141 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_3)" |
| 142 | device i2c 50 on end |
| 143 | end |
| 144 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 145 | end # chip soc/amd/cezanne |