Debian Codegraph @

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