Debian Codegraph @

src/mainboard/intel/shadowmountain/variants/baseboard/devicetree.cb

raw
1 chip soc/intel/alderlake
2
3 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "pmc_gpe0_dw0" = "GPP_C"
8 register "pmc_gpe0_dw1" = "GPP_D"
9 register "pmc_gpe0_dw2" = "GPP_E"
10
11 # TCSS
12 register "tcss_aux_ori" = "1"
13 register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_A5, .pad_auxn_dc = GPP_A6}"
14
15 # Enable CNVi Bluetooth
16 register "cnvi_bt_core" = "true"
17
18 # FSP configuration
19 register "sagv" = "SaGv_Enabled"
20
21 # S0ix enable
22 register "s0ix_enable" = "true"
23
24 register "usb2_ports[0]" = "USB2_PORT_MID(OC1)" # Type-A Port A0
25 register "usb2_ports[1]" = "USB2_PORT_MID(OC2)" # Type-A Port A1
26 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN
27 register "usb2_ports[3]" = "USB2_PORT_MID(OC0)" # Type-A / Type-C Cl
28 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera
29 register "usb2_ports[5]" = "USB2_PORT_MID(OC3)" # Type-A / Type-C Co
30 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth
31
32 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # USB3/2 Type A port A0
33 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # USB3/2 Type A port A1
34 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN
35
36 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
37 register "gen1_dec" = "0x00fc0801"
38 register "gen2_dec" = "0x000c0201"
39 # EC memory map range is 0x900-0x9ff
40 register "gen3_dec" = "0x00fc0901"
41
42 # Enable PCH PCIE RP 5 using CLK 1
43 register "pch_pcie_rp[PCH_RP(5)]" = "{
44 .clk_src = 1,
45 .clk_req = 1,
46 .flags = PCIE_RP_CLK_REQ_DETECT,
47 }"
48
49 # Enable NVMe PCIE 9 using clk 0
50 register "pch_pcie_rp[PCH_RP(9)]" = "{
51 .clk_src = 0,
52 .clk_req = 0,
53 .flags = PCIE_RP_LTR,
54 }"
55
56 # Enable SD Card PCIE 8 using clk 3
57 register "pch_pcie_rp[PCH_RP(8)]" = "{
58 .clk_src = 3,
59 .clk_req = 3,
60 .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR,
61 }"
62
63 # Enable SATA
64 register "sata_mode" = "0"
65 register "sata_salp_support" = "1"
66 register "sata_ports_enable[0]" = "0"
67 register "sata_ports_enable[1]" = "1"
68 register "sata_ports_dev_slp[0]" = "0"
69 register "sata_ports_dev_slp[1]" = "1"
70 register "sata_ports_enable_dito_config[1]" = "1"
71
72 register "serial_io_i2c_mode" = "{
73 [PchSerialIoIndexI2C0] = PchSerialIoPci,
74 [PchSerialIoIndexI2C1] = PchSerialIoPci,
75 [PchSerialIoIndexI2C2] = PchSerialIoPci,
76 [PchSerialIoIndexI2C3] = PchSerialIoPci,
77 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
78 [PchSerialIoIndexI2C5] = PchSerialIoPci,
79 }"
80
81 register "serial_io_gspi_mode" = "{
82 [PchSerialIoIndexGSPI0] = PchSerialIoPci,
83 [PchSerialIoIndexGSPI1] = PchSerialIoDisabled,
84 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
85 [PchSerialIoIndexGSPI3] = PchSerialIoDisabled,
86 }"
87
88 register "serial_io_gspi_cs_mode" = "{
89 [PchSerialIoIndexGSPI0] = 1,
90 }"
91
92 register "serial_io_gspi_cs_state" = "{
93 [PchSerialIoIndexGSPI0] = 1,
94 }"
95
96 register "serial_io_uart_mode" = "{
97 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
98 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
99 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
100 }"
101
102 # HD Audio
103 register "pch_hda_dsp_enable" = "1"
104 register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T"
105 register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ"
106 register "pch_hda_idisp_codec_enable" = "1"
107
108 # DP port
109 register "ddi_portA_config" = "1" # eDP
110 register "ddi_portB_config" = "0"
111
112 # Enable Display Port Configuration
113 register "ddi_ports_config" = "{
114 [DDI_PORT_A] = DDI_ENABLE_HPD,
115 [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC,
116 [DDI_PORT_1] = DDI_ENABLE_HPD,
117 [DDI_PORT_2] = DDI_ENABLE_HPD,
118 }"
119
120 # Intel Common SoC Config
121 #+-------------------+---------------------------+
122 #| Field | Value |
123 #+-------------------+---------------------------+
124 #| GSPI0 | cr50 TPM. Early init is |
125 #| | required to set up a BAR |
126 #| | for TPM communication |
127 #| | before memory is up |
128 #| GSPI1 | Fingerprint MCU |
129 #| I2C0 | SAR0, WWAN, HDMI |
130 #| I2C1 | Camera |
131 #| I2C2 | Audio |
132 #| I2C3 | Touchscreen, USI |
133 #| I2C5 | Trackpad |
134 #+-------------------+---------------------------+
135 register "common_soc_config" = "{
136 .gspi[0] = {
137 .speed_mhz = 1,
138 .early_init = 1,
139 },
140 .i2c[0] = {
141 .speed = I2C_SPEED_FAST,
142 },
143 .i2c[1] = {
144 .speed = I2C_SPEED_FAST,
145 },
146 .i2c[2] = {
147 .speed = I2C_SPEED_FAST,
148 },
149 .i2c[3] = {
150 .speed = I2C_SPEED_FAST,
151 },
152 .i2c[5] = {
153 .speed = I2C_SPEED_FAST,
154 },
155 }"
156
157 device domain 0 on
158 device ref igpu on end
159 device ref dtt on end
160 device ref ipu on end
161 device ref tbt_pcie_rp0 on end
162 device ref tbt_pcie_rp1 on end
163 device ref tbt_pcie_rp2 on end
164 device ref tbt_pcie_rp3 on end
165 device ref crashlog off end
166 device ref tcss_xhci on end
167 device ref tcss_dma0 on
168 chip drivers/intel/usb4/retimer
169 register "dfp" = "{
170 [0] = {.power_gpio = ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H19),},
171 [1] = {.power_gpio = ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H19),}}"
172 device generic 0 on end
173 end
174 end
175 device ref tcss_dma1 on end
176 device ref xhci on
177 chip drivers/usb/acpi
178 register "desc" = ""Root Hub""
179 register "type" = "UPC_TYPE_HUB"
180 device ref xhci_root_hub on
181 chip drivers/usb/acpi
182 register "desc" = ""Bluetooth""
183 register "type" = "UPC_TYPE_INTERNAL"
184 register "reset_gpio" =
185 "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)"
186 device ref usb2_port10 on end
187 end
188 end
189 end
190 end
191 device ref cnvi_wifi on
192 chip drivers/wifi/generic
193 register "wake" = "GPE0_PME_B0"
194 device generic 0 on end
195 end
196 end
197 device ref i2c0 on end
198 device ref i2c1 on end
199 device ref i2c2 on
200 chip drivers/i2c/generic
201 register "hid" = ""10EC5682""
202 register "name" = ""RT58""
203 register "desc" = ""Headset Codec""
204 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F9)"
205 # Set the jd_src to RT5668_JD1 for jack detection
206 register "property_count" = "1"
207 register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
208 register "property_list[0].name" = ""realtek,jd-src""
209 register "property_list[0].integer" = "1"
210 device i2c 1a on end
211 end
212 chip drivers/i2c/max98373
213 register "vmon_slot_no" = "0"
214 register "imon_slot_no" = "1"
215 register "uid" = "0"
216 register "desc" = ""Right Speaker Amp""
217 register "name" = ""MAXR""
218 device i2c 31 on end
219 end
220 chip drivers/i2c/max98373
221 register "vmon_slot_no" = "2"
222 register "imon_slot_no" = "3"
223 register "uid" = "1"
224 register "desc" = ""Left Speaker Amp""
225 register "name" = ""MAXL""
226 device i2c 32 on end
227 end
228 end
229 device ref i2c3 on end
230 device ref heci1 on end
231 device ref sata on end
232 device ref i2c5 on
233 chip drivers/i2c/generic
234 register "hid" = ""ELAN0000""
235 register "desc" = ""ELAN Touchpad""
236 register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)"
237 register "wake" = "GPE0_DW2_15"
238 register "detect" = "1"
239 device i2c 15 on end
240 end
241 end
242 device ref pcie_rp5 on end
243 device ref pcie_rp8 on
244 chip soc/intel/common/block/pcie/rtd3
245 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H3)"
246 register "srcclk_pin" = "3"
247 device generic 0 on end
248 end
249 end
250 device ref pcie_rp9 on end
251 device ref uart0 on end
252 device ref gspi0 on
253 chip drivers/spi/acpi
254 register "hid" = "ACPI_DT_NAMESPACE_HID"
255 register "compat_string" = ""google,cr50""
256 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_C3_IRQ)"
257 device spi 0 on end
258 end
259 end
260 device ref pch_espi on
261 chip ec/google/chromeec
262 use conn0 as mux_conn[0]
263 use conn1 as mux_conn[1]
264 device pnp 0c09.0 on end
265 end
266 end
267 device ref p2sb on end
268 device ref pmc hidden
269 # The pmc_mux chip driver is a placeholder for the
270 # PMC.MUX device in the ACPI hierarchy.
271 chip drivers/intel/pmc_mux
272 device generic 0 on
273 chip drivers/intel/pmc_mux/conn
274 use usb2_port6 as usb2_port
275 use tcss_usb3_port1 as usb3_port
276 # SBU is fixed, HSL follows CC
277 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
278 device generic 0 alias conn0 on end
279 end
280 chip drivers/intel/pmc_mux/conn
281 use usb2_port4 as usb2_port
282 use tcss_usb3_port2 as usb3_port
283 # SBU is fixed, HSL follows CC
284 register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
285 device generic 1 alias conn1 on end
286 end
287 end
288 end
289 end
290 device ref hda on end
291 device ref smbus on end
292 end
293 end