mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / dedede / variants / storo / overridetree.cb
blobcfaf28fbfa3e81cda801d9f48a0afae8822ff09e
1 fw_config
2 field AUDIO_CODEC_SOURCE 41 43
3 option AUDIO_CODEC_UNPROVISIONED 0
4 option AUDIO_CODEC_ALC5682 1
5 option AUDIO_CODEC_ALC5682I_VS 2
6 end
7 end
9 chip soc/intel/jasperlake
10 # Disable PCIe Clock Source 4 (index 3)
11 register "PcieClkSrcUsage[3]" = "0xff"
13 # USB Port Configuration
14 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # User Facing Camera
15 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/1 Type-A Port A1
17 # Intel Common SoC Config
18 #+-------------------+---------------------------+
19 #| Field | Value |
20 #+-------------------+---------------------------+
21 #| GSPI0 | cr50 TPM. Early init is |
22 #| | required to set up a BAR |
23 #| | for TPM communication |
24 #| | before memory is up |
25 #| I2C0 | Trackpad |
26 #| I2C1 | Digitizer, Stylus |
27 #| I2C2 | Touchscreen |
28 #| I2C3 | Camera |
29 #| I2C4 | Audio |
30 #| I2C5 | P-Sensor |
31 #+-------------------+---------------------------+
32 register "common_soc_config" = "{
33 .gspi[0] = {
34 .speed_mhz = 1,
35 .early_init = 1,
37 .i2c[0] = {
38 .speed = I2C_SPEED_FAST,
39 .rise_time_ns = 260,
40 .fall_time_ns = 50,
42 .i2c[1] = {
43 .speed = I2C_SPEED_FAST,
45 .i2c[2] = {
46 .speed = I2C_SPEED_FAST,
47 .rise_time_ns = 86,
48 .fall_time_ns = 5,
50 .i2c[3] = {
51 .speed = I2C_SPEED_FAST,
52 .rise_time_ns = 84,
53 .fall_time_ns = 4,
55 .i2c[4] = {
56 .speed = I2C_SPEED_FAST,
57 .rise_time_ns = 69,
58 .fall_time_ns = 3,
60 .i2c[5] = {
61 .speed = I2C_SPEED_FAST,
62 .rise_time_ns = 129,
63 .fall_time_ns = 4,
67 register "usb2_ports[3]" = "{
68 .enable = 1,
69 .ocpin = OC_SKIP,
70 .tx_bias = USB2_BIAS_0MV,
71 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON,
72 .pre_emp_bias = USB2_BIAS_28P15MV,
73 .pre_emp_bit = USB2_HALF_BIT_PRE_EMP,
74 }" # WWAN
76 register "SerialIoI2cMode" = "{
77 [PchSerialIoIndexI2C0] = PchSerialIoPci,
78 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
79 [PchSerialIoIndexI2C2] = PchSerialIoPci,
80 [PchSerialIoIndexI2C3] = PchSerialIoPci,
81 [PchSerialIoIndexI2C4] = PchSerialIoPci,
82 [PchSerialIoIndexI2C5] = PchSerialIoPci,
85 # Power limit config
86 register "power_limits_config[JSL_N4500_6W_CORE]" = "{
87 .tdp_pl1_override = 7,
88 .tdp_pl2_override = 20,
91 register "power_limits_config[JSL_N6000_6W_CORE]" = "{
92 .tdp_pl1_override = 7,
93 .tdp_pl2_override = 20,
96 register "power_limits_config[JSL_N5100_6W_CORE]" = "{
97 .tdp_pl1_override = 7,
98 .tdp_pl2_override = 20,
101 register "tcc_offset" = "10" # TCC of 95C
103 register "xhci_lfps_sampling_offtime_ms" = "0"
105 device domain 0 on
106 device pci 04.0 on
107 chip drivers/intel/dptf
108 ## Passive Policy
109 register "policies.passive" = "{
110 [0] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 67, 3000),
111 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 67, 3000),
112 [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 67, 3000),}"
113 ## Critical Policy
114 register "policies.critical" = "{
115 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
116 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 80, SHUTDOWN),
117 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 90, SHUTDOWN),
118 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 90, SHUTDOWN),}"
119 register "controls.power_limits.pl1" = "{
120 .min_power = 3000,
121 .max_power = 7000,
122 .time_window_min = 28 * MSECS_PER_SEC,
123 .time_window_max = 28 * MSECS_PER_SEC,
124 .granularity = 125,}"
125 register "controls.power_limits.pl2" = "{
126 .min_power = 20000,
127 .max_power = 20000,
128 .time_window_min = 28 * MSECS_PER_SEC,
129 .time_window_max = 32 * MSECS_PER_SEC,
130 .granularity = 1000,}"
131 ## Charger Performance Control (Control, mA)
132 register "controls.charger_perf" = "{
133 [0] = { 255, 3000 },
134 [1] = { 32, 2000 },
135 [2] = { 24, 1500 },
136 [3] = { 16, 1000 },
137 [4] = { 8, 500 }
139 device generic 0 on end
141 end # SA Thermal device
142 device pci 05.0 on # IPU - MIPI Camera
143 chip drivers/intel/mipi_camera
144 register "acpi_uid" = "0x50000"
145 register "acpi_name" = ""IPU0""
146 register "device_type" = "INTEL_ACPI_CAMERA_CIO2"
148 register "cio2_num_ports" = "2"
149 register "cio2_lanes_used" = "{1,4}"
150 register "cio2_lane_endpoint[1]" = ""^I2C3.CAM1""
151 register "cio2_prt[0]" = "0"
152 register "cio2_prt[1]" = "2"
153 device generic 0 on end
156 device pci 14.0 on
157 chip drivers/usb/acpi
158 device usb 0.0 on
159 chip drivers/usb/acpi
160 register "desc" = ""User Facing Camera""
161 register "type" = "UPC_TYPE_INTERNAL"
162 register "has_power_resource" = "1"
163 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D15)"
164 register "enable_delay_ms" = "20"
165 device usb 2.5 on end
167 chip drivers/usb/acpi
168 register "desc" = ""LTE""
169 register "type" = "UPC_TYPE_INTERNAL"
170 register "has_power_resource" = "1"
171 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)"
172 register "reset_off_delay_ms" = "10"
173 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)"
174 register "enable_delay_ms" = "20"
175 device usb 3.3 on end
177 chip drivers/usb/acpi
178 register "desc" = ""Right Type-A Port""
179 register "type" = "UPC_TYPE_USB3_A"
180 register "group" = "ACPI_PLD_GROUP(2, 2)"
181 device usb 3.4 on end
185 end # USB xHCI
186 device pci 15.0 on
187 chip drivers/i2c/generic
188 register "hid" = ""ELAN0000""
189 register "desc" = ""ELAN Touchpad""
190 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)"
191 register "wake" = "GPE0_DW0_03"
192 register "detect" = "1"
193 device i2c 15 on end
195 end #I2C 0
196 device pci 15.2 on
197 chip drivers/generic/gpio_keys
198 register "name" = ""PENH""
199 register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_C12)"
200 register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ"
201 register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
202 register "key.dev_name" = ""EJCT""
203 register "key.linux_code" = "SW_PEN_INSERTED"
204 register "key.linux_input_type" = "EV_SW"
205 register "key.label" = ""pen_eject""
206 device generic 0 on end
208 chip drivers/i2c/hid
209 register "generic.hid" = ""ELAN9008""
210 register "generic.desc" = ""ELAN Touchscreen""
211 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)"
212 register "generic.detect" = "1"
213 register "generic.reset_gpio" =
214 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)"
215 register "generic.enable_gpio" =
216 "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
217 register "generic.enable_delay_ms" = "7"
218 register "generic.has_power_resource" = "1"
219 register "hid_desc_reg_offset" = "0x01"
220 device i2c 10 on end
222 end # I2C 2
223 device pci 15.3 on
224 chip drivers/intel/mipi_camera
225 register "acpi_hid" = ""OVTI8856""
226 register "acpi_uid" = "0"
227 register "acpi_name" = ""CAM1""
228 register "chip_name" = ""Ov 8856 Camera""
229 register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
231 register "ssdb.lanes_used" = "4"
232 register "ssdb.link_used" = "1"
233 register "ssdb.vcm_type" = "0x0C"
234 register "vcm_name" = ""VCM0""
235 register "num_freq_entries" = "2"
236 register "link_freq[0]" = "360000000"
237 register "link_freq[1]" = "180000000"
238 register "remote_name" = ""IPU0""
240 register "has_power_resource" = "1"
241 #Controls
242 register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1
243 register "clk_panel.clks[0].freq" = "1" #19.2 Mhz
245 register "gpio_panel.gpio[0].gpio_num" = "GPP_D13" #power_enable_2p8
246 register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2
247 register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset
249 #_ON
250 register "on_seq.ops_cnt" = "5"
251 register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
252 register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
253 register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
254 register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
255 register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
257 #_OFF
258 register "off_seq.ops_cnt" = "4"
259 register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
260 register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
261 register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
262 register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
264 device i2c 36 on end
266 chip drivers/intel/mipi_camera
267 register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
268 register "acpi_uid" = "3"
269 register "acpi_name" = ""VCM0""
270 register "chip_name" = ""DW AF DAC""
271 register "device_type" = "INTEL_ACPI_CAMERA_VCM"
273 register "pr0" = ""\\_SB.PCI0.I2C3.CAM1.PRIC""
274 register "vcm_compat" = ""dongwoon,dw9714""
276 device i2c 0c on end
278 chip drivers/intel/mipi_camera
279 register "acpi_uid" = "1"
280 register "acpi_name" = ""NVM0""
281 register "chip_name" = ""GT24C08""
282 register "device_type" = "INTEL_ACPI_CAMERA_NVM"
284 register "nvm_size" = "0x2000"
285 register "nvm_pagesize" = "1"
286 register "nvm_readonly" = "1"
287 register "nvm_width" = "0x10"
288 register "nvm_compat" = ""atmel,24c08""
290 device i2c 50 on end
292 end # I2C 3
293 device pci 19.0 on
294 chip drivers/i2c/generic
295 register "hid" = ""10EC5682""
296 register "name" = ""RT58""
297 register "desc" = ""Realtek RT5682""
298 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
299 register "property_count" = "1"
300 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
301 register "property_list[0].name" = ""realtek,jd-src""
302 register "property_list[0].integer" = "1"
303 device i2c 1a on
304 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
305 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
308 chip drivers/i2c/generic
309 register "hid" = ""RTL5682""
310 register "name" = ""RT58""
311 register "desc" = ""Realtek RT5682""
312 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
313 register "property_count" = "1"
314 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
315 register "property_list[0].name" = ""realtek,jd-src""
316 register "property_list[0].integer" = "1"
317 device i2c 1a on
318 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
321 end # I2C 4
322 device pci 1f.3 on
323 chip drivers/generic/alc1015
324 register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
325 device generic 0 on end
327 end # Intel HDA
328 device pci 19.1 on
329 chip drivers/i2c/sx9324
330 register "desc" = ""SAR Proximity Sensor""
331 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E11_IRQ)"
332 register "uid" = "2"
333 register "reg_gnrl_ctrl0" = "0x0a"
334 register "reg_gnrl_ctrl1" = "0x22"
335 register "reg_afe_ctrl0" = "0x20"
336 register "reg_afe_ctrl3" = "0x00"
337 register "reg_afe_ctrl4" = "0x47"
338 register "reg_afe_ctrl6" = "0x00"
339 register "reg_afe_ctrl7" = "0x47"
340 register "reg_afe_ctrl8" = "0x12"
341 register "reg_afe_ctrl9" = "0x08"
342 register "reg_afe_ph0" = "0x37"
343 #register "reg_afe_ph1" = "0x10"
344 register "reg_afe_ph1" = "0x37"
345 register "reg_afe_ph2" = "0x1f"
346 register "reg_afe_ph3" = "0x3d"
347 register "reg_prox_ctrl0" = "0x0b"
348 register "reg_prox_ctrl1" = "0x0b"
349 register "reg_prox_ctrl2" = "0x20"
350 register "reg_prox_ctrl3" = "0x20"
351 register "reg_prox_ctrl4" = "0x0c"
352 register "reg_prox_ctrl5" = "0x00"
353 register "reg_prox_ctrl6" = "0x1c"
354 register "reg_prox_ctrl7" = "0xc0"
355 register "reg_adv_ctrl0" = "0x00"
356 register "reg_adv_ctrl1" = "0x00"
357 register "reg_adv_ctrl2" = "0x00"
358 register "reg_adv_ctrl3" = "0x00"
359 register "reg_adv_ctrl4" = "0x00"
360 register "reg_adv_ctrl5" = "0x05"
361 register "reg_adv_ctrl6" = "0x00"
362 register "reg_adv_ctrl7" = "0x00"
363 register "reg_adv_ctrl8" = "0x00"
364 register "reg_adv_ctrl9" = "0x00"
365 register "reg_adv_ctrl10" = "0x00"
366 register "reg_adv_ctrl11" = "0x00"
367 register "reg_adv_ctrl12" = "0x00"
368 register "reg_adv_ctrl13" = "0x00"
369 register "reg_adv_ctrl14" = "0x80"
370 register "reg_adv_ctrl15" = "0x0c"
371 register "reg_adv_ctrl16" = "0x04"
372 register "reg_adv_ctrl17" = "0x70"
373 register "reg_adv_ctrl18" = "0x20"
374 register "reg_adv_ctrl19" = "0x00"
375 register "reg_adv_ctrl20" = "0x00"
376 register "reg_irq_cfg0" = "0x00"
377 register "reg_irq_cfg1" = "0x80"
378 register "reg_irq_cfg2" = "0x01"
379 device i2c 28 on end
381 end # I2C 5
382 device pci 1c.7 off end # PCI Express Root Port 8