1 # SPDX
-License
-Identifier
: GPL
-2.0-or-later
5 option AUDIO_AMP_I2C_MODE
0
6 option AUDIO_AMP_AUTO_MODE
1
12 # Start
: OPN Performance Configuration
13 # See devhub #
56670 Chapter
5 for documentation
14 #
For the below fields
, 0 indicates use SOC default
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
48 register
"hdmi2_disable" = "2"
51 register
"usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1
54 register
"usb_2_port_tune_params[0]" = "{
58 .tx_pre_emp_amp_tune = 0x03,
59 .tx_pre_emp_pulse_tune = 0x0,
67 register
"usb_2_port_tune_params[1]" = "{
71 .tx_pre_emp_amp_tune = 0x03,
72 .tx_pre_emp_pulse_tune = 0x0,
80 register
"usb_2_port_tune_params[2]" = "{
84 .tx_pre_emp_amp_tune = 0x03,
85 .tx_pre_emp_pulse_tune = 0x0,
93 register
"usb_2_port_tune_params[3]" = "{
97 .tx_pre_emp_amp_tune = 0x03,
98 .tx_pre_emp_pulse_tune = 0x0,
106 register
"usb_2_port_tune_params[4]" = "{
107 .com_pds_tune = 0x07,
110 .tx_pre_emp_amp_tune = 0x03,
111 .tx_pre_emp_pulse_tune = 0x0,
119 register
"usb_2_port_tune_params[5]" = "{
120 .com_pds_tune = 0x07,
123 .tx_pre_emp_amp_tune = 0x03,
124 .tx_pre_emp_pulse_tune = 0x0,
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 */
139 register
"i2c[3]" = "{
140 .speed = I2C_SPEED_FAST,
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.
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
161 device ref internal_bridge_a 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
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
""
212 register
"name" = ""TL
""
215 chip drivers
/i2c
/generic
216 register
"hid" = ""10EC1015
""
217 register
"desc" = ""RT1015 Tweeter Right Speaker Amp
""
219 register
"name" = ""TR
""
222 probe AUDIO_AMP AUDIO_AMP_I2C_MODE
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"
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"
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"
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"
293 chip drivers
/i2c
/sx9324
294 register
"desc" = ""SAR Proximity Sensor
""
295 register
"irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_40)"
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"
349 end # chip soc
/amd
/picasso