Eran Mitrani | 05a50d7 | 2023-10-16 14:47:29 -0700 | [diff] [blame] | 1 | chip soc/intel/meteorlake |
Eran Mitrani | 36991b2 | 2023-10-17 13:41:50 -0700 | [diff] [blame] | 2 | |
Eran Mitrani | f976470 | 2023-10-23 14:18:08 -0700 | [diff] [blame] | 3 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C2 |
| 4 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
| 5 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C1 |
| 6 | register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # Type-A Port A0 |
| 7 | register "usb2_ports[4]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C3 |
| 8 | register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-A Port A4 |
| 9 | register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-A Port A1 |
| 10 | register "usb2_ports[7]" = "USB2_PORT_MID(OC3)" # Type-A Port A2 |
| 11 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A3 |
| 12 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 13 | |
| 14 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A0 |
| 15 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A1 |
| 16 | |
| 17 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC0)" |
| 18 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)" |
| 19 | register "tcss_ports[2]" = "TCSS_PORT_DEFAULT(OC0)" |
| 20 | register "tcss_ports[3]" = "TCSS_PORT_DEFAULT(OC0)" |
| 21 | |
Eran Mitrani | 0c9bff6 | 2023-10-23 16:08:46 -0700 | [diff] [blame] | 22 | # Enable Display Port Configuration |
| 23 | register "ddi_ports_config" = "{ |
| 24 | [DDI_PORT_1] = DDI_ENABLE_HPD, |
| 25 | [DDI_PORT_2] = DDI_ENABLE_HPD, |
| 26 | [DDI_PORT_3] = DDI_ENABLE_HPD, |
| 27 | [DDI_PORT_4] = DDI_ENABLE_HPD, |
| 28 | }" |
| 29 | |
Eran Mitrani | 36991b2 | 2023-10-17 13:41:50 -0700 | [diff] [blame] | 30 | register "serial_io_i2c_mode" = "{ |
| 31 | [PchSerialIoIndexI2C0] = PchSerialIoDisabled, |
| 32 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 33 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 34 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 35 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 36 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 37 | }" |
| 38 | |
| 39 | # Intel Common SoC Config |
| 40 | #+-------------------+---------------------------+ |
| 41 | #| Field | Value | |
| 42 | #+-------------------+---------------------------+ |
| 43 | #| I2C4 | cr50 TPM. Early init is | |
| 44 | #| | required to set up a BAR | |
| 45 | #| | for TPM communication | |
| 46 | #+-------------------+---------------------------+ |
| 47 | register "common_soc_config" = "{ |
| 48 | .i2c[4] = { |
| 49 | .early_init = 1, |
| 50 | .speed = I2C_SPEED_FAST, |
| 51 | .rise_time_ns = 600, |
| 52 | .fall_time_ns = 400, |
| 53 | .data_hold_time_ns = 50, |
| 54 | }, |
| 55 | }" |
| 56 | |
Tony Huang | 031c1e0 | 2024-05-03 11:41:10 +0800 | [diff] [blame^] | 57 | # As per doc 640982, Intel MTL-U 28W CPU supports FVM on GT and SA |
| 58 | # The ICC Limit is represented in 1/4 A increments, i.e., a value of 400 = 100A |
| 59 | # For GT VR configuration |
| 60 | register "enable_fast_vmode[VR_DOMAIN_GT]" = "1" |
| 61 | register "cep_enable[VR_DOMAIN_IA]" = "1" |
| 62 | register "fast_vmode_i_trip[VR_DOMAIN_GT]" = "216" # 54A |
| 63 | # For SA VR configuration |
| 64 | register "enable_fast_vmode[VR_DOMAIN_SA]" = "1" |
| 65 | register "cep_enable[VR_DOMAIN_SA]" = "1" |
| 66 | register "fast_vmode_i_trip[VR_DOMAIN_SA]" = "108" # 27A |
| 67 | |
Eran Mitrani | 05a50d7 | 2023-10-16 14:47:29 -0700 | [diff] [blame] | 68 | device domain 0 on |
Eran Mitrani | 3bad203 | 2023-11-30 10:59:56 -0800 | [diff] [blame] | 69 | device ref dtt on |
| 70 | chip drivers/intel/dptf |
| 71 | device generic 0 alias dptf_policy on end |
| 72 | end |
| 73 | end |
Tony Huang | b8f49c6 | 2024-02-21 14:51:57 +0800 | [diff] [blame] | 74 | device ref pcie_rp5 on |
| 75 | # Enable WLAN Card PCIE 5 using clk 5 |
| 76 | register "pcie_rp[PCH_RP(5)]" = "{ |
| 77 | .clk_src = 5, |
| 78 | .clk_req = 5, |
| 79 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 80 | }" |
| 81 | chip drivers/wifi/generic |
| 82 | register "wake" = "GPE0_DW1_05" # GPP_E05 |
| 83 | register "add_acpi_dma_property" = "true" |
| 84 | device pci 00.0 on end |
| 85 | end |
| 86 | end #PCIE5 WLAN card |
Eran Mitrani | c2aa756 | 2023-11-27 16:55:54 -0800 | [diff] [blame] | 87 | device ref pcie_rp7 on |
| 88 | # Enable LAN1 Card PCIE 7 using clk 2 |
| 89 | register "pcie_rp[PCH_RP(7)]" = "{ |
| 90 | .clk_src = 2, |
| 91 | .clk_req = 2, |
| 92 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 93 | }" |
| 94 | chip drivers/net |
| 95 | register "customized_leds" = "0x05af" |
| 96 | register "wake" = "GPE0_DW0_01" # GPP_D01 |
Tony Huang | 42cb9f3 | 2024-04-01 11:11:59 +0800 | [diff] [blame] | 97 | register "device_index" = "1" |
Eran Mitrani | c2aa756 | 2023-11-27 16:55:54 -0800 | [diff] [blame] | 98 | register "add_acpi_dma_property" = "true" |
| 99 | device pci 00.0 on end |
| 100 | end |
| 101 | end # PCIE7 LAN1 card |
| 102 | device ref pcie_rp10 on |
| 103 | # Enable LAN0 Card PCIE 10 using clk 8 |
| 104 | register "pcie_rp[PCH_RP(10)]" = "{ |
| 105 | .clk_src = 8, |
| 106 | .clk_req = 8, |
| 107 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 108 | }" |
| 109 | chip drivers/net |
| 110 | register "customized_leds" = "0x05af" |
| 111 | register "wake" = "GPE0_DW1_04" # GPP_E04 |
Tony Huang | 42cb9f3 | 2024-04-01 11:11:59 +0800 | [diff] [blame] | 112 | register "device_index" = "0" |
Eran Mitrani | c2aa756 | 2023-11-27 16:55:54 -0800 | [diff] [blame] | 113 | register "add_acpi_dma_property" = "true" |
| 114 | device pci 00.0 on end |
| 115 | end |
| 116 | end # PCIE10 LAN0 card |
Eran Mitrani | b09edd3 | 2023-10-19 10:12:08 -0700 | [diff] [blame] | 117 | device ref pcie_rp11 on |
| 118 | # Enable SSD Card PCIE 11 using clk 7 |
| 119 | register "pcie_rp[PCH_RP(11)]" = "{ |
| 120 | .clk_src = 7, |
| 121 | .clk_req = 7, |
| 122 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 123 | }" |
| 124 | end # PCIE11 SSD card |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 125 | device ref tbt_pcie_rp0 on end |
| 126 | device ref tbt_pcie_rp1 on end |
| 127 | device ref tbt_pcie_rp2 on end |
| 128 | device ref tbt_pcie_rp3 on end |
| 129 | device ref tcss_xhci on |
| 130 | chip drivers/usb/acpi |
| 131 | device ref tcss_root_hub on |
| 132 | chip drivers/usb/acpi |
| 133 | register "desc" = ""USB3 Type-C Port C0"" |
| 134 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 135 | register "use_custom_pld" = "true" |
| 136 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 137 | device ref tcss_usb3_port0 on end |
| 138 | end |
| 139 | chip drivers/usb/acpi |
| 140 | register "desc" = ""USB3 Type-C Port C1"" |
| 141 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 142 | register "use_custom_pld" = "true" |
| 143 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Tony Huang | 4f76170 | 2024-01-24 14:53:28 +0800 | [diff] [blame] | 144 | device ref tcss_usb3_port2 on end |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 145 | end |
| 146 | chip drivers/usb/acpi |
| 147 | register "desc" = ""USB3 Type-C Port C2"" |
| 148 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 149 | register "use_custom_pld" = "true" |
| 150 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(3, 1))" |
Tony Huang | 4f76170 | 2024-01-24 14:53:28 +0800 | [diff] [blame] | 151 | device ref tcss_usb3_port1 on end |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 152 | end |
| 153 | chip drivers/usb/acpi |
| 154 | register "desc" = ""USB3 Type-C Port C3"" |
| 155 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 156 | register "use_custom_pld" = "true" |
Tony Huang | 282b48e | 2024-04-22 11:08:39 +0800 | [diff] [blame] | 157 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, LEFT, ACPI_PLD_GROUP(4, 1))" |
Tony Huang | 4f76170 | 2024-01-24 14:53:28 +0800 | [diff] [blame] | 158 | device ref tcss_usb3_port3 on end |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 159 | end |
| 160 | end |
| 161 | end |
| 162 | end |
| 163 | device ref tcss_dma0 on |
| 164 | chip drivers/intel/usb4/retimer |
| 165 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
| 166 | use tcss_usb3_port0 as dfp[0].typec_port |
| 167 | device generic 0 on end |
| 168 | end |
| 169 | chip drivers/intel/usb4/retimer |
| 170 | register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
| 171 | use tcss_usb3_port1 as dfp[1].typec_port |
| 172 | device generic 0 on end |
| 173 | end |
| 174 | end |
| 175 | device ref tcss_dma1 on |
| 176 | chip drivers/intel/usb4/retimer |
| 177 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
| 178 | use tcss_usb3_port2 as dfp[0].typec_port |
| 179 | device generic 0 on end |
| 180 | end |
| 181 | chip drivers/intel/usb4/retimer |
| 182 | register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Tony Huang | 4f76170 | 2024-01-24 14:53:28 +0800 | [diff] [blame] | 183 | use tcss_usb3_port3 as dfp[1].typec_port |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 184 | device generic 0 on end |
| 185 | end |
| 186 | end |
| 187 | device ref xhci on |
| 188 | chip drivers/usb/acpi |
| 189 | device ref xhci_root_hub on |
| 190 | # FIXME - location need to be corrected once we have the final design |
| 191 | chip drivers/usb/acpi |
| 192 | register "desc" = ""USB2 Type-C Port C0"" |
| 193 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 194 | register "use_custom_pld" = "true" |
| 195 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 196 | device ref usb2_port2 on end |
| 197 | end |
| 198 | chip drivers/usb/acpi |
| 199 | register "desc" = ""USB2 Type-C Port C1"" |
| 200 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 201 | register "use_custom_pld" = "true" |
| 202 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))" |
| 203 | device ref usb2_port3 on end |
| 204 | end |
| 205 | chip drivers/usb/acpi |
| 206 | register "desc" = ""USB2 Type-C Port C2"" |
| 207 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 208 | register "use_custom_pld" = "true" |
Tony Huang | 282b48e | 2024-04-22 11:08:39 +0800 | [diff] [blame] | 209 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, CENTER, ACPI_PLD_GROUP(3, 1))" |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 210 | device ref usb2_port1 on end |
| 211 | end |
| 212 | chip drivers/usb/acpi |
| 213 | register "desc" = ""USB2 Type-C Port C3"" |
| 214 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 215 | register "use_custom_pld" = "true" |
| 216 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, LEFT, ACPI_PLD_GROUP(4, 1))" |
| 217 | device ref usb2_port5 on end |
| 218 | end |
| 219 | chip drivers/usb/acpi |
| 220 | register "desc" = ""USB2 Type-A Port A0"" |
| 221 | register "type" = "UPC_TYPE_A" |
| 222 | register "use_custom_pld" = "true" |
| 223 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(5, 1))" |
| 224 | device ref usb2_port4 on end |
| 225 | end |
| 226 | chip drivers/usb/acpi |
| 227 | register "desc" = ""USB2 Type-A Port A1"" |
| 228 | register "type" = "UPC_TYPE_A" |
| 229 | register "use_custom_pld" = "true" |
| 230 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(5, 2))" |
| 231 | device ref usb2_port7 on end |
| 232 | end |
| 233 | chip drivers/usb/acpi |
| 234 | register "desc" = ""USB2 Type-A Port A2"" |
| 235 | register "type" = "UPC_TYPE_A" |
| 236 | register "use_custom_pld" = "true" |
| 237 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(5, 3))" |
| 238 | device ref usb2_port8 on end |
| 239 | end |
| 240 | chip drivers/usb/acpi |
| 241 | register "desc" = ""USB2 Type-A Port A3"" |
| 242 | register "type" = "UPC_TYPE_A" |
| 243 | register "use_custom_pld" = "true" |
| 244 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(5, 4))" |
| 245 | device ref usb2_port9 on end |
| 246 | end |
| 247 | chip drivers/usb/acpi |
| 248 | register "desc" = ""USB2 Type-A Port A4"" |
| 249 | register "type" = "UPC_TYPE_A" |
| 250 | register "use_custom_pld" = "true" |
Tony Huang | 282b48e | 2024-04-22 11:08:39 +0800 | [diff] [blame] | 251 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, LEFT, ACPI_PLD_GROUP(5, 5))" |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 252 | device ref usb2_port6 on end |
| 253 | end |
| 254 | chip drivers/usb/acpi |
| 255 | register "desc" = ""USB2 Bluetooth"" |
| 256 | register "type" = "UPC_TYPE_INTERNAL" |
| 257 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B01)" |
| 258 | device ref usb2_port10 on end |
| 259 | end |
| 260 | chip drivers/usb/acpi |
| 261 | register "desc" = ""USB3 Type-A Port A0"" |
| 262 | register "type" = "UPC_TYPE_USB3_A" |
| 263 | register "use_custom_pld" = "true" |
| 264 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(5, 1))" |
| 265 | device ref usb3_port1 on end |
| 266 | end |
| 267 | chip drivers/usb/acpi |
| 268 | register "desc" = ""USB3 Type-A Port A1"" |
| 269 | register "type" = "UPC_TYPE_USB3_A" |
| 270 | register "use_custom_pld" = "true" |
| 271 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(5, 2))" |
| 272 | device ref usb3_port2 on end |
| 273 | end |
| 274 | end |
| 275 | end |
| 276 | end |
Eran Mitrani | 3e306d4 | 2023-12-04 13:04:06 -0800 | [diff] [blame] | 277 | device ref cnvi_wifi on |
| 278 | chip drivers/wifi/generic |
| 279 | register "wake" = "GPE0_PME_B0" |
| 280 | register "add_acpi_dma_property" = "true" |
| 281 | register "enable_cnvi_ddr_rfim" = "true" |
| 282 | device generic 0 on end |
| 283 | end |
| 284 | end |
Eran Mitrani | 36991b2 | 2023-10-17 13:41:50 -0700 | [diff] [blame] | 285 | device ref i2c4 on |
| 286 | chip drivers/i2c/tpm |
| 287 | register "hid" = ""GOOG0005"" |
| 288 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E03_IRQ)" |
| 289 | device i2c 50 on end |
| 290 | end |
| 291 | end |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 292 | device ref soc_espi on |
| 293 | chip ec/google/chromeec |
| 294 | use conn0 as mux_conn[0] |
| 295 | use conn1 as mux_conn[1] |
| 296 | use conn2 as mux_conn[2] |
| 297 | use conn3 as mux_conn[3] |
| 298 | device pnp 0c09.0 on end |
| 299 | end |
| 300 | end |
| 301 | device ref pmc hidden |
| 302 | chip drivers/intel/pmc_mux |
| 303 | device generic 0 on |
| 304 | chip drivers/intel/pmc_mux/conn |
| 305 | #USB2_C0 |
| 306 | use usb2_port2 as usb2_port |
| 307 | use tcss_usb3_port0 as usb3_port |
| 308 | device generic 0 alias conn0 on end |
| 309 | end |
| 310 | chip drivers/intel/pmc_mux/conn |
| 311 | #USB2_C1 |
| 312 | use usb2_port3 as usb2_port |
| 313 | use tcss_usb3_port2 as usb3_port |
| 314 | device generic 1 alias conn1 on end |
| 315 | end |
| 316 | chip drivers/intel/pmc_mux/conn |
| 317 | #USB2_C2 |
| 318 | use usb2_port1 as usb2_port |
| 319 | use tcss_usb3_port1 as usb3_port |
| 320 | device generic 2 alias conn2 on end |
| 321 | end |
| 322 | chip drivers/intel/pmc_mux/conn |
| 323 | #USB2_C3 |
| 324 | use usb2_port5 as usb2_port |
Tony Huang | 4f76170 | 2024-01-24 14:53:28 +0800 | [diff] [blame] | 325 | use tcss_usb3_port3 as usb3_port |
Eran Mitrani | a8636ae | 2023-11-30 17:34:14 -0800 | [diff] [blame] | 326 | device generic 3 alias conn3 on end |
| 327 | end |
| 328 | end |
| 329 | end |
| 330 | end |
Eran Mitrani | 05a50d7 | 2023-10-16 14:47:29 -0700 | [diff] [blame] | 331 | end |
Eran Mitrani | 05a50d7 | 2023-10-16 14:47:29 -0700 | [diff] [blame] | 332 | end |