blob: 578eb98a3ae4e743446fb562c6f1318a4e95cd90 [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
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"
Wonkyu Kim7e303582020-03-06 14:36:23 -080024
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070025 # Enable PR 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
Wonkyu Kim7e303582020-03-06 14:36:23 -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
42 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020043 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim7e303582020-03-06 14:36:23 -080044
Jason Le2b341612020-08-27 15:16:32 -070045 register "DdiPortAHpd" = "1"
46 register "DdiPortADdc" = "0"
Wonkyu Kim66815112020-03-09 14:48:51 -070047 register "DdiPortBHpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070048 register "DdiPortBDdc" = "1"
49 register "DdiPortCHpd" = "0"
50 register "DdiPortCDdc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080051 register "DdiPort1Hpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070052 register "DdiPort1Ddc" = "0"
53 register "DdiPort2Hpd" = "1"
54 register "DdiPort2Ddc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080055
56 register "SerialIoI2cMode" = "{
57 [PchSerialIoIndexI2C0] = PchSerialIoPci,
58 [PchSerialIoIndexI2C1] = PchSerialIoPci,
59 [PchSerialIoIndexI2C2] = PchSerialIoPci,
60 [PchSerialIoIndexI2C3] = PchSerialIoPci,
61 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
62 [PchSerialIoIndexI2C5] = PchSerialIoPci,
63 }"
64
65 register "SerialIoGSpiMode" = "{
66 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070067 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Wonkyu Kim7e303582020-03-06 14:36:23 -080068 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
69 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
70 }"
71
72 register "SerialIoGSpiCsMode" = "{
73 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070074 [PchSerialIoIndexGSPI1] = 1,
Wonkyu Kim7e303582020-03-06 14:36:23 -080075 [PchSerialIoIndexGSPI2] = 0,
76 [PchSerialIoIndexGSPI3] = 0,
77 }"
78
79 register "SerialIoGSpiCsState" = "{
80 [PchSerialIoIndexGSPI0] = 0,
81 [PchSerialIoIndexGSPI1] = 0,
82 [PchSerialIoIndexGSPI2] = 0,
83 [PchSerialIoIndexGSPI3] = 0,
84 }"
85
86 register "SerialIoUartMode" = "{
87 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
88 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
89 [PchSerialIoIndexUART2] = PchSerialIoPci,
90 }"
91
John Zhaob1c53fc2020-05-13 16:27:03 -070092 # TCSS USB3
93 register "TcssXhciEn" = "1"
94 register "TcssAuxOri" = "0"
95
John Zhao23d3ad02020-06-30 17:36:24 -070096 # Enable S0ix
97 register "s0ix_enable" = "1"
98
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +053099 # Enable DPTF
100 register "dptf_enable" = "1"
101
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530102 # Add PL1 and PL2 values
103 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
104 .tdp_pl1_override = 9,
105 .tdp_pl2_override = 35,
106 .tdp_pl4 = 66,
107 }"
108 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
109 .tdp_pl1_override = 9,
110 .tdp_pl2_override = 40,
111 .tdp_pl4 = 83,
112 }"
113
Wonkyu Kim5c271822020-04-03 00:42:22 -0700114 # Intel Common SoC Config
115 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700116 .gspi[1] = {
117 .speed_mhz = 1,
118 .early_init = 1,
119 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700120 .i2c[0] = {
121 .speed = I2C_SPEED_FAST,
122 },
123 .i2c[1] = {
124 .speed = I2C_SPEED_FAST,
125 },
126 .i2c[2] = {
127 .speed = I2C_SPEED_FAST,
128 },
129 .i2c[3] = {
130 .speed = I2C_SPEED_FAST,
131 },
132 .i2c[5] = {
133 .speed = I2C_SPEED_FAST,
134 },
135 }"
136
Wonkyu Kim7e303582020-03-06 14:36:23 -0800137 device domain 0 on
138 #From EDS(575683)
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_up4 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 = 9000,
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 = 40000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530156 .max_power = 40000,
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 off 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
Wonkyu Kim7e303582020-03-06 14:36:23 -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(OC3), // Type-C Port1
Felix Singerbc8f5402024-06-27 22:58:52 +0200192 [2] = USB2_PORT_MID(OC0), // M.2 Bluetooth, USB3/2 Type A Port1
193 [3] = USB2_PORT_MID(OC3), // USB3/2 Type A Port 1
194 [4] = USB2_PORT_MID(OC3), // Type-C Port2
195 [5] = USB2_PORT_MID(OC3), // Type-C Port3 / MECC
Felix Singerbc8f5402024-06-27 22:58:52 +0200196 [9] = USB2_PORT_MID(OC3), // CNVi/BT
197 }"
198
199 register "usb3_ports" = "{
200 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
201 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
202 [3] = USB3_PORT_DEFAULT(OC3), // USB3/USB2 Flex Connector
203 }"
204 end
Felix Singerf13284c2024-06-27 21:09:11 +0200205 device ref south_xdci on end
206 device ref shared_ram on end
207 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700208 chip drivers/wifi/generic
209 register "wake" = "GPE0_PME_B0"
210 device generic 0 on end
211 end
Felix Singerf13284c2024-06-27 21:09:11 +0200212 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800213
Felix Singerf13284c2024-06-27 21:09:11 +0200214 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700215 chip drivers/i2c/generic
216 register "hid" = ""10EC1308""
217 register "name" = ""RTAM""
218 register "desc" = ""Realtek RT1308 Codec""
219 device i2c 10 on end
220 end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800221 chip drivers/i2c/max98373
222 register "vmon_slot_no" = "4"
223 register "imon_slot_no" = "5"
224 register "uid" = "0"
225 register "desc" = ""RIGHT SPEAKER AMP""
226 register "name" = ""MAXR""
227 device i2c 31 on end
228 end
229 chip drivers/i2c/max98373
230 register "vmon_slot_no" = "6"
231 register "imon_slot_no" = "7"
232 register "uid" = "1"
233 register "desc" = ""LEFT SPEAKER AMP""
234 register "name" = ""MAXL""
235 device i2c 32 on end
236 end
237 chip drivers/i2c/generic
238 register "hid" = ""10EC5682""
239 register "name" = ""RT58""
240 register "desc" = ""Realtek RT5682""
241 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
242 register "probed" = "1"
243 # Set the jd_src to RT5668_JD1 for jack detection
244 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
245 register "property_list[0].name" = ""realtek,jd-src""
246 register "property_list[0].integer" = "1"
247 device i2c 1a on end
248 end
Felix Singerf13284c2024-06-27 21:09:11 +0200249 end
250 device ref i2c1 on end
251 device ref i2c2 on end
252 device ref i2c3 on end
253 device ref heci1 on end
254 device ref heci2 off end
255 device ref csme1 off end
256 device ref csme2 off end
257 device ref heci3 off end
258 device ref heci4 off end
259 device ref sata on end
260 device ref i2c4 off end
261 device ref i2c5 on end
262 device ref uart2 on end
263 device ref pcie_rp1 off end
264 device ref pcie_rp2 off end
265 device ref pcie_rp3 on end
266 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800267 chip soc/intel/common/block/pcie/rtd3
268 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
269 register "srcclk_pin" = "2"
270 device generic 0 on end
271 end
Felix Singerf13284c2024-06-27 21:09:11 +0200272 end
273 device ref pcie_rp5 off end
274 device ref pcie_rp6 off end
275 device ref pcie_rp7 off end
276 device ref pcie_rp8 off end
277 device ref pcie_rp9 on end
278 device ref pcie_rp10 off end
279 device ref pcie_rp11 on end
280 device ref pcie_rp12 off end
281 device ref uart0 off end
282 device ref uart1 off end
283 device ref gspi0 on end
284 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700285 chip drivers/spi/acpi
286 register "hid" = "ACPI_DT_NAMESPACE_HID"
287 register "compat_string" = ""google,cr50""
288 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
289 device spi 0 on end
290 end
Felix Singerf13284c2024-06-27 21:09:11 +0200291 end
292 device ref pch_espi on
Felix Singer6ce6a5b2024-06-27 23:14:31 +0200293 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
294 register "gen1_dec" = "0x00fc0801"
295 register "gen2_dec" = "0x000c0201"
296 # EC memory map range is 0x900-0x9ff
297 register "gen3_dec" = "0x00fc0901"
298
John Zhaod05b15e2020-07-25 17:23:53 -0700299 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600300 use conn0 as mux_conn[0]
301 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700302 device pnp 0c09.0 on end
303 end
Felix Singerf13284c2024-06-27 21:09:11 +0200304 end
305 device ref p2sb on end
306 device ref pmc hidden
John Zhao8466ac02020-07-13 09:29:33 -0700307 # The pmc_mux chip driver is a placeholder for the
308 # PMC.MUX device in the ACPI hierarchy.
309 chip drivers/intel/pmc_mux
310 device generic 0 on
311 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100312 use usb2_port6 as usb2_port
313 use tcss_usb3_port3 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700314 # SBU is fixed, HSL follows CC
315 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600316 device generic 0 alias conn0 on end
John Zhao8466ac02020-07-13 09:29:33 -0700317 end
318 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100319 use usb2_port5 as usb2_port
320 use tcss_usb3_port2 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700321 # SBU is fixed, HSL follows CC
322 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600323 device generic 1 alias conn1 on end
John Zhao8466ac02020-07-13 09:29:33 -0700324 end
325 end
326 end
Felix Singerf13284c2024-06-27 21:09:11 +0200327 end
Felix Singer1f5a2212024-06-28 00:15:22 +0200328 device ref hda on
329 register "PchHdaDspEnable" = "1"
330 register "PchHdaAudioLinkDmicEnable" = "{
331 [0] = 1,
332 [1] = 1,
333 }"
334 register "PchHdaAudioLinkSspEnable" = "{
335 [0] = 1,
336 [2] = 1,
337 }"
338 register "PchHdaAudioLinkSndwEnable[0]" = "1"
339 end
Felix Singerf13284c2024-06-27 21:09:11 +0200340 device ref smbus on end
341 device ref fast_spi on end
342 device ref gbe off end
343 device ref tracehub off end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800344 end
345end