soc/intel/alderlake: Add ADL-P 4+4 with 28W TDP
[coreboot.git] / src / mainboard / system76 / tgl-u / devicetree.cb
blobcdd9c048c9033c1fcdc8c70fa1d03dcb5096895d
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 end
71 device domain 0 on
72 device ref system_agent on end
73 device ref igpu on
74 # DDIA is eDP
75 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
76 register "DdiPortAHpd" = "1"
77 register "DdiPortADdc" = "0"
79 # DDIB is HDMI
80 register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
81 register "DdiPortBHpd" = "1"
82 register "DdiPortBDdc" = "1"
84 register "gfx" = "GMA_DEFAULT_PANEL(0)"
85 end
86 device ref dptf on end
87 device ref tbt_pcie_rp0 on end
88 device ref gna on end
89 device ref shared_ram on end
90 device ref cnvi_wifi on
91 chip drivers/wifi/generic
92 register "wake" = "GPE0_PME_B0"
93 device generic 0 on end
94 end
95 end
96 device ref i2c0 on
97 # Touchpad I2C bus
98 register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
99 chip drivers/i2c/hid
100 register "generic.hid" = ""ELAN0412""
101 register "generic.desc" = ""ELAN Touchpad""
102 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
103 register "generic.detect" = "1"
104 register "hid_desc_reg_offset" = "0x01"
105 device i2c 15 on end
107 chip drivers/i2c/hid
108 register "generic.hid" = ""FTCS1000""
109 register "generic.desc" = ""FocalTech Touchpad""
110 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_B3)"
111 register "generic.detect" = "1"
112 register "hid_desc_reg_offset" = "0x01"
113 device i2c 38 on end
116 device ref i2c1 on
117 # TODO: USB-PD?
118 register "SerialIoI2cMode[PchSerialIoIndexI2C1]" = "PchSerialIoPci"
120 device ref heci1 on end
121 device ref uart2 on
122 # Debug console
123 register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
125 device ref pch_espi on
126 register "gen1_dec" = "0x00040069"
127 register "gen2_dec" = "0x00fc0E01"
128 register "gen3_dec" = "0x00fc0F01"
129 chip drivers/pc80/tpm
130 device pnp 0c31.0 on end
133 device ref p2sb on end
134 device ref hda on
135 register "PchHdaAudioLinkHdaEnable" = "1"
137 device ref smbus on end
138 device ref fast_spi on end