blob: af16f756f0f3db38a94394d33cd4a871721bbfff [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
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800107 #HD Audio
108 register "PchHdaDspEnable" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800109 register "PchHdaAudioLinkDmicEnable[0]" = "1"
110 register "PchHdaAudioLinkDmicEnable[1]" = "1"
111 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700112 register "PchHdaAudioLinkSspEnable[2]" = "1"
113 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800114
Wonkyu Kim5c271822020-04-03 00:42:22 -0700115 # Intel Common SoC Config
116 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700117 .gspi[1] = {
118 .speed_mhz = 1,
119 .early_init = 1,
120 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700121 .i2c[0] = {
122 .speed = I2C_SPEED_FAST,
123 },
124 .i2c[1] = {
125 .speed = I2C_SPEED_FAST,
126 },
127 .i2c[2] = {
128 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200129 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700130 .i2c[3] = {
131 .speed = I2C_SPEED_FAST,
132 },
133 .i2c[5] = {
134 .speed = I2C_SPEED_FAST,
135 },
136 }"
137
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800138 device domain 0 on
Felix Singerf13284c2024-06-27 21:09:11 +0200139 device ref system_agent on end
140 device ref igpu on end
141 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530142 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
143 chip drivers/intel/dptf
144 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
145 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
146
147 # Power Limits Control
148 register "controls.power_limits.pl1" = "{
149 .min_power = 3000,
150 .max_power = 15000,
151 .time_window_min = 28 * MSECS_PER_SEC,
152 .time_window_max = 32 * MSECS_PER_SEC,
153 .granularity = 200,}"
154 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530155 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530156 .max_power = 60000,
157 .time_window_min = 28 * MSECS_PER_SEC,
158 .time_window_max = 32 * MSECS_PER_SEC,
159 .granularity = 1000,}"
160 device generic 0 on end
161 end
Felix Singerf13284c2024-06-27 21:09:11 +0200162 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530163
Felix Singerf13284c2024-06-27 21:09:11 +0200164 device ref ipu on end
165 device ref peg on end
166 device ref tbt_pcie_rp0 on end
167 device ref tbt_pcie_rp1 on end
168 device ref tbt_pcie_rp2 on end
169 device ref tbt_pcie_rp3 on end
170 device ref gna off end
171 device ref npk off end
172 device ref crashlog off end
173 device ref north_xhci on end
174 device ref north_xdci on end
175 device ref tbt_dma0 on end
176 device ref tbt_dma1 on end
177 device ref vmd off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800178
Felix Singerf13284c2024-06-27 21:09:11 +0200179 device ref thc0 off end
180 device ref thc1 off end
181 device ref ish on
li feng23954252020-03-12 16:38:34 -0700182 chip drivers/intel/ish
183 register "firmware_name" = ""tglrvp_ish.bin""
184 device generic 0 on end
185 end
186 end
Felix Singerf13284c2024-06-27 21:09:11 +0200187 device ref gspi2 off end
188 device ref gspi3 off end
Felix Singerbc8f5402024-06-27 22:58:52 +0200189 device ref south_xhci on
190 register "usb2_ports" = "{
191 [0] = USB2_PORT_MID(OC0), // Type-C Port1
192 [1] = USB2_PORT_EMPTY, // M.2 WWAN
193 [2] = USB2_PORT_MID(OC3), // M.2 Bluetooth
194 [3] = USB2_PORT_MID(OC0), // USB3/2 Type A port1
195 [4] = USB2_PORT_MID(OC0), // Type-C Port2
196 [5] = USB2_PORT_MID(OC3), // Type-C Port3
197 [6] = USB2_PORT_MID(OC3), // Type-C Port4
198 [7] = USB2_PORT_MID(OC0), // USB3/2 Type A port2
199 [8] = USB2_PORT_MID(OC3), // USB2 Type A port3
200 [9] = USB2_PORT_MID(OC3), // USB2 Type A port4
201 }"
202
203 register "usb3_ports" = "{
204 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
205 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
206 }"
207 end
Felix Singerf13284c2024-06-27 21:09:11 +0200208 device ref south_xdci on end
209 device ref shared_ram on end
210 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700211 chip drivers/wifi/generic
212 register "wake" = "GPE0_PME_B0"
213 device generic 0 on end
214 end
Felix Singerf13284c2024-06-27 21:09:11 +0200215 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800216
Felix Singerf13284c2024-06-27 21:09:11 +0200217 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700218 chip drivers/i2c/generic
219 register "hid" = ""10EC1308""
220 register "name" = ""RTAM""
221 register "desc" = ""Realtek RT1308 Codec""
222 device i2c 10 on end
223 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800224 chip drivers/i2c/max98373
225 register "vmon_slot_no" = "4"
226 register "imon_slot_no" = "5"
227 register "uid" = "0"
228 register "desc" = ""RIGHT SPEAKER AMP""
229 register "name" = ""MAXR""
230 device i2c 31 on end
231 end
232 chip drivers/i2c/max98373
233 register "vmon_slot_no" = "6"
234 register "imon_slot_no" = "7"
235 register "uid" = "1"
236 register "desc" = ""LEFT SPEAKER AMP""
237 register "name" = ""MAXL""
238 device i2c 32 on end
239 end
240 chip drivers/i2c/generic
241 register "hid" = ""10EC5682""
242 register "name" = ""RT58""
243 register "desc" = ""Realtek RT5682""
244 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
245 register "probed" = "1"
246 # Set the jd_src to RT5668_JD1 for jack detection
247 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
248 register "property_list[0].name" = ""realtek,jd-src""
249 register "property_list[0].integer" = "1"
250 device i2c 1a on end
251 end
Felix Singerf13284c2024-06-27 21:09:11 +0200252 end
253 device ref i2c1 on end
254 device ref i2c2 on end
255 device ref i2c3 on end
256 device ref heci1 on end
257 device ref heci2 off end
258 device ref csme1 off end
259 device ref csme2 off end
260 device ref heci3 off end
261 device ref heci4 off end
Felix Singer8c1daf92024-06-27 23:25:32 +0200262 device ref sata on
263 register "SataSalpSupport" = "1"
264 register "SataPortsEnable[0]" = "1"
265 register "SataPortsEnable[1]" = "1"
266 end
Felix Singerf13284c2024-06-27 21:09:11 +0200267 device ref i2c4 off end
268 device ref i2c5 on end
269 device ref uart2 on end
270 device ref pcie_rp1 off end
271 device ref pcie_rp2 off end
272 device ref pcie_rp3 on end
273 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800274 chip soc/intel/common/block/pcie/rtd3
275 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
276 register "srcclk_pin" = "2"
277 device generic 0 on end
278 end
Felix Singerf13284c2024-06-27 21:09:11 +0200279 end
280 device ref pcie_rp5 off end
281 device ref pcie_rp6 off end
282 device ref pcie_rp7 off end
283 device ref pcie_rp8 off end
284 device ref pcie_rp9 on end
285 device ref pcie_rp10 off end
286 device ref pcie_rp11 on end
287 device ref pcie_rp12 off end
288 device ref uart0 off end
289 device ref uart1 off end
290 device ref gspi0 on end
291 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700292 chip drivers/spi/acpi
293 register "hid" = "ACPI_DT_NAMESPACE_HID"
294 register "compat_string" = ""google,cr50""
295 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
296 device spi 0 on end
297 end
Felix Singerf13284c2024-06-27 21:09:11 +0200298 end
299 device ref pch_espi on
Felix Singer6ce6a5b2024-06-27 23:14:31 +0200300 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
301 register "gen1_dec" = "0x00fc0801"
302 register "gen2_dec" = "0x000c0201"
303 # EC memory map range is 0x900-0x9ff
304 register "gen3_dec" = "0x00fc0901"
305
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