blob: 7a310988a882ee67cd9bda68ab40cfa8d55196da [file] [log] [blame]
Wonkyu Kim7e303582020-03-06 14:36:23 -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
Wonkyu Kim7e303582020-03-06 14:36:23 -080011 # FSP configuration
12 register "SaGv" = "SaGv_Disabled"
Wonkyu Kim7e303582020-03-06 14:36:23 -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
Wonkyu Kim7e303582020-03-06 14:36:23 -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"
Wonkyu Kim7e303582020-03-06 14:36:23 -080030
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070031 # Enable PR 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
Wonkyu Kim7e303582020-03-06 14:36:23 -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
48 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020049 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim7e303582020-03-06 14:36:23 -080050
Jason Le2b341612020-08-27 15:16:32 -070051 register "DdiPortAHpd" = "1"
52 register "DdiPortADdc" = "0"
Wonkyu Kim66815112020-03-09 14:48:51 -070053 register "DdiPortBHpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070054 register "DdiPortBDdc" = "1"
55 register "DdiPortCHpd" = "0"
56 register "DdiPortCDdc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080057 register "DdiPort1Hpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070058 register "DdiPort1Ddc" = "0"
59 register "DdiPort2Hpd" = "1"
60 register "DdiPort2Ddc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080061
62 register "SerialIoI2cMode" = "{
63 [PchSerialIoIndexI2C0] = PchSerialIoPci,
64 [PchSerialIoIndexI2C1] = PchSerialIoPci,
65 [PchSerialIoIndexI2C2] = PchSerialIoPci,
66 [PchSerialIoIndexI2C3] = PchSerialIoPci,
67 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
68 [PchSerialIoIndexI2C5] = PchSerialIoPci,
69 }"
70
71 register "SerialIoGSpiMode" = "{
72 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070073 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Wonkyu Kim7e303582020-03-06 14:36:23 -080074 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
75 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
76 }"
77
78 register "SerialIoGSpiCsMode" = "{
79 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070080 [PchSerialIoIndexGSPI1] = 1,
Wonkyu Kim7e303582020-03-06 14:36:23 -080081 [PchSerialIoIndexGSPI2] = 0,
82 [PchSerialIoIndexGSPI3] = 0,
83 }"
84
85 register "SerialIoGSpiCsState" = "{
86 [PchSerialIoIndexGSPI0] = 0,
87 [PchSerialIoIndexGSPI1] = 0,
88 [PchSerialIoIndexGSPI2] = 0,
89 [PchSerialIoIndexGSPI3] = 0,
90 }"
91
92 register "SerialIoUartMode" = "{
93 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
94 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
95 [PchSerialIoIndexUART2] = PchSerialIoPci,
96 }"
97
John Zhaob1c53fc2020-05-13 16:27:03 -070098 # TCSS USB3
99 register "TcssXhciEn" = "1"
100 register "TcssAuxOri" = "0"
101
John Zhao23d3ad02020-06-30 17:36:24 -0700102 # Enable S0ix
103 register "s0ix_enable" = "1"
104
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530105 # Enable DPTF
106 register "dptf_enable" = "1"
107
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530108 # Add PL1 and PL2 values
109 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
110 .tdp_pl1_override = 9,
111 .tdp_pl2_override = 35,
112 .tdp_pl4 = 66,
113 }"
114 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
115 .tdp_pl1_override = 9,
116 .tdp_pl2_override = 40,
117 .tdp_pl4 = 83,
118 }"
119
Wonkyu Kim7e303582020-03-06 14:36:23 -0800120 #HD Audio
121 register "PchHdaDspEnable" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -0800122 register "PchHdaAudioLinkDmicEnable[0]" = "1"
123 register "PchHdaAudioLinkDmicEnable[1]" = "1"
124 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700125 register "PchHdaAudioLinkSspEnable[2]" = "1"
126 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -0800127
Wonkyu Kim5c271822020-04-03 00:42:22 -0700128 # Intel Common SoC Config
129 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700130 .gspi[1] = {
131 .speed_mhz = 1,
132 .early_init = 1,
133 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700134 .i2c[0] = {
135 .speed = I2C_SPEED_FAST,
136 },
137 .i2c[1] = {
138 .speed = I2C_SPEED_FAST,
139 },
140 .i2c[2] = {
141 .speed = I2C_SPEED_FAST,
142 },
143 .i2c[3] = {
144 .speed = I2C_SPEED_FAST,
145 },
146 .i2c[5] = {
147 .speed = I2C_SPEED_FAST,
148 },
149 }"
150
Wonkyu Kim7e303582020-03-06 14:36:23 -0800151 device domain 0 on
152 #From EDS(575683)
Felix Singerf13284c2024-06-27 21:09:11 +0200153 device ref system_agent on end
154 device ref igpu on end
155 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530156 # Default DPTF Policy for all tglrvp_up4 boards if not overridden
157 chip drivers/intel/dptf
158 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
159 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
160
161 # Power Limits Control
162 register "controls.power_limits.pl1" = "{
163 .min_power = 3000,
164 .max_power = 9000,
165 .time_window_min = 28 * MSECS_PER_SEC,
166 .time_window_max = 32 * MSECS_PER_SEC,
167 .granularity = 200,}"
168 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530169 .min_power = 40000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530170 .max_power = 40000,
171 .time_window_min = 28 * MSECS_PER_SEC,
172 .time_window_max = 32 * MSECS_PER_SEC,
173 .granularity = 1000,}"
174 device generic 0 on end
175 end
Felix Singerf13284c2024-06-27 21:09:11 +0200176 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530177
Felix Singerf13284c2024-06-27 21:09:11 +0200178 device ref ipu on end
179 device ref peg on end
180 device ref tbt_pcie_rp0 on end
181 device ref tbt_pcie_rp1 on end
182 device ref tbt_pcie_rp2 on end
183 device ref tbt_pcie_rp3 off end
184 device ref gna off end
185 device ref npk off end
186 device ref crashlog off end
187 device ref north_xhci on end
188 device ref north_xdci on end
189 device ref tbt_dma0 on end
190 device ref tbt_dma1 on end
191 device ref vmd off end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800192
Felix Singerf13284c2024-06-27 21:09:11 +0200193 device ref thc0 off end
194 device ref thc1 off end
195 device ref ish on
li feng23954252020-03-12 16:38:34 -0700196 chip drivers/intel/ish
197 register "firmware_name" = ""tglrvp_ish.bin""
198 device generic 0 on end
199 end
200 end
Felix Singerf13284c2024-06-27 21:09:11 +0200201 device ref gspi2 off end
202 device ref gspi3 off end
Felix Singerbc8f5402024-06-27 22:58:52 +0200203 device ref south_xhci on
204 register "usb2_ports" = "{
205 [0] = USB2_PORT_MID(OC3), // Type-C Port1
206 [1] = USB2_PORT_EMPTY, // M.2 WWAN
207 [2] = USB2_PORT_MID(OC0), // M.2 Bluetooth, USB3/2 Type A Port1
208 [3] = USB2_PORT_MID(OC3), // USB3/2 Type A Port 1
209 [4] = USB2_PORT_MID(OC3), // Type-C Port2
210 [5] = USB2_PORT_MID(OC3), // Type-C Port3 / MECC
211 [6] = USB2_PORT_EMPTY, // Not used
212 [7] = USB2_PORT_EMPTY, // Not used
213 [8] = USB2_PORT_EMPTY, // Not used
214 [9] = USB2_PORT_MID(OC3), // CNVi/BT
215 }"
216
217 register "usb3_ports" = "{
218 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
219 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
220 [3] = USB3_PORT_DEFAULT(OC3), // USB3/USB2 Flex Connector
221 }"
222 end
Felix Singerf13284c2024-06-27 21:09:11 +0200223 device ref south_xdci on end
224 device ref shared_ram on end
225 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700226 chip drivers/wifi/generic
227 register "wake" = "GPE0_PME_B0"
228 device generic 0 on end
229 end
Felix Singerf13284c2024-06-27 21:09:11 +0200230 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800231
Felix Singerf13284c2024-06-27 21:09:11 +0200232 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700233 chip drivers/i2c/generic
234 register "hid" = ""10EC1308""
235 register "name" = ""RTAM""
236 register "desc" = ""Realtek RT1308 Codec""
237 device i2c 10 on end
238 end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800239 chip drivers/i2c/max98373
240 register "vmon_slot_no" = "4"
241 register "imon_slot_no" = "5"
242 register "uid" = "0"
243 register "desc" = ""RIGHT SPEAKER AMP""
244 register "name" = ""MAXR""
245 device i2c 31 on end
246 end
247 chip drivers/i2c/max98373
248 register "vmon_slot_no" = "6"
249 register "imon_slot_no" = "7"
250 register "uid" = "1"
251 register "desc" = ""LEFT SPEAKER AMP""
252 register "name" = ""MAXL""
253 device i2c 32 on end
254 end
255 chip drivers/i2c/generic
256 register "hid" = ""10EC5682""
257 register "name" = ""RT58""
258 register "desc" = ""Realtek RT5682""
259 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
260 register "probed" = "1"
261 # Set the jd_src to RT5668_JD1 for jack detection
262 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
263 register "property_list[0].name" = ""realtek,jd-src""
264 register "property_list[0].integer" = "1"
265 device i2c 1a on end
266 end
Felix Singerf13284c2024-06-27 21:09:11 +0200267 end
268 device ref i2c1 on end
269 device ref i2c2 on end
270 device ref i2c3 on end
271 device ref heci1 on end
272 device ref heci2 off end
273 device ref csme1 off end
274 device ref csme2 off end
275 device ref heci3 off end
276 device ref heci4 off end
277 device ref sata on end
278 device ref i2c4 off end
279 device ref i2c5 on end
280 device ref uart2 on end
281 device ref pcie_rp1 off end
282 device ref pcie_rp2 off end
283 device ref pcie_rp3 on end
284 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800285 chip soc/intel/common/block/pcie/rtd3
286 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
287 register "srcclk_pin" = "2"
288 device generic 0 on end
289 end
Felix Singerf13284c2024-06-27 21:09:11 +0200290 end
291 device ref pcie_rp5 off end
292 device ref pcie_rp6 off end
293 device ref pcie_rp7 off end
294 device ref pcie_rp8 off end
295 device ref pcie_rp9 on end
296 device ref pcie_rp10 off end
297 device ref pcie_rp11 on end
298 device ref pcie_rp12 off end
299 device ref uart0 off end
300 device ref uart1 off end
301 device ref gspi0 on end
302 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700303 chip drivers/spi/acpi
304 register "hid" = "ACPI_DT_NAMESPACE_HID"
305 register "compat_string" = ""google,cr50""
306 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
307 device spi 0 on end
308 end
Felix Singerf13284c2024-06-27 21:09:11 +0200309 end
310 device ref pch_espi on
John Zhaod05b15e2020-07-25 17:23:53 -0700311 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600312 use conn0 as mux_conn[0]
313 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700314 device pnp 0c09.0 on end
315 end
Felix Singerf13284c2024-06-27 21:09:11 +0200316 end
317 device ref p2sb on end
318 device ref pmc hidden
John Zhao8466ac02020-07-13 09:29:33 -0700319 # The pmc_mux chip driver is a placeholder for the
320 # PMC.MUX device in the ACPI hierarchy.
321 chip drivers/intel/pmc_mux
322 device generic 0 on
323 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100324 use usb2_port6 as usb2_port
325 use tcss_usb3_port3 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700326 # SBU is fixed, HSL follows CC
327 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600328 device generic 0 alias conn0 on end
John Zhao8466ac02020-07-13 09:29:33 -0700329 end
330 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100331 use usb2_port5 as usb2_port
332 use tcss_usb3_port2 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700333 # SBU is fixed, HSL follows CC
334 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600335 device generic 1 alias conn1 on end
John Zhao8466ac02020-07-13 09:29:33 -0700336 end
337 end
338 end
Felix Singerf13284c2024-06-27 21:09:11 +0200339 end
340 device ref hda on end
341 device ref smbus on end
342 device ref fast_spi on end
343 device ref gbe off end
344 device ref tracehub off end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800345 end
346end