Jakub Czapiga | d95d264 | 2023-05-30 08:57:17 +0000 | [diff] [blame] | 1 | chip soc/intel/meteorlake |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 2 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C2 |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 3 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 4 | register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C1 |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 5 | register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # Type-A Port A0 |
| 6 | register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-A Port A1 |
| 7 | register "usb2_ports[7]" = "USB2_PORT_MID(OC3)" # Type-A Port A2 |
| 8 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A3 |
| 9 | |
| 10 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A0 |
| 11 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A1 |
| 12 | |
| 13 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC0)" |
| 14 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)" |
| 15 | register "tcss_ports[2]" = "TCSS_PORT_DEFAULT(OC0)" |
Jakub Czapiga | 1a7d203 | 2023-06-01 12:09:00 +0000 | [diff] [blame] | 16 | |
Jakub Czapiga | 719b690 | 2023-06-01 12:30:15 +0000 | [diff] [blame] | 17 | # Enable Display Port Configuration |
| 18 | register "ddi_ports_config" = "{ |
| 19 | [DDI_PORT_1] = DDI_ENABLE_HPD, |
| 20 | [DDI_PORT_2] = DDI_ENABLE_HPD, |
| 21 | [DDI_PORT_3] = DDI_ENABLE_HPD, |
| 22 | [DDI_PORT_4] = DDI_ENABLE_HPD, |
| 23 | }" |
| 24 | |
Jakub Czapiga | 1a7d203 | 2023-06-01 12:09:00 +0000 | [diff] [blame] | 25 | register "serial_io_i2c_mode" = "{ |
| 26 | [PchSerialIoIndexI2C0] = PchSerialIoDisabled, |
| 27 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 28 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 29 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 30 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 31 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 32 | }" |
| 33 | |
| 34 | # Intel Common SoC Config |
| 35 | #+-------------------+---------------------------+ |
| 36 | #| Field | Value | |
| 37 | #+-------------------+---------------------------+ |
| 38 | #| I2C4 | cr50 TPM. Early init is | |
| 39 | #| | required to set up a BAR | |
| 40 | #| | for TPM communication | |
| 41 | #+-------------------+---------------------------+ |
| 42 | register "common_soc_config" = "{ |
| 43 | .i2c[4] = { |
| 44 | .early_init = 1, |
| 45 | .speed = I2C_SPEED_FAST, |
| 46 | .rise_time_ns = 600, |
| 47 | .fall_time_ns = 400, |
| 48 | .data_hold_time_ns = 50, |
| 49 | }, |
| 50 | }" |
| 51 | |
Jakub Czapiga | d95d264 | 2023-05-30 08:57:17 +0000 | [diff] [blame] | 52 | device domain 0 on |
Jakub Czapiga | 2af14fe | 2023-06-01 12:31:10 +0000 | [diff] [blame] | 53 | device ref dtt on |
| 54 | chip drivers/intel/dptf |
| 55 | device generic 0 alias dptf_policy on end |
| 56 | end |
| 57 | end |
Subrata Banik | 9d8baea | 2023-06-30 22:32:17 -0700 | [diff] [blame] | 58 | device ref pcie_rp7 on |
| 59 | # Enable LAN1 Card PCIE 7 using clk 2 |
| 60 | register "pcie_rp[PCH_RP(7)]" = "{ |
| 61 | .clk_src = 2, |
| 62 | .clk_req = 2, |
| 63 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 64 | }" |
| 65 | end #PCIE7 LAN1 card |
Subrata Banik | d44e08a | 2023-06-30 22:47:34 -0700 | [diff] [blame] | 66 | device ref pcie_rp10 on |
| 67 | # Enable LAN0 Card PCIE 10 using clk 8 |
| 68 | register "pcie_rp[PCH_RP(10)]" = "{ |
| 69 | .clk_src = 8, |
| 70 | .clk_req = 8, |
| 71 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 72 | }" |
| 73 | end #PCIE10 LAN0 card |
Jakub Czapiga | 15aa0a5 | 2023-06-01 12:11:50 +0000 | [diff] [blame] | 74 | device ref pcie_rp11 on |
| 75 | # Enable SSD Card PCIE 11 using clk 7 |
| 76 | register "pcie_rp[PCH_RP(11)]" = "{ |
| 77 | .clk_src = 7, |
| 78 | .clk_req = 7, |
| 79 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 80 | }" |
| 81 | end # PCIE11 SSD card |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 82 | device ref tbt_pcie_rp0 on end |
| 83 | device ref tbt_pcie_rp1 on end |
| 84 | device ref tbt_pcie_rp2 on end |
| 85 | device ref tcss_xhci on |
| 86 | chip drivers/usb/acpi |
| 87 | device ref tcss_root_hub on |
| 88 | chip drivers/usb/acpi |
| 89 | register "desc" = ""USB3 Type-C Port C0"" |
| 90 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 91 | register "use_custom_pld" = "true" |
| 92 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 93 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 94 | device ref tcss_usb3_port0 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 95 | end |
| 96 | chip drivers/usb/acpi |
| 97 | register "desc" = ""USB3 Type-C Port C1"" |
| 98 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 99 | register "use_custom_pld" = "true" |
| 100 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 101 | device ref tcss_usb3_port2 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 102 | end |
| 103 | chip drivers/usb/acpi |
| 104 | register "desc" = ""USB3 Type-C Port C2"" |
| 105 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 106 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 107 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(3, 1))" |
| 108 | device ref tcss_usb3_port1 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 109 | end |
| 110 | end |
| 111 | end |
| 112 | end |
| 113 | device ref tcss_dma0 on |
| 114 | chip drivers/intel/usb4/retimer |
| 115 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 116 | use tcss_usb3_port0 as dfp[0].typec_port |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 117 | device generic 0 on end |
| 118 | end |
| 119 | chip drivers/intel/usb4/retimer |
| 120 | register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 121 | use tcss_usb3_port1 as dfp[1].typec_port |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 122 | device generic 0 on end |
| 123 | end |
| 124 | end |
| 125 | device ref tcss_dma1 on |
| 126 | chip drivers/intel/usb4/retimer |
| 127 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 128 | use tcss_usb3_port2 as dfp[0].typec_port |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 129 | device generic 0 on end |
| 130 | end |
| 131 | end |
| 132 | device ref xhci on |
| 133 | chip drivers/usb/acpi |
| 134 | device ref xhci_root_hub on |
| 135 | chip drivers/usb/acpi |
| 136 | register "desc" = ""USB2 Type-C Port C0"" |
| 137 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 138 | register "use_custom_pld" = "true" |
| 139 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))" |
| 140 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER" |
| 141 | device ref usb2_port2 on end |
| 142 | end |
| 143 | chip drivers/usb/acpi |
| 144 | register "desc" = ""USB2 Type-C Port C1"" |
| 145 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 146 | register "use_custom_pld" = "true" |
| 147 | register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 148 | device ref usb2_port3 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 149 | end |
| 150 | chip drivers/usb/acpi |
| 151 | register "desc" = ""USB2 Type-C Port C2"" |
| 152 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 153 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 154 | register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(3, 1))" |
| 155 | device ref usb2_port1 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 156 | end |
| 157 | chip drivers/usb/acpi |
| 158 | register "desc" = ""USB2 Type-A Port A0"" |
| 159 | register "type" = "UPC_TYPE_A" |
| 160 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 161 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 162 | device ref usb2_port4 on end |
| 163 | end |
| 164 | chip drivers/usb/acpi |
| 165 | register "desc" = ""USB2 Type-A Port A1"" |
| 166 | register "type" = "UPC_TYPE_A" |
| 167 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 168 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 2))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 169 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER" |
| 170 | device ref usb2_port7 on end |
| 171 | end |
| 172 | chip drivers/usb/acpi |
| 173 | register "desc" = ""USB2 Type-A Port A2"" |
| 174 | register "type" = "UPC_TYPE_A" |
| 175 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 176 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(4, 3))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 177 | device ref usb2_port8 on end |
| 178 | end |
| 179 | chip drivers/usb/acpi |
| 180 | register "desc" = ""USB2 Type-A Port A3"" |
| 181 | register "type" = "UPC_TYPE_A" |
| 182 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 183 | register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(4, 4))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 184 | device ref usb2_port9 on end |
| 185 | end |
| 186 | chip drivers/usb/acpi |
| 187 | register "desc" = ""USB3 Type-A Port A0"" |
| 188 | register "type" = "UPC_TYPE_USB3_A" |
| 189 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 190 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(4, 1))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 191 | device ref usb3_port1 on end |
| 192 | end |
| 193 | chip drivers/usb/acpi |
| 194 | register "desc" = ""USB3 Type-A Port A1"" |
| 195 | register "type" = "UPC_TYPE_USB3_A" |
| 196 | register "use_custom_pld" = "true" |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 197 | register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 2))" |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 198 | register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER" |
| 199 | device ref usb3_port2 on end |
| 200 | end |
| 201 | end |
| 202 | end |
| 203 | end |
Subrata Banik | b1d3f3d | 2023-06-22 17:26:22 +0530 | [diff] [blame] | 204 | device ref cnvi_wifi on |
| 205 | chip drivers/wifi/generic |
| 206 | register "wake" = "GPE0_PME_B0" |
| 207 | register "add_acpi_dma_property" = "true" |
| 208 | register "enable_cnvi_ddr_rfim" = "true" |
| 209 | device generic 0 on end |
| 210 | end |
| 211 | end |
Jakub Czapiga | 1a7d203 | 2023-06-01 12:09:00 +0000 | [diff] [blame] | 212 | device ref i2c4 on |
| 213 | chip drivers/i2c/tpm |
| 214 | register "hid" = ""GOOG0005"" |
| 215 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E03_IRQ)" |
| 216 | device i2c 50 on end |
| 217 | end |
| 218 | end |
Jakub Czapiga | a05a2b2 | 2023-06-01 12:17:28 +0000 | [diff] [blame] | 219 | device ref soc_espi on |
| 220 | chip ec/google/chromeec |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 221 | use conn0 as mux_conn[0] |
Subrata Banik | ee3f796 | 2023-06-28 18:19:59 -0700 | [diff] [blame] | 222 | use conn1 as mux_conn[2] |
| 223 | use conn2 as mux_conn[1] |
Jakub Czapiga | a05a2b2 | 2023-06-01 12:17:28 +0000 | [diff] [blame] | 224 | device pnp 0c09.0 on end |
| 225 | end |
| 226 | end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 227 | device ref pmc hidden |
| 228 | chip drivers/intel/pmc_mux |
| 229 | device generic 0 on |
| 230 | chip drivers/intel/pmc_mux/conn |
| 231 | use usb2_port2 as usb2_port |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 232 | use tcss_usb3_port0 as usb3_port |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 233 | device generic 0 alias conn0 on end |
| 234 | end |
| 235 | chip drivers/intel/pmc_mux/conn |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 236 | use usb2_port3 as usb2_port |
Eric Lai | 884a70b | 2023-06-16 09:26:18 +0800 | [diff] [blame] | 237 | use tcss_usb3_port2 as usb3_port |
Subrata Banik | d0eeba3 | 2023-07-14 19:50:54 +0000 | [diff] [blame^] | 238 | device generic 1 alias conn1 on end |
| 239 | end |
| 240 | chip drivers/intel/pmc_mux/conn |
| 241 | use usb2_port1 as usb2_port |
| 242 | use tcss_usb3_port1 as usb3_port |
| 243 | device generic 2 alias conn2 on end |
Jakub Czapiga | 4fe0b40 | 2023-06-01 12:25:08 +0000 | [diff] [blame] | 244 | end |
| 245 | end |
| 246 | end |
| 247 | end |
Jakub Czapiga | d95d264 | 2023-05-30 08:57:17 +0000 | [diff] [blame] | 248 | end |
| 249 | end |