mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / mainboard / google / brya / variants / primus / overridetree.cb
blobc4b56ebb23815332c55649462964b015a1635bec
1 fw_config
2 field DB_USB 0 3
3 option USB_ABSENT 0
4 option USB3_PS8811 1
5 end
6 field DB_SD 4 5
7 option SD_ABSENT 0
8 option SD_GL9755S 1
9 end
10 field KB_BL 7 7
11 option KB_BL_ABSENT 0
12 option KB_BL_PRESENT 1
13 end
14 field AUDIO 8 10
15 option AUDIO_UNKNOWN 0
16 option MAX98360_ALC5682I_I2S 1
17 option MAX98360_ALC5682I_VS_I2S 2
18 end
19 field DB_LTE 11 12
20 option LTE_ABSENT 0
21 option LTE_USB 1
22 end
23 end
25 chip soc/intel/alderlake
26 register "sagv" = "SaGv_Enabled"
27 register "max_dram_speed_mts" = "3733"
29 # As per Intel Advisory doc#723158, the change is required to prevent possible
30 # display flickering issue.
31 register "usb2_phy_sus_pg_disable" = "1"
33 # Acoustic settings
34 register "acoustic_noise_mitigation" = "1"
35 register "slow_slew_rate[VR_DOMAIN_IA]" = "SLEW_FAST_8"
36 register "slow_slew_rate[VR_DOMAIN_GT]" = "SLEW_FAST_8"
37 register "fast_pkg_c_ramp_disable[VR_DOMAIN_IA]" = "1"
38 register "fast_pkg_c_ramp_disable[VR_DOMAIN_GT]" = "1"
40 # Intel Common SoC Config
41 #+-------------------+---------------------------+
42 #| Field | Value |
43 #+-------------------+---------------------------+
44 #| GSPI1 | Fingerprint MCU |
45 #| I2C0 | Audio |
46 #| I2C1 | cr50 TPM. Early init is |
47 #| | required to set up a BAR |
48 #| | for TPM communication |
49 #| I2C2 | |
50 #| I2C3 | Touchscreen |
51 #| I2C5 | Trackpad |
52 #+-------------------+---------------------------+
53 register "common_soc_config" = "{
54 .i2c[0] = {
55 .speed = I2C_SPEED_FAST,
57 .i2c[1] = {
58 .early_init = 1,
59 .speed = I2C_SPEED_FAST,
60 .rise_time_ns = 600,
61 .fall_time_ns = 400,
62 .data_hold_time_ns = 50,
64 .i2c[2] = {
65 .speed = I2C_SPEED_FAST,
67 .i2c[3] = {
68 .speed = I2C_SPEED_FAST,
69 .rise_time_ns = 650,
70 .fall_time_ns = 400,
71 .data_hold_time_ns = 50,
73 .i2c[5] = {
74 .speed = I2C_SPEED_FAST,
78 register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Disable USB2_C1
79 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A MLB Port
80 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A MLB port
81 register "usb3_ports[2]" = "USB3_PORT_EMPTY"
82 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
84 device domain 0 on
85 device ref igpu on
86 chip drivers/gfx/generic
87 register "device_count" = "6"
88 # DDIA for eDP
89 register "device[0].name" = ""LCD0""
90 # Internal panel on the first port of the graphics chip
91 register "device[0].type" = "panel"
92 # DDIB for HDMI
93 register "device[1].name" = ""DD01""
94 # TCP0 (DP-1) for port C0
95 register "device[2].name" = ""DD02""
96 register "device[2].use_pld" = "true"
97 register "device[2].pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))"
98 # TCP1 (DP-2) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP1
99 register "device[3].name" = ""DD03""
100 # TCP2 (DP-3) for port C2
101 register "device[4].name" = ""DD04""
102 register "device[4].use_pld" = "true"
103 register "device[4].pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))"
104 # TCP3 (DP-4) is unused for any ports but still enumerated in the kernel, so GFX device is added for TCP3
105 register "device[5].name" = ""DD05""
106 device generic 0 on end
108 end # Integrated Graphics Device
109 device ref dtt on
110 chip drivers/intel/dptf
111 ## sensor information
112 register "options.tsr[0].desc" = ""CPU""
113 register "options.tsr[1].desc" = ""SSD""
114 register "options.tsr[2].desc" = ""CHARGER""
115 register "options.tsr[3].desc" = ""MEMORY""
116 register "options.tsr[4].desc" = ""TYPEC""
117 # TODO: below values are initial reference values only
119 ## Passive Policy
120 register "policies.passive" = "{
121 [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000),
122 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 5000),
123 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 92, 5000),
124 [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 90, 5000),
125 [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 90, 5000),
126 [5] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_4, 90, 5000),
130 ## Critical Policy
131 register "policies.critical" = "{
132 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
133 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN),
134 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 89, SHUTDOWN),
135 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN),
136 [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 85, SHUTDOWN),
137 [5] = DPTF_CRITICAL(TEMP_SENSOR_4, 85, SHUTDOWN),
140 register "controls.power_limits" = "{
141 .pl1 = {
142 .min_power = 3000,
143 .max_power = 15000,
144 .time_window_min = 28 * MSECS_PER_SEC,
145 .time_window_max = 32 * MSECS_PER_SEC,
146 .granularity = 250,
148 .pl2 = {
149 .min_power = 55000,
150 .max_power = 55000,
151 .time_window_min = 28 * MSECS_PER_SEC,
152 .time_window_max = 32 * MSECS_PER_SEC,
153 .granularity = 1000,
157 ## Charger Performance Control (Control, mA)
158 register "controls.charger_perf" = "{
159 [0] = { 255, 1700 },
160 [1] = { 24, 1500 },
161 [2] = { 16, 1000 },
162 [3] = { 8, 500 }
164 device generic 0 alias dptf_policy on end
167 device ref cnvi_wifi on
168 chip drivers/wifi/generic
169 register "wake" = "GPE0_PME_B0"
170 device generic 0 on end
173 device ref pcie_rp3 on
174 chip soc/intel/common/block/pcie/rtd3
175 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B3)"
176 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E20)"
177 register "srcclk_pin" = "6"
178 register "reset_delay_ms" = "50"
179 register "enable_delay_ms" = "20"
180 device generic 0 alias emmc_rtd3 on end
182 # Enable PCIe-to-eMMC bridge PCIE 3 using clk 6
183 register "pch_pcie_rp[PCH_RP(3)]" = "{
184 .clk_src = 6,
185 .clk_req = 6,
186 .flags = PCIE_RP_LTR | PCIE_RP_AER,
188 end #PCIE3 BH799BB
189 device ref tcss_dma0 on
190 chip drivers/intel/usb4/retimer
191 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
192 use tcss_usb3_port1 as dfp[0].typec_port
193 device generic 0 on end
196 device ref tcss_dma1 on
197 chip drivers/intel/usb4/retimer
198 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
199 use tcss_usb3_port3 as dfp[0].typec_port
200 device generic 0 on end
203 device ref pcie_rp6 off end #PCIE6 WWAN
204 device ref pcie_rp8 on
205 chip soc/intel/common/block/pcie/rtd3
206 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)"
207 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D18)"
208 register "srcclk_pin" = "3"
209 device generic 0 on end
211 end #PCIE8 SD card
212 device ref pcie_rp9 on
213 # Enable NVMe PCIE 9 using clk 0
214 register "pch_pcie_rp[PCH_RP(9)]" = "{
215 .clk_src = 0,
216 .clk_req = 0,
217 .flags = PCIE_RP_LTR | PCIE_RP_AER,
219 end #PCIE9-12 SSD
220 device ref i2c0 on
221 chip drivers/i2c/generic
222 register "hid" = ""10EC5682""
223 register "name" = ""RT58""
224 register "desc" = ""Headset Codec""
225 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)"
226 # Set the jd_src to RT5668_JD1 for jack detection
227 register "property_count" = "1"
228 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
229 register "property_list[0].name" = ""realtek,jd-src""
230 register "property_list[0].integer" = "1"
231 device i2c 1a alias audio_codec on
232 probe AUDIO MAX98360_ALC5682I_I2S
233 probe AUDIO MAX98360_ALC5682I_VS_I2S
236 end #I2C0
237 device ref i2c1 on
238 chip drivers/i2c/tpm
239 register "hid" = ""GOOG0005""
240 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)"
241 device i2c 50 on end
244 device ref i2c3 on
245 chip drivers/i2c/hid
246 register "generic.hid" = ""ELAN9050""
247 register "generic.desc" = ""ELAN Touchscreen""
248 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
249 register "generic.detect" = "1"
250 register "generic.reset_gpio" =
251 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)"
252 register "generic.reset_delay_ms" = "200"
253 register "generic.reset_off_delay_ms" = "1"
254 register "generic.enable_gpio" =
255 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)"
256 register "generic.enable_delay_ms" = "6"
257 register "generic.stop_gpio" =
258 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)"
259 register "generic.stop_off_delay_ms" = "1"
260 register "generic.has_power_resource" = "1"
261 register "hid_desc_reg_offset" = "0x01"
262 device i2c 0x10 on end
264 chip drivers/i2c/hid
265 register "generic.hid" = ""GTCH7503""
266 register "generic.desc" = ""G2TOUCH Touchscreen""
267 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
268 register "generic.detect" = "1"
269 register "generic.reset_gpio" =
270 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)"
271 register "generic.reset_delay_ms" = "50"
272 register "generic.enable_gpio" =
273 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)"
274 register "generic.enable_delay_ms" = "1"
275 register "generic.has_power_resource" = "1"
276 register "hid_desc_reg_offset" = "0x01"
277 device i2c 0x40 on end
280 device ref i2c5 on
281 chip drivers/i2c/generic
282 register "hid" = ""ELAN0000""
283 register "desc" = ""ELAN Touchpad""
284 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)"
285 register "wake" = "GPE0_DW2_14"
286 register "detect" = "1"
287 device i2c 15 on end
289 chip drivers/i2c/hid
290 register "generic.hid" = ""GXTP7288""
291 register "generic.desc" = ""Goodix Touchpad""
292 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)"
293 register "generic.wake" = "GPE0_DW2_14"
294 register "generic.detect" = "1"
295 register "hid_desc_reg_offset" = "0x01"
296 device i2c 2c on end
299 device ref hda on
300 chip drivers/generic/max98357a
301 register "hid" = ""MX98360A""
302 register "sdmode_gpio" =
303 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)"
304 register "sdmode_delay" = "5"
305 device generic 0 on
306 probe AUDIO MAX98360_ALC5682I_I2S
307 probe AUDIO MAX98360_ALC5682I_VS_I2S
311 device ref gspi1 on
312 chip drivers/spi/acpi
313 register "name" = ""CRFP""
314 register "hid" = "ACPI_DT_NAMESPACE_HID"
315 register "uid" = "1"
316 register "compat_string" = ""google,cros-ec-spi""
317 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F15_IRQ)"
318 register "wake" = "GPE0_DW2_15"
319 device spi 0 hidden end
320 register "has_power_resource" = "1"
321 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D1)"
322 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D2)"
323 register "enable_delay_ms" = "3"
324 end # FPMCU
326 device ref pch_espi on
327 chip ec/google/chromeec
328 use conn0 as mux_conn[0]
329 use conn1 as mux_conn[1]
330 device pnp 0c09.0 on end
333 device ref pmc hidden
334 chip drivers/intel/pmc_mux
335 device generic 0 on
336 chip drivers/intel/pmc_mux/conn
337 use usb2_port1 as usb2_port
338 use tcss_usb3_port1 as usb3_port
339 device generic 0 alias conn0 on end
341 chip drivers/intel/pmc_mux/conn
342 use usb2_port3 as usb2_port
343 use tcss_usb3_port3 as usb3_port
344 device generic 1 alias conn1 on end
349 device ref tcss_xhci on
350 chip drivers/usb/acpi
351 device ref tcss_root_hub on
352 chip drivers/usb/acpi
353 register "desc" = ""USB3 Type-C Port C0 (MLB)""
354 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
355 register "use_custom_pld" = "true"
356 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))"
357 device ref tcss_usb3_port1 on end
359 chip drivers/usb/acpi
360 register "desc" = ""USB3 Type-C Port C2 (MLB)""
361 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
362 register "use_custom_pld" = "true"
363 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))"
364 device ref tcss_usb3_port3 on end
369 device ref xhci on
370 chip drivers/usb/acpi
371 device ref xhci_root_hub on
372 chip drivers/usb/acpi
373 register "desc" = ""USB2 Type-C Port C0 (MLB)""
374 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
375 register "use_custom_pld" = "true"
376 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, CENTER, ACPI_PLD_GROUP(1, 1))"
377 device ref usb2_port1 on end
379 chip drivers/usb/acpi
380 register "desc" = ""USB2 Type-C Port C2 (MLB)""
381 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
382 register "use_custom_pld" = "true"
383 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(2, 1))"
384 device ref usb2_port3 on end
386 chip drivers/usb/acpi
387 register "desc" = ""USB2 WWAN""
388 register "type" = "UPC_TYPE_INTERNAL"
389 device ref usb2_port4 on end
391 chip drivers/usb/acpi
392 register "desc" = ""USB2 Camera""
393 register "type" = "UPC_TYPE_INTERNAL"
394 device ref usb2_port6 on end
396 chip drivers/usb/acpi
397 register "desc" = ""USB2 Type-A Port (MLB)""
398 register "type" = "UPC_TYPE_A"
399 register "use_custom_pld" = "true"
400 register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))"
401 device ref usb2_port8 on end
403 chip drivers/usb/acpi
404 register "desc" = ""USB2 Type-A Port A0 (DB)""
405 register "type" = "UPC_TYPE_A"
406 register "use_custom_pld" = "true"
407 register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))"
408 device ref usb2_port9 on end
410 chip drivers/usb/acpi
411 register "desc" = ""USB2 Bluetooth""
412 register "type" = "UPC_TYPE_INTERNAL"
413 register "reset_gpio" =
414 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)"
415 device ref usb2_port10 on end
417 chip drivers/usb/acpi
418 register "desc" = ""USB3 Type-A Port A0 (DB)""
419 register "type" = "UPC_TYPE_USB3_A"
420 register "use_custom_pld" = "true"
421 register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))"
422 device ref usb3_port1 on end
424 chip drivers/usb/acpi
425 register "desc" = ""USB3 Type-A Port (MLB)""
426 register "type" = "UPC_TYPE_USB3_A"
427 register "use_custom_pld" = "true"
428 register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))"
429 device ref usb3_port2 on end
431 chip drivers/usb/acpi
432 register "desc" = ""USB3 WWAN""
433 register "type" = "UPC_TYPE_INTERNAL"
434 device ref usb3_port4 on end