mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / google / zork / variants / dirinboz / overridetree.cb
blob741baed17266df90a78391ecd9949e20f748438e
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 fw_config
3 field AUDIO_CODEC_SOURCE 36 37
4 option AUDIO_CODEC_ALC5682 0
5 option AUDIO_CODEC_ALC5682I_VS 1
6 end
7 end
9 chip soc/amd/picasso
11 # Start : OPN Performance Configuration
12 # See devhub #56670 Chapter 5 for documentation
13 # For the below fields, 0 indicates use SOC default
15 # System config index
16 register "system_config" = "1"
18 # Set STAPM confiuration. All of these fields must be set >0 to take affect
19 register "slow_ppt_limit_mW" = "6000"
20 register "fast_ppt_limit_mW" = "9000"
21 register "slow_ppt_time_constant_s" = "5"
22 register "stapm_time_constant_s" = "1400"
23 register "sustained_power_limit_mW" = "4800"
25 register "telemetry_vddcr_vdd_slope_mA" = "41322"
26 register "telemetry_vddcr_vdd_offset" = "-25"
27 register "telemetry_vddcr_soc_slope_mA" = "43440"
28 register "telemetry_vddcr_soc_offset" = "115"
29 # End : OPN Performance Configuration
31 # USB 2.0 strength - MB type-C C0
32 register "usb_2_port_tune_params[0]" = "{
33 .com_pds_tune = 0x07,
34 .sq_rx_tune = 0x3,
35 .tx_fsls_tune = 0x3,
36 .tx_pre_emp_amp_tune = 0x03,
37 .tx_pre_emp_pulse_tune = 0x0,
38 .tx_rise_tune = 0x1,
39 .tx_vref_tune = 0xe,
40 .tx_hsxv_tune = 0x3,
41 .tx_res_tune = 0x01,
44 # USB 2.0 strength - DB type-A
45 register "usb_2_port_tune_params[2]" = "{
46 .com_pds_tune = 0x07,
47 .sq_rx_tune = 0x3,
48 .tx_fsls_tune = 0x3,
49 .tx_pre_emp_amp_tune = 0x03,
50 .tx_pre_emp_pulse_tune = 0x0,
51 .tx_rise_tune = 0x0,
52 .tx_vref_tune = 0xe,
53 .tx_hsxv_tune = 0x3,
54 .tx_res_tune = 0x01,
57 # USB 2.0 strength - DB type-C C1
58 register "usb_2_port_tune_params[3]" = "{
59 .com_pds_tune = 0x07,
60 .sq_rx_tune = 0x3,
61 .tx_fsls_tune = 0x3,
62 .tx_pre_emp_amp_tune = 0x03,
63 .tx_pre_emp_pulse_tune = 0x0,
64 .tx_rise_tune = 0x0,
65 .tx_vref_tune = 0xe,
66 .tx_hsxv_tune = 0x3,
67 .tx_res_tune = 0x01,
70 # USB3 phy parameter
71 register "usb3_phy_override" = "1"
73 # USB3 Port0 Default
74 register "usb3_phy_tune_params[0]" = "{
75 .rx_eq_delta_iq_ovrd_val = 0x8,
76 .rx_eq_delta_iq_ovrd_en = 0x1,
79 # SUP_DIG_LVL_OVRD_IN Default
80 register "usb3_rx_vref_ctrl" = "0x10"
81 register "usb3_rx_vref_ctrl_en" = "0x00"
82 register "usb_3_tx_vboost_lvl" = "0x07"
83 register "usb_3_tx_vboost_lvl_en" = "0x01"
85 # SUPX_DIG_LVL_OVRD_IN Default
86 register "usb_3_rx_vref_ctrl_x" = "0x10"
87 register "usb_3_rx_vref_ctrl_en_x" = "0x00"
88 register "usb_3_tx_vboost_lvl_x" = "0x07"
89 register "usb_3_tx_vboost_lvl_en_x" = "0x01"
91 # I2C2 for touchscreen and trackpad
92 register "i2c[2]" = "{
93 .speed = I2C_SPEED_FAST,
94 .rise_time_ns = 18, /* 0 to 2.31 (3.3 * .7) */
95 .fall_time_ns = 57, /* 2.31 to 0 */
98 # I2C3 for H1
99 register "i2c[3]" = "{
100 .speed = I2C_SPEED_FAST,
101 .rise_time_ns = 98, /* 0 to 1.26v (1.8 * .7) */
102 .fall_time_ns = 17, /* 1.26v to 0 */
103 .early_init = true,
106 register "emmc_config" = "{
107 .timing = SD_EMMC_EMMC_HS400,
108 .sdr104_hs400_driver_strength = SD_EMMC_DRIVE_STRENGTH_A,
109 .init_khz_preset = 400,
112 # See AMD 55570-B1 Table 13: PCI Device ID Assignments.
113 device domain 0 on
114 subsystemid 0x1022 0x1510 inherit
115 device ref internal_bridge_a on
116 device ref acp on
117 chip drivers/amd/i2s_machine_dev
118 register "hid" = ""AMDI5682""
119 # DMIC select GPIO for ACP machine device
120 # This GPIO is used to select DMIC0 or DMIC1 by the
121 # kernel driver. It does not really have a polarity
122 # since low and high control the selection of DMIC and
123 # hence does not have an active polarity.
124 # Kernel driver does not use the polarity field and
125 # instead treats the GPIO selection as follows:
126 # Set low (0) = Select DMIC0
127 # Set high (1) = Select DMIC1
128 register "dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
129 device generic 0.0 hidden
130 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
133 chip drivers/amd/i2s_machine_dev
134 register "hid" = ""10029835""
135 # DMIC select GPIO for ACP machine device
136 # This GPIO is used to select DMIC0 or DMIC1 by the
137 # kernel driver. It does not really have a polarity
138 # since low and high control the selection of DMIC and
139 # hence does not have an active polarity.
140 # Kernel driver does not use the polarity field and
141 # instead treats the GPIO selection as follows:
142 # Set low (0) = Select DMIC0
143 # Set high (1) = Select DMIC1
144 register "dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
145 device generic 1.0 hidden
146 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
149 end # Audio
151 device ref lpc_bridge on
152 chip ec/google/chromeec
153 device ref cros_ec on
154 chip ec/google/chromeec/i2c_tunnel
155 device ref cros_ec_i2c_8 on
156 chip drivers/i2c/generic
157 register "hid" = ""10EC5682""
158 register "name" = ""RT58""
159 register "uid" = "1"
160 register "desc" = ""Realtek RT5682""
161 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_84)"
162 register "property_count" = "2"
163 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
164 register "property_list[0].name" = ""realtek,jd-src""
165 register "property_list[0].integer" = "1"
166 register "property_list[1].type" = "ACPI_DP_TYPE_STRING"
167 register "property_list[1].name" = ""realtek,mclk-name""
168 register "property_list[1].string" = ""oscout1""
169 device i2c 1a on
170 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
173 chip drivers/i2c/generic
174 register "hid" = ""RTL5682""
175 register "name" = ""RT58""
176 register "uid" = "1"
177 register "desc" = ""Realtek RT5682""
178 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_84)"
179 register "property_count" = "2"
180 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
181 register "property_list[0].name" = ""realtek,jd-src""
182 register "property_list[0].integer" = "1"
183 register "property_list[1].type" = "ACPI_DP_TYPE_STRING"
184 register "property_list[1].name" = ""realtek,mclk-name""
185 register "property_list[1].string" = ""oscout1""
186 device i2c 1a on
187 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
195 end # domain
197 device ref i2c_2 on
198 chip drivers/i2c/generic
199 register "hid" = ""ELAN0000""
200 register "desc" = ""ELAN Touchpad""
201 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
202 register "wake" = "GEVENT_22"
203 register "detect" = "1"
204 device i2c 15 on end
206 chip drivers/i2c/generic
207 register "hid" = ""ELAN0001""
208 register "desc" = ""ELAN Touchscreen""
209 register "detect" = "1"
210 register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
211 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_32)"
212 register "enable_delay_ms" = "1"
213 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
214 register "reset_delay_ms" = "20"
215 register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_144)"
216 register "stop_off_delay_ms" = "1"
217 register "has_power_resource" = "1"
218 device i2c 10 on end
220 chip drivers/i2c/hid
221 register "generic.hid" = ""GTCH7503""
222 register "generic.desc" = ""G2TOUCH Touchscreen""
223 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
224 register "generic.detect" = "1"
225 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_32)"
226 register "generic.enable_delay_ms" = "1"
227 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
228 register "generic.reset_delay_ms" = "50"
229 register "generic.has_power_resource" = "1"
230 register "hid_desc_reg_offset" = "0x01"
231 device i2c 40 on end
235 chip drivers/generic/max98357a
236 register "hid" = ""MX98357A""
237 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_91)"
238 register "sdmode_delay" = "5"
239 device generic 0.1 on end
241 end # chip soc/amd/picasso