Debian Codegraph @

src/mainboard/intel/elkhartlake_crb/variants/ehlcrb/devicetree.cb

raw
1 chip soc/intel/elkhartlake
2
3 device cpu_cluster 0 on end
4
5 # GPE configuration
6 # Note that GPE events called out in ASL code rely on this
7 # route. i.e. If this route changes then the affected GPE
8 # offset bits also need to be changed.
9 register "pmc_gpe0_dw0" = "GPP_B"
10 register "pmc_gpe0_dw1" = "GPP_F"
11 register "pmc_gpe0_dw2" = "GPP_E"
12
13 # FSP configuration
14 register "SaGv" = "SaGv_Enabled"
15 register "Heci2Enable" = "1"
16
17 # Display related UPDs
18 # Enable HPD for DDI ports C
19 register "DdiPortCHpd" = "1"
20
21 # Enable DDC for DDI ports C
22 register "DdiPortCDdc" = "1"
23
24 # USB related UPDs
25 register "usb2_ports[0]" = "USB2_PORT_MID(OC3)" # USB3/2 Type A port1
26 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # USB2 WWAN
27 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # USB2 Bluetooth
28 register "usb2_ports[3]" = "USB2_PORT_MID(OC3)" # Type-C Port1
29 register "usb2_ports[4]" = "USB2_PORT_MID(OC3)" # Type-C Port2
30 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Type-C Port3
31 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-C Port4
32 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # USB3/2 Type A port2
33 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # USB2 Type A port1
34 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # USB2 Type A port2
35
36 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port1
37 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port2
38 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # USB3 WLAN
39 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # UNUSED
40
41 # Skip the CPU replacement check
42 register "SkipCpuReplacementCheck" = "1"
43
44 # PCIe root ports related UPDs
45 register "PcieClkSrcUsage[0]" = "0x00"
46 register "PcieClkSrcUsage[1]" = "0x06"
47 register "PcieClkSrcUsage[2]" = "0x04"
48 register "PcieClkSrcUsage[3]" = "0xFF"
49 register "PcieClkSrcUsage[4]" = "0xFF"
50 register "PcieClkSrcUsage[5]" = "0xFF"
51
52 register "PcieClkSrcClkReq[0]" = "0x0"
53 register "PcieClkSrcClkReq[1]" = "0x1"
54 register "PcieClkSrcClkReq[2]" = "0x2"
55 register "PcieClkSrcClkReq[3]" = "0x3"
56 register "PcieClkSrcClkReq[4]" = "0x4"
57 register "PcieClkSrcClkReq[5]" = "0x5"
58
59 # Storage (SATA/SDCARD/EMMC) related UPDs
60 register "SataSalpSupport" = "1"
61 register "SataPortsEnable[0]" = "1"
62 register "SataPortsEnable[1]" = "1"
63 register "SataPortsDevSlp[0]" = "0"
64 register "SataPortsDevSlp[1]" = "1"
65
66 register "ScsEmmcHs400Enabled" = "1"
67 register "ScsEmmcDdr50Enabled" = "1"
68 register "SdCardPowerEnableActiveHigh" = "1"
69
70 # LPSS Serial IO (I2C/UART/GSPI) related UPDs
71 register "SerialIoI2cMode" = "{
72 [PchSerialIoIndexI2C0] = PchSerialIoPci,
73 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
74 [PchSerialIoIndexI2C2] = PchSerialIoPci,
75 [PchSerialIoIndexI2C3] = PchSerialIoPci,
76 [PchSerialIoIndexI2C4] = PchSerialIoPci,
77 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
78 [PchSerialIoIndexI2C6] = PchSerialIoPci,
79 [PchSerialIoIndexI2C7] = PchSerialIoPci,
80 }"
81
82 register "SerialIoI2cPadsTermination" = "{
83 [PchSerialIoIndexI2C0] = 1,
84 [PchSerialIoIndexI2C1] = 1,
85 [PchSerialIoIndexI2C2] = 1,
86 [PchSerialIoIndexI2C3] = 1,
87 [PchSerialIoIndexI2C4] = 1,
88 [PchSerialIoIndexI2C5] = 1,
89 [PchSerialIoIndexI2C6] = 1,
90 [PchSerialIoIndexI2C7] = 1,
91 }"
92
93 register "SerialIoGSpiMode" = "{
94 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
95 [PchSerialIoIndexGSPI1] = PchSerialIoHidden,
96 [PchSerialIoIndexGSPI2] = PchSerialIoDisabled,
97 }"
98
99 register "SerialIoGSpiCsEnable" = "{
100 [PchSerialIoIndexGSPI0] = 1,
101 [PchSerialIoIndexGSPI1] = 1,
102 [PchSerialIoIndexGSPI2] = 1,
103 }"
104
105 register "SerialIoGSpiCsMode" = "{
106 [PchSerialIoIndexGSPI0] = 0,
107 [PchSerialIoIndexGSPI1] = 0,
108 [PchSerialIoIndexGSPI2] = 0,
109 }"
110
111 register "SerialIoGSpiCsState" = "{
112 [PchSerialIoIndexGSPI0] = 0,
113 [PchSerialIoIndexGSPI1] = 0,
114 [PchSerialIoIndexGSPI2] = 0,
115 }"
116
117 register "SerialIoUartMode" = "{
118 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
119 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
120 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
121 }"
122
123 register "SerialIoUartDmaEnable" = "{
124 [PchSerialIoIndexUART0] = 1,
125 [PchSerialIoIndexUART1] = 1,
126 [PchSerialIoIndexUART2] = 1,
127 }"
128
129 register "fivr" = "{
130 .fivr_config_en = true,
131 .v1p05_state = FIVR_ENABLE_ALL_SX,
132 .vnn_state = FIVR_ENABLE_ALL_SX,
133 .vnn_sx_state = FIVR_ENABLE_S3_S4_S5,
134 .v1p05_rail = FIVR_VOLTAGE_NORMAL,
135 .vnn_rail = FIVR_ENABLE_ALL_VOLTAGE,
136 .v1p05_icc_max_ma = 200,
137 .vnn_sx_mv = 1050,
138 .vcc_low_high_us = 12,
139 .vcc_ret_high_us = 54,
140 .vcc_ret_low_us = 43,
141 .vcc_off_high_us = 150,
142 .spread_spectrum = 15,
143 }"
144
145 # TSN GBE related UPDs
146 register "PchTsnGbeLinkSpeed" = "Tsn_1_Gbps"
147 register "PchTsnGbeSgmiiEnable" = "1"
148 register "PchTsnGbeMultiVcEnable" = "1"
149 register "PseTsnGbeMultiVcEnable[0]" = "1"
150 register "PseTsnGbeMultiVcEnable[1]" = "1"
151
152 # GPIO for SD card detect
153 register "sdcard_cd_gpio" = "GPP_G5"
154
155 device domain 0 on
156 device pci 00.0 on end # Host Bridge
157 device pci 02.0 on end # Integrated Graphics Device
158 device pci 04.0 off end # SA Thermal device
159 device pci 08.0 off end # GNA
160 device pci 09.0 off end # CPU Intel Trace Hub
161
162 device pci 10.0 on end # I2C6
163 device pci 10.1 on end # I2C7
164 device pci 10.5 on end # Integrated Error Handler
165
166 device pci 11.0 off end # Intel PSE UART0
167 device pci 11.1 off end # Intel PSE UART1
168 device pci 11.2 off end # Intel PSE UART2
169 device pci 11.3 off end # Intel PSE UART3
170 device pci 11.4 off end # Intel PSE UART4
171 device pci 11.5 off end # Intel PSE UART5
172 device pci 11.6 off end # Intel PSE IS20
173 device pci 11.7 off end # Intel PSE IS21
174
175 device pci 12.0 on end # GSPI2
176 device pci 12.3 on end # Management Engine UMA Access
177 device pci 12.4 on end # Management Engine PTT DMA Controller
178 device pci 12.5 off end # UFS0
179 device pci 12.7 off end # UFS1
180
181 device pci 13.0 off end # Intel PSE GSPI0
182 device pci 13.1 off end # Intel PSE GSPI1
183 device pci 13.2 off end # Intel PSE GSPI2
184 device pci 13.3 off end # Intel PSE GSPI3
185 device pci 13.4 off end # Intel PSE GPIO0
186 device pci 13.5 off end # Intel PSE GPIO1
187
188 device pci 14.0 on end # USB3.1 xHCI
189 device pci 14.1 off end # USB3.1 xDCI (OTG)
190
191 device pci 15.0 on end # I2C0
192 device pci 15.1 on end # I2C1
193 device pci 15.2 on end # I2C2
194 device pci 15.3 on end # I2C3
195
196 device pci 16.0 on end # Management Engine Interface 1
197 device pci 16.1 on end # Management Engine Interface 2
198 device pci 16.4 on end # Management Engine Interface 3
199 device pci 16.5 on end # Management Engine Interface 4
200
201 device pci 17.0 on end # SATA
202
203 device pci 18.0 off end # Intel PSE I2C7
204 device pci 18.1 off end # Intel PSE CAN0
205 device pci 18.2 off end # Intel PSE CAN1
206 device pci 18.3 off end # Intel PSE QEP0
207 device pci 18.4 off end # Intel PSE QEP1
208 device pci 18.5 off end # Intel PSE QEP2
209 device pci 18.6 off end # Intel PSE QEP3
210
211 device pci 19.0 on end # I2C4
212 device pci 19.1 on end # I2C5
213 device pci 19.2 on end # UART2
214
215 device pci 1a.0 on end # eMMC
216 device pci 1a.1 off end # SD
217 device pci 1a.3 off end # Intel Safety Island
218
219 device pci 1b.0 off end # Intel PSE I2C0
220 device pci 1b.1 off end # Intel PSE I2C1
221 device pci 1b.2 off end # Intel PSE I2C2
222 device pci 1b.3 off end # Intel PSE I2C3
223 device pci 1b.4 off end # Intel PSE I2C4
224 device pci 1b.5 off end # Intel PSE I2C5
225 device pci 1b.6 off end # Intel PSE I2C6
226
227 device pci 1c.0 on end # RP1 (pcie0 single VC)
228 device pci 1c.1 on end # RP2 (pcie0 single VC)
229 device pci 1c.2 on end # RP3 (pcie0 single VC)
230 device pci 1c.3 on end # RP4 (pcie0 single VC)
231 device pci 1c.4 on end # RP5 (pcie1 multi VC)
232 device pci 1c.5 on end # RP6 (pcie2 multi VC)
233 device pci 1c.6 on end # RP7 (pcie3 multi VC)
234
235 device pci 1d.0 off end # Intel PSE IPC (local host to PSE)
236 device pci 1d.1 on end # Intel PSE Time-Sensitive Networking GbE 0
237 device pci 1d.2 on end # Intel PSE Time-Sensitive Networking GbE 1
238 device pci 1d.3 off end # Intel PSE DMA0
239 device pci 1d.4 off end # Intel PSE DMA1
240 device pci 1d.5 off end # Intel PSE DMA2
241 device pci 1d.6 off end # Intel PSE PWM
242 device pci 1d.7 off end # Intel PSE ADC
243
244 device pci 1e.0 on end # UART0
245 device pci 1e.1 on end # UART1
246 device pci 1e.2 on end # GSPI0
247 device pci 1e.3 on end # GSPI1
248 device pci 1e.4 on end # PCH Time-Sensitive Networking GbE
249 device pci 1e.6 on end # HPET
250 device pci 1e.7 on end # IOAPIC
251
252 device pci 1f.0 on end # eSPI Interface
253 device pci 1f.1 on end # P2SB
254 device pci 1f.2 hidden end # Power Management Controller
255 device pci 1f.3 off end # Intel cAVS/HDA
256 device pci 1f.4 on end # SMBus
257 device pci 1f.5 on end # PCH SPI (flash & TPM)
258 device pci 1f.7 off end # PCH Intel Trace Hub
259 end
260 end