mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / google / zork / variants / vilboz / overridetree.cb
blobf4eb6355989dcd683bb0404b311a5a61c3fd49dd
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 fw_config
4 field AUDIO_AMP 35
5 option AUDIO_AMP_I2C_MODE 0
6 option AUDIO_AMP_AUTO_MODE 1
7 end
8 end
10 chip soc/amd/picasso
12 # Start : OPN Performance Configuration
13 # See devhub #56670 Chapter 5 for documentation
14 # For the below fields, 0 indicates use SOC default
16 # System config index
17 register "system_config" = "1"
19 # Set STAPM confiuration. All of these fields must be set >0 to take affect
20 register "slow_ppt_limit_mW" = "6000"
21 register "fast_ppt_limit_mW" = "9000"
22 register "slow_ppt_time_constant_s" = "5"
23 register "stapm_time_constant_s" = "1400"
24 register "sustained_power_limit_mW" = "4800"
26 # End : OPN Performance Configuration
28 register "telemetry_vddcr_vdd_slope_mA" = "27225"
29 register "telemetry_vddcr_vdd_offset" = "187"
30 register "telemetry_vddcr_soc_slope_mA" = "26559"
31 register "telemetry_vddcr_soc_offset" = "89"
33 # eDP power sequence. all pwr sequence numbers below are in uint of 4ms,
34 # and "0" as default value
35 register "edp_pwr_adjust_enable" = "1"
36 register "pwron_digon_to_de" = "0"
37 register "pwron_de_to_varybl" = "0"
38 register "pwrdown_varybloff_to_de" = "0"
39 register "pwrdown_de_to_digoff" = "0"
40 register "pwroff_delay" = "0"
41 register "pwron_varybl_to_blon" = "5"
42 register "pwrdown_bloff_to_varybloff" = "5"
43 register "min_allowed_bl_level" = "0"
45 # Set HDMI 2.0 disable function
46 # bit0~3: disable HDMI 2.0 DDI0~3
47 # disable DDI1
48 register "hdmi2_disable" = "2"
50 # USB OC pin mapping
51 register "usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1
53 # Controller0 Port0
54 register "usb_2_port_tune_params[0]" = "{
55 .com_pds_tune = 0x07,
56 .sq_rx_tune = 0x3,
57 .tx_fsls_tune = 0x3,
58 .tx_pre_emp_amp_tune = 0x03,
59 .tx_pre_emp_pulse_tune = 0x0,
60 .tx_rise_tune = 0x1,
61 .tx_vref_tune = 0x6,
62 .tx_hsxv_tune = 0x3,
63 .tx_res_tune = 0x01,
66 # Controller0 Port1
67 register "usb_2_port_tune_params[1]" = "{
68 .com_pds_tune = 0x07,
69 .sq_rx_tune = 0x3,
70 .tx_fsls_tune = 0x3,
71 .tx_pre_emp_amp_tune = 0x03,
72 .tx_pre_emp_pulse_tune = 0x0,
73 .tx_rise_tune = 0x1,
74 .tx_vref_tune = 0x6,
75 .tx_hsxv_tune = 0x3,
76 .tx_res_tune = 0x01,
79 # Controller0 Port2
80 register "usb_2_port_tune_params[2]" = "{
81 .com_pds_tune = 0x07,
82 .sq_rx_tune = 0x3,
83 .tx_fsls_tune = 0x3,
84 .tx_pre_emp_amp_tune = 0x03,
85 .tx_pre_emp_pulse_tune = 0x0,
86 .tx_rise_tune = 0x1,
87 .tx_vref_tune = 0x6,
88 .tx_hsxv_tune = 0x3,
89 .tx_res_tune = 0x01,
92 # Controller0 Port3
93 register "usb_2_port_tune_params[3]" = "{
94 .com_pds_tune = 0x07,
95 .sq_rx_tune = 0x3,
96 .tx_fsls_tune = 0x3,
97 .tx_pre_emp_amp_tune = 0x03,
98 .tx_pre_emp_pulse_tune = 0x0,
99 .tx_rise_tune = 0x1,
100 .tx_vref_tune = 0x6,
101 .tx_hsxv_tune = 0x3,
102 .tx_res_tune = 0x01,
105 # Controller1 Port0
106 register "usb_2_port_tune_params[4]" = "{
107 .com_pds_tune = 0x07,
108 .sq_rx_tune = 0x3,
109 .tx_fsls_tune = 0x3,
110 .tx_pre_emp_amp_tune = 0x03,
111 .tx_pre_emp_pulse_tune = 0x0,
112 .tx_rise_tune = 0x1,
113 .tx_vref_tune = 0x6,
114 .tx_hsxv_tune = 0x3,
115 .tx_res_tune = 0x01,
118 # Controller1 Port1
119 register "usb_2_port_tune_params[5]" = "{
120 .com_pds_tune = 0x07,
121 .sq_rx_tune = 0x3,
122 .tx_fsls_tune = 0x3,
123 .tx_pre_emp_amp_tune = 0x03,
124 .tx_pre_emp_pulse_tune = 0x0,
125 .tx_rise_tune = 0x1,
126 .tx_vref_tune = 0x6,
127 .tx_hsxv_tune = 0x3,
128 .tx_res_tune = 0x01,
131 # I2C2 for touchscreen and trackpad
132 register "i2c[2]" = "{
133 .speed = I2C_SPEED_FAST,
134 .rise_time_ns = 18, /* 0 to 2.31 (3.3 * .7) */
135 .fall_time_ns = 57, /* 2.31 to 0 */
138 # I2C3 for H1
139 register "i2c[3]" = "{
140 .speed = I2C_SPEED_FAST,
141 .rise_time_ns = 110,
142 .fall_time_ns = 5,
143 .early_init = true,
146 register "emmc_config" = "{
147 .timing = SD_EMMC_EMMC_HS400,
148 .sdr104_hs400_driver_strength = SD_EMMC_DRIVE_STRENGTH_A,
149 .init_khz_preset = 400,
152 # See AMD 55570-B1 Table 13: PCI Device ID Assignments.
153 device domain 0 on
154 subsystemid 0x1022 0x1510 inherit
155 device ref gpp_bridge_2 on
156 chip drivers/generic/bayhub_lv2
157 register "enable_power_saving" = "1"
158 device pci 00.0 on end
160 end # SD
161 device ref internal_bridge_a on
162 device ref acp on
163 chip drivers/amd/i2s_machine_dev
164 register "hid" = ""AMDI1015""
165 # DMIC select GPIO for ACP machine device
166 # This GPIO is used to select DMIC0 or DMIC1 by the
167 # kernel driver. It does not really have a polarity
168 # since low and high control the selection of DMIC and
169 # hence does not have an active polarity.
170 # Kernel driver does not use the polarity field and
171 # instead treats the GPIO selection as follows:
172 # Set low (0) = Select DMIC0
173 # Set high (1) = Select DMIC1
174 register "dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
175 device generic 0.0 hidden
176 probe AUDIO_AMP AUDIO_AMP_I2C_MODE
179 chip drivers/amd/i2s_machine_dev
180 register "hid" = ""10021015""
181 # DMIC select GPIO for ACP machine device
182 # This GPIO is used to select DMIC0 or DMIC1 by the
183 # kernel driver. It does not really have a polarity
184 # since low and high control the selection of DMIC and
185 # hence does not have an active polarity.
186 # Kernel driver does not use the polarity field and
187 # instead treats the GPIO selection as follows:
188 # Set low (0) = Select DMIC0
189 # Set high (1) = Select DMIC1
190 register "dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
191 device generic 1.0 hidden
192 probe AUDIO_AMP AUDIO_AMP_AUTO_MODE
195 chip drivers/generic/alc1015
196 register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_91)"
197 device generic 1.1 on
198 probe AUDIO_AMP AUDIO_AMP_AUTO_MODE
201 end # Audio
203 device ref lpc_bridge on
204 chip ec/google/chromeec
205 device ref cros_ec on
206 chip ec/google/chromeec/i2c_tunnel
207 device ref cros_ec_i2c_8 on
208 chip drivers/i2c/generic
209 register "hid" = ""10EC1015""
210 register "desc" = ""RT1015 Tweeter Left Speaker Amp""
211 register "uid" = "0"
212 register "name" = ""TL""
213 device i2c 28 on end
215 chip drivers/i2c/generic
216 register "hid" = ""10EC1015""
217 register "desc" = ""RT1015 Tweeter Right Speaker Amp""
218 register "uid" = "1"
219 register "name" = ""TR""
220 device i2c 29 on end
222 probe AUDIO_AMP AUDIO_AMP_I2C_MODE
228 end # domain
230 device ref i2c_2 on
231 chip drivers/i2c/hid
232 register "generic.hid" = ""GDIX0000""
233 register "generic.desc" = ""Goodix Touchscreen""
234 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
235 register "generic.detect" = "1"
236 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_32)"
237 register "generic.enable_delay_ms" = "10"
238 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
239 register "generic.reset_off_delay_ms" = "2"
240 register "generic.reset_delay_ms" = "20"
241 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_144)"
242 register "generic.stop_delay_ms" = "160"
243 register "generic.stop_off_delay_ms" = "2"
244 register "generic.has_power_resource" = "1"
245 register "hid_desc_reg_offset" = "0x01"
246 device i2c 5d on end
248 chip drivers/i2c/generic
249 register "hid" = ""ELAN0001""
250 register "desc" = ""ELAN Touchscreen""
251 register "detect" = "1"
252 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_12)"
253 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_32)"
254 register "enable_delay_ms" = "1"
255 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
256 register "reset_delay_ms" = "20"
257 register "reset_off_delay_ms" = "2"
258 register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_144)"
259 register "stop_off_delay_ms" = "2"
260 register "has_power_resource" = "1"
261 device i2c 10 on end
263 chip drivers/generic/gpio_keys
264 register "name" = ""PENH""
265 register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPIO_4)"
266 register "key.dev_name" = ""EJCT""
267 register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
268 register "key.linux_code" = "SW_PEN_INSERTED"
269 register "key.linux_input_type" = "EV_SW"
270 register "key.label" = ""pen_eject""
271 register "key.debounce_interval" = "100"
272 register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ"
273 device generic 0 on end
275 chip drivers/i2c/generic
276 register "hid" = ""ELAN0000""
277 register "desc" = ""ELAN Touchpad""
278 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
279 register "wake" = "GEVENT_22"
280 register "detect" = "1"
281 device i2c 15 on end
283 chip drivers/i2c/hid
284 register "generic.hid" = ""SYNA0000""
285 register "generic.cid" = ""ACPI0C50""
286 register "generic.desc" = ""Synaptics Touchpad""
287 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
288 register "generic.wake" = "GEVENT_22"
289 register "generic.detect" = "1"
290 register "hid_desc_reg_offset" = "0x20"
291 device i2c 2c on end
293 chip drivers/i2c/sx9324
294 register "desc" = ""SAR Proximity Sensor""
295 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_40)"
296 register "uid" = "2"
297 register "reg_irq_msk" = "0x67"
298 register "reg_irq_cfg0" = "0x00"
299 register "reg_irq_cfg1" = "0x80"
300 register "reg_irq_cfg2" = "0x00"
301 register "reg_gnrl_ctrl0" = "0x16"
302 register "reg_gnrl_ctrl1" = "0x21"
303 register "reg_afe_ctrl0" = "0x00"
304 register "reg_afe_ctrl1" = "0x10"
305 register "reg_afe_ctrl2" = "0x00"
306 register "reg_afe_ctrl3" = "0x00"
307 register "reg_afe_ctrl4" = "0x07"
308 register "reg_afe_ctrl5" = "0x00"
309 register "reg_afe_ctrl6" = "0x00"
310 register "reg_afe_ctrl7" = "0x07"
311 register "reg_afe_ctrl8" = "0x12"
312 register "reg_afe_ctrl9" = "0x0b"
313 register "reg_afe_ph0" = "0x29"
314 register "reg_afe_ph1" = "0x26"
315 register "reg_afe_ph2" = "0x1a"
316 register "reg_afe_ph3" = "0x16"
317 register "reg_prox_ctrl0" = "0x10"
318 register "reg_prox_ctrl1" = "0x12"
319 register "reg_prox_ctrl2" = "0x20"
320 register "reg_prox_ctrl3" = "0x20"
321 register "reg_prox_ctrl4" = "0x0c"
322 register "reg_prox_ctrl5" = "0x00"
323 register "reg_prox_ctrl6" = "0x18"
324 register "reg_prox_ctrl7" = "0x58"
325 register "reg_adv_ctrl0" = "0x00"
326 register "reg_adv_ctrl1" = "0x00"
327 register "reg_adv_ctrl2" = "0x00"
328 register "reg_adv_ctrl3" = "0x00"
329 register "reg_adv_ctrl4" = "0x00"
330 register "reg_adv_ctrl5" = "0x05"
331 register "reg_adv_ctrl6" = "0x00"
332 register "reg_adv_ctrl7" = "0x00"
333 register "reg_adv_ctrl8" = "0x00"
334 register "reg_adv_ctrl9" = "0x00"
335 register "reg_adv_ctrl10" = "0x0c"
336 register "reg_adv_ctrl11" = "0x00"
337 register "reg_adv_ctrl12" = "0xb5"
338 register "reg_adv_ctrl13" = "0x00"
339 register "reg_adv_ctrl14" = "0x80"
340 register "reg_adv_ctrl15" = "0x0c"
341 register "reg_adv_ctrl16" = "0x08"
342 register "reg_adv_ctrl17" = "0x56"
343 register "reg_adv_ctrl18" = "0x33"
344 register "reg_adv_ctrl19" = "0xf0"
345 register "reg_adv_ctrl20" = "0xf0"
346 device i2c 28 on end
349 end # chip soc/amd/picasso