Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 3 | register "TcssAuxOri" = "1" |
| 4 | register "DdiPort1Hpd" = "0" |
| 5 | register "DdiPort2Hpd" = "0" |
Tim Wawrzynczak | 59a621a | 2021-03-22 10:43:42 -0600 | [diff] [blame] | 6 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E10, .pad_auxn_dc = GPP_E13}" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 7 | |
Nico Huber | 2bc4b93 | 2024-01-12 16:22:19 +0100 | [diff] [blame] | 8 | # EMMC PCIE 5 using clk 5 |
Wisley Chen | e928391 | 2020-10-31 01:24:43 +0800 | [diff] [blame] | 9 | register "PcieRpLtrEnable[4]" = "1" |
| 10 | register "PcieRpHotPlug[4]" = "1" |
| 11 | register "PcieClkSrcUsage[5]" = "4" |
| 12 | register "PcieClkSrcClkReq[5]" = "5" |
| 13 | |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 14 | #+-------------------+---------------------------+ |
| 15 | #| Field | Value | |
| 16 | #+-------------------+---------------------------+ |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 17 | #| GSPI0 | cr50 TPM. Early init is | |
| 18 | #| | required to set up a BAR | |
| 19 | #| | for TPM communication | |
| 20 | #| | before memory is up | |
| 21 | #| GSPI1 | Fingerprint MCU | |
| 22 | #| I2C0 | Audio | |
| 23 | #| I2C1 | Touchscreen | |
| 24 | #| I2C2 | WLAN, SAR0 | |
| 25 | #| I2C3 | Camera, SAR1 | |
| 26 | #| I2C5 | Trackpad | |
| 27 | #+-------------------+---------------------------+ |
| 28 | register "common_soc_config" = "{ |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 29 | .gspi[0] = { |
| 30 | .speed_mhz = 1, |
| 31 | .early_init = 1, |
| 32 | }, |
| 33 | .i2c[0] = { |
| 34 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 0363d6d | 2021-01-05 21:53:41 +0800 | [diff] [blame] | 35 | .speed_config[0] = { |
| 36 | .speed = I2C_SPEED_FAST, |
| 37 | .scl_lcnt = 160, |
| 38 | .scl_hcnt = 75, |
| 39 | .sda_hold = 36, |
| 40 | }, |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 41 | }, |
| 42 | .i2c[1] = { |
| 43 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 0363d6d | 2021-01-05 21:53:41 +0800 | [diff] [blame] | 44 | .speed_config[0] = { |
| 45 | .speed = I2C_SPEED_FAST, |
| 46 | .scl_lcnt = 158, |
| 47 | .scl_hcnt = 75, |
| 48 | .sda_hold = 36, |
| 49 | }, |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 50 | }, |
| 51 | .i2c[2] = { |
| 52 | .speed = I2C_SPEED_FAST, |
| 53 | }, |
| 54 | .i2c[3] = { |
| 55 | .speed = I2C_SPEED_FAST, |
| 56 | }, |
| 57 | .i2c[5] = { |
| 58 | .speed = I2C_SPEED_FAST, |
Wisley Chen | 0363d6d | 2021-01-05 21:53:41 +0800 | [diff] [blame] | 59 | .speed_config[0] = { |
| 60 | .speed = I2C_SPEED_FAST, |
| 61 | .scl_lcnt = 158, |
| 62 | .scl_hcnt = 75, |
| 63 | .sda_hold = 36, |
| 64 | }, |
| 65 | |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 66 | }, |
| 67 | }" |
| 68 | |
Wisley Chen | 9f2d082 | 2021-01-15 14:59:35 +0800 | [diff] [blame] | 69 | # Disable M.2 WWAN |
| 70 | register "usb2_ports[2]" = "USB2_PORT_EMPTY" |
| 71 | |
| 72 | # Type-A / Type-C C1 |
| 73 | register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" |
| 74 | |
| 75 | # Type-A / Type-C C0 |
| 76 | register "usb2_ports[8]" = "USB2_PORT_TYPE_C(OC_SKIP)" |
| 77 | |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 78 | device domain 0 on |
Wisley Chen | f2d38ba | 2021-01-19 18:46:40 +0800 | [diff] [blame] | 79 | device ref dptf on |
| 80 | chip drivers/intel/dptf |
| 81 | ## Passive Policy |
| 82 | register "policies.passive" = "{ |
| 83 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000), |
| 84 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 55, 6000), |
| 85 | [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_0, 70, 6000), |
| 86 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 52, 6000), |
| 87 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 60, 6000)}" |
| 88 | ## Critical Policy |
| 89 | register "policies.critical" = "{ |
| 90 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 91 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN), |
| 92 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 70, SHUTDOWN)}" |
| 93 | |
| 94 | ## Power Limits Control |
| 95 | # 3-17W PL1 in 200mW increments, avg over 28-32s interval |
| 96 | # PL2 set to 60W, avg over 28-32s interval |
| 97 | register "controls.power_limits" = "{ |
| 98 | .pl1 = {.min_power = 3000, |
| 99 | .max_power = 17000, |
| 100 | .time_window_min = 28 * MSECS_PER_SEC, |
| 101 | .time_window_max = 32 * MSECS_PER_SEC, |
| 102 | .granularity = 200,}, |
| 103 | .pl2 = {.min_power = 60000, |
| 104 | .max_power = 60000, |
| 105 | .time_window_min = 28 * MSECS_PER_SEC, |
| 106 | .time_window_max = 32 * MSECS_PER_SEC, |
| 107 | .granularity = 1000,}}" |
| 108 | |
| 109 | ## Fan Performance Control (Percent, Speed, Noise, Power) |
| 110 | register "controls.fan_perf" = "{ |
| 111 | [0] = { 100, 6500, 220, 2200, }, |
| 112 | [1] = { 90, 5900, 180, 1800, }, |
| 113 | [2] = { 80, 5400, 145, 1450, }, |
| 114 | [3] = { 70, 4900, 115, 1150, }, |
| 115 | [4] = { 63, 4600, 90, 900, }, |
| 116 | [5] = { 58, 4300, 55, 550, }, |
| 117 | [6] = { 54, 4100, 30, 300, }, |
| 118 | [7] = { 50, 3800, 15, 150, }, |
| 119 | [8] = { 45, 3500, 10, 100, }, |
| 120 | [9] = { 0, 0, 0, 50, }}" |
| 121 | |
| 122 | # Fan options |
| 123 | register "options.fan.fine_grained_control" = "1" |
| 124 | register "options.fan.step_size" = "2" |
| 125 | |
| 126 | device generic 0 on end |
| 127 | end |
| 128 | end # DPTF 0x9A03 |
| 129 | |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 130 | device ref north_xhci on |
| 131 | chip drivers/usb/acpi |
| 132 | device ref tcss_root_hub on |
| 133 | chip drivers/usb/acpi |
| 134 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 135 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 136 | register "group" = "ACPI_PLD_GROUP(4, 2)" |
| 137 | device ref tcss_usb3_port1 on end |
| 138 | end |
| 139 | chip drivers/usb/acpi |
| 140 | register "desc" = ""USB3 Type-C Port C1 (MLB)"" |
| 141 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 142 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 143 | device ref tcss_usb3_port2 on end |
| 144 | end |
| 145 | end |
| 146 | end |
| 147 | end |
| 148 | device ref south_xhci on |
| 149 | chip drivers/usb/acpi |
| 150 | device ref xhci_root_hub on |
| 151 | chip drivers/usb/acpi |
| 152 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 153 | register "type" = "UPC_TYPE_A" |
| 154 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 155 | device ref usb2_port1 on end |
| 156 | end |
| 157 | chip drivers/usb/acpi |
| 158 | register "desc" = ""USB2 Type-A Port A1 (DB)"" |
| 159 | register "type" = "UPC_TYPE_A" |
| 160 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 161 | device ref usb2_port2 on |
| 162 | probe DB_USB USB3_ACTIVE |
| 163 | end |
| 164 | end |
| 165 | chip drivers/usb/acpi |
| 166 | register "desc" = ""USB2 Type-C Port C1 (MLB)"" |
| 167 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 168 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 169 | device ref usb2_port4 on end |
| 170 | end |
| 171 | chip drivers/usb/acpi |
| 172 | register "desc" = ""USB2 Camera"" |
| 173 | register "type" = "UPC_TYPE_INTERNAL" |
| 174 | device ref usb2_port5 on end |
| 175 | end |
| 176 | chip drivers/usb/acpi |
| 177 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 178 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 179 | register "group" = "ACPI_PLD_GROUP(4, 1)" |
| 180 | device ref usb2_port9 on end |
| 181 | end |
| 182 | chip drivers/usb/acpi |
| 183 | register "desc" = ""USB2 Bluetooth"" |
| 184 | register "type" = "UPC_TYPE_INTERNAL" |
| 185 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 186 | device ref usb2_port10 on end |
| 187 | end |
| 188 | chip drivers/usb/acpi |
| 189 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 190 | register "type" = "UPC_TYPE_USB3_A" |
| 191 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 192 | device ref usb3_port1 on end |
| 193 | end |
| 194 | chip drivers/usb/acpi |
| 195 | register "desc" = ""USB3 Type-A Port A1 (DB)"" |
| 196 | register "type" = "UPC_TYPE_USB3_A" |
| 197 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 198 | device ref usb3_port2 on |
| 199 | probe DB_USB USB3_ACTIVE |
| 200 | end |
| 201 | end |
| 202 | end |
| 203 | end |
| 204 | end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 205 | device ref i2c0 on |
| 206 | chip drivers/i2c/generic |
| 207 | register "hid" = ""10EC5682"" |
| 208 | register "name" = ""RT58"" |
| 209 | register "desc" = ""Headset Codec"" |
| 210 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 211 | # Set the jd_src to RT5668_JD1 for jack detection |
| 212 | register "property_count" = "1" |
| 213 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 214 | register "property_list[0].name" = ""realtek,jd-src"" |
| 215 | register "property_list[0].integer" = "1" |
| 216 | device i2c 1a on end |
| 217 | end |
| 218 | end |
| 219 | device ref i2c1 on |
| 220 | chip drivers/i2c/hid |
| 221 | register "generic.hid" = ""GTCH7503"" |
| 222 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 223 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame] | 224 | register "generic.detect" = "1" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 225 | register "generic.reset_gpio" = |
| 226 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 227 | register "generic.reset_delay_ms" = "50" |
| 228 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 229 | register "generic.enable_delay_ms" = "1" |
| 230 | register "generic.has_power_resource" = "1" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 231 | register "hid_desc_reg_offset" = "0x01" |
| 232 | device i2c 40 on end |
| 233 | end |
| 234 | chip drivers/i2c/generic |
| 235 | register "hid" = ""ELAN0001"" |
| 236 | register "desc" = ""ELAN Touchscreen"" |
Wisley Chen | 332da01 | 2021-02-09 14:18:24 +0800 | [diff] [blame] | 237 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Matt DeVillier | 0d54a65 | 2022-12-21 08:44:19 -0600 | [diff] [blame] | 238 | register "detect" = "1" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 239 | register "reset_gpio" = |
| 240 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 241 | register "reset_delay_ms" = "100" |
| 242 | register "reset_off_delay_ms" = "5" |
| 243 | register "has_power_resource" = "1" |
| 244 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 245 | register "enable_delay_ms" = "10" |
| 246 | register "enable_off_delay_ms" = "1" |
| 247 | device i2c 10 on end |
| 248 | end |
| 249 | end |
| 250 | device ref i2c5 on |
| 251 | chip drivers/i2c/generic |
| 252 | register "hid" = ""ELAN0000"" |
| 253 | register "desc" = ""ELAN Touchpad"" |
| 254 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 255 | register "wake" = "GPE0_DW2_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 256 | register "detect" = "1" |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 257 | device i2c 15 on end |
| 258 | end |
| 259 | end |
Wisley Chen | e02b62a | 2020-12-03 21:29:53 +0800 | [diff] [blame] | 260 | device ref pch_espi on |
| 261 | chip ec/google/chromeec |
| 262 | use conn0 as mux_conn[0] |
| 263 | use conn1 as mux_conn[1] |
| 264 | device pnp 0c09.0 on end |
| 265 | end |
| 266 | end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 267 | device ref hda on |
| 268 | chip drivers/generic/max98357a |
| 269 | register "hid" = ""MX98357A"" |
| 270 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 271 | register "sdmode_delay" = "5" |
| 272 | device generic 0 on end |
| 273 | end |
Matt DeVillier | 8e883c1 | 2023-01-17 12:20:38 -0600 | [diff] [blame] | 274 | chip drivers/sof |
| 275 | register "spkr_tplg" = "max98357a" |
| 276 | register "jack_tplg" = "rt5682" |
| 277 | register "mic_tplg" = "_2ch_pdm0" |
| 278 | device generic 0 on end |
| 279 | end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 280 | end |
Wisley Chen | e928391 | 2020-10-31 01:24:43 +0800 | [diff] [blame] | 281 | device ref pcie_rp5 on end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 282 | device ref pmc hidden |
| 283 | # The pmc_mux chip driver is a placeholder for the |
| 284 | # PMC.MUX device in the ACPI hierarchy. |
| 285 | chip drivers/intel/pmc_mux |
| 286 | device generic 0 on |
| 287 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 288 | use usb2_port9 as usb2_port |
| 289 | use tcss_usb3_port1 as usb3_port |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 290 | # SBU & HSL follow CC |
Wisley Chen | e02b62a | 2020-12-03 21:29:53 +0800 | [diff] [blame] | 291 | device generic 0 alias conn0 on end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 292 | end |
| 293 | chip drivers/intel/pmc_mux/conn |
Reka Norman | d448f8c | 2021-12-09 12:09:27 +1100 | [diff] [blame] | 294 | use usb2_port4 as usb2_port |
| 295 | use tcss_usb3_port2 as usb3_port |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 296 | # SBU is fixed, HSL follows CC |
| 297 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
Wisley Chen | e02b62a | 2020-12-03 21:29:53 +0800 | [diff] [blame] | 298 | device generic 1 alias conn1 on end |
Wisley Chen | 1597a21 | 2020-10-31 00:51:06 +0800 | [diff] [blame] | 299 | end |
| 300 | end |
| 301 | end |
| 302 | end # PMC |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 303 | end |
Wisley Chen | 4744ca7 | 2020-10-12 17:58:45 +0800 | [diff] [blame] | 304 | end |