blob: f03f67734ca1364da8ffd529ab33247b1a4dc4ad [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 Kimd2500632020-01-21 21:54:14 -080062 register "SataSalpSupport" = "1"
63 register "SataPortsEnable[0]" = "1"
64 register "SataPortsEnable[1]" = "1"
65
Wonkyu Kim46cef442020-01-23 00:12:46 -080066 # enabling EDP in PortA
Angel Ponsda4e1d72022-05-04 17:08:11 +020067 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
Wonkyu Kim46cef442020-01-23 00:12:46 -080068
Wonkyu Kim34944be2020-03-02 22:18:26 -080069 register "DdiPortBHpd" = "1"
Wonkyu Kim46cef442020-01-23 00:12:46 -080070 register "DdiPort1Hpd" = "1"
71 register "DdiPort1Ddc" = "1"
72
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080073 register "SerialIoI2cMode" = "{
74 [PchSerialIoIndexI2C0] = PchSerialIoPci,
75 [PchSerialIoIndexI2C1] = PchSerialIoPci,
76 [PchSerialIoIndexI2C2] = PchSerialIoPci,
77 [PchSerialIoIndexI2C3] = PchSerialIoPci,
78 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
79 [PchSerialIoIndexI2C5] = PchSerialIoPci,
80 }"
81
82 register "SerialIoGSpiMode" = "{
83 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070084 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080085 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
86 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
87 }"
88
89 register "SerialIoGSpiCsMode" = "{
90 [PchSerialIoIndexGSPI0] = 0,
Shaunak Sahab449b9c2020-08-23 21:35:21 -070091 [PchSerialIoIndexGSPI1] = 1,
Ravi Sarawadi97e1e3e2019-12-24 15:54:56 -080092 [PchSerialIoIndexGSPI2] = 0,
93 [PchSerialIoIndexGSPI3] = 0,
94 }"
95
96 register "SerialIoGSpiCsState" = "{
97 [PchSerialIoIndexGSPI0] = 0,
98 [PchSerialIoIndexGSPI1] = 0,
99 [PchSerialIoIndexGSPI2] = 0,
100 [PchSerialIoIndexGSPI3] = 0,
101 }"
102
103 register "SerialIoUartMode" = "{
104 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
105 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
106 [PchSerialIoIndexUART2] = PchSerialIoPci,
107 }"
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800108
John Zhaob1c53fc2020-05-13 16:27:03 -0700109 # TCSS USB3
110 register "TcssXhciEn" = "1"
111 register "TcssAuxOri" = "0"
112
John Zhao23d3ad02020-06-30 17:36:24 -0700113 # Enable S0ix
114 register "s0ix_enable" = "1"
115
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530116 # Enable DPTF
117 register "dptf_enable" = "1"
118
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530119 # Add PL1 and PL2 values
120 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
121 .tdp_pl1_override = 15,
122 .tdp_pl2_override = 38,
123 .tdp_pl4 = 71,
124 }"
125 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
126 .tdp_pl1_override = 15,
127 .tdp_pl2_override = 60,
128 .tdp_pl4 = 105,
129 }"
130
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800131 #HD Audio
132 register "PchHdaDspEnable" = "1"
133 register "PchHdaAudioLinkHdaEnable" = "0"
134 register "PchHdaAudioLinkDmicEnable[0]" = "1"
135 register "PchHdaAudioLinkDmicEnable[1]" = "1"
136 register "PchHdaAudioLinkSspEnable[0]" = "1"
Srinidhi N Kaushik6975e072020-03-12 01:22:01 -0700137 register "PchHdaAudioLinkSspEnable[1]" = "0"
138 register "PchHdaAudioLinkSspEnable[2]" = "1"
139 register "PchHdaAudioLinkSndwEnable[0]" = "1"
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800140
Wonkyu Kim5c271822020-04-03 00:42:22 -0700141 # Intel Common SoC Config
142 register "common_soc_config" = "{
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700143 .gspi[1] = {
144 .speed_mhz = 1,
145 .early_init = 1,
146 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700147 .i2c[0] = {
148 .speed = I2C_SPEED_FAST,
149 },
150 .i2c[1] = {
151 .speed = I2C_SPEED_FAST,
152 },
153 .i2c[2] = {
154 .speed = I2C_SPEED_FAST,
Angel Ponse16692e2020-08-03 12:54:48 +0200155 },
Wonkyu Kim5c271822020-04-03 00:42:22 -0700156 .i2c[3] = {
157 .speed = I2C_SPEED_FAST,
158 },
159 .i2c[5] = {
160 .speed = I2C_SPEED_FAST,
161 },
162 }"
163
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800164 device domain 0 on
Felix Singerf13284c2024-06-27 21:09:11 +0200165 device ref system_agent on end
166 device ref igpu on end
167 device ref dptf on
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530168 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
169 chip drivers/intel/dptf
170 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
171 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
172
173 # Power Limits Control
174 register "controls.power_limits.pl1" = "{
175 .min_power = 3000,
176 .max_power = 15000,
177 .time_window_min = 28 * MSECS_PER_SEC,
178 .time_window_max = 32 * MSECS_PER_SEC,
179 .granularity = 200,}"
180 register "controls.power_limits.pl2" = "{
Sumeet Pawnikar681a59d2021-07-05 17:15:51 +0530181 .min_power = 60000,
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530182 .max_power = 60000,
183 .time_window_min = 28 * MSECS_PER_SEC,
184 .time_window_max = 32 * MSECS_PER_SEC,
185 .granularity = 1000,}"
186 device generic 0 on end
187 end
Felix Singerf13284c2024-06-27 21:09:11 +0200188 end
Sumeet R Pawnikar06b35e52020-09-09 23:44:06 +0530189
Felix Singerf13284c2024-06-27 21:09:11 +0200190 device ref ipu on end
191 device ref peg on end
192 device ref tbt_pcie_rp0 on end
193 device ref tbt_pcie_rp1 on end
194 device ref tbt_pcie_rp2 on end
195 device ref tbt_pcie_rp3 on end
196 device ref gna off end
197 device ref npk off end
198 device ref crashlog off end
199 device ref north_xhci on end
200 device ref north_xdci on end
201 device ref tbt_dma0 on end
202 device ref tbt_dma1 on end
203 device ref vmd off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800204
Felix Singerf13284c2024-06-27 21:09:11 +0200205 device ref thc0 off end
206 device ref thc1 off end
207 device ref ish on
li feng23954252020-03-12 16:38:34 -0700208 chip drivers/intel/ish
209 register "firmware_name" = ""tglrvp_ish.bin""
210 device generic 0 on end
211 end
212 end
Felix Singerf13284c2024-06-27 21:09:11 +0200213 device ref gspi2 off end
214 device ref gspi3 off end
215 device ref south_xhci on end
216 device ref south_xdci on end
217 device ref shared_ram on end
218 device ref cnvi_wifi on
Furquan Shaikhedac4ef2020-10-09 08:50:14 -0700219 chip drivers/wifi/generic
220 register "wake" = "GPE0_PME_B0"
221 device generic 0 on end
222 end
Felix Singerf13284c2024-06-27 21:09:11 +0200223 end
Srinidhi N Kaushikdcd3d072020-03-05 00:41:14 -0800224
Felix Singerf13284c2024-06-27 21:09:11 +0200225 device ref i2c0 on
Shaunak Saha48b388f2020-05-27 22:48:57 -0700226 chip drivers/i2c/generic
227 register "hid" = ""10EC1308""
228 register "name" = ""RTAM""
229 register "desc" = ""Realtek RT1308 Codec""
230 device i2c 10 on end
231 end
Srinidhi N Kaushikb2ecc572020-01-24 10:43:48 -0800232 chip drivers/i2c/max98373
233 register "vmon_slot_no" = "4"
234 register "imon_slot_no" = "5"
235 register "uid" = "0"
236 register "desc" = ""RIGHT SPEAKER AMP""
237 register "name" = ""MAXR""
238 device i2c 31 on end
239 end
240 chip drivers/i2c/max98373
241 register "vmon_slot_no" = "6"
242 register "imon_slot_no" = "7"
243 register "uid" = "1"
244 register "desc" = ""LEFT SPEAKER AMP""
245 register "name" = ""MAXL""
246 device i2c 32 on end
247 end
248 chip drivers/i2c/generic
249 register "hid" = ""10EC5682""
250 register "name" = ""RT58""
251 register "desc" = ""Realtek RT5682""
252 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
253 register "probed" = "1"
254 # Set the jd_src to RT5668_JD1 for jack detection
255 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
256 register "property_list[0].name" = ""realtek,jd-src""
257 register "property_list[0].integer" = "1"
258 device i2c 1a on end
259 end
Felix Singerf13284c2024-06-27 21:09:11 +0200260 end
261 device ref i2c1 on end
262 device ref i2c2 on end
263 device ref i2c3 on end
264 device ref heci1 on end
265 device ref heci2 off end
266 device ref csme1 off end
267 device ref csme2 off end
268 device ref heci3 off end
269 device ref heci4 off end
270 device ref sata on end
271 device ref i2c4 off end
272 device ref i2c5 on end
273 device ref uart2 on end
274 device ref pcie_rp1 off end
275 device ref pcie_rp2 off end
276 device ref pcie_rp3 on end
277 device ref pcie_rp4 on
Bora Guvendik9d4d2d02021-03-01 14:32:16 -0800278 chip soc/intel/common/block/pcie/rtd3
279 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
280 register "srcclk_pin" = "2"
281 device generic 0 on end
282 end
Felix Singerf13284c2024-06-27 21:09:11 +0200283 end
284 device ref pcie_rp5 off end
285 device ref pcie_rp6 off end
286 device ref pcie_rp7 off end
287 device ref pcie_rp8 off end
288 device ref pcie_rp9 on end
289 device ref pcie_rp10 off end
290 device ref pcie_rp11 on end
291 device ref pcie_rp12 off end
292 device ref uart0 off end
293 device ref uart1 off end
294 device ref gspi0 on end
295 device ref gspi1 on
Shaunak Sahab449b9c2020-08-23 21:35:21 -0700296 chip drivers/spi/acpi
297 register "hid" = "ACPI_DT_NAMESPACE_HID"
298 register "compat_string" = ""google,cr50""
299 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
300 device spi 0 on end
301 end
Felix Singerf13284c2024-06-27 21:09:11 +0200302 end
303 device ref pch_espi on
John Zhaod05b15e2020-07-25 17:23:53 -0700304 chip ec/google/chromeec
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600305 use conn0 as mux_conn[0]
306 use conn1 as mux_conn[1]
John Zhaod05b15e2020-07-25 17:23:53 -0700307 device pnp 0c09.0 on end
308 end
Felix Singerf13284c2024-06-27 21:09:11 +0200309 end
310 device ref p2sb on end
311 device ref pmc hidden
John Zhao7b46aae2020-06-30 15:44:44 -0700312 # The pmc_mux chip driver is a placeholder for the
313 # PMC.MUX device in the ACPI hierarchy.
314 chip drivers/intel/pmc_mux
315 device generic 0 on
316 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100317 use usb2_port6 as usb2_port
318 use tcss_usb3_port3 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700319 # SBU is fixed, HSL follows CC
320 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600321 device generic 0 alias conn0 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700322 end
323 chip drivers/intel/pmc_mux/conn
Reka Normand448f8c2021-12-09 12:09:27 +1100324 use usb2_port7 as usb2_port
325 use tcss_usb3_port4 as usb3_port
John Zhao7b46aae2020-06-30 15:44:44 -0700326 # SBU is fixed, HSL follows CC
327 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
Tim Wawrzynczakeafe7982020-09-30 13:59:21 -0600328 device generic 1 alias conn1 on end
John Zhao7b46aae2020-06-30 15:44:44 -0700329 end
330 end
331 end
Felix Singerf13284c2024-06-27 21:09:11 +0200332 end
333 device ref hda on end
334 device ref smbus on end
335 device ref fast_spi on end
336 device ref gbe off end
337 device ref tracehub off end
Ravi Sarawadiebb2d3c2019-12-19 23:01:48 -0800338 end
339end