payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / system76 / tgl-u / devicetree.cb
blob0666a1a67c437796e4b82ee1f06172e029021be8
1 chip soc/intel/tigerlake
2 register "common_soc_config" = "{
3 // Touchpad I2C bus
4 .i2c[0] = {
5 .speed = I2C_SPEED_FAST,
6 .rise_time_ns = 80,
7 .fall_time_ns = 110,
8 },
9 }"
11 # ACPI (soc/intel/tigerlake/acpi.c)
12 # Enable Enhanced Intel SpeedStep
13 register "eist_enable" = "1"
15 # Enable s0ix, required for TGL-U
16 register "s0ix_enable" = "1"
18 # FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c)
19 # Enable C6 DRAM
20 register "enable_c6dram" = "1"
22 # System Agent dynamic frequency support
23 register "SaGv" = "SaGv_Enabled"
25 # FSP Silicon (soc/intel/tigerlake/fsp_params.c)
26 # Acoustic settings
27 register "AcousticNoiseMitigation" = "1"
28 register "SlowSlewRate" = "SLEW_FAST_8"
29 register "FastPkgCRampDisable" = "1"
31 # FIVR configuration
32 # Read EXT_RAIL_CONFIG to determine bitmaps
33 # sudo devmem2 0xfe0011b8
34 # 0x0
35 # Read EXT_V1P05_VR_CONFIG
36 # sudo devmem2 0xfe0011c0
37 # 0x1a42000
38 # Read EXT_VNN_VR_CONFIG0
39 # sudo devmem2 0xfe0011c4
40 # 0x1a42000
41 # TODO: v1p05 voltage and vnn icc max?
42 register "ext_fivr_settings" = "{
43 .configure_ext_fivr = 1,
44 .v1p05_enable_bitmap = 0,
45 .vnn_enable_bitmap = 0,
46 .v1p05_supported_voltage_bitmap = 0,
47 .vnn_supported_voltage_bitmap = 0,
48 .v1p05_icc_max_ma = 500,
49 .vnn_sx_voltage_mv = 1050,
52 # Read LPM_EN, make sure to invert the bits
53 register "LpmStateDisableMask" = "
54 LPM_S0i2_1 |
55 LPM_S0i2_2 |
56 LPM_S0i3_1 |
57 LPM_S0i3_2 |
58 LPM_S0i3_3 |
59 LPM_S0i3_4
62 # Thermal
63 register "tcc_offset" = "12"
65 # Enable CNVi BT
66 register "CnviBtCore" = "true"
68 # Actual device tree
69 device cpu_cluster 0 on
70 device lapic 0 on end
71 end
73 device domain 0 on
74 device ref system_agent on end
75 device ref igpu on
76 # DDIA is eDP
77 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
78 register "DdiPortAHpd" = "1"
79 register "DdiPortADdc" = "0"
81 # DDIB is HDMI
82 register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
83 register "DdiPortBHpd" = "1"
84 register "DdiPortBDdc" = "1"
86 register "gfx" = "GMA_DEFAULT_PANEL(0)"
87 end
88 device ref dptf on end
89 device ref tbt_pcie_rp0 on end
90 device ref gna on end
91 device ref shared_ram on end
92 device ref cnvi_wifi on
93 chip drivers/wifi/generic
94 register "wake" = "GPE0_PME_B0"
95 device generic 0 on end
96 end
97 end
98 device ref i2c0 on
99 # Touchpad I2C bus
100 register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
101 chip drivers/i2c/hid
102 register "generic.hid" = ""ELAN0412""
103 register "generic.desc" = ""ELAN Touchpad""
104 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
105 register "generic.detect" = "1"
106 register "hid_desc_reg_offset" = "0x01"
107 device i2c 15 on end
109 chip drivers/i2c/hid
110 register "generic.hid" = ""FTCS1000""
111 register "generic.desc" = ""FocalTech Touchpad""
112 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
113 register "generic.detect" = "1"
114 register "hid_desc_reg_offset" = "0x01"
115 device i2c 38 on end
118 device ref i2c1 on
119 # TODO: USB-PD?
120 register "SerialIoI2cMode[PchSerialIoIndexI2C1]" = "PchSerialIoPci"
122 device ref heci1 on end
123 device ref uart2 on
124 # Debug console
125 register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
127 device ref pch_espi on
128 register "gen1_dec" = "0x00040069"
129 register "gen2_dec" = "0x00fc0E01"
130 register "gen3_dec" = "0x00fc0F01"
131 chip drivers/pc80/tpm
132 device pnp 0c31.0 on end
135 device ref p2sb on end
136 device ref hda on
137 register "PchHdaAudioLinkHdaEnable" = "1"
139 device ref smbus on end
140 device ref fast_spi on end