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 |
Mathew King | 095bdec | 2021-03-12 14:01:22 -0700 | [diff] [blame] | 56 | device ref gpp_bridge_0 on end # WLAN |
| 57 | device ref gpp_bridge_1 on end # SD |
| 58 | device ref gpp_bridge_2 on end # WWAN |
| 59 | device ref gpp_bridge_3 on end # NVMe |
| 60 | |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 61 | 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] | 62 | device ref gfx on end # Internal GPU (GFX) |
Karthikeyan Ramasubramanian | f6b2a1c | 2021-05-04 00:38:22 -0600 | [diff] [blame^] | 63 | device ref gfx_hda on end # GFX HD Audio Controller |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 64 | device ref xhci_0 on # USB 3.1 (USB0) |
| 65 | chip drivers/usb/acpi |
| 66 | device ref xhci_0_root_hub on |
| 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 usb3_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 usb3_port1 on end |
| 78 | end |
| 79 | chip drivers/usb/acpi |
| 80 | register "desc" = ""Right Type-C Port"" |
| 81 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 82 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 83 | device ref usb2_port0 on end |
| 84 | end |
| 85 | chip drivers/usb/acpi |
| 86 | register "desc" = ""Right Type-A Port"" |
| 87 | register "type" = "UPC_TYPE_USB3_A" |
| 88 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 89 | device ref usb2_port1 on end |
| 90 | end |
| 91 | chip drivers/usb/acpi |
| 92 | register "desc" = ""User-Facing Camera"" |
| 93 | register "type" = "UPC_TYPE_INTERNAL" |
| 94 | device ref usb2_port2 on end |
| 95 | end |
| 96 | chip drivers/usb/acpi |
| 97 | register "desc" = ""World-Facing Camera"" |
| 98 | register "type" = "UPC_TYPE_INTERNAL" |
| 99 | device ref usb2_port3 on end |
| 100 | end |
| 101 | end |
| 102 | end |
| 103 | end |
| 104 | device ref xhci_1 on # USB 3.1 (USB1) |
| 105 | chip drivers/usb/acpi |
| 106 | device ref xhci_1_root_hub on |
| 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 usb3_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 usb3_port5 on end |
| 118 | end |
| 119 | chip drivers/usb/acpi |
| 120 | register "desc" = ""Left Type-C Port"" |
| 121 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 122 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 123 | device ref usb2_port4 on end |
| 124 | end |
| 125 | chip drivers/usb/acpi |
| 126 | register "desc" = ""Left Type-A Port"" |
| 127 | register "type" = "UPC_TYPE_USB3_A" |
| 128 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 129 | device ref usb2_port5 on end |
| 130 | end |
| 131 | chip drivers/usb/acpi |
| 132 | register "desc" = ""Bluetooth"" |
| 133 | register "type" = "UPC_TYPE_INTERNAL" |
Karthikeyan Ramasubramanian | d84ce40 | 2021-03-30 16:27:59 -0600 | [diff] [blame] | 134 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_132)" |
Mathew King | 238242b | 2021-03-04 08:24:55 -0700 | [diff] [blame] | 135 | device ref usb2_port6 on end |
| 136 | end |
| 137 | end |
| 138 | end |
| 139 | end |
Karthikeyan Ramasubramanian | e71a6ee | 2021-04-23 09:51:41 -0600 | [diff] [blame] | 140 | device ref acp on |
| 141 | chip drivers/amd/i2s_machine_dev |
| 142 | register "hid" = ""AMDI5682"" |
| 143 | device generic 0.0 on end |
| 144 | end |
| 145 | end # Audio |
Mathew King | abc6971 | 2021-03-03 16:36:46 -0700 | [diff] [blame] | 146 | end |
Mathew King | 78f0301 | 2021-03-05 09:04:44 -0700 | [diff] [blame] | 147 | |
| 148 | device ref lpc_bridge on |
| 149 | chip ec/google/chromeec |
| 150 | device pnp 0c09.0 on end |
| 151 | end |
| 152 | end |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 153 | end # domain |
Karthikeyan Ramasubramanian | 8f7fca5 | 2021-03-15 10:31:37 -0600 | [diff] [blame] | 154 | |
| 155 | device ref i2c_3 on |
| 156 | chip drivers/i2c/tpm |
| 157 | register "hid" = ""GOOG0005"" |
| 158 | register "desc" = ""Cr50 TPM"" |
| 159 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_3)" |
| 160 | device i2c 50 on end |
| 161 | end |
| 162 | end |
Ivy Jian | a7696ad | 2021-04-13 14:04:12 +0800 | [diff] [blame] | 163 | |
| 164 | device ref uart_0 on end # UART0 |
| 165 | |
Mathew King | 2e2fc7a | 2020-12-08 11:33:58 -0700 | [diff] [blame] | 166 | end # chip soc/amd/cezanne |