blob: ecad52e60a79d47f705dba79ba6ea517f5bb512a [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
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080017 register "usb2_ports[0]" = "USB2_PORT_MID(OC0)" # Type-C Port1
Bora Guvendik7377cda2020-08-28 10:50:47 -070018 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # M.2 WWAN
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080019 register "usb2_ports[2]" = "USB2_PORT_MID(OC3)" # M.2 Bluetooth
20 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port1
21 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-C Port2
22 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-C Port3
23 register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-C Port4
24 register "usb2_ports[7]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port2
25 register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # USB2 Type A port3
26 register "usb2_ports[9]" = "USB2_PORT_MID(OC3)" # USB2 Type A port4
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
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080030
Angel Ponse16692e2020-08-03 12:54:48 +020031 # CPU replacement check
32 register "CpuReplacementCheck" = "1"
Jamie Ryuef079c82020-06-24 15:55:10 -070033
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080034 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
35 register "gen1_dec" = "0x00fc0801"
36 register "gen2_dec" = "0x000c0201"
37 # EC memory map range is 0x900-0x9ff
38 register "gen3_dec" = "0x00fc0901"
39
Michael Niewöhner45b60802022-01-08 20:47:11 +010040 register "PcieRpSlotImplemented[2]" = "1"
41 register "PcieRpSlotImplemented[3]" = "1"
42 register "PcieRpSlotImplemented[8]" = "1"
43 register "PcieRpSlotImplemented[10]" = "1"
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080044
Wonkyu Kim53ac68e2020-04-07 23:37:11 -070045 # Enable RP LTR
46 register "PcieRpLtrEnable[2]" = "1"
47 register "PcieRpLtrEnable[3]" = "1"
48 register "PcieRpLtrEnable[8]" = "1"
49 register "PcieRpLtrEnable[10]" = "1"
50
Wonkyu Kimf787e872020-03-03 01:58:17 -080051 # Hybrid storage mode
52 register "HybridStorageMode" = "1"
53
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080054 register "PcieClkSrcClkReq[1]" = "1"
55 register "PcieClkSrcClkReq[2]" = "2"
56 register "PcieClkSrcClkReq[3]" = "3"
57
58 register "PcieClkSrcUsage[1]" = "0x2"
59 register "PcieClkSrcUsage[2]" = "0x3"
60 register "PcieClkSrcUsage[3]" = "0x8"
61
Wonkyu Kim46cef442020-01-23 00:12:46 -080062 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020063 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim46cef442020-01-23 00:12:46 -080064
Wonkyu Kim34944be2020-03-02 22:18:26 -080065 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080066 register "DdiPort1Hpd" = "1"
67 register "DdiPort1Ddc" = "1"
68
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080069 register "SerialIoI2cMode" = "{
70 [PchSerialIoIndexI2C0] = PchSerialIoPci,
71 [PchSerialIoIndexI2C1] = PchSerialIoPci,
72 [PchSerialIoIndexI2C2] = PchSerialIoPci,
73 [PchSerialIoIndexI2C3] = PchSerialIoPci,
74 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
75 [PchSerialIoIndexI2C5] = PchSerialIoPci,
76 }"
77
78 register "SerialIoGSpiMode" = "{
79 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070080 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080081 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
82 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
83 }"
84
85 register "SerialIoGSpiCsMode" = "{
86 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070087 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080088 [PchSerialIoIndexGSPI2] = 0,
89 [PchSerialIoIndexGSPI3] = 0,
90 }"
91
92 register "SerialIoGSpiCsState" = "{
93 [PchSerialIoIndexGSPI0] = 0,
94 [PchSerialIoIndexGSPI1] = 0,
95 [PchSerialIoIndexGSPI2] = 0,
96 [PchSerialIoIndexGSPI3] = 0,
97 }"
98
99 register "SerialIoUartMode" = "{
100 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
101 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
102 [PchSerialIoIndexUART2] = PchSerialIoPci,
103 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800104
John Zhaob1c53fc2020-05-13 16:27:03 -0700105 # TCSS USB3
106 register "TcssXhciEn" = "1"
107 register "TcssAuxOri" = "0"
108
John Zhao23d3ad02020-06-30 17:36:24 -0700109 # Enable S0ix
110 register "s0ix_enable" = "1"
111
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530112 # Enable DPTF
113 register "dptf_enable" = "1"
114
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530115 # Add PL1 and PL2 values
116 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
117 .tdp_pl1_override = 15,
118 .tdp_pl2_override = 38,
119 .tdp_pl4 = 71,
120 }"
121 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
122 .tdp_pl1_override = 15,
123 .tdp_pl2_override = 60,
124 .tdp_pl4 = 105,
125 }"
126
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800127 #HD Audio
128 register "PchHdaDspEnable" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800129 register "PchHdaAudioLinkDmicEnable[0]" = "1"
130 register "PchHdaAudioLinkDmicEnable[1]" = "1"
131 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700132 register "PchHdaAudioLinkSspEnable[2]" = "1"
133 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800134
Wonkyu Kim5c271822020-04-03 00:42:22 -0700135 # Intel Common SoC Config
136 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700137 .gspi[1] = {
138 .speed_mhz = 1,
139 .early_init = 1,
140 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700141 .i2c[0] = {
142 .speed = I2C_SPEED_FAST,
143 },
144 .i2c[1] = {
145 .speed = I2C_SPEED_FAST,
146 },
147 .i2c[2] = {
148 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200149 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700150 .i2c[3] = {
151 .speed = I2C_SPEED_FAST,
152 },
153 .i2c[5] = {
154 .speed = I2C_SPEED_FAST,
155 },
156 }"
157
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800158 device domain 0 on
Felix Singerf13284c2024-06-27 21:09:11 +0200159 device ref system_agent on end
160 device ref igpu on end
161 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530162 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
163 chip drivers/intel/dptf
164 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
165 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
166
167 # Power Limits Control
168 register "controls.power_limits.pl1" = "{
169 .min_power = 3000,
170 .max_power = 15000,
171 .time_window_min = 28 * MSECS_PER_SEC,
172 .time_window_max = 32 * MSECS_PER_SEC,
173 .granularity = 200,}"
174 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530175 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530176 .max_power = 60000,
177 .time_window_min = 28 * MSECS_PER_SEC,
178 .time_window_max = 32 * MSECS_PER_SEC,
179 .granularity = 1000,}"
180 device generic 0 on end
181 end
Felix Singerf13284c2024-06-27 21:09:11 +0200182 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530183
Felix Singerf13284c2024-06-27 21:09:11 +0200184 device ref ipu on end
185 device ref peg on end
186 device ref tbt_pcie_rp0 on end
187 device ref tbt_pcie_rp1 on end
188 device ref tbt_pcie_rp2 on end
189 device ref tbt_pcie_rp3 on end
190 device ref gna off end
191 device ref npk off end
192 device ref crashlog off end
193 device ref north_xhci on end
194 device ref north_xdci on end
195 device ref tbt_dma0 on end
196 device ref tbt_dma1 on end
197 device ref vmd off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800198
Felix Singerf13284c2024-06-27 21:09:11 +0200199 device ref thc0 off end
200 device ref thc1 off end
201 device ref ish on
li feng23954252020-03-12 16:38:34 -0700202 chip drivers/intel/ish
203 register "firmware_name" = ""tglrvp_ish.bin""
204 device generic 0 on end
205 end
206 end
Felix Singerf13284c2024-06-27 21:09:11 +0200207 device ref gspi2 off end
208 device ref gspi3 off end
209 device ref south_xhci on end
210 device ref south_xdci on end
211 device ref shared_ram on end
212 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700213 chip drivers/wifi/generic
214 register "wake" = "GPE0_PME_B0"
215 device generic 0 on end
216 end
Felix Singerf13284c2024-06-27 21:09:11 +0200217 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800218
Felix Singerf13284c2024-06-27 21:09:11 +0200219 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700220 chip drivers/i2c/generic
221 register "hid" = ""10EC1308""
222 register "name" = ""RTAM""
223 register "desc" = ""Realtek RT1308 Codec""
224 device i2c 10 on end
225 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800226 chip drivers/i2c/max98373
227 register "vmon_slot_no" = "4"
228 register "imon_slot_no" = "5"
229 register "uid" = "0"
230 register "desc" = ""RIGHT SPEAKER AMP""
231 register "name" = ""MAXR""
232 device i2c 31 on end
233 end
234 chip drivers/i2c/max98373
235 register "vmon_slot_no" = "6"
236 register "imon_slot_no" = "7"
237 register "uid" = "1"
238 register "desc" = ""LEFT SPEAKER AMP""
239 register "name" = ""MAXL""
240 device i2c 32 on end
241 end
242 chip drivers/i2c/generic
243 register "hid" = ""10EC5682""
244 register "name" = ""RT58""
245 register "desc" = ""Realtek RT5682""
246 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
247 register "probed" = "1"
248 # Set the jd_src to RT5668_JD1 for jack detection
249 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
250 register "property_list[0].name" = ""realtek,jd-src""
251 register "property_list[0].integer" = "1"
252 device i2c 1a on end
253 end
Felix Singerf13284c2024-06-27 21:09:11 +0200254 end
255 device ref i2c1 on end
256 device ref i2c2 on end
257 device ref i2c3 on end
258 device ref heci1 on end
259 device ref heci2 off end
260 device ref csme1 off end
261 device ref csme2 off end
262 device ref heci3 off end
263 device ref heci4 off end
Felix Singer8c1daf92024-06-27 23:25:32 +0200264 device ref sata on
265 register "SataSalpSupport" = "1"
266 register "SataPortsEnable[0]" = "1"
267 register "SataPortsEnable[1]" = "1"
268 end
Felix Singerf13284c2024-06-27 21:09:11 +0200269 device ref i2c4 off end
270 device ref i2c5 on end
271 device ref uart2 on end
272 device ref pcie_rp1 off end
273 device ref pcie_rp2 off end
274 device ref pcie_rp3 on end
275 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800276 chip soc/intel/common/block/pcie/rtd3
277 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
278 register "srcclk_pin" = "2"
279 device generic 0 on end
280 end
Felix Singerf13284c2024-06-27 21:09:11 +0200281 end
282 device ref pcie_rp5 off end
283 device ref pcie_rp6 off end
284 device ref pcie_rp7 off end
285 device ref pcie_rp8 off end
286 device ref pcie_rp9 on end
287 device ref pcie_rp10 off end
288 device ref pcie_rp11 on end
289 device ref pcie_rp12 off end
290 device ref uart0 off end
291 device ref uart1 off end
292 device ref gspi0 on end
293 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700294 chip drivers/spi/acpi
295 register "hid" = "ACPI_DT_NAMESPACE_HID"
296 register "compat_string" = ""google,cr50""
297 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
298 device spi 0 on end
299 end
Felix Singerf13284c2024-06-27 21:09:11 +0200300 end
301 device ref pch_espi on
John Zhaod05b15e2020-07-25 17:23:53 -0700302 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600303 use conn0 as mux_conn[0]
304 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700305 device pnp 0c09.0 on end
306 end
Felix Singerf13284c2024-06-27 21:09:11 +0200307 end
308 device ref p2sb on end
309 device ref pmc hidden
John Zhao7b46aae2020-06-30 15:44:44 -0700310 # The pmc_mux chip driver is a placeholder for the
311 # PMC.MUX device in the ACPI hierarchy.
312 chip drivers/intel/pmc_mux
313 device generic 0 on
314 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100315 use usb2_port6 as usb2_port
316 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700317 # SBU is fixed, HSL follows CC
318 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600319 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700320 end
321 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100322 use usb2_port7 as usb2_port
323 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700324 # SBU is fixed, HSL follows CC
325 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600326 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700327 end
328 end
329 end
Felix Singerf13284c2024-06-27 21:09:11 +0200330 end
331 device ref hda on end
332 device ref smbus on end
333 device ref fast_spi on end
334 device ref gbe off end
335 device ref tracehub off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800336 end
337end