soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / dedede / variants / drawcia / overridetree.cb
blob6c745d9f979eb9b8c11756819271bd29d0a59b90
1 fw_config
2 field AUDIO_CODEC_SOURCE 40 42
3 option AUDIO_CODEC_UNPROVISIONED 0
4 option AUDIO_CODEC_ALC5682 1
5 option AUDIO_CODEC_ALC5682I_VS 2
6 end
7 end
8 chip soc/intel/jasperlake
10 # PCIe RP LTR configuration
11 register "PcieRpLtrEnable[7]" = "1"
13 # USB Port Configuration
14 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
16 # Intel Common SoC Config
17 #+-------------------+---------------------------+
18 #| Field | Value |
19 #+-------------------+---------------------------+
20 #| GSPI0 | cr50 TPM. Early init is |
21 #| | required to set up a BAR |
22 #| | for TPM communication |
23 #| | before memory is up |
24 #| I2C0 | Trackpad |
25 #| I2C1 | Digitizer |
26 #| I2C2 | Touchscreen |
27 #| I2C3 | Camera |
28 #| I2C4 | Audio |
29 #+-------------------+---------------------------+
30 register "common_soc_config" = "{
31 .gspi[0] = {
32 .speed_mhz = 1,
33 .early_init = 1,
35 .i2c[0] = {
36 .speed = I2C_SPEED_FAST,
37 .speed_config[0] = {
38 .speed = I2C_SPEED_FAST,
39 .scl_lcnt = 190,
40 .scl_hcnt = 100,
41 .sda_hold = 40,
44 .i2c[1] = {
45 .speed = I2C_SPEED_FAST,
47 .i2c[2] = {
48 .speed = I2C_SPEED_FAST,
49 .speed_config[0] = {
50 .speed = I2C_SPEED_FAST,
51 .scl_lcnt = 190,
52 .scl_hcnt = 100,
53 .sda_hold = 40,
56 .i2c[3] = {
57 .speed = I2C_SPEED_FAST,
59 .i2c[4] = {
60 .speed = I2C_SPEED_FAST,
61 .speed_config[0] = {
62 .speed = I2C_SPEED_FAST,
63 .scl_lcnt = 190,
64 .scl_hcnt = 100,
65 .sda_hold = 40,
70 register "tcc_offset" = "20" # TCC of 85C
72 # Enable Acoustic noise mitigation and set slew rate to 1/4
73 # Rest of the parameters are 0 by default.
74 register "AcousticNoiseMitigation" = "1"
75 register "SlowSlewRate" = "SlewRateFastBy4"
76 register "FastPkgCRampDisable" = "1"
78 device domain 0 on
79 device pci 05.0 on # IPU - MIPI Camera
80 chip drivers/intel/mipi_camera
81 register "acpi_uid" = "0x50000"
82 register "acpi_name" = ""IPU0""
83 register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
85 register "cio2_num_ports" = "2"
86 register "cio2_lanes_used" = "{1,4}"
87 register "cio2_lane_endpoint[1]" = ""^I2C3.CAM1""
88 register "cio2_prt[0]" = "0"
89 register "cio2_prt[1]" = "2"
90 device generic 0 on end
91 end
92 end
94 device pci 04.0 on
95 chip drivers/intel/dptf
96 # Default DPTF Policy for all drawcia boards if not overridden
97 register "options.tsr[0].desc" = ""Memory""
98 register "options.tsr[1].desc" = ""Ambient""
99 register "options.tsr[2].desc" = ""Charger""
100 register "options.tsr[3].desc" = ""5V regulator""
102 ## Passive Policy
103 register "policies.passive" = "{
104 [0] = DPTF_PASSIVE(CPU, CPU, 80, 1000),
105 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 70, 4000),
106 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 51, 1000),
107 [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 75, 5000),
108 [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 60, 1000)
111 ## Critical Policy
112 register "policies.critical" = "{
113 [0] = DPTF_CRITICAL(CPU, 119, SHUTDOWN),
114 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 115, SHUTDOWN),
115 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 115, SHUTDOWN),
116 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 115, SHUTDOWN),
117 [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 115, SHUTDOWN)
120 register "controls.power_limits" = "{
121 .pl1 = {
122 .min_power = 3800,
123 .max_power = 5800,
124 .time_window_min = 1 * MSECS_PER_SEC,
125 .time_window_max = 1 * MSECS_PER_SEC,
126 .granularity = 200,
128 .pl2 = {
129 .min_power = 20000,
130 .max_power = 20000,
131 .time_window_min = 1 * MSECS_PER_SEC,
132 .time_window_max = 1 * MSECS_PER_SEC,
133 .granularity = 1000,
137 ## Charger Performance Control (Control, mA)
138 register "controls.charger_perf" = "{
139 [0] = { 255, 3000 },
140 [1] = { 24, 1500 },
141 [2] = { 16, 1000 },
142 [3] = { 8, 500 }
145 device generic 0 on end
147 end # SA Thermal device
148 device pci 14.0 on
149 chip drivers/usb/acpi
150 device usb 0.0 on
151 chip drivers/usb/acpi
152 register "desc" = ""LTE""
153 register "type" = "UPC_TYPE_INTERNAL"
154 register "group" = "ACPI_PLD_GROUP(2, 2)"
155 register "has_power_resource" = "1"
156 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)"
157 register "reset_off_delay_ms" = "20"
158 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)"
159 register "enable_delay_ms" = "20"
160 device usb 2.3 alias lte_usb2 on
161 probe DB_PORTS DB_PORTS_1A_HDMI_LTE
164 chip drivers/usb/acpi
165 register "desc" = ""Right Type-A Port""
166 register "type" = "UPC_TYPE_A"
167 register "group" = "ACPI_PLD_GROUP(2, 2)"
168 device usb 2.3 on
169 probe DB_PORTS DB_PORTS_1A_HDMI
170 probe DB_PORTS DB_PORTS_1C_1A
173 chip drivers/usb/acpi
174 register "desc" = ""Camera""
175 register "type" = "UPC_TYPE_INTERNAL"
176 device usb 2.5 on end
178 chip drivers/usb/acpi
179 register "desc" = ""LTE""
180 register "type" = "UPC_TYPE_INTERNAL"
181 register "group" = "ACPI_PLD_GROUP(2, 2)"
182 device usb 3.3 on
183 probe DB_PORTS DB_PORTS_1A_HDMI_LTE
186 chip drivers/usb/acpi
187 register "desc" = ""Right Type-A Port""
188 register "type" = "UPC_TYPE_USB3_A"
189 register "group" = "ACPI_PLD_GROUP(2, 2)"
190 device usb 3.3 on
191 probe DB_PORTS DB_PORTS_1A_HDMI
192 probe DB_PORTS DB_PORTS_1C_1A
197 end # USB xHCI
198 device pci 15.0 on
199 chip drivers/i2c/generic
200 register "hid" = ""ELAN0000""
201 register "desc" = ""ELAN Touchpad""
202 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
203 register "wake" = "GPE0_DW0_03"
204 register "detect" = "1"
205 device i2c 15 on end
207 chip drivers/i2c/hid
208 register "generic.hid" = ""SYNA0000""
209 register "generic.cid" = ""ACPI0C50""
210 register "generic.desc" = ""Synaptics Touchpad""
211 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
212 register "generic.wake" = "GPE0_DW0_03"
213 register "generic.detect" = "1"
214 register "hid_desc_reg_offset" = "0x20"
215 device i2c 0x2c on end
217 end #I2C 0
218 device pci 15.2 on
219 chip drivers/generic/gpio_keys
220 register "name" = ""PENH""
221 register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_C12)"
222 register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ"
223 register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
224 register "key.dev_name" = ""EJCT""
225 register "key.linux_code" = "SW_PEN_INSERTED"
226 register "key.linux_input_type" = "EV_SW"
227 register "key.label" = ""pen_eject""
228 device generic 0 on end
230 chip drivers/i2c/generic
231 register "hid" = ""ELAN0001""
232 register "desc" = ""ELAN Touchscreen""
233 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
234 register "detect" = "1"
235 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)"
236 register "reset_delay_ms" = "20"
237 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
238 register "enable_delay_ms" = "1"
239 register "has_power_resource" = "1"
240 device i2c 10 on end
242 chip drivers/i2c/hid
243 register "generic.hid" = ""GTCH7503""
244 register "generic.desc" = ""G2TOUCH Touchscreen""
245 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
246 register "generic.detect" = "1"
247 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)"
248 register "generic.reset_delay_ms" = "50"
249 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
250 register "generic.enable_delay_ms" = "1"
251 register "generic.has_power_resource" = "1"
252 register "hid_desc_reg_offset" = "0x01"
253 device i2c 40 on end
255 chip drivers/i2c/hid
256 register "generic.hid" = ""GDIX0000""
257 register "generic.desc" = ""Goodix Touchscreen""
258 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
259 register "generic.detect" = "1"
260 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)"
261 register "generic.reset_delay_ms" = "120"
262 register "generic.reset_off_delay_ms" = "2"
263 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
264 register "generic.enable_delay_ms" = "12"
265 register "generic.has_power_resource" = "1"
266 register "hid_desc_reg_offset" = "0x01"
267 device i2c 0x5d on end
269 chip drivers/i2c/hid
270 register "generic.hid" = ""ELAN2513""
271 register "generic.desc" = ""ELAN Touchscreen""
272 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
273 register "generic.detect" = "1"
274 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)"
275 register "generic.reset_delay_ms" = "20"
276 register "generic.reset_off_delay_ms" = "2"
277 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
278 register "generic.enable_delay_ms" = "10"
279 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A11)"
280 register "generic.stop_delay_ms" = "130"
281 register "generic.has_power_resource" = "1"
282 register "hid_desc_reg_offset" = "0x01"
283 device i2c 15 on end
285 chip drivers/i2c/hid
286 register "generic.hid" = ""WDHT0002""
287 register "generic.desc" = ""WDT Touchscreen""
288 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
289 register "generic.detect" = "1"
290 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)"
291 register "generic.reset_delay_ms" = "130"
292 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
293 register "generic.enable_delay_ms" = "10"
294 register "generic.has_power_resource" = "1"
295 register "hid_desc_reg_offset" = "0x20"
296 device i2c 2c on end
298 end # I2C 2
299 device pci 15.3 on
300 chip drivers/intel/mipi_camera
301 register "acpi_hid" = ""OVTI8856""
302 register "acpi_uid" = "0"
303 register "acpi_name" = ""CAM1""
304 register "chip_name" = ""Ov 8856 Camera""
305 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
307 register "ssdb.lanes_used" = "4"
308 register "ssdb.link_used" = "1"
309 register "ssdb.vcm_type" = "0x0C"
310 register "vcm_name" = ""VCM0""
311 register "num_freq_entries" = "2"
312 register "link_freq[0]" = "360000000"
313 register "link_freq[1]" = "180000000"
314 register "remote_name" = ""IPU0""
316 register "has_power_resource" = "1"
317 register "low_power_probe" = "1"
319 #Controls
320 register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1
321 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
323 register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8
324 register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2
325 register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset
327 #_ON
328 register "on_seq.ops_cnt" = "6"
329 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
330 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
331 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
332 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
333 register "on_seq.ops[4]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
334 register "on_seq.ops[5]" = "SEQ_OPS_GPIO_ENABLE(2, 0)"
336 #_OFF
337 register "off_seq.ops_cnt" = "4"
338 register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
339 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
340 register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
341 register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
343 device i2c 36 on end
345 chip drivers/intel/mipi_camera
346 register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
347 register "acpi_uid" = "3"
348 register "acpi_name" = ""VCM0""
349 register "chip_name" = ""DW AF DAC""
350 register "device_type" = "INTEL_ACPI_CAMERA_VCM"
352 register "has_power_resource" = "1"
353 register "vcm_compat" = ""dongwoon,dw9714""
354 register "low_power_probe" = "1"
356 register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8
357 register "gpio_panel.gpio[1].gpio_num" = "GPP_D12" #reset
358 #_ON
359 register "on_seq.ops_cnt" = "2"
360 register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)"
361 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
362 #_OFF
363 register "off_seq.ops_cnt" = "2"
364 register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
365 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(1, 5)"
367 device i2c 0C on end
369 chip drivers/intel/mipi_camera
370 register "acpi_uid" = "1"
371 register "acpi_name" = ""NVM0""
372 register "chip_name" = ""GT24C08""
373 register "device_type" = "INTEL_ACPI_CAMERA_NVM"
375 register "nvm_size" = "0x0400"
376 register "nvm_pagesize" = "1"
377 register "nvm_readonly" = "1"
378 register "nvm_width" = "0x08"
379 register "nvm_compat" = ""atmel,24c08""
380 register "low_power_probe" = "1"
382 register "has_power_resource" = "1"
384 register "gpio_panel.gpio[0].gpio_num" = "GPP_D14" #power_enable_1p2
385 #_ON
386 register "on_seq.ops_cnt" = "1"
387 register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)"
388 #_OFF
389 register "off_seq.ops_cnt" = "1"
390 register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
391 device i2c 50 on end
393 end # I2C 3
394 device pci 19.0 on
395 chip drivers/i2c/generic
396 register "hid" = ""10EC5682""
397 register "name" = ""RT58""
398 register "desc" = ""Headset Codec""
399 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
400 # Set the jd_src to RT5668_JD1 for jack detection
401 register "property_count" = "1"
402 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
403 register "property_list[0].name" = ""realtek,jd-src""
404 register "property_list[0].integer" = "1"
405 device i2c 1a on
406 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
407 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
410 chip drivers/i2c/generic
411 register "hid" = ""RTL5682""
412 register "name" = ""RT58""
413 register "desc" = ""Headset Codec""
414 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
415 # Set the jd_src to RT5668_JD1 for jack detection
416 register "property_count" = "1"
417 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
418 register "property_list[0].name" = ""realtek,jd-src""
419 register "property_list[0].integer" = "1"
420 device i2c 1a on
421 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
424 end #I2C 4
425 device pci 1c.7 on
426 chip drivers/wifi/generic
427 register "wake" = "GPE0_DW2_03"
428 device pci 00.0 on end
431 device pci 1f.3 on
432 chip drivers/generic/max98357a
433 register "hid" = ""MX98360A""
434 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
435 device generic 0 on end
437 end # Intel HDA