Debian Codegraph @

src/mainboard/intel/tglrvp/variants/tglrvp_up3/devicetree.cb

raw
1 chip soc/intel/tigerlake
2
3 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "pmc_gpe0_dw0" = "GPP_B"
8 register "pmc_gpe0_dw1" = "GPP_C"
9 register "pmc_gpe0_dw2" = "GPP_D"
10
11 # FSP configuration
12 register "SaGv" = "SaGv_Enabled"
13
14 # CNVi BT enable/disable
15 register "CnviBtCore" = "true"
16
17 # CPU replacement check
18 register "CpuReplacementCheck" = "1"
19
20 # Hybrid storage mode
21 register "HybridStorageMode" = "1"
22
23 # enabling EDP in PortA
24 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
25
26 register "DdiPortBHpd" = "1"
27 register "DdiPort1Hpd" = "1"
28 register "DdiPort1Ddc" = "1"
29
30 register "SerialIoI2cMode" = "{
31 [PchSerialIoIndexI2C0] = PchSerialIoPci,
32 [PchSerialIoIndexI2C1] = PchSerialIoPci,
33 [PchSerialIoIndexI2C2] = PchSerialIoPci,
34 [PchSerialIoIndexI2C3] = PchSerialIoPci,
35 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
36 [PchSerialIoIndexI2C5] = PchSerialIoPci,
37 }"
38
39 register "SerialIoGSpiMode" = "{
40 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
41 [PchSerialIoIndexGSPI1] = PchSerialIoPci,
42 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
43 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
44 }"
45
46 register "SerialIoGSpiCsMode" = "{
47 [PchSerialIoIndexGSPI0] = 0,
48 [PchSerialIoIndexGSPI1] = 1,
49 [PchSerialIoIndexGSPI2] = 0,
50 [PchSerialIoIndexGSPI3] = 0,
51 }"
52
53 register "SerialIoGSpiCsState" = "{
54 [PchSerialIoIndexGSPI0] = 0,
55 [PchSerialIoIndexGSPI1] = 0,
56 [PchSerialIoIndexGSPI2] = 0,
57 [PchSerialIoIndexGSPI3] = 0,
58 }"
59
60 register "SerialIoUartMode" = "{
61 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
62 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
63 [PchSerialIoIndexUART2] = PchSerialIoPci,
64 }"
65
66 # TCSS USB3
67 register "TcssXhciEn" = "1"
68 register "TcssAuxOri" = "0"
69
70 # Enable S0ix
71 register "s0ix_enable" = "true"
72
73 # Enable DPTF
74 register "dptf_enable" = "true"
75
76 # Add PL1 and PL2 values
77 register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{
78 .tdp_pl1_override = 15,
79 .tdp_pl2_override = 38,
80 .tdp_pl4 = 71,
81 }"
82 register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{
83 .tdp_pl1_override = 15,
84 .tdp_pl2_override = 60,
85 .tdp_pl4 = 105,
86 }"
87
88 # Intel Common SoC Config
89 register "common_soc_config" = "{
90 .gspi[1] = {
91 .speed_mhz = 1,
92 .early_init = 1,
93 },
94 .i2c[0] = {
95 .speed = I2C_SPEED_FAST,
96 },
97 .i2c[1] = {
98 .speed = I2C_SPEED_FAST,
99 },
100 .i2c[2] = {
101 .speed = I2C_SPEED_FAST,
102 },
103 .i2c[3] = {
104 .speed = I2C_SPEED_FAST,
105 },
106 .i2c[5] = {
107 .speed = I2C_SPEED_FAST,
108 },
109 }"
110
111 device domain 0 on
112 device ref system_agent on end
113 device ref igpu on end
114 device ref dptf on
115 # Default DPTF Policy for all tglrvp_up3 boards if not overridden
116 chip drivers/intel/dptf
117 register "policies.passive[0]" = "DPTF_PASSIVE(CPU, CPU, 95, 1000)"
118 register "policies.critical[0]" = "DPTF_CRITICAL(CPU, 105, SHUTDOWN)"
119
120 # Power Limits Control
121 register "controls.power_limits.pl1" = "{
122 .min_power = 3000,
123 .max_power = 15000,
124 .time_window_min = 28 * MSECS_PER_SEC,
125 .time_window_max = 32 * MSECS_PER_SEC,
126 .granularity = 200,}"
127 register "controls.power_limits.pl2" = "{
128 .min_power = 60000,
129 .max_power = 60000,
130 .time_window_min = 28 * MSECS_PER_SEC,
131 .time_window_max = 32 * MSECS_PER_SEC,
132 .granularity = 1000,}"
133 device generic 0 on end
134 end
135 end
136
137 device ref ipu on end
138 device ref peg on end
139 device ref tbt_pcie_rp0 on end
140 device ref tbt_pcie_rp1 on end
141 device ref tbt_pcie_rp2 on end
142 device ref tbt_pcie_rp3 on end
143 device ref gna off end
144 device ref npk off end
145 device ref crashlog off end
146 device ref north_xhci on end
147 device ref north_xdci on end
148 device ref tbt_dma0 on end
149 device ref tbt_dma1 on end
150 device ref vmd off end
151
152 device ref thc0 off end
153 device ref thc1 off end
154 device ref ish on
155 chip drivers/intel/ish
156 register "firmware_name" = ""tglrvp_ish.bin""
157 device generic 0 on end
158 end
159 end
160 device ref gspi2 off end
161 device ref gspi3 off end
162 device ref south_xhci on
163 register "usb2_ports" = "{
164 [0] = USB2_PORT_MID(OC0), // Type-C Port1
165 [2] = USB2_PORT_MID(OC3), // M.2 Bluetooth
166 [3] = USB2_PORT_MID(OC0), // USB3/2 Type A port1
167 [4] = USB2_PORT_MID(OC0), // Type-C Port2
168 [5] = USB2_PORT_MID(OC3), // Type-C Port3
169 [6] = USB2_PORT_MID(OC3), // Type-C Port4
170 [7] = USB2_PORT_MID(OC0), // USB3/2 Type A port2
171 [8] = USB2_PORT_MID(OC3), // USB2 Type A port3
172 [9] = USB2_PORT_MID(OC3), // USB2 Type A port4
173 }"
174
175 register "usb3_ports" = "{
176 [0] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port1
177 [1] = USB3_PORT_DEFAULT(OC0), // USB3/2 Type A port2
178 }"
179 end
180 device ref south_xdci on end
181 device ref shared_ram on end
182 device ref cnvi_wifi on
183 chip drivers/wifi/generic
184 register "wake" = "GPE0_PME_B0"
185 device generic 0 on end
186 end
187 end
188
189 device ref i2c0 on
190 chip drivers/i2c/generic
191 register "hid" = ""10EC1308""
192 register "name" = ""RTAM""
193 register "desc" = ""Realtek RT1308 Codec""
194 device i2c 10 on end
195 end
196 chip drivers/i2c/max98373
197 register "vmon_slot_no" = "4"
198 register "imon_slot_no" = "5"
199 register "uid" = "0"
200 register "desc" = ""RIGHT SPEAKER AMP""
201 register "name" = ""MAXR""
202 device i2c 31 on end
203 end
204 chip drivers/i2c/max98373
205 register "vmon_slot_no" = "6"
206 register "imon_slot_no" = "7"
207 register "uid" = "1"
208 register "desc" = ""LEFT SPEAKER AMP""
209 register "name" = ""MAXL""
210 device i2c 32 on end
211 end
212 chip drivers/i2c/generic
213 register "hid" = ""10EC5682""
214 register "name" = ""RT58""
215 register "desc" = ""Realtek RT5682""
216 register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_C12_IRQ)"
217 register "probed" = "1"
218 # Set the jd_src to RT5668_JD1 for jack detection
219 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
220 register "property_list[0].name" = ""realtek,jd-src""
221 register "property_list[0].integer" = "1"
222 device i2c 1a on end
223 end
224 end
225 device ref i2c1 on end
226 device ref i2c2 on end
227 device ref i2c3 on end
228 device ref heci1 on end
229 device ref heci2 off end
230 device ref csme1 off end
231 device ref csme2 off end
232 device ref heci3 off end
233 device ref heci4 off end
234 device ref sata on
235 register "SataSalpSupport" = "1"
236 register "SataPortsEnable[0]" = "1"
237 register "SataPortsEnable[1]" = "1"
238 end
239 device ref i2c4 off end
240 device ref i2c5 on end
241 device ref uart2 on end
242 device ref pcie_rp1 off end
243 device ref pcie_rp2 off end
244 device ref pcie_rp3 on
245 register "PcieRpSlotImplemented[2]" = "true"
246 register "PcieRpLtrEnable[2]" = "true"
247 register "PcieClkSrcUsage[1]" = "0x2"
248 register "PcieClkSrcClkReq[1]" = "1"
249 end
250 device ref pcie_rp4 on
251 register "PcieRpSlotImplemented[3]" = "true"
252 register "PcieRpLtrEnable[3]" = "true"
253 register "PcieClkSrcUsage[2]" = "0x3"
254 register "PcieClkSrcClkReq[2]" = "2"
255 chip soc/intel/common/block/pcie/rtd3
256 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B17)"
257 register "srcclk_pin" = "2"
258 device generic 0 on end
259 end
260 end
261 device ref pcie_rp5 off end
262 device ref pcie_rp6 off end
263 device ref pcie_rp7 off end
264 device ref pcie_rp8 off end
265 device ref pcie_rp9 on
266 register "PcieRpSlotImplemented[8]" = "true"
267 register "PcieRpLtrEnable[8]" = "true"
268 register "PcieClkSrcUsage[3]" = "0x8"
269 register "PcieClkSrcClkReq[3]" = "3"
270 end
271 device ref pcie_rp10 off end
272 device ref pcie_rp11 on
273 register "PcieRpSlotImplemented[10]" = "true"
274 register "PcieRpLtrEnable[10]" = "true"
275 end
276 device ref pcie_rp12 off end
277 device ref uart0 off end
278 device ref uart1 off end
279 device ref gspi0 on end
280 device ref gspi1 on
281 chip drivers/spi/acpi
282 register "hid" = "ACPI_DT_NAMESPACE_HID"
283 register "compat_string" = ""google,cr50""
284 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C22_IRQ)"
285 device spi 0 on end
286 end
287 end
288 device ref pch_espi on
289 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
290 register "gen1_dec" = "0x00fc0801"
291 register "gen2_dec" = "0x000c0201"
292 # EC memory map range is 0x900-0x9ff
293 register "gen3_dec" = "0x00fc0901"
294
295 chip ec/google/chromeec
296 use conn0 as mux_conn[0]
297 use conn1 as mux_conn[1]
298 device pnp 0c09.0 on end
299 end
300 end
301 device ref p2sb on end
302 device ref pmc hidden
303 # The pmc_mux chip driver is a placeholder for the
304 # PMC.MUX device in the ACPI hierarchy.
305 chip drivers/intel/pmc_mux
306 device generic 0 on
307 chip drivers/intel/pmc_mux/conn
308 use usb2_port6 as usb2_port
309 use tcss_usb3_port3 as usb3_port
310 # SBU is fixed, HSL follows CC
311 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
312 device generic 0 alias conn0 on end
313 end
314 chip drivers/intel/pmc_mux/conn
315 use usb2_port7 as usb2_port
316 use tcss_usb3_port4 as usb3_port
317 # SBU is fixed, HSL follows CC
318 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
319 device generic 1 alias conn1 on end
320 end
321 end
322 end
323 end
324 device ref hda on
325 register "PchHdaDspEnable" = "true"
326 register "PchHdaAudioLinkDmicEnable" = "{
327 [0] = 1,
328 [1] = 1,
329 }"
330 register "PchHdaAudioLinkSspEnable" = "{
331 [0] = 1,
332 [2] = 1,
333 }"
334 register "PchHdaAudioLinkSndwEnable[0]" = "1"
335 end
336 device ref smbus on end
337 device ref fast_spi on end
338 device ref gbe off end
339 device ref tracehub off end
340 end
341 end