soc/mediatek/mt8196: Initialize SSPM
[coreboot2.git] / src / mainboard / google / rex / variants / ovis / overridetree.cb
blob2c49c4c9bcee671ac1fe65cdcfc6c56ae9ac0312
1 chip soc/intel/meteorlake
2 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C1
3 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0
4 register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C2
5 register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # Type-A Port A0
6 register "usb2_ports[6]" = "USB2_PORT_MID(OC3)" # Type-A Port A1
7 register "usb2_ports[7]" = "USB2_PORT_MID(OC3)" # Type-A Port A2
8 register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A3
9 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth
11 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A0
12 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type-A Port A1
14 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC0)"
15 register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC0)"
16 register "tcss_ports[2]" = "TCSS_PORT_DEFAULT(OC0)"
18 # Enable Display Port Configuration
19 register "ddi_ports_config" = "{
20 [DDI_PORT_1] = DDI_ENABLE_HPD,
21 [DDI_PORT_2] = DDI_ENABLE_HPD,
22 [DDI_PORT_3] = DDI_ENABLE_HPD,
23 [DDI_PORT_4] = DDI_ENABLE_HPD,
26 register "serial_io_i2c_mode" = "{
27 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
28 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
29 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
30 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
31 [PchSerialIoIndexI2C4] = PchSerialIoPci,
32 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
35 # Intel Common SoC Config
36 #+-------------------+---------------------------+
37 #| Field | Value |
38 #+-------------------+---------------------------+
39 #| I2C4 | cr50 TPM. Early init is |
40 #| | required to set up a BAR |
41 #| | for TPM communication |
42 #+-------------------+---------------------------+
43 register "common_soc_config" = "{
44 .i2c[4] = {
45 .early_init = 1,
46 .speed = I2C_SPEED_FAST,
47 .rise_time_ns = 600,
48 .fall_time_ns = 400,
49 .data_hold_time_ns = 50,
53 device domain 0 on
54 device ref dtt on
55 chip drivers/intel/dptf
56 ## sensor information
57 register "options.tsr[0].desc" = ""DDR_SOC""
58 register "options.tsr[1].desc" = ""Ambient""
60 ## Active Policy
61 # FIXME: below values are initial reference values only
62 register "policies.active" = "{
63 [0] = {
64 .target = DPTF_TEMP_SENSOR_0,
65 .thresholds = {
66 TEMP_PCT(75, 90),
67 TEMP_PCT(70, 80),
68 TEMP_PCT(65, 70),
69 TEMP_PCT(60, 60),
70 TEMP_PCT(55, 50),
71 TEMP_PCT(50, 40),
72 TEMP_PCT(45, 30),
75 [1] = {
76 .target = DPTF_TEMP_SENSOR_1,
77 .thresholds = {
78 TEMP_PCT(75, 90),
79 TEMP_PCT(70, 80),
80 TEMP_PCT(65, 70),
81 TEMP_PCT(60, 60),
82 TEMP_PCT(55, 50),
83 TEMP_PCT(50, 40),
84 TEMP_PCT(45, 30),
89 ## Passive Policy
90 # TODO: below values are initial reference values only
91 register "policies.passive" = "{
92 [0] = DPTF_PASSIVE(CPU, CPU, 95, 5000),
93 [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 5000),
94 [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 80, 5000),
97 ## Critical Policy
98 # TODO: below values are initial reference values only
99 register "policies.critical" = "{
100 [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN),
101 [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 85, SHUTDOWN),
102 [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 85, SHUTDOWN),
105 ## Power Limits Control
106 register "controls.power_limits" = "{
107 .pl1 = {
108 .min_power = 28000,
109 .max_power = 28000,
110 .time_window_min = 28 * MSECS_PER_SEC,
111 .time_window_max = 32 * MSECS_PER_SEC,
112 .granularity = 200,
114 .pl2 = {
115 .min_power = 64000,
116 .max_power = 64000,
117 .time_window_min = 28 * MSECS_PER_SEC,
118 .time_window_max = 32 * MSECS_PER_SEC,
119 .granularity = 1000,
123 device generic 0 alias dptf_policy on end
126 device ref pcie_rp7 on
127 # Enable LAN1 Card PCIE 7 using clk 2
128 register "pcie_rp[PCH_RP(7)]" = "{
129 .clk_src = 2,
130 .clk_req = 2,
131 .flags = PCIE_RP_LTR | PCIE_RP_AER,
133 chip drivers/net
134 register "customized_leds" = "0x05af"
135 register "wake" = "GPE0_DW0_18"
136 register "device_index" = "0"
137 register "add_acpi_dma_property" = "true"
138 device pci 00.0 on end
140 end #PCIE7 LAN1 card
142 device ref pcie_rp10 on
143 # Enable LAN0 Card PCIE 10 using clk 8
144 register "pcie_rp[PCH_RP(10)]" = "{
145 .clk_src = 8,
146 .clk_req = 8,
147 .flags = PCIE_RP_LTR | PCIE_RP_AER,
149 chip drivers/net
150 register "customized_leds" = "0x05af"
151 register "wake" = "GPE0_DW0_18"
152 register "device_index" = "1"
153 register "add_acpi_dma_property" = "true"
154 device pci 00.0 on end
156 end #PCIE10 LAN0 card
157 device ref pcie_rp11 on
158 # Enable SSD Card PCIE 11 using clk 7
159 register "pcie_rp[PCH_RP(11)]" = "{
160 .clk_src = 7,
161 .clk_req = 7,
162 .flags = PCIE_RP_LTR | PCIE_RP_AER,
164 end # PCIE11 SSD card
165 device ref tbt_pcie_rp0 on end
166 device ref tbt_pcie_rp1 on end
167 device ref tbt_pcie_rp2 on end
168 device ref tcss_xhci on
169 chip drivers/usb/acpi
170 device ref tcss_root_hub on
171 chip drivers/usb/acpi
172 register "desc" = ""USB3 Type-C Port C0""
173 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
174 register "use_custom_pld" = "true"
175 register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))"
176 register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER"
177 device ref tcss_usb3_port0 on end
179 chip drivers/usb/acpi
180 register "desc" = ""USB3 Type-C Port C1""
181 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
182 register "use_custom_pld" = "true"
183 register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))"
184 device ref tcss_usb3_port1 on end
186 chip drivers/usb/acpi
187 register "desc" = ""USB3 Type-C Port C2""
188 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
189 register "use_custom_pld" = "true"
190 register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(3, 1))"
191 device ref tcss_usb3_port2 on end
196 device ref tcss_dma0 on
197 chip drivers/intel/usb4/retimer
198 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
199 use tcss_usb3_port0 as dfp[0].typec_port
200 device generic 0 on end
202 chip drivers/intel/usb4/retimer
203 register "dfp[1].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
204 use tcss_usb3_port1 as dfp[1].typec_port
205 device generic 0 on end
208 device ref tcss_dma1 on
209 chip drivers/intel/usb4/retimer
210 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)"
211 use tcss_usb3_port2 as dfp[0].typec_port
212 device generic 0 on end
215 device ref xhci on
216 chip drivers/usb/acpi
217 device ref xhci_root_hub on
218 chip drivers/usb/acpi
219 register "desc" = ""USB2 Type-C Port C0""
220 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
221 register "use_custom_pld" = "true"
222 register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, CENTER, ACPI_PLD_GROUP(1, 1))"
223 register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_LOWER"
224 device ref usb2_port2 on end
226 chip drivers/usb/acpi
227 register "desc" = ""USB2 Type-C Port C1""
228 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
229 register "use_custom_pld" = "true"
230 register "custom_pld" = "ACPI_PLD_TYPE_C(BACK, RIGHT, ACPI_PLD_GROUP(2, 1))"
231 device ref usb2_port1 on end
233 chip drivers/usb/acpi
234 register "desc" = ""USB2 Type-C Port C2""
235 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
236 register "use_custom_pld" = "true"
237 register "custom_pld" = "ACPI_PLD_TYPE_C(FRONT, LEFT, ACPI_PLD_GROUP(3, 1))"
238 device ref usb2_port3 on end
240 chip drivers/usb/acpi
241 register "desc" = ""USB2 Type-A Port A0""
242 register "type" = "UPC_TYPE_A"
243 register "use_custom_pld" = "true"
244 register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(4, 1))"
245 device ref usb2_port4 on end
247 chip drivers/usb/acpi
248 register "desc" = ""USB2 Type-A Port A1""
249 register "type" = "UPC_TYPE_A"
250 register "use_custom_pld" = "true"
251 register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 2))"
252 register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER"
253 device ref usb2_port7 on end
255 chip drivers/usb/acpi
256 register "desc" = ""USB2 Type-A Port A2""
257 register "type" = "UPC_TYPE_A"
258 register "use_custom_pld" = "true"
259 register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, LEFT, ACPI_PLD_GROUP(4, 3))"
260 device ref usb2_port8 on end
262 chip drivers/usb/acpi
263 register "desc" = ""USB2 Type-A Port A3""
264 register "type" = "UPC_TYPE_A"
265 register "use_custom_pld" = "true"
266 register "custom_pld" = "ACPI_PLD_TYPE_A(BACK, CENTER, ACPI_PLD_GROUP(4, 4))"
267 device ref usb2_port9 on end
269 chip drivers/usb/acpi
270 register "desc" = ""USB2 Bluetooth""
271 register "type" = "UPC_TYPE_INTERNAL"
272 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B01)"
273 device ref usb2_port10 on end
275 chip drivers/usb/acpi
276 register "desc" = ""USB3 Type-A Port A0""
277 register "type" = "UPC_TYPE_USB3_A"
278 register "use_custom_pld" = "true"
279 register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, RIGHT, ACPI_PLD_GROUP(4, 1))"
280 device ref usb3_port1 on end
282 chip drivers/usb/acpi
283 register "desc" = ""USB3 Type-A Port A1""
284 register "type" = "UPC_TYPE_USB3_A"
285 register "use_custom_pld" = "true"
286 register "custom_pld" = "ACPI_PLD_TYPE_A(FRONT, CENTER, ACPI_PLD_GROUP(4, 2))"
287 register "custom_pld.vertical_position" = "PLD_VERTICAL_POSITION_UPPER"
288 device ref usb3_port2 on end
293 device ref cnvi_wifi on
294 chip drivers/wifi/generic
295 register "wake" = "GPE0_PME_B0"
296 register "add_acpi_dma_property" = "true"
297 register "enable_cnvi_ddr_rfim" = "true"
298 device generic 0 on end
301 device ref i2c4 on
302 chip drivers/i2c/tpm
303 register "hid" = ""GOOG0005""
304 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E03_IRQ)"
305 device i2c 50 on end
308 device ref soc_espi on
309 chip ec/google/chromeec
310 use conn0 as mux_conn[0]
311 use conn1 as mux_conn[1]
312 use conn2 as mux_conn[2]
313 device pnp 0c09.0 on end
316 device ref pmc hidden
317 chip drivers/intel/pmc_mux
318 device generic 0 on
319 chip drivers/intel/pmc_mux/conn
320 use usb2_port2 as usb2_port
321 use tcss_usb3_port0 as usb3_port
322 device generic 0 alias conn0 on end
324 chip drivers/intel/pmc_mux/conn
325 use usb2_port3 as usb2_port
326 use tcss_usb3_port2 as usb3_port
327 device generic 1 alias conn1 on end
329 chip drivers/intel/pmc_mux/conn
330 use usb2_port1 as usb2_port
331 use tcss_usb3_port1 as usb3_port
332 device generic 2 alias conn2 on end