blob: 4a523a7a1a5513c0baa6ca50aae0e0430cfc6e3b [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
Wonkyu Kim7e303582020-03-06 14:36:23 -080017 register "usb2_ports[0]" = "USB2_PORT_MID(OC3)" # Type-C Port1
Bora Guvendik7377cda2020-08-28 10:50:47 -070018 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # M.2 WWAN
Jason Le2b341612020-08-27 15:16:32 -070019 register "usb2_ports[2]" = "USB2_PORT_MID(OC0)" # M.2 Bluetooth, USB3/2 Type A Port1
20 register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # USB3/2 Type A Port 1
Wonkyu Kim7e303582020-03-06 14:36:23 -080021 register "usb2_ports[4]" = "USB2_PORT_MID(OC3)" # Type-C Port2
Jason Le2b341612020-08-27 15:16:32 -070022 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3 / MECC
23 register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Not used
24 register "usb2_ports[7]" = "USB2_PORT_EMPTY" # Not used
25 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Not used
Wonkyu Kim7e303582020-03-06 14:36:23 -080026 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # CNVi/BT
27
28 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port1
29 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2
Wonkyu Kim7e303582020-03-06 14:36:23 -080030 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # USB3/USB2 Flex Connector
31
Angel Ponse16692e2020-08-03 12:54:48 +020032 # CPU replacement check
33 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070034
Wonkyu Kim7e303582020-03-06 14:36:23 -080035 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
36 register "gen1_dec" = "0x00fc0801"
37 register "gen2_dec" = "0x000c0201"
38 # EC memory map range is 0x900-0x9ff
39 register "gen3_dec" = "0x00fc0901"
40
Michael Niewöhner45b60802022-01-08 20:47:11 +010041 register "PcieRpSlotImplemented[2]" = "1"
42 register "PcieRpSlotImplemented[3]" = "1"
43 register "PcieRpSlotImplemented[8]" = "1"
44 register "PcieRpSlotImplemented[10]" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -080045
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070046 # Enable PR LTR
47 register "PcieRpLtrEnable[2]" = "1"
48 register "PcieRpLtrEnable[3]" = "1"
49 register "PcieRpLtrEnable[8]" = "1"
50 register "PcieRpLtrEnable[10]" = "1"
51
Wonkyu Kimf787e872020-03-03 01:58:17 -080052 # Hybrid storage mode
53 register "HybridStorageMode" = "1"
54
Wonkyu Kim7e303582020-03-06 14:36:23 -080055 register "PcieClkSrcClkReq[1]" = "1"
56 register "PcieClkSrcClkReq[2]" = "2"
57 register "PcieClkSrcClkReq[3]" = "3"
58
59 register "PcieClkSrcUsage[1]" = "0x2"
60 register "PcieClkSrcUsage[2]" = "0x3"
61 register "PcieClkSrcUsage[3]" = "0x8"
62
63 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020064 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim7e303582020-03-06 14:36:23 -080065
Jason Le2b341612020-08-27 15:16:32 -070066 register "DdiPortAHpd" = "1"
67 register "DdiPortADdc" = "0"
Wonkyu Kim66815112020-03-09 14:48:51 -070068 register "DdiPortBHpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070069 register "DdiPortBDdc" = "1"
70 register "DdiPortCHpd" = "0"
71 register "DdiPortCDdc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080072 register "DdiPort1Hpd" = "1"
Jason Le2b341612020-08-27 15:16:32 -070073 register "DdiPort1Ddc" = "0"
74 register "DdiPort2Hpd" = "1"
75 register "DdiPort2Ddc" = "0"
Wonkyu Kim7e303582020-03-06 14:36:23 -080076
77 register "SerialIoI2cMode" = "{
78 [PchSerialIoIndexI2C0] = PchSerialIoPci,
79 [PchSerialIoIndexI2C1] = PchSerialIoPci,
80 [PchSerialIoIndexI2C2] = PchSerialIoPci,
81 [PchSerialIoIndexI2C3] = PchSerialIoPci,
82 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
83 [PchSerialIoIndexI2C5] = PchSerialIoPci,
84 }"
85
86 register "SerialIoGSpiMode" = "{
87 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070088 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Wonkyu Kim7e303582020-03-06 14:36:23 -080089 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
90 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
91 }"
92
93 register "SerialIoGSpiCsMode" = "{
94 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070095 [PchSerialIoIndexGSPI1] = 1,
Wonkyu Kim7e303582020-03-06 14:36:23 -080096 [PchSerialIoIndexGSPI2] = 0,
97 [PchSerialIoIndexGSPI3] = 0,
98 }"
99
100 register "SerialIoGSpiCsState" = "{
101 [PchSerialIoIndexGSPI0] = 0,
102 [PchSerialIoIndexGSPI1] = 0,
103 [PchSerialIoIndexGSPI2] = 0,
104 [PchSerialIoIndexGSPI3] = 0,
105 }"
106
107 register "SerialIoUartMode" = "{
108 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
109 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
110 [PchSerialIoIndexUART2] = PchSerialIoPci,
111 }"
112
John Zhaob1c53fc2020-05-13 16:27:03 -0700113 # TCSS USB3
114 register "TcssXhciEn" = "1"
115 register "TcssAuxOri" = "0"
116
John Zhao23d3ad02020-06-30 17:36:24 -0700117 # Enable S0ix
118 register "s0ix_enable" = "1"
119
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530120 # Enable DPTF
121 register "dptf_enable" = "1"
122
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530123 # Add PL1 and PL2 values
124 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
125 .tdp_pl1_override = 9,
126 .tdp_pl2_override = 35,
127 .tdp_pl4 = 66,
128 }"
129 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
130 .tdp_pl1_override = 9,
131 .tdp_pl2_override = 40,
132 .tdp_pl4 = 83,
133 }"
134
Wonkyu Kim7e303582020-03-06 14:36:23 -0800135 #HD Audio
136 register "PchHdaDspEnable" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -0800137 register "PchHdaAudioLinkDmicEnable[0]" = "1"
138 register "PchHdaAudioLinkDmicEnable[1]" = "1"
139 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700140 register "PchHdaAudioLinkSspEnable[2]" = "1"
141 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Wonkyu Kim7e303582020-03-06 14:36:23 -0800142
Wonkyu Kim5c271822020-04-03 00:42:22 -0700143 # Intel Common SoC Config
144 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700145 .gspi[1] = {
146 .speed_mhz = 1,
147 .early_init = 1,
148 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700149 .i2c[0] = {
150 .speed = I2C_SPEED_FAST,
151 },
152 .i2c[1] = {
153 .speed = I2C_SPEED_FAST,
154 },
155 .i2c[2] = {
156 .speed = I2C_SPEED_FAST,
157 },
158 .i2c[3] = {
159 .speed = I2C_SPEED_FAST,
160 },
161 .i2c[5] = {
162 .speed = I2C_SPEED_FAST,
163 },
164 }"
165
Wonkyu Kim7e303582020-03-06 14:36:23 -0800166 device domain 0 on
167 #From EDS(575683)
Felix Singerf13284c2024-06-27 21:09:11 +0200168 device ref system_agent on end
169 device ref igpu on end
170 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530171 # Default DPTF Policy for all tglrvp_up4 boards if not overridden
172 chip drivers/intel/dptf
173 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
174 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
175
176 # Power Limits Control
177 register "controls.power_limits.pl1" = "{
178 .min_power = 3000,
179 .max_power = 9000,
180 .time_window_min = 28 * MSECS_PER_SEC,
181 .time_window_max = 32 * MSECS_PER_SEC,
182 .granularity = 200,}"
183 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530184 .min_power = 40000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530185 .max_power = 40000,
186 .time_window_min = 28 * MSECS_PER_SEC,
187 .time_window_max = 32 * MSECS_PER_SEC,
188 .granularity = 1000,}"
189 device generic 0 on end
190 end
Felix Singerf13284c2024-06-27 21:09:11 +0200191 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530192
Felix Singerf13284c2024-06-27 21:09:11 +0200193 device ref ipu on end
194 device ref peg on end
195 device ref tbt_pcie_rp0 on end
196 device ref tbt_pcie_rp1 on end
197 device ref tbt_pcie_rp2 on end
198 device ref tbt_pcie_rp3 off end
199 device ref gna off end
200 device ref npk off end
201 device ref crashlog off end
202 device ref north_xhci on end
203 device ref north_xdci on end
204 device ref tbt_dma0 on end
205 device ref tbt_dma1 on end
206 device ref vmd off end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800207
Felix Singerf13284c2024-06-27 21:09:11 +0200208 device ref thc0 off end
209 device ref thc1 off end
210 device ref ish on
li feng23954252020-03-12 16:38:34 -0700211 chip drivers/intel/ish
212 register "firmware_name" = ""tglrvp_ish.bin""
213 device generic 0 on end
214 end
215 end
Felix Singerf13284c2024-06-27 21:09:11 +0200216 device ref gspi2 off end
217 device ref gspi3 off end
218 device ref south_xhci on end
219 device ref south_xdci on end
220 device ref shared_ram on end
221 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700222 chip drivers/wifi/generic
223 register "wake" = "GPE0_PME_B0"
224 device generic 0 on end
225 end
Felix Singerf13284c2024-06-27 21:09:11 +0200226 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800227
Felix Singerf13284c2024-06-27 21:09:11 +0200228 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700229 chip drivers/i2c/generic
230 register "hid" = ""10EC1308""
231 register "name" = ""RTAM""
232 register "desc" = ""Realtek RT1308 Codec""
233 device i2c 10 on end
234 end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800235 chip drivers/i2c/max98373
236 register "vmon_slot_no" = "4"
237 register "imon_slot_no" = "5"
238 register "uid" = "0"
239 register "desc" = ""RIGHT SPEAKER AMP""
240 register "name" = ""MAXR""
241 device i2c 31 on end
242 end
243 chip drivers/i2c/max98373
244 register "vmon_slot_no" = "6"
245 register "imon_slot_no" = "7"
246 register "uid" = "1"
247 register "desc" = ""LEFT SPEAKER AMP""
248 register "name" = ""MAXL""
249 device i2c 32 on end
250 end
251 chip drivers/i2c/generic
252 register "hid" = ""10EC5682""
253 register "name" = ""RT58""
254 register "desc" = ""Realtek RT5682""
255 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
256 register "probed" = "1"
257 # Set the jd_src to RT5668_JD1 for jack detection
258 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
259 register "property_list[0].name" = ""realtek,jd-src""
260 register "property_list[0].integer" = "1"
261 device i2c 1a on end
262 end
Felix Singerf13284c2024-06-27 21:09:11 +0200263 end
264 device ref i2c1 on end
265 device ref i2c2 on end
266 device ref i2c3 on end
267 device ref heci1 on end
268 device ref heci2 off end
269 device ref csme1 off end
270 device ref csme2 off end
271 device ref heci3 off end
272 device ref heci4 off end
273 device ref sata on end
274 device ref i2c4 off end
275 device ref i2c5 on end
276 device ref uart2 on end
277 device ref pcie_rp1 off end
278 device ref pcie_rp2 off end
279 device ref pcie_rp3 on end
280 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800281 chip soc/intel/common/block/pcie/rtd3
282 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
283 register "srcclk_pin" = "2"
284 device generic 0 on end
285 end
Felix Singerf13284c2024-06-27 21:09:11 +0200286 end
287 device ref pcie_rp5 off end
288 device ref pcie_rp6 off end
289 device ref pcie_rp7 off end
290 device ref pcie_rp8 off end
291 device ref pcie_rp9 on end
292 device ref pcie_rp10 off end
293 device ref pcie_rp11 on end
294 device ref pcie_rp12 off end
295 device ref uart0 off end
296 device ref uart1 off end
297 device ref gspi0 on end
298 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700299 chip drivers/spi/acpi
300 register "hid" = "ACPI_DT_NAMESPACE_HID"
301 register "compat_string" = ""google,cr50""
302 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
303 device spi 0 on end
304 end
Felix Singerf13284c2024-06-27 21:09:11 +0200305 end
306 device ref pch_espi on
John Zhaod05b15e2020-07-25 17:23:53 -0700307 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600308 use conn0 as mux_conn[0]
309 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700310 device pnp 0c09.0 on end
311 end
Felix Singerf13284c2024-06-27 21:09:11 +0200312 end
313 device ref p2sb on end
314 device ref pmc hidden
John Zhao8466ac02020-07-13 09:29:33 -0700315 # The pmc_mux chip driver is a placeholder for the
316 # PMC.MUX device in the ACPI hierarchy.
317 chip drivers/intel/pmc_mux
318 device generic 0 on
319 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100320 use usb2_port6 as usb2_port
321 use tcss_usb3_port3 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700322 # SBU is fixed, HSL follows CC
323 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600324 device generic 0 alias conn0 on end
John Zhao8466ac02020-07-13 09:29:33 -0700325 end
326 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100327 use usb2_port5 as usb2_port
328 use tcss_usb3_port2 as usb3_port
John Zhao8466ac02020-07-13 09:29:33 -0700329 # SBU is fixed, HSL follows CC
330 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600331 device generic 1 alias conn1 on end
John Zhao8466ac02020-07-13 09:29:33 -0700332 end
333 end
334 end
Felix Singerf13284c2024-06-27 21:09:11 +0200335 end
336 device ref hda on end
337 device ref smbus on end
338 device ref fast_spi on end
339 device ref gbe off end
340 device ref tracehub off end
Wonkyu Kim7e303582020-03-06 14:36:23 -0800341 end
342end