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