blob: fe6c1cbb68cce9185fcbb0cc31265fc357c0eeb8 [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
23 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
24 register "gen1_dec" = "0x00fc0801"
25 register "gen2_dec" = "0x000c0201"
26 # EC memory map range is 0x900-0x9ff
27 register "gen3_dec" = "0x00fc0901"
28
29 # Enable DPTF
30 register "dptf_enable" = "1"
31
32 # Enable S0ix
Felix Singer743242b2023-06-16 01:33:25 +020033 register "s0ix_enable" = true
Nick Vaccaro17999942018-04-23 17:13:52 -070034
Shaunak Saha261d6262018-08-28 15:46:01 -070035 # Disable Command TriState
36 register "CmdTriStateDis" = "1"
37
Nick Vaccaro17999942018-04-23 17:13:52 -070038 # FSP Configuration
Nick Vaccaro17999942018-04-23 17:13:52 -070039 register "SataPortsEnable[0]" = "0"
Nick Vaccaro17999942018-04-23 17:13:52 -070040 register "DspEnable" = "1"
41 register "IoBufferOwnership" = "3"
Nick Vaccaro17999942018-04-23 17:13:52 -070042 register "ScsEmmcHs400Enabled" = "1"
Nick Vaccaro17999942018-04-23 17:13:52 -070043 register "SkipExtGfxScan" = "1"
Angel Pons6fadde02021-04-04 16:11:53 +020044 register "SaGv" = "SaGv_Enabled"
Nick Vaccaro17999942018-04-23 17:13:52 -070045 register "PmConfigSlpS3MinAssert" = "2" # 50ms
46 register "PmConfigSlpS4MinAssert" = "1" # 1s
47 register "PmConfigSlpSusMinAssert" = "1" # 500ms
48 register "PmConfigSlpAMinAssert" = "3" # 2s
Nick Vaccaro17999942018-04-23 17:13:52 -070049
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +053050 register "power_limits_config" = "{
51 .tdp_pl1_override = 7,
52 .tdp_pl2_override = 18,
53 .psys_pmax = 45,
54 }"
Nick Vaccaro17999942018-04-23 17:13:52 -070055 register "tcc_offset" = "10"
Nick Vaccaro17999942018-04-23 17:13:52 -070056
Nick Vaccaro17999942018-04-23 17:13:52 -070057 # VR Settings Configuration for 4 Domains
58 #+----------------+-------+-------+-------+-------+
59 #| Domain/Setting | SA | IA | GTUS | GTS |
60 #+----------------+-------+-------+-------+-------+
61 #| Psi1Threshold | 20A | 20A | 20A | 20A |
62 #| Psi2Threshold | 2A | 2A | 2A | 2A |
63 #| Psi3Threshold | 1A | 1A | 1A | 1A |
64 #| Psi3Enable | 1 | 1 | 1 | 1 |
65 #| Psi4Enable | 1 | 1 | 1 | 1 |
66 #| ImonSlope | 0 | 0 | 0 | 0 |
67 #| ImonOffset | 0 | 0 | 0 | 0 |
Nick Vaccaro4cb8ac22018-08-09 16:05:15 -070068 #| IccMax | Set by SoC code per CPU SKU |
Nick Vaccaro17999942018-04-23 17:13:52 -070069 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Pratik Prajapati4c067c82018-06-20 17:04:32 -070070 #| AcLoadline | 14.9 | 4 | 5.7 | 4.57 |
71 #| DcLoadline | 14.2 | 4 | 4.2 | 4.3 |
Nick Vaccaro17999942018-04-23 17:13:52 -070072 #+----------------+-------+-------+-------+-------+
73 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
74 .vr_config_enable = 1,
75 .psi1threshold = VR_CFG_AMP(20),
76 .psi2threshold = VR_CFG_AMP(2),
77 .psi3threshold = VR_CFG_AMP(1),
78 .psi3enable = 1,
79 .psi4enable = 1,
80 .imon_slope = 0x0,
81 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -070082 .voltage_limit = 1520,
83 .ac_loadline = 1490,
84 .dc_loadline = 1420,
85 }"
86
87 register "domain_vr_config[VR_IA_CORE]" = "{
88 .vr_config_enable = 1,
89 .psi1threshold = VR_CFG_AMP(20),
90 .psi2threshold = VR_CFG_AMP(2),
91 .psi3threshold = VR_CFG_AMP(1),
92 .psi3enable = 1,
93 .psi4enable = 1,
94 .imon_slope = 0x0,
95 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -070096 .voltage_limit = 1520,
Pratik Prajapati4c067c82018-06-20 17:04:32 -070097 .ac_loadline = 400,
98 .dc_loadline = 400,
Nick Vaccaro17999942018-04-23 17:13:52 -070099 }"
100
101 register "domain_vr_config[VR_GT_UNSLICED]" = "{
102 .vr_config_enable = 1,
103 .psi1threshold = VR_CFG_AMP(20),
104 .psi2threshold = VR_CFG_AMP(2),
105 .psi3threshold = VR_CFG_AMP(1),
106 .psi3enable = 1,
107 .psi4enable = 1,
108 .imon_slope = 0x0,
109 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -0700110 .voltage_limit = 1520,
111 .ac_loadline = 570,
112 .dc_loadline = 420,
113 }"
114
115 register "domain_vr_config[VR_GT_SLICED]" = "{
116 .vr_config_enable = 1,
117 .psi1threshold = VR_CFG_AMP(20),
118 .psi2threshold = VR_CFG_AMP(2),
119 .psi3threshold = VR_CFG_AMP(1),
120 .psi3enable = 1,
121 .psi4enable = 1,
122 .imon_slope = 0x0,
123 .imon_offset = 0x0,
Nick Vaccaro17999942018-04-23 17:13:52 -0700124 .voltage_limit = 1520,
125 .ac_loadline = 457,
126 .dc_loadline = 430,
127 }"
128
129 # PCIe Root port 1 with SRCCLKREQ1#
130 register "PcieRpEnable[0]" = "1"
131 register "PcieRpClkReqSupport[0]" = "1"
132 register "PcieRpClkReqNumber[0]" = "1"
133 register "PcieRpClkSrcNumber[0]" = "1"
134 register "PcieRpAdvancedErrorReporting[0]" = "1"
135 register "PcieRpLtrEnable[0]" = "1"
136
Angel Ponse16692e2020-08-03 12:54:48 +0200137 # Root port 9 (x2)
138 # PcieRpEnable: Enable root port
139 # PcieRpClkReqSupport: Enable CLKREQ#
140 # PcieRpClkReqNumber: Uses SRCCLKREQ2#
141 # PcieRpClkSrcNumber: Uses 3
142 # PcieRpAdvancedErrorReporting: Enable Advanced Error Reporting
143 # PcieRpLtrEnable: Enable Latency Tolerance Reporting Mechanism
144 register "PcieRpEnable[8]" = "1"
145 register "PcieRpClkReqSupport[8]" = "1"
146 register "PcieRpClkReqNumber[8]" = "2"
147 register "PcieRpClkSrcNumber[8]" = "3"
148 register "PcieRpAdvancedErrorReporting[8]" = "1"
149 register "PcieRpLtrEnable[8]" = "1"
Nick Vaccaro0a2e39d2018-06-06 17:05:15 -0700150
Nick Vaccaro17999942018-04-23 17:13:52 -0700151 # USB 2.0
152 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
Nick Vaccaro17999942018-04-23 17:13:52 -0700153 register "usb2_ports[2]" = "USB2_PORT_SHORT(OC_SKIP)" # Bluetooth
154 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
Nick Vaccaroa613ccd2018-05-16 02:47:40 -0700155 register "usb2_ports[6]" = "USB2_PORT_LONG(OC_SKIP)" # pogo port
Nick Vaccaro17999942018-04-23 17:13:52 -0700156
157 # USB 3.0
158 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
159 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
Nick Vaccaro17999942018-04-23 17:13:52 -0700160
Subrata Banikc4986eb2018-05-09 14:55:09 +0530161 # Intel Common SoC Config
162 #+-------------------+---------------------------+
163 #| Field | Value |
164 #+-------------------+---------------------------+
Subrata Banikc4986eb2018-05-09 14:55:09 +0530165 #| GSPI0 | cr50 TPM. Early init is |
166 #| | required to set up a BAR |
167 #| | for TPM communication |
168 #| | before memory is up |
169 #| I2C0 | Touchscreen |
170 #| I2C1 | Trackpad |
171 #| I2C3 | Camera |
172 #| I2C4 | Audio |
173 #| I2C5 | Rear Camera & SAR |
Subrata Banikc077b222019-08-01 10:50:35 +0530174 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530175 #+-------------------+---------------------------+
176 register "common_soc_config" = "{
Subrata Banikc4986eb2018-05-09 14:55:09 +0530177 .i2c[0] = {
178 .speed = I2C_SPEED_FAST,
179 .rise_time_ns = 98,
180 .fall_time_ns = 38,
181 },
182 .i2c[1] = {
183 .speed = I2C_SPEED_FAST,
184 .speed_config[0] = {
185 .speed = I2C_SPEED_FAST,
186 .scl_lcnt = 186,
187 .scl_hcnt = 93,
188 .sda_hold = 36,
189 },
190 },
191 .i2c[3] = {
192 .speed = I2C_SPEED_FAST,
193 .rise_time_ns = 98,
194 .fall_time_ns = 38,
195 },
196 .i2c[4] = {
197 .speed = I2C_SPEED_FAST,
198 .speed_config[0] = {
199 .speed = I2C_SPEED_FAST,
200 .scl_lcnt = 176,
201 .scl_hcnt = 95,
202 .sda_hold = 36,
203 }
204 },
205 .i2c[5] = {
206 .speed = I2C_SPEED_FAST,
207 .rise_time_ns = 98,
208 .fall_time_ns = 38,
209 },
210 .gspi[0] = {
211 .speed_mhz = 1,
212 .early_init = 1,
213 },
Subrata Banikc077b222019-08-01 10:50:35 +0530214 .pch_thermal_trip = 75,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530215 }"
Nick Vaccaro17999942018-04-23 17:13:52 -0700216 # Touchscreen
217 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
Nick Vaccaro17999942018-04-23 17:13:52 -0700218
219 # Trackpad
220 register "i2c_voltage[1]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700221
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700222 # Front Camera
Nick Vaccaro17999942018-04-23 17:13:52 -0700223 register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700224
225 # Audio
226 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700227
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700228 # Rear Camera & SAR
229 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Nick Vaccaro17999942018-04-23 17:13:52 -0700230
231 register "SerialIoDevMode" = "{
232 [PchSerialIoIndexI2C0] = PchSerialIoPci,
233 [PchSerialIoIndexI2C1] = PchSerialIoPci,
234 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
235 [PchSerialIoIndexI2C3] = PchSerialIoPci,
236 [PchSerialIoIndexI2C4] = PchSerialIoPci,
Nick Vaccaroba959ad2018-05-16 02:52:28 -0700237 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Nick Vaccaro17999942018-04-23 17:13:52 -0700238 [PchSerialIoIndexSpi0] = PchSerialIoPci,
239 [PchSerialIoIndexSpi1] = PchSerialIoPci,
240 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
241 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
242 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
243 }"
244
Nick Vaccaro17999942018-04-23 17:13:52 -0700245 device domain 0 on
Marvin Evers059476d2023-12-04 02:28:25 +0100246 device ref system_agent on end
247 device ref igpu on end
248 device ref sa_thermal on end
249 device ref imgu on end
250 device ref south_xhci on
Nick Vaccaro5df5ade2018-11-13 00:53:15 -0800251 chip drivers/usb/acpi
252 register "desc" = ""Root Hub""
253 register "type" = "UPC_TYPE_HUB"
254 device usb 0.0 on
255 chip drivers/usb/acpi
256 register "desc" = ""USB Type C Port 1""
257 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
258 device usb 2.0 on end
259 end
260 chip drivers/usb/acpi
261 register "desc" = ""Bluetooth""
262 register "type" = "UPC_TYPE_INTERNAL"
263 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E2)"
264 device usb 2.2 on end
265 end
266 chip drivers/usb/acpi
267 register "desc" = ""USB Type C Port 2""
268 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
269 device usb 2.4 on end
270 end
271 chip drivers/usb/acpi
272 register "desc" = ""POGO""
273 register "type" = "UPC_TYPE_INTERNAL"
274 device usb 2.6 on end
275 end
276 end
277 end
Marvin Evers059476d2023-12-04 02:28:25 +0100278 end
279 device ref south_xdci on end
280 device ref thermal on end
281 device ref cio on end
282 device ref i2c0 on
Nick Vaccaro006114b2018-05-16 02:48:32 -0700283 chip drivers/i2c/hid
284 register "generic.hid" = ""WCOM50C1""
285 register "generic.desc" = ""WCOM Digitizer""
286 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
287 register "generic.speed" = "I2C_SPEED_FAST_PLUS"
Matt DeVillier86425c82022-03-28 23:45:14 -0500288 register "generic.detect" = "1"
Angel Ponse16692e2020-08-03 12:54:48 +0200289 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
290 register "generic.reset_delay_ms" = "20"
291 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
292 register "generic.enable_delay_ms" = "1"
293 register "generic.has_power_resource" = "1"
Nick Vaccaro006114b2018-05-16 02:48:32 -0700294 register "hid_desc_reg_offset" = "0x1"
295 device i2c 0a on end
296 end
Marvin Evers059476d2023-12-04 02:28:25 +0100297 end
298 device ref i2c1 on
Enrico Granata95278a52018-06-20 13:08:23 -0700299 chip drivers/i2c/sx9310
Enrico Granataede8f262018-06-26 16:48:20 -0700300 register "desc" = ""Right SAR Proximity Sensor""
Enrico Granata95278a52018-06-20 13:08:23 -0700301 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)"
Matt Delcob4be7aa2018-08-13 21:36:28 -0700302 register "speed" = "I2C_SPEED_FAST"
Enrico Granataede8f262018-06-26 16:48:20 -0700303 register "uid" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700304 device i2c 28 on end
Gwendal Grignou689c25b2021-01-27 23:29:38 -0800305 register "cs0_ground" = "0x0"
306 register "combined_sensors_count" = "3"
307 register "combined_sensors[0]" = "0"
308 register "combined_sensors[1]" = "1"
309 register "combined_sensors[2]" = "2"
310 register "resolution" = "SX9310_FINEST"
311 register "avg_pos_strength" = "512"
312 register "startup_sensor" = "0"
313 register "proxraw_strength" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700314 end
Marvin Evers059476d2023-12-04 02:28:25 +0100315 end
316 device ref i2c2 off end
317 device ref i2c3 on end
318 device ref heci1 on end
319 device ref heci2 off end
320 device ref csme_ider off end
321 device ref csme_ktr off end
322 device ref heci3 off end
323 device ref sata off end
324 device ref uart2 on end
325 device ref i2c5 on
Enrico Granata95278a52018-06-20 13:08:23 -0700326 chip drivers/i2c/sx9310
327 register "desc" = ""Left SAR Proximity Sensor""
328 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D10_IRQ)"
Matt Delcob4be7aa2018-08-13 21:36:28 -0700329 register "speed" = "I2C_SPEED_FAST"
Enrico Granata95278a52018-06-20 13:08:23 -0700330 register "uid" = "1"
Enrico Granata95278a52018-06-20 13:08:23 -0700331 device i2c 28 on end
Gwendal Grignou689c25b2021-01-27 23:29:38 -0800332 register "cs0_ground" = "0x0"
333 register "combined_sensors_count" = "3"
334 register "combined_sensors[0]" = "0"
335 register "combined_sensors[1]" = "1"
336 register "combined_sensors[2]" = "2"
337 register "resolution" = "SX9310_FINEST"
338 register "avg_pos_strength" = "512"
339 register "startup_sensor" = "0"
340 register "proxraw_strength" = "0"
Enrico Granata95278a52018-06-20 13:08:23 -0700341 end
Marvin Evers059476d2023-12-04 02:28:25 +0100342 end
343 device ref i2c4 on
Nick Vaccaro17999942018-04-23 17:13:52 -0700344 chip drivers/i2c/max98373
345 register "vmon_slot_no" = "4"
346 register "imon_slot_no" = "5"
347 register "uid" = "0"
348 register "desc" = ""RIGHT SPEAKER AMP""
349 register "name" = ""MAXR""
Sathyanarayana Nujella881ff662018-06-19 12:48:57 -0700350 device i2c 32 on end
Nick Vaccaro17999942018-04-23 17:13:52 -0700351 end
352 chip drivers/i2c/max98373
353 register "vmon_slot_no" = "6"
354 register "imon_slot_no" = "7"
355 register "uid" = "1"
356 register "desc" = ""LEFT SPEAKER AMP""
357 register "name" = ""MAXL""
Sathyanarayana Nujella881ff662018-06-19 12:48:57 -0700358 device i2c 31 on end
Nick Vaccaro17999942018-04-23 17:13:52 -0700359 end
Marvin Evers059476d2023-12-04 02:28:25 +0100360 end
361 device ref pcie_rp1 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700362 chip drivers/wifi/generic
Nick Vaccarod9169f82018-10-05 11:30:46 -0700363 register "wake" = "GPE0_DW2_01"
Nick Vaccaro17999942018-04-23 17:13:52 -0700364 device pci 00.0 on end
365 end
Marvin Evers059476d2023-12-04 02:28:25 +0100366 end
367 device ref pcie_rp2 off end
368 device ref pcie_rp3 off end
369 device ref pcie_rp4 off end
370 device ref pcie_rp5 off end
371 device ref pcie_rp6 off end
372 device ref pcie_rp7 off end
373 device ref pcie_rp8 off end
374 device ref pcie_rp9 on end
375 device ref pcie_rp10 off end
376 device ref pcie_rp11 off end
377 device ref pcie_rp12 off end
378 device ref uart0 off end
379 device ref uart1 off end
380 device ref gspi0 on
Nick Vaccaro17999942018-04-23 17:13:52 -0700381 chip drivers/spi/acpi
382 register "hid" = "ACPI_DT_NAMESPACE_HID"
383 register "compat_string" = ""google,cr50""
384 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
385 device spi 0 on end
386 end
Marvin Evers059476d2023-12-04 02:28:25 +0100387 end
388 device ref gspi1 on
Vincent Palatin405eb442018-05-14 12:12:16 +0200389 chip drivers/spi/acpi
Furquan Shaikh6d2f7d22018-10-11 08:50:09 -0700390 register "name" = ""CRFP""
Vincent Palatin405eb442018-05-14 12:12:16 +0200391 register "hid" = "ACPI_DT_NAMESPACE_HID"
392 register "uid" = "1"
393 register "compat_string" = ""google,cros-ec-spi""
394 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C11_IRQ)"
395 register "wake" = "GPE0_DW0_09" # GPP_C9
Vincent Palatin405eb442018-05-14 12:12:16 +0200396 device spi 0 on end
Nick Vaccaro4f9ff532018-07-26 19:28:03 -0700397 end # FPMCU
Marvin Evers059476d2023-12-04 02:28:25 +0100398 end
399 device ref emmc on end
400 device ref sdio off end
401 device ref sdxc off end
402 device ref lpc_espi on
Nick Vaccaro17999942018-04-23 17:13:52 -0700403 chip ec/google/chromeec
404 device pnp 0c09.0 on end
405 end
Marvin Evers059476d2023-12-04 02:28:25 +0100406 end
407 device ref p2sb on end
408 device ref pmc on end
409 device ref hda on end
410 device ref smbus on end
411 device ref fast_spi on end
412 device ref gbe off end
Nick Vaccaro17999942018-04-23 17:13:52 -0700413 end
414end