Debian Codegraph @

src/mainboard/siemens/mc_ehl/variants/mc_ehl4/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_Disabled"
15
16 # Enable IBECC for the complete memory
17 register "ibecc" = "{
18 .enable = 1,
19 .mode = IBECC_ALL
20 }"
21
22 # USB related UPDs
23 register "usb2_ports[0]" = "USB2_PORT_SHORT(OC_SKIP)" # X125
24 register "usb2_ports[1]" = "USB2_PORT_SHORT(OC_SKIP)" # X135
25 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # internal USB-OC
26 register "usb2_ports[3]" = "USB2_PORT_EMPTY" # Port is unused
27 register "usb2_ports[4]" = "USB2_PORT_EMPTY" # Port is unused
28 register "usb2_ports[5]" = "USB2_PORT_EMPTY" # Port is unused
29 register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Port is unused
30 register "usb2_ports[7]" = "USB2_PORT_EMPTY" # Port is unused
31 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Port is unused
32 register "usb2_ports[9]" = "USB2_PORT_EMPTY" # Port is unused
33
34 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A port1
35 register "usb3_ports[1]" = "USB3_PORT_EMPTY" # Port is not used
36 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Port is not used
37 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Port is not used
38
39 # Skip the CPU replacement check
40 register "SkipCpuReplacementCheck" = "1"
41
42 # PCIe root ports related UPDs
43 register "PcieClkSrcUsage[0]" = "PCIE_CLK_FREE"
44 register "PcieClkSrcUsage[1]" = "PCIE_CLK_FREE"
45 register "PcieClkSrcUsage[2]" = "PCIE_CLK_FREE"
46 register "PcieClkSrcUsage[3]" = "PCIE_CLK_FREE"
47 register "PcieClkSrcUsage[4]" = "PCIE_CLK_FREE"
48 register "PcieClkSrcUsage[5]" = "PCIE_CLK_FREE"
49
50 register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED"
51 register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED"
52 register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED"
53 register "PcieClkSrcClkReq[3]" = "PCIE_CLK_NOTUSED"
54 register "PcieClkSrcClkReq[4]" = "PCIE_CLK_NOTUSED"
55 register "PcieClkSrcClkReq[5]" = "PCIE_CLK_NOTUSED"
56
57 # Disable all L1 substates for PCIe root ports
58 register "PcieRpL1Substates[0]" = "L1_SS_DISABLED"
59 register "PcieRpL1Substates[1]" = "L1_SS_DISABLED"
60 register "PcieRpL1Substates[2]" = "L1_SS_DISABLED"
61 register "PcieRpL1Substates[3]" = "L1_SS_DISABLED"
62 register "PcieRpL1Substates[4]" = "L1_SS_DISABLED"
63
64 # Disable LTR for all PCIe root ports
65 register "PcieRpLtrDisable[0]" = "true"
66 register "PcieRpLtrDisable[1]" = "true"
67 register "PcieRpLtrDisable[2]" = "true"
68 register "PcieRpLtrDisable[3]" = "true"
69 register "PcieRpLtrDisable[4]" = "true"
70
71 # Determines PCIe root port speed
72 register "PcieRpPcieSpeed[3]" = "1"
73 register "PcieRpPcieSpeed[4]" = "1"
74
75 register "PcieRpMaxPayload[1]" = "RpMaxPayload_256"
76 register "PcieRpMaxPayload[2]" = "RpMaxPayload_256"
77
78 # Storage (SATA/SDCARD/EMMC) related UPDs
79 register "SataSalpSupport" = "0"
80 register "SataPortsEnable[0]" = "1"
81 register "SataPortsEnable[1]" = "1"
82 register "SataPortsDevSlp[0]" = "0"
83 register "SataPortsDevSlp[1]" = "0"
84 register "SataSpeed" = "SATA_GEN2"
85
86 register "ScsEmmcHs400Enabled" = "0"
87 register "ScsEmmcDdr50Enabled" = "1"
88 register "SdCardPowerEnableActiveHigh" = "1"
89 # GPIO for SD card detect
90 register "sdcard_cd_gpio" = "GPP_G5"
91
92 # LPSS Serial IO (I2C/UART/GSPI) related UPDs
93 register "SerialIoI2cMode" = "{
94 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
95 [PchSerialIoIndexI2C1] = PchSerialIoPci,
96 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
97 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
98 [PchSerialIoIndexI2C4] = PchSerialIoPci,
99 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
100 [PchSerialIoIndexI2C6] = PchSerialIoDisabled,
101 [PchSerialIoIndexI2C7] = PchSerialIoDisabled,
102 }"
103
104 register "SerialIoI2cPadsTermination" = "{
105 [PchSerialIoIndexI2C0] = 1,
106 [PchSerialIoIndexI2C1] = 1,
107 [PchSerialIoIndexI2C2] = 1,
108 [PchSerialIoIndexI2C3] = 1,
109 [PchSerialIoIndexI2C4] = 1,
110 [PchSerialIoIndexI2C5] = 1,
111 [PchSerialIoIndexI2C6] = 1,
112 [PchSerialIoIndexI2C7] = 1,
113 }"
114
115 register "SerialIoUartMode" = "{
116 [PchSerialIoIndexUART0] = PchSerialIoPci,
117 [PchSerialIoIndexUART1] = PchSerialIoPci,
118 [PchSerialIoIndexUART2] = PchSerialIoSkipInit,
119 }"
120
121 register "SerialIoUartDmaEnable" = "{
122 [PchSerialIoIndexUART0] = 1,
123 [PchSerialIoIndexUART1] = 1,
124 [PchSerialIoIndexUART2] = 1,
125 }"
126
127 # TSN GBE related UPDs
128 register "PchTsnGbeLinkSpeed" = "Tsn_2_5_Gbps"
129 register "PchTsnGbeSgmiiEnable" = "1"
130
131 # FIVR related settings
132 register "fivr" = "{
133 .fivr_config_en = true,
134 .vcc_low_high_us = 50,
135 }"
136
137 # Disable L1 prefetcher
138 register "L1_prefetcher_disable" = "true"
139
140 # Enable real-time tuning
141 register "realtime_tuning_enable" = "true"
142
143 device domain 0 on
144 device pci 00.0 on end # Host Bridge
145 device pci 02.0 on end # Integrated Graphics Device
146
147 device pci 14.0 on end # USB3.1 xHCI
148
149 device pci 15.0 off end # I2C0
150 device pci 15.1 on # I2C1
151 # Enable external RTC chip
152 chip drivers/i2c/rv3028c7
153 register "bus_speed" = "I2C_SPEED_STANDARD"
154 register "set_user_date" = "1"
155 register "user_year" = "04"
156 register "user_month" = "07"
157 register "user_day" = "01"
158 register "user_weekday" = "4"
159 register "bckup_sw_mode" = "BACKUP_SW_LEVEL"
160 register "cap_charge" = "CHARGE_OFF"
161 device i2c 0x52 on end # RTC RV3028-C7
162 end
163 end
164
165 device pci 16.0 hidden end # Management Engine Interface 1
166
167 device pci 17.0 on end # SATA
168
169 device pci 19.0 on end # I2C4
170 device pci 19.2 on end # UART2
171
172 device pci 1a.0 on end # eMMC
173 device pci 1a.1 on end # SD
174
175 device pci 1c.0 on end # RP1 (pcie0 single VC)
176 device pci 1c.1 on end # RP2 (pcie0 single VC)
177 device pci 1c.2 on end # RP3 (pcie0 single VC)
178 device pci 1c.3 on end # RP4 (pcie0 single VC)
179 device pci 1c.4 on end # RP5 (pcie1 multi VC)
180
181 device pci 1e.0 on end # UART0
182 device pci 1e.1 on end # UART1
183
184 device pci 1f.0 on end # eSPI Interface
185 device pci 1f.2 hidden end # Power Management Controller
186 device pci 1f.4 on end # SMBus
187 device pci 1f.5 on end # PCH SPI (flash & TPM)
188 end
189 end