1 # SPDX
-License
-Identifier
: GPL
-2.0-or-later
3 field AUDIO_CODEC_SOURCE
36 37
4 option AUDIO_CODEC_ALC5682
0
5 option AUDIO_CODEC_ALC5682I_VS
1
11 # Start
: OPN Performance Configuration
12 # See devhub #
56670 Chapter
5 for documentation
13 #
For the below fields
, 0 indicates use SOC default
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]" = "{
36 .tx_pre_emp_amp_tune = 0x03,
37 .tx_pre_emp_pulse_tune = 0x0,
44 # USB
2.0 strength
- DB
type-A
45 register
"usb_2_port_tune_params[2]" = "{
49 .tx_pre_emp_amp_tune = 0x03,
50 .tx_pre_emp_pulse_tune = 0x0,
57 # USB
2.0 strength
- DB
type-C C1
58 register
"usb_2_port_tune_params[3]" = "{
62 .tx_pre_emp_amp_tune = 0x03,
63 .tx_pre_emp_pulse_tune = 0x0,
71 register
"usb3_phy_override" = "1"
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 */
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 */
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.
114 subsystemid
0x1022 0x1510 inherit
115 device ref internal_bridge_a 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
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
""
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
""
170 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
173 chip drivers
/i2c
/generic
174 register
"hid" = ""RTL5682
""
175 register
"name" = ""RT58
""
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
""
187 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
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"
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"
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"
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