soc/amd/glinda: Update MCA banks
[coreboot.git] / src / mainboard / system76 / tgl-u / devicetree.cb
blob94b5970165218baa979fb3e990900a5dc5363777
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 # Enable s0ix, required for TGL-U
18 register "s0ix_enable" = "true"
20 # FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c)
21 # Enable C6 DRAM
22 register "enable_c6dram" = "1"
24 # System Agent dynamic frequency support
25 register "SaGv" = "SaGv_Enabled"
27 # FSP Silicon (soc/intel/tigerlake/fsp_params.c)
28 # Acoustic settings
29 register "AcousticNoiseMitigation" = "1"
30 register "SlowSlewRate" = "SLEW_FAST_8"
31 register "FastPkgCRampDisable" = "1"
33 # FIVR configuration
34 # Read EXT_RAIL_CONFIG to determine bitmaps
35 # sudo devmem2 0xfe0011b8
36 # 0x0
37 # Read EXT_V1P05_VR_CONFIG
38 # sudo devmem2 0xfe0011c0
39 # 0x1a42000
40 # Read EXT_VNN_VR_CONFIG0
41 # sudo devmem2 0xfe0011c4
42 # 0x1a42000
43 # TODO: v1p05 voltage and vnn icc max?
44 register "ext_fivr_settings" = "{
45 .configure_ext_fivr = 1,
46 .v1p05_enable_bitmap = 0,
47 .vnn_enable_bitmap = 0,
48 .v1p05_supported_voltage_bitmap = 0,
49 .vnn_supported_voltage_bitmap = 0,
50 .v1p05_icc_max_ma = 500,
51 .vnn_sx_voltage_mv = 1050,
54 # Read LPM_EN, make sure to invert the bits
55 register "LpmStateDisableMask" = "
56 LPM_S0i2_1 |
57 LPM_S0i2_2 |
58 LPM_S0i3_1 |
59 LPM_S0i3_2 |
60 LPM_S0i3_3 |
61 LPM_S0i3_4
64 # Thermal
65 register "tcc_offset" = "12"
67 # Actual device tree
68 device domain 0 on
69 device ref system_agent on end
70 device ref igpu on
71 # DDIA is eDP
72 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
73 register "DdiPortAHpd" = "1"
74 register "DdiPortADdc" = "0"
76 # DDIB is HDMI
77 register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
78 register "DdiPortBHpd" = "1"
79 register "DdiPortBDdc" = "1"
81 register "gfx" = "GMA_DEFAULT_PANEL(0)"
82 end
83 device ref dptf on end
84 device ref tbt_pcie_rp0 on end
85 device ref gna on end
86 device ref shared_ram on end
87 device ref cnvi_wifi on
88 register "CnviBtCore" = true
89 register "CnviBtAudioOffload" = true
90 chip drivers/wifi/generic
91 register "wake" = "GPE0_PME_B0"
92 device generic 0 on end
93 end
94 end
95 device ref i2c0 on
96 # Touchpad I2C bus
97 register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
98 chip drivers/i2c/hid
99 register "generic.hid" = ""ELAN0412""
100 register "generic.desc" = ""ELAN Touchpad""
101 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
102 register "generic.detect" = "1"
103 register "hid_desc_reg_offset" = "0x01"
104 device i2c 15 on end
106 chip drivers/i2c/hid
107 register "generic.hid" = ""FTCS1000""
108 register "generic.desc" = ""FocalTech Touchpad""
109 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
110 register "generic.detect" = "1"
111 register "hid_desc_reg_offset" = "0x01"
112 device i2c 38 on end
115 device ref i2c1 on
116 # TODO: USB-PD?
117 register "SerialIoI2cMode[PchSerialIoIndexI2C1]" = "PchSerialIoPci"
119 device ref heci1 on end
120 device ref uart2 on
121 # Debug console
122 register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
124 device ref pch_espi on
125 register "gen1_dec" = "0x00040069"
126 register "gen2_dec" = "0x00fc0E01"
127 register "gen3_dec" = "0x00fc0F01"
128 chip drivers/pc80/tpm
129 device pnp 0c31.0 on end
132 device ref p2sb on end
133 device ref hda on
134 register "PchHdaAudioLinkHdaEnable" = "1"
136 device ref smbus on end
137 device ref fast_spi on end