mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / dedede / variants / beadrix / overridetree.cb
blob0554baf79510162697b373c81e01942d6645ba5a
1 fw_config
2 field AUDIO_CODEC_SOURCE 41 43
3 option AUDIO_CODEC_UNPROVISIONED 0
4 option AUDIO_CODEC_ALC5682 1
5 option AUDIO_CODEC_ALC5682I_VS 2
6 end
7 end
9 chip soc/intel/jasperlake
11 # USB Port Configuration
12 register "usb2_ports[2]" = "USB2_PORT_MID(OC0)" # USB3 Type A port
13 register "usb2_ports[4]" = "USB2_PORT_EMPTY" # Disable unused USB2P_5 and USB2N_5
14 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera
15 register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Disable unused USB2P_7 and USB2N_7
17 # Intel Common SoC Config
18 #+-------------------+---------------------------+
19 #| Field | Value |
20 #+-------------------+---------------------------+
21 #| GSPI0 | cr50 TPM. Early init is |
22 #| | required to set up a BAR |
23 #| | for TPM communication |
24 #| | before memory is up |
25 #| I2C0 | Trackpad |
26 #| I2C1 | |
27 #| I2C2 | Touchscreen |
28 #| I2C3 | |
29 #| I2C4 | Audio |
30 #| I2C5 | P-sensor |
31 #+-------------------+---------------------------+
32 register "common_soc_config" = "{
33 .gspi[0] = {
34 .speed_mhz = 1,
35 .early_init = 1,
37 .i2c[0] = {
38 .speed = I2C_SPEED_FAST,
40 .i2c[1] = {
41 .speed = I2C_SPEED_FAST,
43 .i2c[2] = {
44 .speed = I2C_SPEED_FAST,
46 .i2c[3] = {
47 .speed = I2C_SPEED_FAST,
49 .i2c[4] = {
50 .speed = I2C_SPEED_FAST,
52 .i2c[5] = {
53 .speed = I2C_SPEED_FAST,
57 register "SerialIoI2cMode" = "{
58 [PchSerialIoIndexI2C0] = PchSerialIoPci,
59 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
60 [PchSerialIoIndexI2C2] = PchSerialIoPci,
61 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
62 [PchSerialIoIndexI2C4] = PchSerialIoPci,
63 [PchSerialIoIndexI2C5] = PchSerialIoPci,
66 device domain 0 on
67 device pci 04.0 on
68 # Default DPTF Policy for all Dedede boards if not overridden
69 chip drivers/intel/dptf
70 register "options.tsr[0].desc" = ""Memory""
71 register "options.tsr[1].desc" = ""CPU""
72 register "policies.passive" = "{
73 [0] = DPTF_PASSIVE(CPU, CPU, 85, 4000),
74 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 4000),
75 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 75, 4000),
77 register "policies.critical" = "{
78 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
79 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 95, SHUTDOWN),
80 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 95, SHUTDOWN),
82 register "controls.power_limits" = "{
83 .pl1 = {
84 .min_power = 4000,
85 .max_power = 6000,
86 .time_window_min = 1 * MSECS_PER_SEC,
87 .time_window_max = 1 * MSECS_PER_SEC,
88 .granularity = 250,
90 .pl2 = {
91 .min_power = 20000,
92 .max_power = 20000,
93 .time_window_min = 1 * MSECS_PER_SEC,
94 .time_window_max = 1 * MSECS_PER_SEC,
95 .granularity = 1000,
98 register "controls.charger_perf" = "{
99 [0] = { 55, 3500 },
100 [1] = { 47, 3000 },
101 [2] = { 39, 2500 },
102 [3] = { 31, 2000 },
104 device generic 0 on end
107 device pci 05.0 off end # IPU - MIPI Camera
108 device pci 14.0 on
109 chip drivers/usb/acpi
110 device usb 0.0 on
111 chip drivers/usb/acpi
112 register "desc" = ""Right Type-C Port""
113 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
114 register "group" = "ACPI_PLD_GROUP(2, 1)"
115 device usb 2.1 on
116 probe DB_PORTS DB_PORTS_1C_LTE
117 probe DB_PORTS DB_PORTS_1C
120 chip drivers/usb/acpi
121 register "desc" = ""Right Type-C Port""
122 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
123 register "group" = "ACPI_PLD_GROUP(2, 1)"
124 device usb 3.1 on
125 probe DB_PORTS DB_PORTS_1C_LTE
126 probe DB_PORTS DB_PORTS_1C
129 chip drivers/usb/acpi
130 register "desc" = ""UFCamera""
131 register "type" = "UPC_TYPE_INTERNAL"
132 device usb 2.5 on end
134 chip drivers/usb/acpi
135 register "desc" = ""LTE""
136 register "type" = "UPC_TYPE_INTERNAL"
137 register "has_power_resource" = "1"
138 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)"
139 register "reset_off_delay_ms" = "20"
140 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)"
141 register "enable_delay_ms" = "20"
142 device usb 3.3 on
143 probe DB_PORTS DB_PORTS_1C_LTE
148 end # USB xHCI
149 device pci 15.0 on
150 chip drivers/i2c/hid
151 register "generic.hid" = ""PIXA2635""
152 register "generic.desc" = ""PIXA Touchpad""
153 register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)"
154 register "generic.wake" = "GPE0_DW0_03"
155 register "generic.detect" = "1"
156 register "hid_desc_reg_offset" = "0x01"
157 device i2c 15 on end
159 end # I2C 0
160 device pci 19.0 on
161 chip drivers/i2c/generic
162 register "hid" = ""10EC5682""
163 register "name" = ""RT58""
164 register "desc" = ""Realtek RT5682""
165 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
166 register "property_count" = "1"
167 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
168 register "property_list[0].name" = ""realtek,jd-src""
169 register "property_list[0].integer" = "1"
170 device i2c 1a on
171 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682
172 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED
175 chip drivers/i2c/generic
176 register "hid" = ""RTL5682""
177 register "name" = ""RT58""
178 register "desc" = ""Realtek RT5682""
179 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)"
180 register "property_count" = "1"
181 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
182 register "property_list[0].name" = ""realtek,jd-src""
183 register "property_list[0].integer" = "1"
184 device i2c 1a on
185 probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS
188 end # I2C 4
189 device pci 19.1 on
190 chip drivers/i2c/sx9324
191 register "desc" = ""SAR Proximity Sensor""
192 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E11_IRQ)"
193 register "uid" = "0"
194 register "reg_gnrl_ctrl0" = "0x0a"
195 register "reg_gnrl_ctrl1" = "0x22"
196 register "reg_afe_ctrl0" = "0x20"
197 register "reg_afe_ctrl3" = "0x01"
198 register "reg_afe_ctrl4" = "0x47"
199 register "reg_afe_ctrl6" = "0x00"
200 register "reg_afe_ctrl7" = "0x47"
201 register "reg_afe_ctrl8" = "0x12"
202 register "reg_afe_ctrl9" = "0x0f"
203 register "reg_afe_ph0" = "0x37"
204 register "reg_afe_ph1" = "0x29"
205 register "reg_afe_ph2" = "0x1f"
206 register "reg_afe_ph3" = "0x3d"
207 register "reg_prox_ctrl0" = "0x0b"
208 register "reg_prox_ctrl1" = "0x0b"
209 register "reg_prox_ctrl2" = "0x20"
210 register "reg_prox_ctrl3" = "0x20"
211 register "reg_prox_ctrl4" = "0x0c"
212 register "reg_prox_ctrl5" = "0x00"
213 register "reg_prox_ctrl6" = "0x2d"
214 register "reg_prox_ctrl7" = "0xc0"
215 register "reg_adv_ctrl0" = "0x00"
216 register "reg_adv_ctrl1" = "0x00"
217 register "reg_adv_ctrl2" = "0x00"
218 register "reg_adv_ctrl3" = "0x00"
219 register "reg_adv_ctrl4" = "0x00"
220 register "reg_adv_ctrl5" = "0x05"
221 register "reg_adv_ctrl6" = "0x00"
222 register "reg_adv_ctrl7" = "0x00"
223 register "reg_adv_ctrl8" = "0x00"
224 register "reg_adv_ctrl9" = "0x00"
225 register "reg_adv_ctrl10" = "0x00"
226 register "reg_adv_ctrl11" = "0x00"
227 register "reg_adv_ctrl12" = "0x00"
228 register "reg_adv_ctrl13" = "0x00"
229 register "reg_adv_ctrl14" = "0x80"
230 register "reg_adv_ctrl15" = "0x0c"
231 register "reg_adv_ctrl16" = "0x04"
232 register "reg_adv_ctrl17" = "0x70"
233 register "reg_adv_ctrl18" = "0x40"
234 register "reg_adv_ctrl19" = "0x00"
235 register "reg_adv_ctrl20" = "0x00"
236 register "reg_irq_msk" = "0x6f"
237 register "reg_irq_cfg0" = "0x00"
238 register "reg_irq_cfg1" = "0x80"
239 register "reg_irq_cfg2" = "0x00"
240 device i2c 28 on
241 probe DB_PORTS DB_PORTS_1C_LTE
244 end # I2C 5
245 device pci 1f.3 on
246 chip drivers/generic/max98357a
247 register "hid" = ""MX98360A""
248 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)"
249 device generic 0 on end
251 end # Intel HDA