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 #
End : OPN Performance Configuration
27 register
"telemetry_vddcr_vdd_slope_mA" = "30400"
28 register
"telemetry_vddcr_vdd_offset" = "317"
29 register
"telemetry_vddcr_soc_slope_mA" = "23789"
30 register
"telemetry_vddcr_soc_offset" = "94"
34 register
"usb_port_overcurrent_pin[0]" = "USB_OC_PIN_0" # USB C0
35 register
"usb_port_overcurrent_pin[1]" = "USB_OC_PIN_0" # USB A0
36 register
"usb_port_overcurrent_pin[2]" = "USB_OC_PIN_1" # USB C1
37 register
"usb_port_overcurrent_pin[3]" = "USB_OC_PIN_1" # USB C1
39 # I2C2
for touchscreen
and trackpad
41 register
"i2c[2]" = "{
42 .speed = I2C_SPEED_FAST,
43 .rise_time_ns = 18, /* 0 to 2.31 (3.3 * .7) */
44 .fall_time_ns = 57, /* 2.31 to 0 */
45 .data_hold_time_ns = 335,
50 register
"i2c[3]" = "{
51 .speed = I2C_SPEED_FAST,
52 .rise_time_ns = 110, /* 0 to 1.26v (1.8 * .7) */
53 .fall_time_ns = 34, /* 1.26v to 0 */
57 # See AMD
55570-B1 Table
13: PCI Device ID Assignments.
59 subsystemid
0x1022 0x1510 inherit
60 device ref internal_bridge_a on
62 chip drivers
/amd
/i2s_machine_dev
63 register
"hid" = ""AMDI5682
""
64 # DMIC
select GPIO
for ACP machine device
65 # This GPIO is used
to select DMIC0
or DMIC1 by the
66 # kernel driver. It does
not really have a polarity
67 # since low
and high
control the selection of DMIC
and
68 # hence does
not have an active polarity.
69 # Kernel driver does
not use the polarity field
and
70 # instead treats the GPIO selection
as follows
:
71 #
Set low
(0) = Select DMIC0
72 #
Set high
(1) = Select DMIC1
73 register
"dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
74 device generic
0.0 hidden
75 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
78 chip drivers
/amd
/i2s_machine_dev
79 register
"hid" = ""10029835""
80 # DMIC
select GPIO
for ACP machine device
81 # This GPIO is used
to select DMIC0
or DMIC1 by the
82 # kernel driver. It does
not really have a polarity
83 # since low
and high
control the selection of DMIC
and
84 # hence does
not have an active polarity.
85 # Kernel driver does
not use the polarity field
and
86 # instead treats the GPIO selection
as follows
:
87 #
Set low
(0) = Select DMIC0
88 #
Set high
(1) = Select DMIC1
89 register
"dmic_select_gpio" = "ACPI_GPIO_OUTPUT(GPIO_67)"
90 device generic
1.0 hidden
91 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
96 device ref lpc_bridge on
97 chip ec
/google
/chromeec
99 chip ec
/google
/chromeec
/i2c_tunnel
100 device ref cros_ec_i2c_8 on
101 chip drivers
/i2c
/generic
102 register
"hid" = ""10EC5682
""
103 register
"name" = ""RT58
""
105 register
"desc" = ""Realtek RT5682
""
106 register
"irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_84)"
107 register
"property_count" = "2"
108 register
"property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
109 register
"property_list[0].name" = ""realtek
,jd
-src
""
110 register
"property_list[0].integer" = "1"
111 register
"property_list[1].type" = "ACPI_DP_TYPE_STRING"
112 register
"property_list[1].name" = ""realtek
,mclk
-name
""
113 register
"property_list[1].string" = ""oscout1
""
115 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
118 chip drivers
/i2c
/generic
119 register
"hid" = ""RTL5682
""
120 register
"name" = ""RT58
""
122 register
"desc" = ""Realtek RT5682
""
123 register
"irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_84)"
124 register
"property_count" = "2"
125 register
"property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
126 register
"property_list[0].name" = ""realtek
,jd
-src
""
127 register
"property_list[0].integer" = "1"
128 register
"property_list[1].type" = "ACPI_DP_TYPE_STRING"
129 register
"property_list[1].name" = ""realtek
,mclk
-name
""
130 register
"property_list[1].string" = ""oscout1
""
132 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
143 chip drivers
/i2c
/generic
144 register
"hid" = ""ELAN0001
""
145 register
"desc" = ""ELAN Touchscreen
""
146 register
"detect" = "1"
147 register
"irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_12)"
148 register
"enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_32)"
149 register
"enable_delay_ms" = "1"
150 register
"reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_140)"
151 register
"reset_delay_ms" = "300"
152 register
"has_power_resource" = "1"
155 chip drivers
/i2c
/generic
156 register
"hid" = ""ELAN0000
""
157 register
"desc" = ""ELAN Touchpad
""
158 register
"irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
159 register
"wake" = "GEVENT_22"
160 register
"detect" = "1"
162 probe TOUCHPAD REGULAR_TOUCHPAD
166 register
"generic.hid" = ""ELAN2702
""
167 register
"generic.desc" = ""ELAN Touchpad
""
168 register
"generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)"
169 register
"generic.wake" = "GEVENT_22"
170 register
"generic.detect" = "1"
171 register
"hid_desc_reg_offset" = "0x01"
173 probe TOUCHPAD NUMPAD_TOUCHPAD
178 chip drivers
/generic
/max98357a
179 register
"hid" = ""MX98357A
""
180 register
"sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_91)"
181 register
"sdmode_delay" = "5"
182 device generic
0.1 on
end
184 end # chip soc
/amd
/picasso