mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git] / src / mainboard / system76 / tgl-h / devicetree.cb
blob2bda9dc03738bfac99292b52fbdf7841ef2640f2
1 # SPDX-License-Identifier: GPL-2.0-only
3 chip soc/intel/tigerlake
4 register "common_soc_config" = "{
5 // Touchpad I2C bus
6 .i2c[0] = {
7 .speed = I2C_SPEED_FAST,
8 .rise_time_ns = 80,
9 .fall_time_ns = 110,
13 # ACPI (soc/intel/tigerlake/acpi.c)
14 # Enable Enhanced Intel SpeedStep
15 register "eist_enable" = "true"
17 # CPU (soc/intel/tigerlake/cpu.c)
18 # Power limits
19 register "power_limits_config[POWER_LIMITS_H_8_CORE]" = "{
20 .tdp_pl1_override = 45,
21 .tdp_pl2_override = 109,
23 register "power_limits_config[POWER_LIMITS_H_6_CORE]" = "{
24 .tdp_pl1_override = 45,
25 .tdp_pl2_override = 109,
28 # FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c)
29 # Enable C6 DRAM
30 register "enable_c6dram" = "1"
32 # FSP Silicon (soc/intel/tigerlake/fsp_params.c)
33 # Acoustic settings
34 register "AcousticNoiseMitigation" = "1"
35 register "SlowSlewRate" = "SLEW_FAST_8"
36 register "FastPkgCRampDisable" = "1"
38 # FIVR configuration
39 # Read EXT_RAIL_CONFIG to determine bitmaps
40 # sudo devmem2 0xfe0011b8
41 # 0x0
42 # Read EXT_V1P05_VR_CONFIG
43 # sudo devmem2 0xfe0011c0
44 # 0x1a42000
45 # Read EXT_VNN_VR_CONFIG0
46 # sudo devmem2 0xfe0011c4
47 # 0x1a42000
48 # TODO: v1p05 voltage and vnn icc max?
49 register "ext_fivr_settings" = "{
50 .configure_ext_fivr = 1,
51 .v1p05_enable_bitmap = 0,
52 .vnn_enable_bitmap = 0,
53 .v1p05_supported_voltage_bitmap = 0,
54 .vnn_supported_voltage_bitmap = 0,
55 .v1p05_icc_max_ma = 500,
56 .vnn_sx_voltage_mv = 1050,
59 # Disable S0ix substates
60 register "LpmStateDisableMask" = "
61 LPM_S0i2_1 |
62 LPM_S0i2_2 |
63 LPM_S0i3_1 |
64 LPM_S0i3_2 |
65 LPM_S0i3_3 |
66 LPM_S0i3_4
69 # Thermal
70 # rdmsr --bitfield 31:24 --decimal 0x1A2
71 register "tcc_offset" = "8"
73 # PM Util (soc/intel/tigerlake/pmutil.c)
74 # GPE configuration
75 register "pmc_gpe0_dw0" = "PMC_GPP_R"
76 register "pmc_gpe0_dw1" = "PMC_GPP_B"
77 register "pmc_gpe0_dw2" = "PMC_GPP_D"
79 # Actual device tree
80 device domain 0 on
81 #From CPU EDS(575683)
82 device ref system_agent on end
83 device ref igpu on
84 # DDIA is eDP
85 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
86 register "DdiPortAHpd" = "1"
87 register "DdiPortADdc" = "0"
89 register "gfx" = "GMA_DEFAULT_PANEL(0)"
90 end
91 device ref dptf on end
92 device ref gna on end
93 device ref north_xhci on
94 # TODO: No TBT, but needed for USB 2.0 on Type-C port?
95 register "TcssXhciEn" = "1"
96 end
98 # From PCH EDS(615985)
99 device ref shared_ram on end
100 device ref cnvi_wifi on
101 register "CnviBtCore" = true
102 register "CnviBtAudioOffload" = true
103 chip drivers/wifi/generic
104 register "wake" = "GPE0_PME_B0"
105 device generic 0 on end
108 device ref i2c0 on
109 # Touchpad I2C bus
110 register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
111 chip drivers/i2c/hid
112 register "generic.hid" = ""ELAN0412""
113 register "generic.desc" = ""ELAN Touchpad""
114 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_R12)"
115 register "generic.detect" = "1"
116 register "hid_desc_reg_offset" = "0x01"
117 device i2c 15 on end
119 chip drivers/i2c/hid
120 register "generic.hid" = ""SYNA1202""
121 register "generic.desc" = ""Synaptics Touchpad""
122 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_R12)"
123 register "generic.detect" = "1"
124 register "hid_desc_reg_offset" = "0x20"
125 device i2c 2c on end
128 device ref heci1 on end
129 device ref uart2 on
130 # Debug console
131 register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
133 device ref pch_espi on
134 register "gen1_dec" = "0x00040069" # EC PM channel
135 register "gen2_dec" = "0x00fc0E01" # AP/EC command
136 register "gen3_dec" = "0x00fc0F01" # AP/EC debug
137 chip drivers/pc80/tpm
138 device pnp 0c31.0 on end
141 device ref p2sb on end
142 device ref pmc hidden end
143 device ref hda on
144 register "PchHdaAudioLinkHdaEnable" = "1"
146 device ref smbus on end
147 device ref fast_spi on end