mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / google / fizz / variants / baseboard / devicetree.cb
blob2976deb12df9eace0c2f44ad988ad07817d4a90a
1 chip soc/intel/skylake
3 register "panel_cfg" = "{
4 .up_delay_ms = 200,
5 .down_delay_ms = 50,
6 .cycle_delay_ms = 500,
7 .backlight_on_delay_ms = 1,
8 .backlight_off_delay_ms = 200,
9 .backlight_pwm_hz = 200,
12 # Deep Sx states
13 register "deep_s3_enable_ac" = "0"
14 register "deep_s3_enable_dc" = "0"
15 register "deep_s5_enable_ac" = "1"
16 register "deep_s5_enable_dc" = "1"
17 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN"
19 register "eist_enable" = "true"
21 # Mapping of USB port # to device
22 #+----------------+-------+-----------------------------------+
23 #| Device | Port# | Rev |
24 #+----------------+-------+-----------------------------------+
25 #| USB C | 1 | 2/3 |
26 #| USB A Rear | 2 | 2/3 |
27 #| USB A Front | 3 | 2/3 |
28 #| USB A Front | 4 | 2/3 |
29 #| USB A Rear | 5 | 2 on base celeron, 2/3 all others |
30 #| USB A Rear | 6 | 2 on base celeron, 2/3 all others |
31 #| Bluetooth | 7 | |
32 #| Daughter Board | 8 | |
33 #+----------------+-------+-----------------------------------+
35 # Bitmap for Wake Enable on USB attach/detach
36 register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(2) |
37 USB_PORT_WAKE_ENABLE(3) |
38 USB_PORT_WAKE_ENABLE(4) |
39 USB_PORT_WAKE_ENABLE(5) |
40 USB_PORT_WAKE_ENABLE(6)"
41 register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(2) |
42 USB_PORT_WAKE_ENABLE(3) |
43 USB_PORT_WAKE_ENABLE(4) |
44 USB_PORT_WAKE_ENABLE(5) |
45 USB_PORT_WAKE_ENABLE(6)"
47 # GPE configuration
48 # Note that GPE events called out in ASL code rely on this
49 # route. i.e. If this route changes then the affected GPE
50 # offset bits also need to be changed.
51 register "gpe0_dw0" = "GPP_B"
52 register "gpe0_dw1" = "GPP_D"
53 register "gpe0_dw2" = "GPP_E"
55 # Enable DPTF
56 register "dptf_enable" = "1"
58 # Enable S0ix
59 register "s0ix_enable" = true
61 # FSP Configuration
62 register "DspEnable" = "1"
63 register "IoBufferOwnership" = "3"
64 register "SkipExtGfxScan" = "1"
65 register "SaGv" = "SaGv_Enabled"
66 register "PmConfigSlpS3MinAssert" = "2" # 50ms
67 register "PmConfigSlpS4MinAssert" = "1" # 1s
68 register "PmConfigSlpSusMinAssert" = "1" # 500ms
69 register "PmConfigSlpAMinAssert" = "3" # 2s
70 register "SendVrMbxCmd" = "1" # IMVP8 workaround
72 # Intersil VR c-state issue workaround
73 # send VR mailbox command for IA/GT/SA rails
74 register "IslVrCmd" = "2"
76 # VR Settings Configuration for 4 Domains
77 #+----------------+-------+-------+-------+-------+
78 #| Domain/Setting | SA | IA | GTUS | GTS |
79 #+----------------+-------+-------+-------+-------+
80 #| Psi1Threshold | 20A | 20A | 20A | 20A |
81 #| Psi2Threshold | 4A | 5A | 5A | 5A |
82 #| Psi3Threshold | 1A | 1A | 1A | 1A |
83 #| Psi3Enable | 1 | 1 | 1 | 1 |
84 #| Psi4Enable | 1 | 1 | 1 | 1 |
85 #| ImonSlope | 0 | 0 | 0 | 0 |
86 #| ImonOffset | 0 | 0 | 0 | 0 |
87 #| IccMax | 7A | 34A | 35A | 35A |
88 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
89 #| AcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
90 #| DcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
91 #+----------------+-------+-------+-------+-------+
92 #Note: IccMax settings are moved to SoC code
93 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
94 .vr_config_enable = 1,
95 .psi1threshold = VR_CFG_AMP(20),
96 .psi2threshold = VR_CFG_AMP(4),
97 .psi3threshold = VR_CFG_AMP(1),
98 .psi3enable = 1,
99 .psi4enable = 1,
100 .imon_slope = 0x0,
101 .imon_offset = 0x0,
102 .voltage_limit = 1520,
103 .ac_loadline = 1030,
104 .dc_loadline = 1030,
107 register "domain_vr_config[VR_IA_CORE]" = "{
108 .vr_config_enable = 1,
109 .psi1threshold = VR_CFG_AMP(20),
110 .psi2threshold = VR_CFG_AMP(5),
111 .psi3threshold = VR_CFG_AMP(1),
112 .psi3enable = 1,
113 .psi4enable = 1,
114 .imon_slope = 0x0,
115 .imon_offset = 0x0,
116 .voltage_limit = 1520,
117 .ac_loadline = 240,
118 .dc_loadline = 240,
121 register "domain_vr_config[VR_GT_UNSLICED]" = "{
122 .vr_config_enable = 1,
123 .psi1threshold = VR_CFG_AMP(20),
124 .psi2threshold = VR_CFG_AMP(5),
125 .psi3threshold = VR_CFG_AMP(1),
126 .psi3enable = 1,
127 .psi4enable = 1,
128 .imon_slope = 0x0,
129 .imon_offset = 0x0,
130 .voltage_limit = 1520,
131 .ac_loadline = 310,
132 .dc_loadline = 310,
135 register "domain_vr_config[VR_GT_SLICED]" = "{
136 .vr_config_enable = 1,
137 .psi1threshold = VR_CFG_AMP(20),
138 .psi2threshold = VR_CFG_AMP(5),
139 .psi3threshold = VR_CFG_AMP(1),
140 .psi3enable = 1,
141 .psi4enable = 1,
142 .imon_slope = 0x0,
143 .imon_offset = 0x0,
144 .voltage_limit = 1520,
145 .ac_loadline = 310,
146 .dc_loadline = 310,
150 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
151 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
152 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
153 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
155 # Intel Common SoC Config
156 #+-------------------+---------------------------+
157 #| Field | Value |
158 #+-------------------+---------------------------+
159 #| GSPI0 | cr50 TPM. Early init is |
160 #| | required to set up a BAR |
161 #| | for TPM communication |
162 #| | before memory is up |
163 #| I2C5 | Audio |
164 #+-------------------+---------------------------+
166 register "common_soc_config" = "{
167 .gspi[0] = {
168 .speed_mhz = 1,
169 .early_init = 1,
171 .i2c[5] = {
172 .speed = I2C_SPEED_FAST,
173 .speed_config[0] = {
174 .speed = I2C_SPEED_FAST,
175 .scl_lcnt = 194,
176 .scl_hcnt = 100,
177 .sda_hold = 36,
182 # Must leave UART0 enabled or SD/eMMC will not work as PCI
183 register "SerialIoDevMode" = "{
184 [PchSerialIoIndexI2C0] = PchSerialIoPci,
185 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
186 [PchSerialIoIndexI2C2] = PchSerialIoPci,
187 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
188 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
189 [PchSerialIoIndexI2C5] = PchSerialIoPci,
190 [PchSerialIoIndexSpi0] = PchSerialIoPci,
191 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
192 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
193 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
194 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
197 register "power_limits_config" = "{
198 .tdp_psyspl2 = 90,
199 .psys_pmax = 120,
201 register "tcc_offset" = "6" # TCC of 94C
203 device domain 0 on
204 device ref igpu on end
205 device ref sa_thermal on end
206 device ref south_xhci on
207 register "usb2_ports" = "{
208 [0] = USB2_PORT_LONG(OC0), // Type-C
209 [1] = USB2_PORT_MID(OC3), // Type-A Rear
210 [2] = USB2_PORT_MID(OC2), // Type-A Front
211 [3] = USB2_PORT_MID(OC2), // Type-A Front
212 [4] = USB2_PORT_MID(OC1), // Type-A Rear
213 [5] = USB2_PORT_MID(OC1), // Type-A Rear
214 [6] = USB2_PORT_MID(OC_SKIP), // Bluetooth
215 [7] = USB2_PORT_MID(OC_SKIP), // Type-A 2.0 / Debug
218 register "usb3_ports" = "{
219 [0] = USB3_PORT_DEFAULT(OC0), // Type-C
220 [1] = USB3_PORT_DEFAULT(OC3), // Type-A Rear
221 [2] = USB3_PORT_DEFAULT(OC2), // Type-A Front
222 [3] = USB3_PORT_DEFAULT(OC2), // Type-A Front
223 [4] = USB3_PORT_DEFAULT(OC1), // Type-A Rear
224 [5] = USB3_PORT_DEFAULT(OC1), // Type-A Rear
226 chip drivers/usb/acpi
227 register "desc" = ""Root Hub""
228 register "type" = "UPC_TYPE_HUB"
229 device usb 0.0 on
230 chip drivers/usb/acpi
231 register "desc" = ""USB2 Type-C Rear""
232 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
233 device usb 2.0 on end
235 chip drivers/usb/acpi
236 register "desc" = ""USB2 Type-A Rear Left""
237 register "type" = "UPC_TYPE_A"
238 device usb 2.1 on end
240 chip drivers/usb/acpi
241 register "desc" = ""USB2 Type-A Rear Right""
242 register "type" = "UPC_TYPE_A"
243 device usb 2.4 on end
245 chip drivers/usb/acpi
246 register "desc" = ""USB2 Type-A Rear Middle""
247 register "type" = "UPC_TYPE_A"
248 device usb 2.5 on end
250 chip drivers/usb/acpi
251 register "desc" = ""USB2 Bluetooth""
252 register "type" = "UPC_TYPE_INTERNAL"
253 device usb 2.6 on end
255 chip drivers/usb/acpi
256 register "desc" = ""USB3 Type-C Rear""
257 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
258 device usb 3.0 on end
260 chip drivers/usb/acpi
261 register "desc" = ""USB3 Type-A Rear Left""
262 register "type" = "UPC_TYPE_USB3_A"
263 device usb 3.1 on end
265 chip drivers/usb/acpi
266 register "desc" = ""USB3 Type-A Rear Right""
267 register "type" = "UPC_TYPE_USB3_A"
268 device usb 3.4 on end
270 chip drivers/usb/acpi
271 register "desc" = ""USB3 Type-A Rear Middle""
272 register "type" = "UPC_TYPE_USB3_A"
273 device usb 3.5 on end
278 device ref thermal on end
279 device ref i2c0 on end
280 device ref i2c2 on end
281 device ref heci1 on end
282 device ref sata on
283 register "SataPortsEnable" = "{
284 [0] = 1,
285 [1] = 1,
287 register "SataPortsDevSlp[1]" = "1"
289 device ref uart2 on end
290 device ref i2c5 on end
291 device ref pcie_rp1 on end
292 device ref pcie_rp3 on
293 # LAN, will be swapped to port 1 by FSP
294 # x1
295 register "PcieRpEnable[2]" = "1"
296 register "PcieRpClkReqSupport[2]" = "1"
297 register "PcieRpClkReqNumber[2]" = "0"
298 register "PcieRpAdvancedErrorReporting[2]" = "1"
299 register "PcieRpLtrEnable[2]" = "1"
300 register "PcieRpClkSrcNumber[2]" = "0"
301 chip drivers/net
302 register "customized_leds" = "0x0fa5"
303 register "wake" = "GPE0_PCI_EXP"
304 device pci 00.0 on end
305 register "device_index" = "0"
308 device ref pcie_rp4 on
309 # x1 WLAN
310 register "PcieRpEnable[3]" = "1"
311 register "PcieRpClkReqSupport[3]" = "1"
312 register "PcieRpClkReqNumber[3]" = "5"
313 register "PcieRpAdvancedErrorReporting[3]" = "1"
314 register "PcieRpLtrEnable[3]" = "1"
315 register "PcieRpClkSrcNumber[3]" = "5"
316 chip drivers/wifi/generic
317 register "wake" = "GPE0_PCI_EXP"
318 device pci 00.0 on end
321 device ref pcie_rp5 on
322 # x4 NVMe
323 register "PcieRpEnable[4]" = "1"
324 register "PcieRpClkReqSupport[4]" = "1"
325 register "PcieRpClkReqNumber[4]" = "1"
326 register "PcieRpAdvancedErrorReporting[4]" = "1"
327 register "PcieRpLtrEnable[4]" = "1"
328 register "PcieRpClkSrcNumber[4]" = "1"
330 device ref pcie_rp9 on
331 # 2nd LAN
332 register "PcieRpEnable[8]" = "1"
333 register "PcieRpClkReqSupport[8]" = "1"
334 register "PcieRpClkReqNumber[8]" = "2"
335 register "PcieRpAdvancedErrorReporting[8]" = "1"
336 register "PcieRpLtrEnable[8]" = "1"
337 register "PcieRpClkSrcNumber[8]" = "2"
338 chip drivers/net
339 register "customized_leds" = "0x0fa5"
340 register "device_index" = "1"
341 device pci 00.0 on end
344 device ref pcie_rp11 on
345 register "PcieRpEnable[10]" = "1"
346 register "PcieRpClkReqSupport[10]" = "1"
347 register "PcieRpClkReqNumber[10]" = "2"
348 register "PcieRpAdvancedErrorReporting[10]" = "1"
349 register "PcieRpLtrEnable[10]" = "1"
350 register "PcieRpClkSrcNumber[10]" = "2"
352 device ref pcie_rp12 on
353 register "PcieRpEnable[11]" = "1"
354 register "PcieRpClkReqSupport[11]" = "1"
355 register "PcieRpClkReqNumber[11]" = "2"
356 register "PcieRpAdvancedErrorReporting[11]" = "1"
357 register "PcieRpLtrEnable[11]" = "1"
358 register "PcieRpClkSrcNumber[11]" = "2"
360 device ref uart0 on end
361 device ref gspi0 on
362 chip drivers/spi/acpi
363 register "hid" = "ACPI_DT_NAMESPACE_HID"
364 register "compat_string" = ""google,cr50""
365 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
366 device spi 0 on end
369 device ref sdxc on end
370 device ref lpc_espi on
371 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
372 register "gen1_dec" = "0x00fc0801"
373 register "gen2_dec" = "0x000c0201"
374 # EC memory map range is 0x900-0x9ff
375 register "gen3_dec" = "0x00fc0901"
377 chip ec/google/chromeec
378 device pnp 0c09.0 on end
381 device ref hda on end
382 device ref smbus on end
383 device ref fast_spi on end