soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / mainboard / system76 / tgl-u / devicetree.cb
blobf056da7715e4b869d5681200d0260d14241413a2
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 # Actual device tree
66 device cpu_cluster 0 on end
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