ec/google/chromeec: Enable ACPI memory mapping for Microchip EC
[coreboot.git] / src / mainboard / starlabs / starfighter / variants / rpl / devicetree.cb
blob69d4022dc5c81dece1d6bfbe0a137e2adbc049d0
1 chip soc/intel/alderlake
2 # FSP UPDs
3 register "disable_dynamic_tccold_handshake" = "true"
4 register "eist_enable" = "true"
5 register "enable_c1e" = "true"
6 register "enable_c6dram" = "true"
7 register "sagv" = "SaGv_Enabled"
9 # Serial I/O
10 register "serial_io_i2c_mode" = "{
11 [PchSerialIoIndexI2C0] = PchSerialIoPci,
14 register "common_soc_config" = "{
15 .i2c[0] = {
16 .speed = I2C_SPEED_FAST,
20 register "serial_io_uart_mode" = "{
21 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
24 # Power
25 register "pch_slp_s3_min_assertion_width" = "2" # 50ms
26 register "pch_slp_s4_min_assertion_width" = "3" # 1s
27 register "pch_slp_sus_min_assertion_width" = "3" # 500ms
28 register "pch_slp_a_min_assertion_width" = "3" # 2s
30 device domain 0 on
31 device ref igpu on
32 register "gfx" = "GMA_DEFAULT_PANEL(0)"
33 register "ddi_portA_config" = "1"
34 register "ddi_ports_config" = "{
35 [DDI_PORT_A] = DDI_ENABLE_HPD,
36 [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC,
37 [DDI_PORT_1] = DDI_ENABLE_HPD,
39 end
40 device ref pcie4_0 on # SSD x4
41 register "cpu_pcie_rp[CPU_RP(1)]" = "{
42 .clk_src = 4,
43 .clk_req = 4,
44 .flags = PCIE_RP_LTR | PCIE_RP_AER,
45 .pcie_rp_aspm = ASPM_L0S_L1,
46 .PcieRpL1Substates = L1_SS_L1_2,
49 smbios_slot_desc "SlotTypeM2Socket3"
50 "SlotLengthLong"
51 "M.2/M 2280"
52 "SlotDataBusWidth4X"
54 chip soc/intel/common/block/pcie/rtd3
55 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D14)"
56 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F20)"
57 register "srcclk_pin" = "4"
58 register "is_storage" = "1"
59 register "add_acpi_dma_property" = "1"
60 register "skip_on_off_support" = "1"
61 register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL"
62 register "use_rp_mutex" = "1"
63 device generic 0 on end
64 end
65 end
66 device ref tbt_pcie_rp0 on end
67 device ref tbt_pcie_rp1 on end
68 device ref tcss_xhci on
69 chip drivers/usb/acpi
70 device ref tcss_root_hub on
71 chip drivers/usb/acpi
72 register "desc" = ""Left Back USB Type-C""
73 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
74 register "group" = "ACPI_PLD_GROUP(0, 0)"
75 device ref tcss_usb3_port1 on end
76 end
77 chip drivers/usb/acpi
78 register "desc" = ""Left Front USB Type-C""
79 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
80 register "group" = "ACPI_PLD_GROUP(0, 1)"
81 device ref tcss_usb3_port2 on end
82 end
83 end
84 end
85 end
86 device ref tcss_dma0 on
87 chip drivers/intel/usb4/retimer
88 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
89 use tcss_usb3_port1 as dfp[0].typec_port
90 device generic 0 on end
91 end
92 chip drivers/intel/usb4/retimer
93 register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E4)"
94 use tcss_usb3_port2 as dfp[0].typec_port
95 device generic 0 on end
96 end
97 end
98 device ref gna on end
99 device ref xhci on
100 # Motherboard USB TBT Type-C #0
101 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)"
102 register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
104 # Motherboard USB TBT Type-C #1
105 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
106 register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC_SKIP)"
108 # Motherboard USB 3.0 Type-A
109 register "usb2_ports[2]" = "USB2_PORT_MID(OC0)"
110 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
112 # Removable Webcam
113 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)"
115 # Daughterboard USB 3.0 Type-A + USB 3.0 Type-A
116 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
117 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
119 # Internal Bluetooth
120 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)"
122 chip drivers/usb/acpi
123 device ref xhci_root_hub on
124 chip drivers/usb/acpi
125 register "desc" = ""Left Back USB Type-C""
126 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
127 register "group" = "ACPI_PLD_GROUP(0, 0)"
128 device ref usb2_port1 on end
130 chip drivers/usb/acpi
131 register "desc" = ""Left Front USB Type-C""
132 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
133 register "group" = "ACPI_PLD_GROUP(0, 1)"
134 device ref usb2_port2 on end
136 chip drivers/usb/acpi
137 register "desc" = ""Left USB Type-A""
138 register "type" = "UPC_TYPE_USB3_A"
139 register "group" = "ACPI_PLD_GROUP(0, 2)"
140 device ref usb2_port3 on end
142 chip drivers/usb/acpi
143 register "desc" = ""Left USB Type-A""
144 register "type" = "UPC_TYPE_USB3_A"
145 register "group" = "ACPI_PLD_GROUP(0, 2)"
146 device ref usb3_port1 on end
148 chip drivers/usb/acpi
149 register "desc" = ""USB 3.0 Hub""
150 register "type" = "UPC_TYPE_HUB"
151 register "group" = "ACPI_PLD_GROUP(0, 3)"
152 device ref usb2_port6 on end
154 chip drivers/usb/acpi
155 register "desc" = ""USB 3.0 Hub""
156 register "type" = "UPC_TYPE_HUB"
157 register "group" = "ACPI_PLD_GROUP(0, 3)"
158 device ref usb3_port2 on end
160 chip drivers/usb/acpi
161 register "desc" = ""Internal Webcam""
162 register "group" = "ACPI_PLD_GROUP(0, 4)"
163 device ref usb2_port5 on end
165 chip drivers/usb/acpi
166 register "desc" = ""Internal Bluetooth""
167 register "type" = "UPC_TYPE_INTERNAL"
168 register "group" = "ACPI_PLD_GROUP(0, 5)"
169 register "is_intel_bluetooth" = "1"
170 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A13)"
171 device ref usb2_port10 on end
176 device ref i2c0 on
177 chip drivers/i2c/hid
178 register "generic.hid" = ""STAR0001""
179 register "generic.desc" = ""Touchpad""
180 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D11_IRQ)"
181 register "hid_desc_reg_offset" = "0x20"
182 device i2c 2c on end
185 device ref shared_sram on end
186 device ref sata on
187 register "sata_salp_support" = "1"
188 register "sata_ports_enable[1]" = "1"
189 register "sata_ports_dev_slp[1]" = "1"
191 device ref pcie_rp5 on # WiFi
192 chip drivers/wifi/generic
193 register "enable_cnvi_ddr_rfim" = "true"
194 device generic 0 on end
196 register "pch_pcie_rp[PCH_RP(5)]" = "{
197 .clk_src = 2,
198 .clk_req = 2,
199 .flags = PCIE_RP_LTR | PCIE_RP_AER,
200 .pcie_rp_aspm = ASPM_L0S_L1,
201 .PcieRpL1Substates = L1_SS_L1_2,
203 smbios_slot_desc "SlotTypePciExpressGen3X1"
204 "SlotLengthShort"
205 "M.2/M 2230"
206 "SlotDataBusWidth1X"
207 chip soc/intel/common/block/pcie/rtd3
208 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D13)"
209 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H2)"
210 register "srcclk_pin" = "2"
211 register "add_acpi_dma_property" = "true"
212 register "skip_on_off_support" = "1"
213 register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL"
214 register "use_rp_mutex" = "1"
215 device generic 0 on end
219 device ref pcie_rp9 on # SSD x4
220 register "pch_pcie_rp[PCH_RP(9)]" = "{
221 .clk_src = 1,
222 .clk_req = 1,
223 .flags = PCIE_RP_LTR | PCIE_RP_AER,
224 .pcie_rp_detect_timeout_ms = 50,
227 smbios_slot_desc "SlotTypeM2Socket3"
228 "SlotLengthLong"
229 "M.2/M 2280"
230 "SlotDataBusWidth4X"
232 chip soc/intel/common/block/pcie/rtd3
233 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)"
234 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)"
235 register "srcclk_pin" = "1"
236 register "is_storage" = "1"
237 register "add_acpi_dma_property" = "1"
238 register "skip_on_off_support" = "1"
239 register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL"
240 register "use_rp_mutex" = "1"
241 device generic 0 on end
244 device ref uart0 on end
245 device ref pch_espi on
246 register "gen1_dec" = "0x00fc0201"
247 register "gen2_dec" = "0x00000381"
248 register "gen3_dec" = "0x00000511"
250 chip drivers/pc80/tpm
251 device pnp 0c31.0 on end
254 chip ec/starlabs/merlin
255 # Port pair 4Eh/4Fh
256 device pnp 4e.00 on end # IO Interface
257 device pnp 4e.01 off end # Com 1
258 device pnp 4e.02 off end # Com 2
259 device pnp 4e.04 off end # System Wake-Up
260 device pnp 4e.05 off end # PS/2 Mouse
261 device pnp 4e.06 on # PS/2 Keyboard
262 io 0x60 = 0x0060
263 io 0x62 = 0x0064
264 irq 0x70 = 1
266 device pnp 4e.0a off end # Consumer IR
267 device pnp 4e.0f off end # Shared Memory/Flash Interface
268 device pnp 4e.10 off end # RTC-like Timer
269 device pnp 4e.11 off end # Power Management Channel 1
270 device pnp 4e.12 off end # Power Management Channel 2
271 device pnp 4e.13 off end # Serial Peripheral Interface
272 device pnp 4e.14 off end # Platform EC Interface
273 device pnp 4e.17 off end # Power Management Channel 3
274 device pnp 4e.18 off end # Power Management Channel 4
275 device pnp 4e.19 off end # Power Management Channel 5
278 device ref pmc hidden
279 chip drivers/intel/pmc_mux
280 device generic 0 on
281 chip drivers/intel/pmc_mux/conn
282 use usb2_port1 as usb2_port
283 use tcss_usb3_port1 as usb3_port
284 device generic 0 alias conn0 on end
286 chip drivers/intel/pmc_mux/conn
287 use usb2_port2 as usb2_port
288 use tcss_usb3_port2 as usb3_port
289 device generic 1 alias conn1 on end
294 device ref hda on
295 subsystemid 0x10ec 0x1200
296 register "pch_hda_sdi_enable[0]" = "1"
297 register "pch_hda_audio_link_hda_enable" = "1"
298 register "pch_hda_idisp_codec_enable" = "1"
299 register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ"
300 register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T"
302 device ref smbus on end