blob: 1bce4b20a8d5d25b40397b22eccb0634cb2fa710 [file] [log] [blame]
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -08001chip soc/intel/tigerlake
2
Shaunak Sahad72cca02020-03-25 11:42:12 -07003 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "pmc_gpe0_dw0" = "GPP_B"
Shaunak Sahab449b9c2020-08-23 21:35:21 -07008 register "pmc_gpe0_dw1" = "GPP_C"
9 register "pmc_gpe0_dw2" = "GPP_D"
Shaunak Sahad72cca02020-03-25 11:42:12 -070010
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080011 # FSP configuration
Shreesh Chhabbic7fe0bd2020-07-07 18:25:45 -070012 register "SaGv" = "SaGv_Enabled"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080013
Cliff Huang3663fb32021-02-09 15:16:18 -080014 # CNVi BT enable/disable
15 register "CnviBtCore" = "true"
16
Angel Ponse16692e2020-08-03 12:54:48 +020017 # CPU replacement check
18 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070019
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080020 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
21 register "gen1_dec" = "0x00fc0801"
22 register "gen2_dec" = "0x000c0201"
23 # EC memory map range is 0x900-0x9ff
24 register "gen3_dec" = "0x00fc0901"
25
Michael Niewöhner45b60802022-01-08 20:47:11 +010026 register "PcieRpSlotImplemented[2]" = "1"
27 register "PcieRpSlotImplemented[3]" = "1"
28 register "PcieRpSlotImplemented[8]" = "1"
29 register "PcieRpSlotImplemented[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080030
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070031 # Enable RP LTR
32 register "PcieRpLtrEnable[2]" = "1"
33 register "PcieRpLtrEnable[3]" = "1"
34 register "PcieRpLtrEnable[8]" = "1"
35 register "PcieRpLtrEnable[10]" = "1"
36
Wonkyu Kimf787e872020-03-03 01:58:17 -080037 # Hybrid storage mode
38 register "HybridStorageMode" = "1"
39
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080040 register "PcieClkSrcClkReq[1]" = "1"
41 register "PcieClkSrcClkReq[2]" = "2"
42 register "PcieClkSrcClkReq[3]" = "3"
43
44 register "PcieClkSrcUsage[1]" = "0x2"
45 register "PcieClkSrcUsage[2]" = "0x3"
46 register "PcieClkSrcUsage[3]" = "0x8"
47
Wonkyu Kim46cef442020-01-23 00:12:46 -080048 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020049 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim46cef442020-01-23 00:12:46 -080050
Wonkyu Kim34944be2020-03-02 22:18:26 -080051 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080052 register "DdiPort1Hpd" = "1"
53 register "DdiPort1Ddc" = "1"
54
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080055 register "SerialIoI2cMode" = "{
56 [PchSerialIoIndexI2C0] = PchSerialIoPci,
57 [PchSerialIoIndexI2C1] = PchSerialIoPci,
58 [PchSerialIoIndexI2C2] = PchSerialIoPci,
59 [PchSerialIoIndexI2C3] = PchSerialIoPci,
60 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
61 [PchSerialIoIndexI2C5] = PchSerialIoPci,
62 }"
63
64 register "SerialIoGSpiMode" = "{
65 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070066 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080067 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
68 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
69 }"
70
71 register "SerialIoGSpiCsMode" = "{
72 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070073 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080074 [PchSerialIoIndexGSPI2] = 0,
75 [PchSerialIoIndexGSPI3] = 0,
76 }"
77
78 register "SerialIoGSpiCsState" = "{
79 [PchSerialIoIndexGSPI0] = 0,
80 [PchSerialIoIndexGSPI1] = 0,
81 [PchSerialIoIndexGSPI2] = 0,
82 [PchSerialIoIndexGSPI3] = 0,
83 }"
84
85 register "SerialIoUartMode" = "{
86 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
87 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
88 [PchSerialIoIndexUART2] = PchSerialIoPci,
89 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -080090
John Zhaob1c53fc2020-05-13 16:27:03 -070091 # TCSS USB3
92 register "TcssXhciEn" = "1"
93 register "TcssAuxOri" = "0"
94
John Zhao23d3ad02020-06-30 17:36:24 -070095 # Enable S0ix
96 register "s0ix_enable" = "1"
97
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +053098 # Enable DPTF
99 register "dptf_enable" = "1"
100
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530101 # Add PL1 and PL2 values
102 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
103 .tdp_pl1_override = 15,
104 .tdp_pl2_override = 38,
105 .tdp_pl4 = 71,
106 }"
107 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
108 .tdp_pl1_override = 15,
109 .tdp_pl2_override = 60,
110 .tdp_pl4 = 105,
111 }"
112
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800113 #HD Audio
114 register "PchHdaDspEnable" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800115 register "PchHdaAudioLinkDmicEnable[0]" = "1"
116 register "PchHdaAudioLinkDmicEnable[1]" = "1"
117 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700118 register "PchHdaAudioLinkSspEnable[2]" = "1"
119 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800120
Wonkyu Kim5c271822020-04-03 00:42:22 -0700121 # Intel Common SoC Config
122 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700123 .gspi[1] = {
124 .speed_mhz = 1,
125 .early_init = 1,
126 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700127 .i2c[0] = {
128 .speed = I2C_SPEED_FAST,
129 },
130 .i2c[1] = {
131 .speed = I2C_SPEED_FAST,
132 },
133 .i2c[2] = {
134 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200135 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700136 .i2c[3] = {
137 .speed = I2C_SPEED_FAST,
138 },
139 .i2c[5] = {
140 .speed = I2C_SPEED_FAST,
141 },
142 }"
143
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800144 device domain 0 on
Felix Singerf13284c2024-06-27 21:09:11 +0200145 device ref system_agent on end
146 device ref igpu on end
147 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530148 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
149 chip drivers/intel/dptf
150 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
151 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
152
153 # Power Limits Control
154 register "controls.power_limits.pl1" = "{
155 .min_power = 3000,
156 .max_power = 15000,
157 .time_window_min = 28 * MSECS_PER_SEC,
158 .time_window_max = 32 * MSECS_PER_SEC,
159 .granularity = 200,}"
160 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530161 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530162 .max_power = 60000,
163 .time_window_min = 28 * MSECS_PER_SEC,
164 .time_window_max = 32 * MSECS_PER_SEC,
165 .granularity = 1000,}"
166 device generic 0 on end
167 end
Felix Singerf13284c2024-06-27 21:09:11 +0200168 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530169
Felix Singerf13284c2024-06-27 21:09:11 +0200170 device ref ipu on end
171 device ref peg on end
172 device ref tbt_pcie_rp0 on end
173 device ref tbt_pcie_rp1 on end
174 device ref tbt_pcie_rp2 on end
175 device ref tbt_pcie_rp3 on end
176 device ref gna off end
177 device ref npk off end
178 device ref crashlog off end
179 device ref north_xhci on end
180 device ref north_xdci on end
181 device ref tbt_dma0 on end
182 device ref tbt_dma1 on end
183 device ref vmd off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800184
Felix Singerf13284c2024-06-27 21:09:11 +0200185 device ref thc0 off end
186 device ref thc1 off end
187 device ref ish on
li feng23954252020-03-12 16:38:34 -0700188 chip drivers/intel/ish
189 register "firmware_name" = ""tglrvp_ish.bin""
190 device generic 0 on end
191 end
192 end
Felix Singerf13284c2024-06-27 21:09:11 +0200193 device ref gspi2 off end
194 device ref gspi3 off end
Felix Singerbc8f5402024-06-27 22:58:52 +0200195 device ref south_xhci on
196 register "usb2_ports" = "{
197 [0] = USB2_PORT_MID(OC0), // Type-C Port1
198 [1] = USB2_PORT_EMPTY, // M.2 WWAN
199 [2] = USB2_PORT_MID(OC3), // M.2 Bluetooth
200 [3] = USB2_PORT_MID(OC0), // USB3/2 Type A port1
201 [4] = USB2_PORT_MID(OC0), // Type-C Port2
202 [5] = USB2_PORT_MID(OC3), // Type-C Port3
203 [6] = USB2_PORT_MID(OC3), // Type-C Port4
204 [7] = USB2_PORT_MID(OC0), // USB3/2 Type A port2
205 [8] = USB2_PORT_MID(OC3), // USB2 Type A port3
206 [9] = USB2_PORT_MID(OC3), // USB2 Type A port4
207 }"
208
209 register "usb3_ports" = "{
210 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
211 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
212 }"
213 end
Felix Singerf13284c2024-06-27 21:09:11 +0200214 device ref south_xdci on end
215 device ref shared_ram on end
216 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700217 chip drivers/wifi/generic
218 register "wake" = "GPE0_PME_B0"
219 device generic 0 on end
220 end
Felix Singerf13284c2024-06-27 21:09:11 +0200221 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800222
Felix Singerf13284c2024-06-27 21:09:11 +0200223 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700224 chip drivers/i2c/generic
225 register "hid" = ""10EC1308""
226 register "name" = ""RTAM""
227 register "desc" = ""Realtek RT1308 Codec""
228 device i2c 10 on end
229 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800230 chip drivers/i2c/max98373
231 register "vmon_slot_no" = "4"
232 register "imon_slot_no" = "5"
233 register "uid" = "0"
234 register "desc" = ""RIGHT SPEAKER AMP""
235 register "name" = ""MAXR""
236 device i2c 31 on end
237 end
238 chip drivers/i2c/max98373
239 register "vmon_slot_no" = "6"
240 register "imon_slot_no" = "7"
241 register "uid" = "1"
242 register "desc" = ""LEFT SPEAKER AMP""
243 register "name" = ""MAXL""
244 device i2c 32 on end
245 end
246 chip drivers/i2c/generic
247 register "hid" = ""10EC5682""
248 register "name" = ""RT58""
249 register "desc" = ""Realtek RT5682""
250 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
251 register "probed" = "1"
252 # Set the jd_src to RT5668_JD1 for jack detection
253 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
254 register "property_list[0].name" = ""realtek,jd-src""
255 register "property_list[0].integer" = "1"
256 device i2c 1a on end
257 end
Felix Singerf13284c2024-06-27 21:09:11 +0200258 end
259 device ref i2c1 on end
260 device ref i2c2 on end
261 device ref i2c3 on end
262 device ref heci1 on end
263 device ref heci2 off end
264 device ref csme1 off end
265 device ref csme2 off end
266 device ref heci3 off end
267 device ref heci4 off end
Felix Singer8c1daf92024-06-27 23:25:32 +0200268 device ref sata on
269 register "SataSalpSupport" = "1"
270 register "SataPortsEnable[0]" = "1"
271 register "SataPortsEnable[1]" = "1"
272 end
Felix Singerf13284c2024-06-27 21:09:11 +0200273 device ref i2c4 off end
274 device ref i2c5 on end
275 device ref uart2 on end
276 device ref pcie_rp1 off end
277 device ref pcie_rp2 off end
278 device ref pcie_rp3 on end
279 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800280 chip soc/intel/common/block/pcie/rtd3
281 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
282 register "srcclk_pin" = "2"
283 device generic 0 on end
284 end
Felix Singerf13284c2024-06-27 21:09:11 +0200285 end
286 device ref pcie_rp5 off end
287 device ref pcie_rp6 off end
288 device ref pcie_rp7 off end
289 device ref pcie_rp8 off end
290 device ref pcie_rp9 on end
291 device ref pcie_rp10 off end
292 device ref pcie_rp11 on end
293 device ref pcie_rp12 off end
294 device ref uart0 off end
295 device ref uart1 off end
296 device ref gspi0 on end
297 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700298 chip drivers/spi/acpi
299 register "hid" = "ACPI_DT_NAMESPACE_HID"
300 register "compat_string" = ""google,cr50""
301 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
302 device spi 0 on end
303 end
Felix Singerf13284c2024-06-27 21:09:11 +0200304 end
305 device ref pch_espi on
John Zhaod05b15e2020-07-25 17:23:53 -0700306 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600307 use conn0 as mux_conn[0]
308 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700309 device pnp 0c09.0 on end
310 end
Felix Singerf13284c2024-06-27 21:09:11 +0200311 end
312 device ref p2sb on end
313 device ref pmc hidden
John Zhao7b46aae2020-06-30 15:44:44 -0700314 # The pmc_mux chip driver is a placeholder for the
315 # PMC.MUX device in the ACPI hierarchy.
316 chip drivers/intel/pmc_mux
317 device generic 0 on
318 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100319 use usb2_port6 as usb2_port
320 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700321 # SBU is fixed, HSL follows CC
322 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600323 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700324 end
325 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100326 use usb2_port7 as usb2_port
327 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700328 # SBU is fixed, HSL follows CC
329 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600330 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700331 end
332 end
333 end
Felix Singerf13284c2024-06-27 21:09:11 +0200334 end
335 device ref hda on end
336 device ref smbus on end
337 device ref fast_spi on end
338 device ref gbe off end
339 device ref tracehub off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800340 end
341end