blob: 9853f49f43f962fe24a52cb2f282e695deba5946 [file] [log] [blame]
Nick Vaccaro17999942018-04-23 17:13:52 -07001chip soc/intel/skylake
2
Matt DeVillier8f424722019-11-27 22:55:43 -06003 # IGD Displays
4 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
5
Nick Vaccaro17999942018-04-23 17:13:52 -07006 # Deep Sx states
7 register "deep_s3_enable_ac" = "0"
8 register "deep_s3_enable_dc" = "0"
9 register "deep_s5_enable_ac" = "1"
10 register "deep_s5_enable_dc" = "1"
Nick Vaccaro82aa8f82018-10-04 13:32:18 -070011 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
Nick Vaccaro17999942018-04-23 17:13:52 -070012
Matt Delcoc1cb6da2018-08-15 11:55:26 -070013 register "eist_enable" = "1"
14
Nick Vaccaro17999942018-04-23 17:13:52 -070015 # GPE configuration
16 # Note that GPE events called out in ASL code rely on this
17 # route. i.e. If this route changes then the affected GPE
18 # offset bits also need to be changed.
Vincent Palatin405eb442018-05-14 12:12:16 +020019 register "gpe0_dw0" = "GPP_C"
Nick Vaccaro17999942018-04-23 17:13:52 -070020 register "gpe0_dw1" = "GPP_D"
21 register "gpe0_dw2" = "GPP_E"
22
Nick Vaccaro17999942018-04-23 17:13:52 -070023 # Enable DPTF
24 register "dptf_enable" = "1"
25
26 # Enable S0ix
Felix Singer743242b2023-06-16 01:33:25 +020027 register "s0ix_enable" = true
Nick Vaccaro17999942018-04-23 17:13:52 -070028
Shaunak Saha261d6262018-08-28 15:46:01 -070029 # Disable Command TriState
30 register "CmdTriStateDis" = "1"
31
Nick Vaccaro17999942018-04-23 17:13:52 -070032 # FSP Configuration
Nick Vaccaro17999942018-04-23 17:13:52 -070033 register "DspEnable" = "1"
34 register "IoBufferOwnership" = "3"
Nick Vaccaro17999942018-04-23 17:13:52 -070035 register "ScsEmmcHs400Enabled" = "1"
Nick Vaccaro17999942018-04-23 17:13:52 -070036 register "SkipExtGfxScan" = "1"
Angel Pons6fadde02021-04-04 16:11:53 +020037 register "SaGv" = "SaGv_Enabled"
Nick Vaccaro17999942018-04-23 17:13:52 -070038 register "PmConfigSlpS3MinAssert" = "2" # 50ms
39 register "PmConfigSlpS4MinAssert" = "1" # 1s
40 register "PmConfigSlpSusMinAssert" = "1" # 500ms
41 register "PmConfigSlpAMinAssert" = "3" # 2s
Nick Vaccaro17999942018-04-23 17:13:52 -070042
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +053043 register "power_limits_config" = "{
44 .tdp_pl1_override = 7,
45 .tdp_pl2_override = 18,
46 .psys_pmax = 45,
47 }"
Nick Vaccaro17999942018-04-23 17:13:52 -070048 register "tcc_offset" = "10"
Nick Vaccaro17999942018-04-23 17:13:52 -070049
Nick Vaccaro17999942018-04-23 17:13:52 -070050 # VR Settings Configuration for 4 Domains
51 #+----------------+-------+-------+-------+-------+
52 #| Domain/Setting | SA | IA | GTUS | GTS |
53 #+----------------+-------+-------+-------+-------+
54 #| Psi1Threshold | 20A | 20A | 20A | 20A |
55 #| Psi2Threshold | 2A | 2A | 2A | 2A |
56 #| Psi3Threshold | 1A | 1A | 1A | 1A |
57 #| Psi3Enable | 1 | 1 | 1 | 1 |
58 #| Psi4Enable | 1 | 1 | 1 | 1 |
59 #| ImonSlope | 0 | 0 | 0 | 0 |
60 #| ImonOffset | 0 | 0 | 0 | 0 |
Nick Vaccaro4cb8ac22018-08-09 16:05:15 -070061 #| IccMax | Set by SoC code per CPU SKU |
Nick Vaccaro17999942018-04-23 17:13:52 -070062 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Pratik Prajapati4c067c82018-06-20 17:04:32 -070063 #| AcLoadline | 14.9 | 4 | 5.7 | 4.57 |
64 #| DcLoadline | 14.2 | 4 | 4.2 | 4.3 |
Nick Vaccaro17999942018-04-23 17:13:52 -070065 #+----------------+-------+-------+-------+-------+
66 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
67 .vr_config_enable = 1,
68 .psi1threshold = VR_CFG_AMP(20),
69 .psi2threshold = VR_CFG_AMP(2),
70 .psi3threshold = VR_CFG_AMP(1),
71 .psi3enable = 1,
72 .psi4enable = 1,
73 .imon_slope = 0x0,
74 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -070075 .voltage_limit = 1520,
76 .ac_loadline = 1490,
77 .dc_loadline = 1420,
78 }"
79
80 register "domain_vr_config[VR_IA_CORE]" = "{
81 .vr_config_enable = 1,
82 .psi1threshold = VR_CFG_AMP(20),
83 .psi2threshold = VR_CFG_AMP(2),
84 .psi3threshold = VR_CFG_AMP(1),
85 .psi3enable = 1,
86 .psi4enable = 1,
87 .imon_slope = 0x0,
88 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -070089 .voltage_limit = 1520,
Pratik Prajapati4c067c82018-06-20 17:04:32 -070090 .ac_loadline = 400,
91 .dc_loadline = 400,
Nick Vaccaro17999942018-04-23 17:13:52 -070092 }"
93
94 register "domain_vr_config[VR_GT_UNSLICED]" = "{
95 .vr_config_enable = 1,
96 .psi1threshold = VR_CFG_AMP(20),
97 .psi2threshold = VR_CFG_AMP(2),
98 .psi3threshold = VR_CFG_AMP(1),
99 .psi3enable = 1,
100 .psi4enable = 1,
101 .imon_slope = 0x0,
102 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -0700103 .voltage_limit = 1520,
104 .ac_loadline = 570,
105 .dc_loadline = 420,
106 }"
107
108 register "domain_vr_config[VR_GT_SLICED]" = "{
109 .vr_config_enable = 1,
110 .psi1threshold = VR_CFG_AMP(20),
111 .psi2threshold = VR_CFG_AMP(2),
112 .psi3threshold = VR_CFG_AMP(1),
113 .psi3enable = 1,
114 .psi4enable = 1,
115 .imon_slope = 0x0,
116 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -0700117 .voltage_limit = 1520,
118 .ac_loadline = 457,
119 .dc_loadline = 430,
120 }"
121
122 # PCIe Root port 1 with SRCCLKREQ1#
123 register "PcieRpEnable[0]" = "1"
124 register "PcieRpClkReqSupport[0]" = "1"
125 register "PcieRpClkReqNumber[0]" = "1"
126 register "PcieRpClkSrcNumber[0]" = "1"
127 register "PcieRpAdvancedErrorReporting[0]" = "1"
128 register "PcieRpLtrEnable[0]" = "1"
129
Angel Ponse16692e2020-08-03 12:54:48 +0200130 # Root port 9 (x2)
131 # PcieRpEnable: Enable root port
132 # PcieRpClkReqSupport: Enable CLKREQ#
133 # PcieRpClkReqNumber: Uses SRCCLKREQ2#
134 # PcieRpClkSrcNumber: Uses 3
135 # PcieRpAdvancedErrorReporting: Enable Advanced Error Reporting
136 # PcieRpLtrEnable: Enable Latency Tolerance Reporting Mechanism
137 register "PcieRpEnable[8]" = "1"
138 register "PcieRpClkReqSupport[8]" = "1"
139 register "PcieRpClkReqNumber[8]" = "2"
140 register "PcieRpClkSrcNumber[8]" = "3"
141 register "PcieRpAdvancedErrorReporting[8]" = "1"
142 register "PcieRpLtrEnable[8]" = "1"
Nick Vaccaro0a2e39d2018-06-06 17:05:15 -0700143
Subrata Banikc4986eb2018-05-09 14:55:09 +0530144 # Intel Common SoC Config
145 #+-------------------+---------------------------+
146 #| Field | Value |
147 #+-------------------+---------------------------+
Subrata Banikc4986eb2018-05-09 14:55:09 +0530148 #| GSPI0 | cr50 TPM. Early init is |
149 #| | required to set up a BAR |
150 #| | for TPM communication |
151 #| | before memory is up |
152 #| I2C0 | Touchscreen |
153 #| I2C1 | Trackpad |
154 #| I2C3 | Camera |
155 #| I2C4 | Audio |
156 #| I2C5 | Rear Camera & SAR |
Subrata Banikc077b222019-08-01 10:50:35 +0530157 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530158 #+-------------------+---------------------------+
159 register "common_soc_config" = "{
Subrata Banikc4986eb2018-05-09 14:55:09 +0530160 .i2c[0] = {
161 .speed = I2C_SPEED_FAST,
162 .rise_time_ns = 98,
163 .fall_time_ns = 38,
164 },
165 .i2c[1] = {
166 .speed = I2C_SPEED_FAST,
167 .speed_config[0] = {
168 .speed = I2C_SPEED_FAST,
169 .scl_lcnt = 186,
170 .scl_hcnt = 93,
171 .sda_hold = 36,
172 },
173 },
174 .i2c[3] = {
175 .speed = I2C_SPEED_FAST,
176 .rise_time_ns = 98,
177 .fall_time_ns = 38,
178 },
179 .i2c[4] = {
180 .speed = I2C_SPEED_FAST,
181 .speed_config[0] = {
182 .speed = I2C_SPEED_FAST,
183 .scl_lcnt = 176,
184 .scl_hcnt = 95,
185 .sda_hold = 36,
186 }
187 },
188 .i2c[5] = {
189 .speed = I2C_SPEED_FAST,
190 .rise_time_ns = 98,
191 .fall_time_ns = 38,
192 },
193 .gspi[0] = {
194 .speed_mhz = 1,
195 .early_init = 1,
196 },
Subrata Banikc077b222019-08-01 10:50:35 +0530197 .pch_thermal_trip = 75,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530198 }"
Nick Vaccaro17999942018-04-23 17:13:52 -0700199 # Touchscreen
200 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
Nick Vaccaro17999942018-04-23 17:13:52 -0700201
202 # Trackpad
203 register "i2c_voltage[1]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700204
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700205 # Front Camera
Nick Vaccaro17999942018-04-23 17:13:52 -0700206 register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700207
208 # Audio
209 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700210
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700211 # Rear Camera & SAR
212 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700213
214 register "SerialIoDevMode" = "{
215 [PchSerialIoIndexI2C0] = PchSerialIoPci,
216 [PchSerialIoIndexI2C1] = PchSerialIoPci,
217 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
218 [PchSerialIoIndexI2C3] = PchSerialIoPci,
219 [PchSerialIoIndexI2C4] = PchSerialIoPci,
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700220 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Nick Vaccaro17999942018-04-23 17:13:52 -0700221 [PchSerialIoIndexSpi0] = PchSerialIoPci,
222 [PchSerialIoIndexSpi1] = PchSerialIoPci,
223 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
224 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
225 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
226 }"
227
Nick Vaccaro17999942018-04-23 17:13:52 -0700228 device domain 0 on
Marvin Evers059476d2023-12-04 02:28:25 +0100229 device ref system_agent on end
230 device ref igpu on end
231 device ref sa_thermal on end
232 device ref imgu on end
233 device ref south_xhci on
Felix Singer6c83a712024-06-23 00:25:18 +0200234 register "usb2_ports" = "{
235 [0] = USB2_PORT_LONG(OC0), // Type-C Port 1
236 [2] = USB2_PORT_SHORT(OC_SKIP), // Bluetooth
237 [4] = USB2_PORT_LONG(OC1), // Type-C Port 2
238 [6] = USB2_PORT_LONG(OC_SKIP), // pogo port
239 }"
240
241 register "usb3_ports" = "{
242 [0] = USB3_PORT_DEFAULT(OC0), // Type-C Port 1
243 [1] = USB3_PORT_DEFAULT(OC1), // Type-C Port 2
244 }"
245
Nick Vaccaro5df5ade2018-11-13 00:53:15 -0800246 chip drivers/usb/acpi
247 register "desc" = ""Root Hub""
248 register "type" = "UPC_TYPE_HUB"
249 device usb 0.0 on
250 chip drivers/usb/acpi
251 register "desc" = ""USB Type C Port 1""
252 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
253 device usb 2.0 on end
254 end
255 chip drivers/usb/acpi
256 register "desc" = ""Bluetooth""
257 register "type" = "UPC_TYPE_INTERNAL"
258 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E2)"
259 device usb 2.2 on end
260 end
261 chip drivers/usb/acpi
262 register "desc" = ""USB Type C Port 2""
263 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
264 device usb 2.4 on end
265 end
266 chip drivers/usb/acpi
267 register "desc" = ""POGO""
268 register "type" = "UPC_TYPE_INTERNAL"
269 device usb 2.6 on end
270 end
271 end
272 end
Marvin Evers059476d2023-12-04 02:28:25 +0100273 end
274 device ref south_xdci on end
275 device ref thermal on end
276 device ref cio on end
277 device ref i2c0 on
Nick Vaccaro006114b2018-05-16 02:48:32 -0700278 chip drivers/i2c/hid
279 register "generic.hid" = ""WCOM50C1""
280 register "generic.desc" = ""WCOM Digitizer""
281 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
282 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Matt DeVillier86425c82022-03-28 23:45:14 -0500283 register "generic.detect" = "1"
Angel Ponse16692e2020-08-03 12:54:48 +0200284 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
285 register "generic.reset_delay_ms" = "20"
286 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
287 register "generic.enable_delay_ms" = "1"
288 register "generic.has_power_resource" = "1"
Nick Vaccaro006114b2018-05-16 02:48:32 -0700289 register "hid_desc_reg_offset" = "0x1"
290 device i2c 0a on end
291 end
Marvin Evers059476d2023-12-04 02:28:25 +0100292 end
293 device ref i2c1 on
Enrico Granata95278a52018-06-20 13:08:23 -0700294 chip drivers/i2c/sx9310
Enrico Granataede8f262018-06-26 16:48:20 -0700295 register "desc" = ""Right SAR Proximity Sensor""
Enrico Granata95278a52018-06-20 13:08:23 -0700296 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)"
Matt Delcob4be7aa2018-08-13 21:36:28 -0700297 register "speed" = "I2C_SPEED_FAST"
Enrico Granataede8f262018-06-26 16:48:20 -0700298 register "uid" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700299 device i2c 28 on end
Gwendal Grignou689c25b2021-01-27 23:29:38 -0800300 register "cs0_ground" = "0x0"
301 register "combined_sensors_count" = "3"
302 register "combined_sensors[0]" = "0"
303 register "combined_sensors[1]" = "1"
304 register "combined_sensors[2]" = "2"
305 register "resolution" = "SX9310_FINEST"
306 register "avg_pos_strength" = "512"
307 register "startup_sensor" = "0"
308 register "proxraw_strength" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700309 end
Marvin Evers059476d2023-12-04 02:28:25 +0100310 end
311 device ref i2c2 off end
312 device ref i2c3 on end
313 device ref heci1 on end
314 device ref heci2 off end
315 device ref csme_ider off end
316 device ref csme_ktr off end
317 device ref heci3 off end
318 device ref sata off end
319 device ref uart2 on end
320 device ref i2c5 on
Enrico Granata95278a52018-06-20 13:08:23 -0700321 chip drivers/i2c/sx9310
322 register "desc" = ""Left SAR Proximity Sensor""
323 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D10_IRQ)"
Matt Delcob4be7aa2018-08-13 21:36:28 -0700324 register "speed" = "I2C_SPEED_FAST"
Enrico Granata95278a52018-06-20 13:08:23 -0700325 register "uid" = "1"
Enrico Granata95278a52018-06-20 13:08:23 -0700326 device i2c 28 on end
Gwendal Grignou689c25b2021-01-27 23:29:38 -0800327 register "cs0_ground" = "0x0"
328 register "combined_sensors_count" = "3"
329 register "combined_sensors[0]" = "0"
330 register "combined_sensors[1]" = "1"
331 register "combined_sensors[2]" = "2"
332 register "resolution" = "SX9310_FINEST"
333 register "avg_pos_strength" = "512"
334 register "startup_sensor" = "0"
335 register "proxraw_strength" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700336 end
Marvin Evers059476d2023-12-04 02:28:25 +0100337 end
338 device ref i2c4 on
Nick Vaccaro17999942018-04-23 17:13:52 -0700339 chip drivers/i2c/max98373
340 register "vmon_slot_no" = "4"
341 register "imon_slot_no" = "5"
342 register "uid" = "0"
343 register "desc" = ""RIGHT SPEAKER AMP""
344 register "name" = ""MAXR""
Sathyanarayana Nujella881ff662018-06-19 12:48:57 -0700345 device i2c 32 on end
Nick Vaccaro17999942018-04-23 17:13:52 -0700346 end
347 chip drivers/i2c/max98373
348 register "vmon_slot_no" = "6"
349 register "imon_slot_no" = "7"
350 register "uid" = "1"
351 register "desc" = ""LEFT SPEAKER AMP""
352 register "name" = ""MAXL""
Sathyanarayana Nujella881ff662018-06-19 12:48:57 -0700353 device i2c 31 on end
Nick Vaccaro17999942018-04-23 17:13:52 -0700354 end
Marvin Evers059476d2023-12-04 02:28:25 +0100355 end
356 device ref pcie_rp1 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700357 chip drivers/wifi/generic
Nick Vaccarod9169f82018-10-05 11:30:46 -0700358 register "wake" = "GPE0_DW2_01"
Nick Vaccaro17999942018-04-23 17:13:52 -0700359 device pci 00.0 on end
360 end
Marvin Evers059476d2023-12-04 02:28:25 +0100361 end
362 device ref pcie_rp2 off end
363 device ref pcie_rp3 off end
364 device ref pcie_rp4 off end
365 device ref pcie_rp5 off end
366 device ref pcie_rp6 off end
367 device ref pcie_rp7 off end
368 device ref pcie_rp8 off end
369 device ref pcie_rp9 on end
370 device ref pcie_rp10 off end
371 device ref pcie_rp11 off end
372 device ref pcie_rp12 off end
373 device ref uart0 off end
374 device ref uart1 off end
375 device ref gspi0 on
Nick Vaccaro17999942018-04-23 17:13:52 -0700376 chip drivers/spi/acpi
377 register "hid" = "ACPI_DT_NAMESPACE_HID"
378 register "compat_string" = ""google,cr50""
379 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
380 device spi 0 on end
381 end
Marvin Evers059476d2023-12-04 02:28:25 +0100382 end
383 device ref gspi1 on
Vincent Palatin405eb442018-05-14 12:12:16 +0200384 chip drivers/spi/acpi
Furquan Shaikh6d2f7d22018-10-11 08:50:09 -0700385 register "name" = ""CRFP""
Vincent Palatin405eb442018-05-14 12:12:16 +0200386 register "hid" = "ACPI_DT_NAMESPACE_HID"
387 register "uid" = "1"
388 register "compat_string" = ""google,cros-ec-spi""
389 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C11_IRQ)"
390 register "wake" = "GPE0_DW0_09" # GPP_C9
Vincent Palatin405eb442018-05-14 12:12:16 +0200391 device spi 0 on end
Nick Vaccaro4f9ff532018-07-26 19:28:03 -0700392 end # FPMCU
Marvin Evers059476d2023-12-04 02:28:25 +0100393 end
394 device ref emmc on end
395 device ref sdio off end
396 device ref sdxc off end
397 device ref lpc_espi on
Felix Singerdcddc53f2024-06-23 03:39:24 +0200398 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
399 register "gen1_dec" = "0x00fc0801"
400 register "gen2_dec" = "0x000c0201"
401 # EC memory map range is 0x900-0x9ff
402 register "gen3_dec" = "0x00fc0901"
403
Nick Vaccaro17999942018-04-23 17:13:52 -0700404 chip ec/google/chromeec
405 device pnp 0c09.0 on end
406 end
Marvin Evers059476d2023-12-04 02:28:25 +0100407 end
408 device ref p2sb on end
409 device ref pmc on end
410 device ref hda on end
411 device ref smbus on end
412 device ref fast_spi on end
413 device ref gbe off end
Nick Vaccaro17999942018-04-23 17:13:52 -0700414 end
415end