blob: fede521d22b9a969652f2affcd7c5d5c388151d6 [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
Michael Niewöhner45b60802022-01-08 20:47:11 +010020 register "PcieRpSlotImplemented[2]" = "1"
21 register "PcieRpSlotImplemented[3]" = "1"
22 register "PcieRpSlotImplemented[8]" = "1"
23 register "PcieRpSlotImplemented[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080024
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070025 # Enable RP LTR
26 register "PcieRpLtrEnable[2]" = "1"
27 register "PcieRpLtrEnable[3]" = "1"
28 register "PcieRpLtrEnable[8]" = "1"
29 register "PcieRpLtrEnable[10]" = "1"
30
Wonkyu Kimf787e872020-03-03 01:58:17 -080031 # Hybrid storage mode
32 register "HybridStorageMode" = "1"
33
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080034 register "PcieClkSrcClkReq[1]" = "1"
35 register "PcieClkSrcClkReq[2]" = "2"
36 register "PcieClkSrcClkReq[3]" = "3"
37
38 register "PcieClkSrcUsage[1]" = "0x2"
39 register "PcieClkSrcUsage[2]" = "0x3"
40 register "PcieClkSrcUsage[3]" = "0x8"
41
Wonkyu Kim46cef442020-01-23 00:12:46 -080042 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020043 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim46cef442020-01-23 00:12:46 -080044
Wonkyu Kim34944be2020-03-02 22:18:26 -080045 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080046 register "DdiPort1Hpd" = "1"
47 register "DdiPort1Ddc" = "1"
48
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080049 register "SerialIoI2cMode" = "{
50 [PchSerialIoIndexI2C0] = PchSerialIoPci,
51 [PchSerialIoIndexI2C1] = PchSerialIoPci,
52 [PchSerialIoIndexI2C2] = PchSerialIoPci,
53 [PchSerialIoIndexI2C3] = PchSerialIoPci,
54 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
55 [PchSerialIoIndexI2C5] = PchSerialIoPci,
56 }"
57
58 register "SerialIoGSpiMode" = "{
59 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070060 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080061 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
62 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
63 }"
64
65 register "SerialIoGSpiCsMode" = "{
66 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070067 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080068 [PchSerialIoIndexGSPI2] = 0,
69 [PchSerialIoIndexGSPI3] = 0,
70 }"
71
72 register "SerialIoGSpiCsState" = "{
73 [PchSerialIoIndexGSPI0] = 0,
74 [PchSerialIoIndexGSPI1] = 0,
75 [PchSerialIoIndexGSPI2] = 0,
76 [PchSerialIoIndexGSPI3] = 0,
77 }"
78
79 register "SerialIoUartMode" = "{
80 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
81 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
82 [PchSerialIoIndexUART2] = PchSerialIoPci,
83 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -080084
John Zhaob1c53fc2020-05-13 16:27:03 -070085 # TCSS USB3
86 register "TcssXhciEn" = "1"
87 register "TcssAuxOri" = "0"
88
John Zhao23d3ad02020-06-30 17:36:24 -070089 # Enable S0ix
90 register "s0ix_enable" = "1"
91
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +053092 # Enable DPTF
93 register "dptf_enable" = "1"
94
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +053095 # Add PL1 and PL2 values
96 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
97 .tdp_pl1_override = 15,
98 .tdp_pl2_override = 38,
99 .tdp_pl4 = 71,
100 }"
101 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
102 .tdp_pl1_override = 15,
103 .tdp_pl2_override = 60,
104 .tdp_pl4 = 105,
105 }"
106
Wonkyu Kim5c271822020-04-03 00:42:22 -0700107 # Intel Common SoC Config
108 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700109 .gspi[1] = {
110 .speed_mhz = 1,
111 .early_init = 1,
112 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700113 .i2c[0] = {
114 .speed = I2C_SPEED_FAST,
115 },
116 .i2c[1] = {
117 .speed = I2C_SPEED_FAST,
118 },
119 .i2c[2] = {
120 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200121 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700122 .i2c[3] = {
123 .speed = I2C_SPEED_FAST,
124 },
125 .i2c[5] = {
126 .speed = I2C_SPEED_FAST,
127 },
128 }"
129
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800130 device domain 0 on
Felix Singerf13284c2024-06-27 21:09:11 +0200131 device ref system_agent on end
132 device ref igpu on end
133 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530134 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
135 chip drivers/intel/dptf
136 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
137 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
138
139 # Power Limits Control
140 register "controls.power_limits.pl1" = "{
141 .min_power = 3000,
142 .max_power = 15000,
143 .time_window_min = 28 * MSECS_PER_SEC,
144 .time_window_max = 32 * MSECS_PER_SEC,
145 .granularity = 200,}"
146 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530147 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530148 .max_power = 60000,
149 .time_window_min = 28 * MSECS_PER_SEC,
150 .time_window_max = 32 * MSECS_PER_SEC,
151 .granularity = 1000,}"
152 device generic 0 on end
153 end
Felix Singerf13284c2024-06-27 21:09:11 +0200154 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530155
Felix Singerf13284c2024-06-27 21:09:11 +0200156 device ref ipu on end
157 device ref peg on end
158 device ref tbt_pcie_rp0 on end
159 device ref tbt_pcie_rp1 on end
160 device ref tbt_pcie_rp2 on end
161 device ref tbt_pcie_rp3 on end
162 device ref gna off end
163 device ref npk off end
164 device ref crashlog off end
165 device ref north_xhci on end
166 device ref north_xdci on end
167 device ref tbt_dma0 on end
168 device ref tbt_dma1 on end
169 device ref vmd off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800170
Felix Singerf13284c2024-06-27 21:09:11 +0200171 device ref thc0 off end
172 device ref thc1 off end
173 device ref ish on
li feng23954252020-03-12 16:38:34 -0700174 chip drivers/intel/ish
175 register "firmware_name" = ""tglrvp_ish.bin""
176 device generic 0 on end
177 end
178 end
Felix Singerf13284c2024-06-27 21:09:11 +0200179 device ref gspi2 off end
180 device ref gspi3 off end
Felix Singerbc8f5402024-06-27 22:58:52 +0200181 device ref south_xhci on
182 register "usb2_ports" = "{
183 [0] = USB2_PORT_MID(OC0), // Type-C Port1
184 [1] = USB2_PORT_EMPTY, // M.2 WWAN
185 [2] = USB2_PORT_MID(OC3), // M.2 Bluetooth
186 [3] = USB2_PORT_MID(OC0), // USB3/2 Type A port1
187 [4] = USB2_PORT_MID(OC0), // Type-C Port2
188 [5] = USB2_PORT_MID(OC3), // Type-C Port3
189 [6] = USB2_PORT_MID(OC3), // Type-C Port4
190 [7] = USB2_PORT_MID(OC0), // USB3/2 Type A port2
191 [8] = USB2_PORT_MID(OC3), // USB2 Type A port3
192 [9] = USB2_PORT_MID(OC3), // USB2 Type A port4
193 }"
194
195 register "usb3_ports" = "{
196 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
197 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
198 }"
199 end
Felix Singerf13284c2024-06-27 21:09:11 +0200200 device ref south_xdci on end
201 device ref shared_ram on end
202 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700203 chip drivers/wifi/generic
204 register "wake" = "GPE0_PME_B0"
205 device generic 0 on end
206 end
Felix Singerf13284c2024-06-27 21:09:11 +0200207 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800208
Felix Singerf13284c2024-06-27 21:09:11 +0200209 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700210 chip drivers/i2c/generic
211 register "hid" = ""10EC1308""
212 register "name" = ""RTAM""
213 register "desc" = ""Realtek RT1308 Codec""
214 device i2c 10 on end
215 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800216 chip drivers/i2c/max98373
217 register "vmon_slot_no" = "4"
218 register "imon_slot_no" = "5"
219 register "uid" = "0"
220 register "desc" = ""RIGHT SPEAKER AMP""
221 register "name" = ""MAXR""
222 device i2c 31 on end
223 end
224 chip drivers/i2c/max98373
225 register "vmon_slot_no" = "6"
226 register "imon_slot_no" = "7"
227 register "uid" = "1"
228 register "desc" = ""LEFT SPEAKER AMP""
229 register "name" = ""MAXL""
230 device i2c 32 on end
231 end
232 chip drivers/i2c/generic
233 register "hid" = ""10EC5682""
234 register "name" = ""RT58""
235 register "desc" = ""Realtek RT5682""
236 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
237 register "probed" = "1"
238 # Set the jd_src to RT5668_JD1 for jack detection
239 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
240 register "property_list[0].name" = ""realtek,jd-src""
241 register "property_list[0].integer" = "1"
242 device i2c 1a on end
243 end
Felix Singerf13284c2024-06-27 21:09:11 +0200244 end
245 device ref i2c1 on end
246 device ref i2c2 on end
247 device ref i2c3 on end
248 device ref heci1 on end
249 device ref heci2 off end
250 device ref csme1 off end
251 device ref csme2 off end
252 device ref heci3 off end
253 device ref heci4 off end
Felix Singer8c1daf92024-06-27 23:25:32 +0200254 device ref sata on
255 register "SataSalpSupport" = "1"
256 register "SataPortsEnable[0]" = "1"
257 register "SataPortsEnable[1]" = "1"
258 end
Felix Singerf13284c2024-06-27 21:09:11 +0200259 device ref i2c4 off end
260 device ref i2c5 on end
261 device ref uart2 on end
262 device ref pcie_rp1 off end
263 device ref pcie_rp2 off end
264 device ref pcie_rp3 on end
265 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800266 chip soc/intel/common/block/pcie/rtd3
267 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
268 register "srcclk_pin" = "2"
269 device generic 0 on end
270 end
Felix Singerf13284c2024-06-27 21:09:11 +0200271 end
272 device ref pcie_rp5 off end
273 device ref pcie_rp6 off end
274 device ref pcie_rp7 off end
275 device ref pcie_rp8 off end
276 device ref pcie_rp9 on end
277 device ref pcie_rp10 off end
278 device ref pcie_rp11 on end
279 device ref pcie_rp12 off end
280 device ref uart0 off end
281 device ref uart1 off end
282 device ref gspi0 on end
283 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700284 chip drivers/spi/acpi
285 register "hid" = "ACPI_DT_NAMESPACE_HID"
286 register "compat_string" = ""google,cr50""
287 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
288 device spi 0 on end
289 end
Felix Singerf13284c2024-06-27 21:09:11 +0200290 end
291 device ref pch_espi on
Felix Singer6ce6a5b2024-06-27 23:14:31 +0200292 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
293 register "gen1_dec" = "0x00fc0801"
294 register "gen2_dec" = "0x000c0201"
295 # EC memory map range is 0x900-0x9ff
296 register "gen3_dec" = "0x00fc0901"
297
John Zhaod05b15e2020-07-25 17:23:53 -0700298 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600299 use conn0 as mux_conn[0]
300 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700301 device pnp 0c09.0 on end
302 end
Felix Singerf13284c2024-06-27 21:09:11 +0200303 end
304 device ref p2sb on end
305 device ref pmc hidden
John Zhao7b46aae2020-06-30 15:44:44 -0700306 # The pmc_mux chip driver is a placeholder for the
307 # PMC.MUX device in the ACPI hierarchy.
308 chip drivers/intel/pmc_mux
309 device generic 0 on
310 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100311 use usb2_port6 as usb2_port
312 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700313 # SBU is fixed, HSL follows CC
314 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600315 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700316 end
317 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100318 use usb2_port7 as usb2_port
319 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700320 # SBU is fixed, HSL follows CC
321 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600322 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700323 end
324 end
325 end
Felix Singerf13284c2024-06-27 21:09:11 +0200326 end
Felix Singer1f5a2212024-06-28 00:15:22 +0200327 device ref hda on
328 register "PchHdaDspEnable" = "1"
329 register "PchHdaAudioLinkDmicEnable" = "{
330 [0] = 1,
331 [1] = 1,
332 }"
333 register "PchHdaAudioLinkSspEnable" = "{
334 [0] = 1,
335 [2] = 1,
336 }"
337 register "PchHdaAudioLinkSndwEnable[0]" = "1"
338 end
Felix Singerf13284c2024-06-27 21:09:11 +0200339 device ref smbus on end
340 device ref fast_spi on end
341 device ref gbe off end
342 device ref tracehub off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800343 end
344end