mb/google/fatcat/var/fatcat: Refactor GPIO programming for UFS support
[coreboot.git] / src / mainboard / google / brya / variants / nereid / overridetree.cb
blob9d9b871d0a88dfe5a09252da86742813feeb96ae
1 fw_config
2 field DB_USB 0 1
3 option DB_NONE 0
4 option DB_1C_1A 1
5 option DB_1A_HDMI 3
6 end
7 end
9 chip soc/intel/alderlake
10 register "sagv" = "SaGv_Enabled"
12 # Bit 0 - C0 has no redriver, so enable SBU muxing in the SoC.
13 # Bit 2 - C1 has a redriver which does SBU muxing.
14 # Bit 1,3 - AUX lines are not swapped on the motherboard for either C0 or C1.
15 register "tcss_aux_ori" = "1"
17 register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E22, .pad_auxn_dc = GPP_E23}"
19 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WFC
20 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for PCIe WLAN
21 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth port for CNVi WLAN
23 # Configure external V1P05/Vnn/VnnSx Rails
24 register "ext_fivr_settings" = "{
25 .configure_ext_fivr = 1,
26 .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0,
27 .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX,
28 .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX,
29 .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL,
30 .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE,
31 .v1p05_voltage_mv = 1050,
32 .vnn_voltage_mv = 780,
33 .vnn_sx_voltage_mv = 1050,
34 .v1p05_icc_max_ma = 500,
35 .vnn_icc_max_ma = 500,
38 # Intel Common SoC Config
39 #+-------------------+---------------------------+
40 #| Field | Value |
41 #+-------------------+---------------------------+
42 #| I2C0 | TPM. Early init is |
43 #| | required to set up a BAR |
44 #| | for TPM communication |
45 #| I2C1 | Touchscreen |
46 #| I2C2 | Sub-board(PSensor)/WCAM |
47 #| I2C3 | Audio |
48 #| I2C5 | Trackpad |
49 #+-------------------+---------------------------+
50 register "common_soc_config" = "{
51 .i2c[0] = {
52 .early_init = 1,
53 .speed = I2C_SPEED_FAST_PLUS,
54 .speed_config[0] = {
55 .speed = I2C_SPEED_FAST_PLUS,
56 .scl_lcnt = 55,
57 .scl_hcnt = 30,
58 .sda_hold = 7,
61 .i2c[1] = {
62 .speed = I2C_SPEED_FAST,
63 .speed_config[0] = {
64 .speed = I2C_SPEED_FAST,
65 .scl_lcnt = 160,
66 .scl_hcnt = 79,
67 .sda_hold = 7,
70 .i2c[3] = {
71 .speed = I2C_SPEED_FAST,
72 .speed_config[0] = {
73 .speed = I2C_SPEED_FAST,
74 .scl_lcnt = 157,
75 .scl_hcnt = 79,
76 .sda_hold = 7,
79 .i2c[5] = {
80 .speed = I2C_SPEED_FAST,
81 .speed_config[0] = {
82 .speed = I2C_SPEED_FAST,
83 .scl_lcnt = 152,
84 .scl_hcnt = 79,
85 .sda_hold = 7,
90 device domain 0 on
91 device ref dtt on
92 chip drivers/intel/dptf
93 ## sensor information
94 register "options.tsr[0].desc" = ""Memory""
95 register "options.tsr[1].desc" = ""Charger""
96 register "options.tsr[2].desc" = ""Ambient""
98 # TODO: below values are initial reference values only
99 ## Passive Policy
100 register "policies.passive" = "{
101 [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000),
102 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 75, 5000),
103 [2] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_1, 75, 5000),
104 [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 75, 5000),
107 ## Critical Policy
108 register "policies.critical" = "{
109 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
110 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN),
111 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN),
112 [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 85, SHUTDOWN),
115 register "controls.power_limits" = "{
116 .pl1 = {
117 .min_power = 3000,
118 .max_power = 6000,
119 .time_window_min = 28 * MSECS_PER_SEC,
120 .time_window_max = 32 * MSECS_PER_SEC,
121 .granularity = 200
123 .pl2 = {
124 .min_power = 25000,
125 .max_power = 25000,
126 .time_window_min = 28 * MSECS_PER_SEC,
127 .time_window_max = 32 * MSECS_PER_SEC,
128 .granularity = 1000
132 ## Charger Performance Control (Control, mA)
133 register "controls.charger_perf" = "{
134 [0] = { 255, 1700 },
135 [1] = { 24, 1500 },
136 [2] = { 16, 1000 },
137 [3] = { 8, 500 }
140 device generic 0 on end
143 device ref i2c1 on
144 chip drivers/i2c/hid
145 register "generic.hid" = ""GDIX0000""
146 register "generic.desc" = ""Goodix Touchscreen""
147 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)"
148 register "generic.detect" = "1"
149 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)"
150 register "generic.enable_delay_ms" = "20"
151 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)"
152 register "generic.reset_delay_ms" = "180"
153 register "generic.reset_off_delay_ms" = "3"
154 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C6)"
155 register "generic.stop_off_delay_ms" = "1"
156 register "generic.has_power_resource" = "1"
157 register "hid_desc_reg_offset" = "0x01"
158 device i2c 5d on end
160 chip drivers/generic/gpio_keys
161 register "name" = ""PENH""
162 register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F13)"
163 register "key.wake_gpe" = "GPE0_DW2_15"
164 register "key.wakeup_route" = "WAKEUP_ROUTE_SCI"
165 register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
166 register "key.dev_name" = ""EJCT""
167 register "key.linux_code" = "SW_PEN_INSERTED"
168 register "key.linux_input_type" = "EV_SW"
169 register "key.label" = ""pen_eject""
170 device generic 0 on end
173 device ref i2c3 on
174 chip drivers/i2c/generic
175 register "hid" = ""RTL5682""
176 register "name" = ""RT58""
177 register "desc" = ""Headset Codec""
178 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)"
179 # Set the jd_src to RT5668_JD1 for jack detection
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 end
186 chip drivers/generic/alc1015
187 register "hid" = ""RTL1019""
188 register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)"
189 device generic 0 on end
192 device ref i2c5 on
193 chip drivers/i2c/generic
194 register "hid" = ""ELAN0000""
195 register "desc" = ""ELAN Touchpad""
196 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)"
197 register "wake" = "GPE0_DW2_14"
198 register "detect" = "1"
199 device i2c 15 on end
202 device ref pcie_rp4 on
203 # PCIe 4 WLAN
204 register "pch_pcie_rp[PCH_RP(4)]" = "{
205 .clk_src = 2,
206 .clk_req = 2,
207 .flags = PCIE_RP_LTR | PCIE_RP_AER,
209 chip drivers/wifi/generic
210 register "wake" = "GPE0_DW1_03"
211 register "add_acpi_dma_property" = "true"
212 device pci 00.0 on end
215 device ref pch_espi on
216 chip ec/google/chromeec
217 use conn0 as mux_conn[0]
218 use conn1 as mux_conn[1]
219 device pnp 0c09.0 on end
222 device ref pmc hidden
223 chip drivers/intel/pmc_mux
224 device generic 0 on
225 chip drivers/intel/pmc_mux/conn
226 use usb2_port1 as usb2_port
227 use tcss_usb3_port1 as usb3_port
228 device generic 0 alias conn0 on end
230 chip drivers/intel/pmc_mux/conn
231 use usb2_port2 as usb2_port
232 use tcss_usb3_port2 as usb3_port
233 device generic 1 alias conn1 on
234 probe DB_USB DB_1C_1A
240 device ref tcss_xhci on
241 chip drivers/usb/acpi
242 device ref tcss_root_hub on
243 chip drivers/usb/acpi
244 register "desc" = ""USB3 Type-C Port C0 (MLB)""
245 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
246 register "use_custom_pld" = "true"
247 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))"
248 device ref tcss_usb3_port1 on end
250 chip drivers/usb/acpi
251 register "desc" = ""USB3 Type-C Port C1 (DB)""
252 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
253 register "use_custom_pld" = "true"
254 register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))"
255 device ref tcss_usb3_port2 on end
260 device ref xhci on
261 chip drivers/usb/acpi
262 device ref xhci_root_hub on
263 chip drivers/usb/acpi
264 register "desc" = ""USB2 Type-C Port C0 (MLB)""
265 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
266 register "use_custom_pld" = "true"
267 register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, LEFT, ACPI_PLD_GROUP(1, 1))"
268 device ref usb2_port1 on end
270 chip drivers/usb/acpi
271 register "desc" = ""USB2 Type-C Port C1 (DB)""
272 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
273 register "use_custom_pld" = "true"
274 register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, RIGHT, ACPI_PLD_GROUP(2, 1))"
275 device ref usb2_port2 on
276 probe DB_USB DB_1C_1A
279 chip drivers/usb/acpi
280 register "desc" = ""USB2 Type-A Port A0 (MLB)""
281 register "type" = "UPC_TYPE_A"
282 register "use_custom_pld" = "true"
283 register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))"
284 device ref usb2_port3 on end
286 chip drivers/usb/acpi
287 register "desc" = ""USB2 Type-A Port A1 (DB)""
288 register "type" = "UPC_TYPE_A"
289 register "use_custom_pld" = "true"
290 register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))"
291 device ref usb2_port4 on end
293 chip drivers/usb/acpi
294 register "desc" = ""USB2 UFC""
295 register "type" = "UPC_TYPE_INTERNAL"
296 device ref usb2_port6 on end
298 chip drivers/usb/acpi
299 register "desc" = ""USB2 WFC""
300 register "type" = "UPC_TYPE_INTERNAL"
301 device ref usb2_port7 on end
303 chip drivers/usb/acpi
304 register "desc" = ""USB2 Bluetooth""
305 register "type" = "UPC_TYPE_INTERNAL"
306 register "reset_gpio" =
307 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)"
308 device ref usb2_port8 on end
310 chip drivers/usb/acpi
311 register "desc" = ""CNVi Bluetooth""
312 register "type" = "UPC_TYPE_INTERNAL"
313 register "reset_gpio" =
314 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)"
315 device ref usb2_port10 on end
317 chip drivers/usb/acpi
318 register "desc" = ""USB3 Type-A Port A0 (MLB)""
319 register "type" = "UPC_TYPE_USB3_A"
320 register "use_custom_pld" = "true"
321 register "custom_pld" = "ACPI_PLD_TYPE_A(LEFT, RIGHT, ACPI_PLD_GROUP(3, 1))"
322 device ref usb3_port1 on end
324 chip drivers/usb/acpi
325 register "desc" = ""USB3 Type-A Port A1 (DB)""
326 register "type" = "UPC_TYPE_USB3_A"
327 register "use_custom_pld" = "true"
328 register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, LEFT, ACPI_PLD_GROUP(4, 1))"
329 device ref usb3_port2 on end
334 device ref hda on
335 chip drivers/sof
336 register "spkr_tplg" = "rt1019"
337 register "jack_tplg" = "rt5682"
338 register "mic_tplg" = "_2ch_pdm0"
339 device generic 0 on end