Debian Codegraph @

src/mainboard/google/volteer/variants/baseboard/devicetree.cb

raw
1 fw_config
2 field DB_USB 0 3
3 option USB_ABSENT 0
4 option USB4_GEN2 1
5 option USB3_ACTIVE 2
6 option USB4_GEN3 3
7 option USB3_PASSIVE 4
8 option USB3_NO_A 5
9 option USB3_NO_C 6
10 end
11 field THERMAL 4 7
12 option FAN_TABLE_0 0
13 option FAN_TABLE_1 1
14 end
15 field AUDIO 8 10
16 option NONE 0
17 option MAX98357_ALC5682I_I2S 1
18 option MAX98373_ALC5682I_I2S 2
19 option MAX98373_ALC5682_SNDW 3
20 option MAX98373_ALC5682I_I2S_UP4 4
21 option MAX98360_ALC5682I_I2S 5
22 option RT1011_ALC5682I_I2S 6
23 end
24 field TABLETMODE 11
25 option TABLETMODE_DISABLED 0
26 option TABLETMODE_ENABLED 1
27 end
28 field DB_LTE 12 13
29 option LTE_ABSENT 0
30 option LTE_PRESENT 1
31 end
32 field KB_BL 14
33 option KB_BL_ABSENT 0
34 option KB_BL_PRESENT 1
35 end
36 field NUMPAD 15
37 option NUMPAD_ABSENT 0
38 option NUMPAD_PRESENT 1
39 end
40 field DB_SD 16 19
41 option SD_ABSENT 0
42 option SD_GL9755S 1
43 option SD_RTS5261 2
44 option SD_RTS5227S 3
45 option SD_GL9750 4
46 option SD_OZ711LV2LN 5
47 end
48 field KB_LAYOUT 20 21
49 option KB_LAYOUT_DEFAULT 0
50 option KB_LAYOUT_1 1
51 end
52 field BOOT_DEVICE_EMMC 22
53 option BOOT_EMMC_DISABLED 0
54 option BOOT_EMMC_ENABLED 1
55 end
56 field BOOT_DEVICE_NVME 23
57 option BOOT_NVME_DISABLED 0
58 option BOOT_NVME_ENABLED 1
59 end
60 field BOOT_DEVICE_SATA 24
61 option BOOT_SATA_DISABLED 0
62 option BOOT_SATA_ENABLED 1
63 end
64 field TOUCHPAD 25
65 option REGULAR_TOUCHPAD 0
66 option NUMPAD_TOUCHPAD 1
67 end
68 field WIFI_SAR_ID 26 27
69 option WIFI_SAR_ID_0 0
70 option WIFI_SAR_ID_1 1
71 option WIFI_SAR_ID_2 2
72 option WIFI_SAR_ID_3 3
73 end
74 field OLED_SCREEN 28
75 option OLED_NOT_PRESENT 0
76 option OLED_PRESENT 1
77 end
78 end
79
80 chip soc/intel/tigerlake
81
82 # GPE configuration
83 # Note that GPE events called out in ASL code rely on this
84 # route. i.e. If this route changes then the affected GPE
85 # offset bits also need to be changed.
86 register "pmc_gpe0_dw0" = "GPP_C"
87 register "pmc_gpe0_dw1" = "GPP_D"
88 register "pmc_gpe0_dw2" = "GPP_E"
89
90 # FSP configuration
91 register "SaGv" = "SaGv_Enabled"
92
93 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC3)"
94 register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)"
95
96 # Mark SRCCLKREQ pins as unused that are routed for a Non-Clkreq functionality
97 register "PcieClkSrcUsage[2]" = "PCIE_CLK_NOTUSED"
98 register "PcieClkSrcUsage[4]" = "PCIE_CLK_NOTUSED"
99 register "PcieClkSrcUsage[5]" = "PCIE_CLK_NOTUSED"
100 register "PcieClkSrcUsage[6]" = "PCIE_CLK_NOTUSED"
101
102 register "SerialIoI2cMode" = "{
103 [PchSerialIoIndexI2C0] = PchSerialIoPci,
104 [PchSerialIoIndexI2C1] = PchSerialIoPci,
105 [PchSerialIoIndexI2C2] = PchSerialIoPci,
106 [PchSerialIoIndexI2C3] = PchSerialIoPci,
107 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
108 [PchSerialIoIndexI2C5] = PchSerialIoPci,
109 }"
110
111 register "SerialIoGSpiMode" = "{
112 [PchSerialIoIndexGSPI0] = PchSerialIoPci,
113 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
114 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
115 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
116 }"
117
118 register "SerialIoGSpiCsMode" = "{
119 [PchSerialIoIndexGSPI0] = 1,
120 [PchSerialIoIndexGSPI1] = 1,
121 [PchSerialIoIndexGSPI2] = 0,
122 [PchSerialIoIndexGSPI3] = 0,
123 }"
124
125 register "SerialIoGSpiCsState" = "{
126 [PchSerialIoIndexGSPI0] = 1,
127 [PchSerialIoIndexGSPI1] = 1,
128 [PchSerialIoIndexGSPI2] = 0,
129 [PchSerialIoIndexGSPI3] = 0,
130 }"
131
132 register "SerialIoUartMode" = "{
133 [PchSerialIoIndexUART0] = PchSerialIoPci,
134 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
135 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
136 }"
137
138 # Set the minimum assertion width
139 # PchPmSlpS3MinAssert:
140 # - 1: 60us
141 # - 2: 1ms
142 # - 3: 50ms
143 # - 4: 2s
144 register "PchPmSlpS3MinAssert" = "3" # 50ms
145 # PchPmSlpS4MinAssert:
146 # - 1 = 1s
147 # - 2 = 2s
148 # - 3 = 3s
149 # - 4 = 4s
150 register "PchPmSlpS4MinAssert" = "1" # 1s
151 # PchPmSlpSusMinAssert:
152 # - 1 = 0ms
153 # - 2 = 500ms
154 # - 3 = 1s
155 # - 4 = 4s
156 register "PchPmSlpSusMinAssert" = "3" # 1s
157 # PchPmSlpAMinAssert
158 # - 1 = 0ms
159 # - 2 = 4s
160 # - 3 = 98ms
161 # - 4 = 2s
162 register "PchPmSlpAMinAssert" = "3" # 98ms
163
164 # NOTE: Duration programmed in the below register should never be smaller than the
165 # stretch duration programmed in the following registers -
166 # - GEN_PMCON_A.SLP_S3_MIN_ASST_WDTH (PchPmSlpS3MinAssert)
167 # - GEN_PMCON_A.S4MAW (PchPmSlpS4MinAssert)
168 # - PM_CFG.SLP_A_MIN_ASST_WDTH (PchPmSlpAMinAssert)
169 # - PM_CFG.SLP_LAN_MIN_ASST_WDTH
170 register "PchPmPwrCycDur" = "1" # 1s
171
172 # TCSS USB3
173 register "UsbTcPortEn" = "0x3"
174 register "TcssXhciEn" = "1"
175 register "TcssAuxOri" = "0"
176
177 # DP port
178 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
179 register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
180
181 register "DdiPortAHpd" = "1"
182 register "DdiPortBHpd" = "1"
183 register "DdiPortCHpd" = "0"
184 register "DdiPort1Hpd" = "1"
185 register "DdiPort2Hpd" = "1"
186 register "DdiPort3Hpd" = "0"
187 register "DdiPort4Hpd" = "0"
188
189 register "DdiPortADdc" = "0"
190 register "DdiPortBDdc" = "1"
191 register "DdiPortCDdc" = "0"
192 register "DdiPort1Ddc" = "0"
193 register "DdiPort2Ddc" = "0"
194 register "DdiPort3Ddc" = "0"
195 register "DdiPort4Ddc" = "0"
196
197 # Enable S0ix
198 register "s0ix_enable" = "true"
199
200 # Enable DPTF
201 register "dptf_enable" = "true"
202
203 # Enable External Bypass
204 register "external_bypass" = "1"
205
206 # Enable External Clk Gate
207 register "external_clk_gated" = "1"
208
209 # Enable External Phy Gate
210 register "external_phy_gated" = "1"
211
212 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
213 .tdp_pl1_override = 15,
214 .tdp_pl2_override = 38,
215 .tdp_pl4 = 71,
216 }"
217 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
218 .tdp_pl1_override = 15,
219 .tdp_pl2_override = 60,
220 .tdp_pl4 = 105,
221 }"
222 register "power_limits_config[POWER_LIMITS_Y_2_CORE]" = "{
223 .tdp_pl1_override = 9,
224 .tdp_pl2_override = 35,
225 .tdp_pl4 = 66,
226 }"
227 register "power_limits_config[POWER_LIMITS_Y_4_CORE]" = "{
228 .tdp_pl1_override = 9,
229 .tdp_pl2_override = 40,
230 .tdp_pl4 = 83,
231 }"
232
233 register "tcc_offset" = "10" # TCC of 90
234
235 register "CnviBtCore" = "true"
236
237 register "CnviBtAudioOffload" = "true"
238
239 # Intel Common SoC Config
240 #+-------------------+---------------------------+
241 #| Field | Value |
242 #+-------------------+---------------------------+
243 #| GSPI0 | cr50 TPM. Early init is |
244 #| | required to set up a BAR |
245 #| | for TPM communication |
246 #| | before memory is up |
247 #| GSPI1 | Fingerprint MCU |
248 #| I2C0 | Audio |
249 #| I2C1 | Touchscreen |
250 #| I2C2 | WLAN, SAR0 |
251 #| I2C3 | Camera, SAR1 |
252 #| I2C5 | Trackpad |
253 #+-------------------+---------------------------+
254 register "common_soc_config" = "{
255 .gspi[0] = {
256 .speed_mhz = 1,
257 .early_init = 1,
258 },
259 .i2c[0] = {
260 .speed = I2C_SPEED_FAST,
261 },
262 .i2c[1] = {
263 .speed = I2C_SPEED_FAST,
264 },
265 .i2c[2] = {
266 .speed = I2C_SPEED_FAST,
267 },
268 .i2c[3] = {
269 .speed = I2C_SPEED_FAST,
270 },
271 .i2c[5] = {
272 .speed = I2C_SPEED_FAST,
273 },
274 }"
275
276 register "ext_fivr_settings" = "{
277 .configure_ext_fivr = 1,
278 .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX,
279 .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX,
280 .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL |
281 FIVR_VOLTAGE_MIN_ACTIVE |
282 FIVR_VOLTAGE_MIN_RETENTION,
283 .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL |
284 FIVR_VOLTAGE_MIN_ACTIVE |
285 FIVR_VOLTAGE_MIN_RETENTION,
286 .v1p05_icc_max_ma = 500,
287 .vnn_sx_voltage_mv = 1250,
288 }"
289
290 # Acoustic settings
291 register "AcousticNoiseMitigation" = "1"
292 register "SlowSlewRate" = "SLEW_FAST_8"
293 register "FastPkgCRampDisable" = "1"
294
295 device domain 0 on
296 device ref igpu on
297 register "gfx" = "GMA_DEFAULT_PANEL(0)"
298 end
299 device ref dptf on
300 # Default DPTF Policy for all Volteer boards if not overridden
301 chip drivers/intel/dptf
302 ## Active Policy
303 register "policies.active" = "{
304 [0] = {.target = DPTF_CPU,
305 .thresholds = {TEMP_PCT(85, 90),
306 TEMP_PCT(80, 69),
307 TEMP_PCT(75, 56),
308 TEMP_PCT(70, 46),
309 TEMP_PCT(65, 36),}},
310 [1] = {.target = DPTF_TEMP_SENSOR_0,
311 .thresholds = {TEMP_PCT(50, 90),
312 TEMP_PCT(47, 69),
313 TEMP_PCT(45, 56),
314 TEMP_PCT(42, 46),
315 TEMP_PCT(39, 36),}},
316 [2] = {.target = DPTF_TEMP_SENSOR_1,
317 .thresholds = {TEMP_PCT(50, 90),
318 TEMP_PCT(47, 69),
319 TEMP_PCT(45, 56),
320 TEMP_PCT(42, 46),
321 TEMP_PCT(39, 36),}},
322 [3] = {.target = DPTF_TEMP_SENSOR_2,
323 .thresholds = {TEMP_PCT(50, 90),
324 TEMP_PCT(47, 69),
325 TEMP_PCT(45, 56),
326 TEMP_PCT(42, 46),
327 TEMP_PCT(39, 36),}},
328 [4] = {.target = DPTF_TEMP_SENSOR_3,
329 .thresholds = {TEMP_PCT(50, 90),
330 TEMP_PCT(47, 69),
331 TEMP_PCT(45, 56),
332 TEMP_PCT(42, 46),
333 TEMP_PCT(39, 36),}}}"
334
335 ## Passive Policy
336 register "policies.passive" = "{
337 [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000),
338 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 65, 6000),
339 [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_0, 65, 6000),
340 [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 65, 6000),
341 [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 65, 6000)}"
342
343 ## Critical Policy
344 register "policies.critical" = "{
345 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
346 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 75, SHUTDOWN),
347 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 75, SHUTDOWN),
348 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 75, SHUTDOWN),
349 [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 75, SHUTDOWN)}"
350
351 ## Power Limits Control
352 # 3-15W PL1 in 200mW increments, avg over 28-32s interval
353 # PL2 ranges from 15 to 60W, avg over 28-32s interval
354 register "controls.power_limits" = "{
355 .pl1 = {.min_power = 3000,
356 .max_power = 15000,
357 .time_window_min = 28 * MSECS_PER_SEC,
358 .time_window_max = 32 * MSECS_PER_SEC,
359 .granularity = 200,},
360 .pl2 = {.min_power = 60000,
361 .max_power = 60000,
362 .time_window_min = 28 * MSECS_PER_SEC,
363 .time_window_max = 32 * MSECS_PER_SEC,
364 .granularity = 1000,}}"
365
366 ## Charger Performance Control (Control, mA)
367 register "controls.charger_perf" = "{
368 [0] = { 255, 1700 },
369 [1] = { 24, 1500 },
370 [2] = { 16, 1000 },
371 [3] = { 8, 500 }}"
372
373 ## Fan Performance Control (Percent, Speed, Noise, Power)
374 register "controls.fan_perf" = "{
375 [0] = { 90, 6700, 220, 2200, },
376 [1] = { 80, 5800, 180, 1800, },
377 [2] = { 70, 5000, 145, 1450, },
378 [3] = { 60, 4900, 115, 1150, },
379 [4] = { 50, 3838, 90, 900, },
380 [5] = { 40, 2904, 55, 550, },
381 [6] = { 30, 2337, 30, 300, },
382 [7] = { 20, 1608, 15, 150, },
383 [8] = { 10, 800, 10, 100, },
384 [9] = { 0, 0, 0, 50, }}"
385
386 # Fan options
387 register "options.fan.fine_grained_control" = "true"
388 register "options.fan.step_size" = "2"
389
390 device generic 0 on end
391 end
392 end # DPTF 0x9A03
393 device ref gna on end
394 device ref north_xhci on end
395 device ref south_xhci on
396 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A0
397 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A1
398 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN
399 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C Cl
400 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera
401 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C Co
402 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth
403
404 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # USB3/2 Type A port A0
405 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # USB3/2 Type A port A1
406 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN
407 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 Camera
408 end
409 device ref shared_ram on end
410 device ref cnvi_wifi on
411 chip drivers/wifi/generic
412 register "wake" = "GPE0_PME_B0"
413 device generic 0 on end
414 end
415 end
416 # MIPI camera devices are on I2C buses 2 and 3
417 device ref i2c2 on end
418 device ref i2c3 on end
419 device ref heci1 on end
420 device ref sata on
421 register "SataSalpSupport" = "1"
422 register "SataPortsEnable[1]" = "1"
423 register "SataPortsDevSlp[1]" = "1"
424 register "SataPortsEnableDitoConfig[1]" = "1"
425 end
426 device ref pcie_rp7 on
427 # WLAN PCIE 7 using clk 1
428 register "PcieRpLtrEnable[6]" = "true"
429 register "PcieClkSrcUsage[1]" = "6"
430 register "PcieClkSrcClkReq[1]" = "1"
431 register "PcieRpSlotImplemented[6]" = "true"
432 end
433 device ref pcie_rp8 on
434 # SD Card PCIE 8 using clk 3
435 register "PcieRpLtrEnable[7]" = "true"
436 register "PcieRpHotPlug[7]" = "1"
437 register "PcieClkSrcUsage[3]" = "7"
438 register "PcieClkSrcClkReq[3]" = "3"
439
440 probe DB_SD SD_GL9755S
441 probe DB_SD SD_RTS5261
442 probe DB_SD SD_RTS5227S
443 probe DB_SD SD_GL9750
444 probe DB_SD SD_OZ711LV2LN
445 chip soc/intel/common/block/pcie/rtd3
446 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)"
447 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H3)"
448 register "srcclk_pin" = "3"
449 device generic 0 on
450 probe DB_SD SD_GL9755S
451 probe DB_SD SD_RTS5227S
452 probe DB_SD SD_GL9750
453 probe DB_SD SD_OZ711LV2LN
454 end
455 end
456 chip soc/intel/common/block/pcie/rtd3
457 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H3)"
458 register "srcclk_pin" = "3"
459 register "add_acpi_external_facing_port" = "1"
460 device generic 1 on
461 probe DB_SD SD_RTS5261
462 end
463 end
464 end
465 device ref pcie_rp9 on
466 # NVMe PCIE 9 using clk 0
467 register "PcieRpLtrEnable[8]" = "true"
468 register "PcieClkSrcUsage[0]" = "8"
469 register "PcieClkSrcClkReq[0]" = "0"
470 register "PcieRpSlotImplemented[8]" = "true"
471 end
472 device ref pcie_rp11 on
473 # Optane PCIE 11 using clk 0
474 register "PcieRpLtrEnable[10]" = "true"
475 register "HybridStorageMode" = "0"
476 register "PcieRpSlotImplemented[10]" = "true"
477 end
478 device ref uart0 on end
479 device ref gspi0 on
480 chip drivers/spi/acpi
481 register "hid" = "ACPI_DT_NAMESPACE_HID"
482 register "compat_string" = ""google,cr50""
483 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C21_IRQ)"
484 device spi 0 alias spi_tpm on end
485 end
486 end
487 device ref gspi1 on
488 chip drivers/spi/acpi
489 register "name" = ""CRFP""
490 register "hid" = "ACPI_DT_NAMESPACE_HID"
491 register "uid" = "1"
492 register "compat_string" = ""google,cros-ec-spi""
493 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW_WAKE(GPP_C20)"
494 device spi 0 hidden end
495 end # FPMCU
496 end
497 device ref pch_espi on
498 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
499 register "gen1_dec" = "0x00fc0801"
500 register "gen2_dec" = "0x000c0201"
501 # EC memory map range is 0x900-0x9ff
502 register "gen3_dec" = "0x00fc0901"
503
504 chip ec/google/chromeec
505 device pnp 0c09.0 on end
506 end
507 end
508 device ref hda on
509 register "PchHdaDspEnable" = "true"
510
511 chip drivers/sof
512 register "spkr_tplg" = "max98373"
513 register "jack_tplg" = "rt5682"
514 register "mic_tplg" = "_2ch_pdm0"
515 device generic 0 on
516 probe AUDIO MAX98373_ALC5682I_I2S
517 probe AUDIO MAX98373_ALC5682_SNDW
518 end
519 end
520 chip drivers/sof
521 register "spkr_tplg" = "max98373_ssp2"
522 register "jack_tplg" = "rt5682"
523 register "mic_tplg" = "_2ch_pdm0"
524 device generic 0 on
525 probe AUDIO MAX98373_ALC5682I_I2S_UP4
526 end
527 end
528 chip drivers/sof
529 register "spkr_tplg" = "max98360a"
530 register "jack_tplg" = "rt5682"
531 register "mic_tplg" = "_2ch_pdm0"
532 device generic 0 on
533 probe AUDIO MAX98360_ALC5682I_I2S
534 end
535 end
536 chip drivers/sof
537 register "spkr_tplg" = "rt1011"
538 register "jack_tplg" = "rt5682"
539 register "mic_tplg" = "_2ch_pdm0"
540 device generic 0 on
541 probe AUDIO RT1011_ALC5682I_I2S
542 end
543 end
544 end
545 end
546 end