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 | |
Karthikeyan Ramasubramanian | e71a6ee | 2021-04-23 09:51:41 -0600 | [diff] [blame] | 4 | register "common_config.acp_config" = "{ |
| 5 | .acp_pin_cfg = I2S_PINS_I2S_TDM, |
| 6 | .acp_i2s_wake_enable = 0, |
| 7 | .acp_pme_enable = 0, |
| 8 | }" |
| 9 | |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 10 | # eSPI Configuration |
| 11 | register "common_config.espi_config" = "{ |
| 12 | .std_io_decode_bitmap = ESPI_DECODE_IO_0x80_EN | ESPI_DECODE_IO_0X60_0X64_EN, |
| 13 | .generic_io_range[0] = { |
| 14 | .base = 0x62, |
| 15 | /* |
| 16 | * Only 0x62 and 0x66 are required. But, this is not supported by |
| 17 | * standard IO decodes and there are only 4 generic I/O windows |
| 18 | * available. Hence, open a window from 0x62-0x67. |
| 19 | */ |
| 20 | .size = 5, |
| 21 | }, |
| 22 | .generic_io_range[1] = { |
| 23 | .base = 0x800, /* EC_HOST_CMD_REGION0 */ |
| 24 | .size = 256, /* EC_HOST_CMD_REGION_SIZE * 2 */ |
| 25 | }, |
| 26 | .generic_io_range[2] = { |
| 27 | .base = 0x900, /* EC_LPC_ADDR_MEMMAP */ |
| 28 | .size = 255, /* EC_MEMMAP_SIZE */ |
| 29 | }, |
| 30 | .generic_io_range[3] = { |
| 31 | .base = 0x200, /* EC_LPC_ADDR_HOST_DATA */ |
| 32 | .size = 8, /* 0x200 - 0x207 */ |
| 33 | }, |
| 34 | |
| 35 | .io_mode = ESPI_IO_MODE_QUAD, |
Rob Barnes | 20d689f | 2021-04-15 17:31:01 -0600 | [diff] [blame] | 36 | .op_freq_mhz = ESPI_OP_FREQ_33_MHZ, |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 37 | .crc_check_enable = 1, |
Raul E Rangel | f33f857 | 2021-05-05 13:41:24 -0600 | [diff] [blame] | 38 | .alert_pin = ESPI_ALERT_PIN_IN_BAND, |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 39 | .periph_ch_en = 1, |
| 40 | .vw_ch_en = 1, |
| 41 | .oob_ch_en = 0, |
| 42 | .flash_ch_en = 0, |
| 43 | |
Raul E Rangel | 5804aa3 | 2021-04-06 15:51:46 -0600 | [diff] [blame] | 44 | .vw_irq_polarity = ESPI_VW_IRQ_LEVEL_HIGH(1), |
Mathew King | c44cc19 | 2021-02-23 14:15:50 -0700 | [diff] [blame] | 45 | }" |
| 46 | |
Karthikeyan Ramasubramanian | b6a4476 | 2021-04-22 17:03:56 -0600 | [diff] [blame] | 47 | # Enable S0i3 support |
| 48 | register "s0ix_enable" = "1" |
| 49 | |
Martin Roth | e5b85c3 | 2021-04-26 16:04:51 -0600 | [diff] [blame] | 50 | register "system_configuration" = "2" |
| 51 | |
Karthikeyan Ramasubramanian | 699a709 | 2021-03-15 06:42:15 -0600 | [diff] [blame] | 52 | register "i2c_scl_reset" = "GPIO_I2C0_SCL | GPIO_I2C1_SCL | |
| 53 | GPIO_I2C2_SCL | GPIO_I2C3_SCL" |
| 54 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 55 | device domain 0 on |
Karthikeyan Ramasubramanian | 24abd3e | 2021-05-04 16:19:32 -0600 | [diff] [blame] | 56 | device ref gpp_bridge_0 on |
| 57 | chip drivers/wifi/generic |
| 58 | register "wake" = "GEVENT_8" |
| 59 | device pci 00.0 on end |
| 60 | end |
| 61 | end # WLAN |
Mathew King | 095bdec | 2021-03-12 14:01:22 -0700 | [diff] [blame] | 62 | device ref gpp_bridge_1 on end # SD |
| 63 | device ref gpp_bridge_2 on end # WWAN |
| 64 | device ref gpp_bridge_3 on end # NVMe |
| 65 | |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 66 | device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A |
Raul Rangel | ca25ad5 | 2021-04-06 15:33:16 +0000 | [diff] [blame] | 67 | device ref gfx on end # Internal GPU (GFX) |
Karthikeyan Ramasubramanian | f6b2a1c | 2021-05-04 00:38:22 -0600 | [diff] [blame] | 68 | device ref gfx_hda on end # GFX HD Audio Controller |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 69 | device ref xhci_0 on # USB 3.1 (USB0) |
| 70 | chip drivers/usb/acpi |
| 71 | device ref xhci_0_root_hub on |
| 72 | chip drivers/usb/acpi |
| 73 | register "desc" = ""Right Type-C Port"" |
| 74 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 75 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 76 | device ref usb3_port0 on end |
| 77 | end |
| 78 | chip drivers/usb/acpi |
| 79 | register "desc" = ""Right Type-A Port"" |
| 80 | register "type" = "UPC_TYPE_USB3_A" |
| 81 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 82 | device ref usb3_port1 on end |
| 83 | end |
| 84 | chip drivers/usb/acpi |
| 85 | register "desc" = ""Right Type-C Port"" |
| 86 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 87 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 88 | device ref usb2_port0 on end |
| 89 | end |
| 90 | chip drivers/usb/acpi |
| 91 | register "desc" = ""Right Type-A Port"" |
| 92 | register "type" = "UPC_TYPE_USB3_A" |
| 93 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 94 | device ref usb2_port1 on end |
| 95 | end |
| 96 | chip drivers/usb/acpi |
| 97 | register "desc" = ""User-Facing Camera"" |
| 98 | register "type" = "UPC_TYPE_INTERNAL" |
| 99 | device ref usb2_port2 on end |
| 100 | end |
| 101 | chip drivers/usb/acpi |
| 102 | register "desc" = ""World-Facing Camera"" |
| 103 | register "type" = "UPC_TYPE_INTERNAL" |
| 104 | device ref usb2_port3 on end |
| 105 | end |
| 106 | end |
| 107 | end |
| 108 | end |
| 109 | device ref xhci_1 on # USB 3.1 (USB1) |
| 110 | chip drivers/usb/acpi |
| 111 | device ref xhci_1_root_hub on |
| 112 | chip drivers/usb/acpi |
| 113 | register "desc" = ""Left Type-C Port"" |
| 114 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 115 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 116 | device ref usb3_port4 on end |
| 117 | end |
| 118 | chip drivers/usb/acpi |
| 119 | register "desc" = ""Left Type-A Port"" |
| 120 | register "type" = "UPC_TYPE_USB3_A" |
| 121 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 122 | device ref usb3_port5 on end |
| 123 | end |
| 124 | chip drivers/usb/acpi |
| 125 | register "desc" = ""Left Type-C Port"" |
| 126 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 127 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 128 | device ref usb2_port4 on end |
| 129 | end |
| 130 | chip drivers/usb/acpi |
| 131 | register "desc" = ""Left Type-A Port"" |
| 132 | register "type" = "UPC_TYPE_USB3_A" |
| 133 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 134 | device ref usb2_port5 on end |
| 135 | end |
| 136 | chip drivers/usb/acpi |
| 137 | register "desc" = ""Bluetooth"" |
| 138 | register "type" = "UPC_TYPE_INTERNAL" |
Karthikeyan Ramasubramanian | d84ce40 | 2021-03-30 16:27:59 -0600 | [diff] [blame] | 139 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_132)" |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 140 | device ref usb2_port6 on end |
| 141 | end |
| 142 | end |
| 143 | end |
| 144 | end |
Karthikeyan Ramasubramanian | e71a6ee | 2021-04-23 09:51:41 -0600 | [diff] [blame] | 145 | device ref acp on |
| 146 | chip drivers/amd/i2s_machine_dev |
| 147 | register "hid" = ""AMDI5682"" |
| 148 | device generic 0.0 on end |
| 149 | end |
| 150 | end # Audio |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 151 | end |
Mathew King | 78f0301 | 2021-03-05 09:04:44 -0700 | [diff] [blame] | 152 | |
| 153 | device ref lpc_bridge on |
| 154 | chip ec/google/chromeec |
Raul E Rangel | ba10223 | 2021-05-12 17:07:39 -0600 | [diff] [blame^] | 155 | device pnp 0c09.0 alias chrome_ec on end |
Mathew King | 78f0301 | 2021-03-05 09:04:44 -0700 | [diff] [blame] | 156 | end |
| 157 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 158 | end # domain |
Karthikeyan Ramasubramanian | 8f7fca5 | 2021-03-15 10:31:37 -0600 | [diff] [blame] | 159 | |
| 160 | device ref i2c_3 on |
| 161 | chip drivers/i2c/tpm |
| 162 | register "hid" = ""GOOG0005"" |
| 163 | register "desc" = ""Cr50 TPM"" |
| 164 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_3)" |
| 165 | device i2c 50 on end |
| 166 | end |
| 167 | end |
Ivy Jian | a7696ad | 2021-04-13 14:04:12 +0800 | [diff] [blame] | 168 | |
| 169 | device ref uart_0 on end # UART0 |
| 170 | |
Raul E Rangel | ba10223 | 2021-05-12 17:07:39 -0600 | [diff] [blame^] | 171 | # See https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/baseboard/guybrush/baseboard.c;l=221 |
| 172 | # for the EC configuration. |
| 173 | # |
| 174 | # EC is configured to power off the system at 105C, so add a two degree |
| 175 | # buffer so the OS can gracefully shutdown. |
| 176 | # |
| 177 | # EC is configured to assert PROCHOT at 100C. That drastically lowers |
| 178 | # performance. Instead we will tell the OS to start throttling the CPUs |
| 179 | # at 95C in hopes that we don't hit the PROCHOT limit. |
| 180 | # |
| 181 | # We set use_acpi1_thermal_zone_scope because the Chrome ec.asl |
| 182 | # performs a `Notify` to the `_\TZ` scope. |
| 183 | chip drivers/acpi/thermal_zone |
| 184 | register "description" = ""SOC"" |
| 185 | use chrome_ec as temperature_controller |
| 186 | register "sensor_id" = "0" |
| 187 | register "polling_period" = "10" |
| 188 | register "critical_temperature" = "103" |
| 189 | register "passive_config.temperature" = "95" |
| 190 | register "use_acpi1_thermal_zone_scope" = "true" |
| 191 | |
| 192 | device generic 0 on end |
| 193 | end |
| 194 | chip drivers/acpi/thermal_zone |
| 195 | register "description" = ""Charger"" |
| 196 | use chrome_ec as temperature_controller |
| 197 | register "sensor_id" = "1" |
| 198 | register "polling_period" = "10" |
| 199 | register "critical_temperature" = "103" |
| 200 | register "passive_config.temperature" = "95" |
| 201 | register "use_acpi1_thermal_zone_scope" = "true" |
| 202 | |
| 203 | device generic 1 on end |
| 204 | end |
| 205 | chip drivers/acpi/thermal_zone |
| 206 | register "description" = ""Memory"" |
| 207 | use chrome_ec as temperature_controller |
| 208 | register "sensor_id" = "2" |
| 209 | register "polling_period" = "10" |
| 210 | register "critical_temperature" = "103" |
| 211 | register "passive_config.temperature" = "95" |
| 212 | register "use_acpi1_thermal_zone_scope" = "true" |
| 213 | |
| 214 | device generic 2 on end |
| 215 | end |
| 216 | chip drivers/acpi/thermal_zone |
| 217 | register "description" = ""CPU"" |
| 218 | use chrome_ec as temperature_controller |
| 219 | register "sensor_id" = "3" |
| 220 | register "polling_period" = "10" |
| 221 | register "critical_temperature" = "103" |
| 222 | register "passive_config.temperature" = "95" |
| 223 | register "use_acpi1_thermal_zone_scope" = "true" |
| 224 | |
| 225 | device generic 3 on end |
| 226 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 227 | end # chip soc/amd/cezanne |