cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / intel / jasperlake_rvp / variants / jslrvp / devicetree.cb
blob957ab1da726651b9e17464d8b699c1e41db9e593
1 chip soc/intel/jasperlake
3 device cpu_cluster 0 on end
5 # GPE configuration
6 # Note that GPE events called out in ASL code rely on this
7 # route. i.e. If this route changes then the affected GPE
8 # offset bits also need to be changed.
9 register "pmc_gpe0_dw0" = "GPP_B"
10 register "pmc_gpe0_dw1" = "GPP_H"
11 register "pmc_gpe0_dw2" = "GPP_E"
13 # FSP configuration
14 register "SaGv" = "SaGv_Enabled"
15 register "SmbusEnable" = "1"
16 register "ScsEmmcHs400Enabled" = "1"
17 register "SdCardPowerEnableActiveHigh" = "1"
19 # Display related UPDs
20 # Select eDP for port A (1 = eDP, 2 = MIPI)
21 register "DdiPortAConfig" = "1"
23 # Enable HPD for DDI ports B/C
24 register "DdiPortBHpd" = "1"
25 register "DdiPortCHpd" = "1"
27 # Enable DDC for DDI ports B/C
28 register "DdiPortBDdc" = "1"
29 register "DdiPortCDdc" = "1"
31 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-C Port1
32 register "usb2_ports[1]" = "USB2_PORT_MID(OC2)" # USB2 Type A port1
33 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-C Port2
34 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # USB2 Type A port2
35 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # USB2 Bluetooth
36 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # USB2 WWAN
37 register "usb2_ports[6]" = "USB2_PORT_MID(OC2)" # USB2 Type A port3
38 register "usb2_ports[7]" = "USB2_PORT_MID(OC3)" # USB2 Type A port4
40 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port1
41 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port2
42 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A port1
43 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # USB3 WWAN
44 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC2)" # UNUSED
45 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC_SKIP)" # UNUSED
47 # Enable Pch iSCLK
48 register "pch_isclk" = "1"
50 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
51 register "gen1_dec" = "0x00fc0801"
52 register "gen2_dec" = "0x000c0201"
53 # EC memory map range is 0x900-0x9ff
54 register "gen3_dec" = "0x00fc0901"
56 # Skip the CPU replacement check
57 register "SkipCpuReplacementCheck" = "1"
59 register "PchHdaDspEnable" = "1"
60 register "PchHdaAudioLinkHdaEnable" = "0"
61 register "PchHdaAudioLinkSspEnable[0]" = "1"
62 register "PchHdaAudioLinkSspEnable[1]" = "1"
63 register "PchHdaAudioLinkDmicEnable[0]" = "1"
64 register "PchHdaAudioLinkDmicEnable[1]" = "1"
66 # PCIe port 1 for M.2 E-key WLAN
67 # Enable Root Port 4(x4) for NVMe
68 register "PcieRpEnable[1]" = "1"
69 register "PcieRpEnable[4]" = "1"
71 # Enable ClkReqDetect 1 for WLAN
72 # Enable ClkReqDetect 4 for NVMe
73 register "PcieRpClkReqDetect[1]" = "1"
74 register "PcieRpClkReqDetect[4]" = "1"
76 register "PcieClkSrcUsage[0]" = "0x04"
77 register "PcieClkSrcUsage[1]" = "0x01"
78 register "PcieClkSrcUsage[2]" = "0xFF"
79 register "PcieClkSrcUsage[3]" = "0xFF"
80 register "PcieClkSrcUsage[4]" = "0xFF"
81 register "PcieClkSrcUsage[5]" = "0xFF"
83 register "PcieClkSrcClkReq[0]" = "0x00"
84 register "PcieClkSrcClkReq[1]" = "0x01"
85 register "PcieClkSrcClkReq[2]" = "0x02"
86 register "PcieClkSrcClkReq[3]" = "0x03"
87 register "PcieClkSrcClkReq[4]" = "0x04"
88 register "PcieClkSrcClkReq[5]" = "0x05"
90 register "SerialIoI2cMode" = "{
91 [PchSerialIoIndexI2C0] = PchSerialIoPci,
92 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
93 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
94 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
95 [PchSerialIoIndexI2C4] = PchSerialIoPci,
96 [PchSerialIoIndexI2C5] = PchSerialIoPci,
99 register "SerialIoGSpiMode" = "{
100 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
101 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
102 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
105 register "SerialIoGSpiCsMode" = "{
106 [PchSerialIoIndexGSPI0] = 1,
107 [PchSerialIoIndexGSPI1] = 1,
108 [PchSerialIoIndexGSPI2] = 1,
111 register "SerialIoGSpiCsState" = "{
112 [PchSerialIoIndexGSPI0] = 0,
113 [PchSerialIoIndexGSPI1] = 0,
114 [PchSerialIoIndexGSPI2] = 0,
117 register "SerialIoUartMode" = "{
118 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
119 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
120 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
123 # Enable DPTF
124 register "dptf_enable" = "1"
126 # Add PL1 and PL2 values
127 register "power_limits_config[JSL_N4500_6W_CORE]" = "{
128 .tdp_pl1_override = 6,
129 .tdp_pl2_override = 20,
132 register "power_limits_config[JSL_N6000_6W_CORE]" = "{
133 .tdp_pl1_override = 6,
134 .tdp_pl2_override = 20,
137 register "power_limits_config[JSL_N5100_6W_CORE]" = "{
138 .tdp_pl1_override = 6,
139 .tdp_pl2_override = 20,
142 register "power_limits_config[JSL_N4505_10W_CORE]" = "{
143 .tdp_pl1_override = 10,
144 .tdp_pl2_override = 25,
147 register "power_limits_config[JSL_N5105_10W_CORE]" = "{
148 .tdp_pl1_override = 10,
149 .tdp_pl2_override = 25,
152 register "power_limits_config[JSL_N6005_10W_CORE]" = "{
153 .tdp_pl1_override = 10,
154 .tdp_pl2_override = 25,
157 # Enable S0ix
158 register "s0ix_enable" = "1"
160 # GPIO for SD card detect
161 register "sdcard_cd_gpio" = "VGPIO_39"
163 register "common_soc_config" = "{
164 .gspi[1] = {
165 .speed_mhz = 1,
166 .early_init = 1,
168 .i2c[0] = {
169 .speed = I2C_SPEED_FAST,
170 .speed_config[0] = {
171 .speed = I2C_SPEED_FAST,
172 .scl_lcnt = 176,
173 .scl_hcnt = 95,
174 .sda_hold = 36,
177 .i2c[4] = {
178 .speed = I2C_SPEED_FAST,
180 .i2c[5] = {
181 .speed = I2C_SPEED_FAST,
185 # Set the minimum assertion width
186 register "PchPmSlpS3MinAssert" = "3" # 50ms
187 register "PchPmSlpS4MinAssert" = "1" # 1s
188 register "PchPmSlpSusMinAssert" = "3" # 1s
189 register "PchPmSlpAMinAssert" = "3" # 98ms
191 # NOTE: Duration programmed in the below register should never be smaller than the
192 # stretch duration programmed in the following registers -
193 # - GEN_PMCON_A.SLP_S3_MIN_ASST_WDTH (PchPmSlpS3MinAssert)
194 # - GEN_PMCON_A.S4MAW (PchPmSlpS4MinAssert)
195 # - PM_CFG.SLP_A_MIN_ASST_WDTH (PchPmSlpAMinAssert)
196 # - PM_CFG.SLP_LAN_MIN_ASST_WDTH
197 register "PchPmPwrCycDur" = "1" # 1s
199 # Set xHCI LFPS period sampling off time, the default is 9ms.
200 register "xhci_lfps_sampling_offtime_ms" = "9"
202 device domain 0 on
203 device pci 00.0 on end # Host Bridge
204 device pci 02.0 on end # Integrated Graphics Device
205 device pci 04.0 on
206 chip drivers/intel/dptf
207 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
208 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 119, SHUTDOWN)"
210 register "controls.power_limits.pl1" = "{
211 .min_power = 3000,
212 .max_power = 6000,
213 .time_window_min = 1 * MSECS_PER_SEC,
214 .time_window_max = 1 * MSECS_PER_SEC,
215 .granularity = 200,}"
216 register "controls.power_limits.pl2" = "{
217 .min_power = 20000,
218 .max_power = 20000,
219 .time_window_min = 1 * MSECS_PER_SEC,
220 .time_window_max = 1 * MSECS_PER_SEC,
221 .granularity = 1000,}"
222 device generic 0 on end
224 end # SA Thermal device
226 device pci 05.0 on
227 chip drivers/intel/mipi_camera
228 register "acpi_uid" = "0x50000"
229 register "acpi_name" = ""IPU0""
230 register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
232 register "cio2_num_ports" = "2"
233 register "cio2_lanes_used" = "{2,2}"
234 register "cio2_lane_endpoint[0]" = ""^I2C4.CAM0""
235 register "cio2_lane_endpoint[1]" = ""^I2C5.CAM1""
236 register "cio2_prt[0]" = "0"
237 register "cio2_prt[1]" = "2"
238 device generic 0 on end
241 device pci 12.0 off end # Thermal Subsystem
242 device pci 12.5 off end # UFS SCS
243 device pci 12.6 off end # GSPI #2
244 device pci 14.0 on
245 chip drivers/usb/acpi
246 register "desc" = ""Root Hub""
247 register "type" = "UPC_TYPE_HUB"
248 device usb 0.0 on
249 chip drivers/usb/acpi
250 register "desc" = ""USB3/2 Type-A Left Lower""
251 register "type" = "UPC_TYPE_A"
252 device usb 2.0 on end
254 chip drivers/usb/acpi
255 register "desc" = ""WWAN""
256 register "type" = "UPC_TYPE_INTERNAL"
257 device usb 2.1 on end
259 chip drivers/usb/acpi
260 register "desc" = ""Bluetooth""
261 register "type" = "UPC_TYPE_INTERNAL"
262 device usb 2.2 on end
264 chip drivers/usb/acpi
265 register "desc" = ""USB C Connector 1""
266 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
267 device usb 2.3 on end
269 chip drivers/usb/acpi
270 register "desc" = ""USB C Connector 2""
271 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
272 device usb 2.4 on end
274 chip drivers/usb/acpi
275 register "desc" = ""USB C Connector 3""
276 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
277 device usb 2.5 on end
279 chip drivers/usb/acpi
280 register "desc" = ""USB C Connector 4""
281 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
282 device usb 2.6 on end
284 chip drivers/usb/acpi
285 register "desc" = ""USB3/2 Type-A Left Upper""
286 register "type" = "UPC_TYPE_A"
287 device usb 2.7 on end
289 chip drivers/usb/acpi
290 register "desc" = ""USB3/2 Type-A Left Lower""
291 register "type" = "UPC_TYPE_A"
292 device usb 3.0 on end
294 chip drivers/usb/acpi
295 register "desc" = ""USB3/2 Type-A Left Upper""
296 register "type" = "UPC_TYPE_A"
297 device usb 3.1 on end
299 chip drivers/usb/acpi
300 register "desc" = ""WLAN""
301 register "type" = "UPC_TYPE_INTERNAL"
302 device usb 3.2 on end
304 chip drivers/usb/acpi
305 register "desc" = ""USB3 Port Unused1""
306 register "type" = "UPC_TYPE_INTERNAL"
307 device usb 3.3 on end
309 chip drivers/usb/acpi
310 register "desc" = ""USB3 Port Unused2""
311 register "type" = "UPC_TYPE_INTERNAL"
312 device usb 3.4 on end
314 chip drivers/usb/acpi
315 register "desc" = ""USB3 Port Unused3""
316 register "type" = "UPC_TYPE_INTERNAL"
317 device usb 3.5 on end
321 end # USB xHCI
322 device pci 14.1 off end # USB xDCI (OTG)
323 device pci 14.2 off end # PMC SRAM
324 device pci 14.3 on
325 chip drivers/wifi/generic
326 register "wake" = "GPE0_PME_B0"
327 device generic 0 on end
329 end # CNVi wifi
330 device pci 14.5 on end # SDCard
331 device pci 15.0 on
332 chip drivers/i2c/max98373
333 register "vmon_slot_no" = "4"
334 register "imon_slot_no" = "5"
335 register "uid" = "0"
336 register "desc" = ""RIGHT SPEAKER AMP""
337 register "name" = ""MAXR""
338 device i2c 31 on end
340 chip drivers/i2c/max98373
341 register "vmon_slot_no" = "6"
342 register "imon_slot_no" = "7"
343 register "uid" = "1"
344 register "desc" = ""LEFT SPEAKER AMP""
345 register "name" = ""MAXL""
346 device i2c 32 on end
348 chip drivers/i2c/da7219
349 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_H16_IRQ)"
350 register "btn_cfg" = "50"
351 register "mic_det_thr" = "500"
352 register "jack_ins_deb" = "20"
353 register "jack_det_rate" = ""32ms_64ms""
354 register "jack_rem_deb" = "1"
355 register "a_d_btn_thr" = "0xa"
356 register "d_b_btn_thr" = "0x16"
357 register "b_c_btn_thr" = "0x21"
358 register "c_mic_btn_thr" = "0x3e"
359 register "btn_avg" = "4"
360 register "adc_1bit_rpt" = "1"
361 register "micbias_lvl" = "2600"
362 register "mic_amp_in_sel" = ""diff""
363 device i2c 1a on end
365 end # I2C #0 Audio
366 device pci 15.1 off end # I2C #1
367 device pci 15.2 off end # I2C #2
368 device pci 15.3 off end # I2C #3
369 device pci 16.0 on end # Management Engine Interface 1
370 device pci 16.1 off end # Management Engine Interface 2
371 device pci 16.2 off end # Management Engine IDE-R
372 device pci 16.3 off end # Management Engine KT Redirection
373 device pci 16.4 off end # Management Engine Interface 3
374 device pci 16.5 off end # Management Engine Interface 4
375 device pci 17.0 off end # SATA
376 device pci 19.0 on # I2C #4 Cam 0
377 chip drivers/intel/mipi_camera
378 register "acpi_hid" = ""OVTI2740""
379 register "acpi_uid" = "0"
380 register "acpi_name" = ""CAM0""
381 register "chip_name" = ""Ov 2740 Camera""
382 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
383 register "has_power_resource" = "1"
385 register "ssdb.lanes_used" = "2"
386 register "num_freq_entries" = "1"
387 register "link_freq[0]" = "360000000"
388 register "remote_name" = ""IPU0""
390 #Controls
391 register "clk_panel.clks[0].clknum" = "0" #IMGCLKOUT_3
392 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
394 register "gpio_panel.gpio[0].gpio_num" = "GPP_D5" #reset
395 register "gpio_panel.gpio[1].gpio_num" = "GPP_B14" #power
397 #_ON
398 register "on_seq.ops_cnt" = "4"
399 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
400 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
401 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 5)"
402 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
404 #_OFF
405 register "off_seq.ops_cnt" = "3"
406 register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
407 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
408 register "off_seq.ops[2]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
410 device i2c 10 on end
413 device pci 19.1 on # I2C #5 Cam 1 and VCM
414 chip drivers/intel/mipi_camera
415 register "acpi_hid" = ""OVTI5675""
416 register "acpi_uid" = "0"
417 register "acpi_name" = ""CAM1""
418 register "chip_name" = ""Ov 5675 Camera""
419 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
421 register "ssdb.lanes_used" = "2"
422 register "ssdb.link_used" = "1"
423 register "ssdb.vcm_type" = "0x0C"
424 register "vcm_name" = ""VCM0""
425 register "num_freq_entries" = "1"
426 register "link_freq[0]" = "DEFAULT_LINK_FREQ"
427 register "remote_name" = ""IPU0""
429 register "has_power_resource" = "1"
430 #Controls
431 register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_3
432 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
434 register "gpio_panel.gpio[0].gpio_num" = "GPP_D4" #power_enable
435 register "gpio_panel.gpio[1].gpio_num" = "GPP_C19" #reset
437 #_ON
438 register "on_seq.ops_cnt" = "4"
439 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
440 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
441 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 5)"
442 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
444 #_OFF
445 register "off_seq.ops_cnt" = "3"
446 register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
447 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
448 register "off_seq.ops[2]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
450 device i2c 36 on end
452 chip drivers/intel/mipi_camera
453 register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
454 register "acpi_uid" = "3"
455 register "acpi_name" = ""VCM0""
456 register "chip_name" = ""DW AF DAC""
457 register "device_type" = "INTEL_ACPI_CAMERA_VCM"
459 register "pr0" = ""\\_SB.PCI0.I2C5.CAM1.PRIC""
460 register "vcm_compat" = ""dongwoon,dw9714""
462 register "ssdb.lanes_used" = "2"
463 register "num_freq_entries" = "1"
464 register "link_freq[0]" = "DEFAULT_LINK_FREQ"
465 register "remote_name" = ""IPU0""
466 device i2c 0C on end
470 device pci 19.2 on end # UART #2
471 device pci 1a.0 on end # eMMC
472 device pci 1c.0 off end # PCI Express Port 1
473 device pci 1c.1 on end # PCI Express Port 2 - WLAN
474 device pci 1c.2 off end # PCI Express Port 3
475 device pci 1c.3 off end # PCI Express Port 4
476 device pci 1c.4 on end # PCI Express Port 5 - NVMe
477 device pci 1c.5 off end # PCI Express Port 6
478 device pci 1c.6 off end # PCI Express Port 7
479 device pci 1c.7 off end # PCI Express Port 8
480 device pci 1e.0 on end # UART #0
481 device pci 1e.1 off end # UART #1
482 device pci 1e.2 off end # GSPI #0
483 device pci 1e.3 on
484 chip drivers/spi/acpi
485 register "hid" = "ACPI_DT_NAMESPACE_HID"
486 register "compat_string" = ""google,cr50""
487 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_H13_IRQ)"
488 device spi 0 on end
490 end # GSPI #1
491 device pci 1f.0 on end # eSPI Interface
492 device pci 1f.1 on end # P2SB
493 device pci 1f.2 hidden end # Power Management Controller
494 device pci 1f.3 on end # Intel HDA
495 device pci 1f.4 on end # SMBus
496 device pci 1f.5 on end # PCH SPI
497 device pci 1f.6 off end # GbE