payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / kunimitsu / devicetree.cb
blobdeb9f38c7a72770d4e3d7ce04d0b29bd0844f1ef
1 chip soc/intel/skylake
3 # Enable deep Sx states
4 register "deep_s5_enable_ac" = "1"
5 register "deep_s5_enable_dc" = "1"
6 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
8 # GPE configuration
9 # Note that GPE events called out in ASL code rely on this
10 # route. i.e. If this route changes then the affected GPE
11 # offset bits also need to be changed.
12 register "gpe0_dw0" = "GPP_B"
13 register "gpe0_dw1" = "GPP_D"
14 register "gpe0_dw2" = "GPP_E"
16 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
17 register "gen1_dec" = "0x00fc0801"
18 register "gen2_dec" = "0x000c0201"
20 # Enable DPTF
21 register "dptf_enable" = "1"
23 # FSP Configuration
24 register "DspEnable" = "1"
25 register "IoBufferOwnership" = "3"
26 register "ScsEmmcHs400Enabled" = "1"
27 register "SkipExtGfxScan" = "1"
28 register "SaGv" = "SaGv_Enabled"
30 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
31 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
32 register "PmConfigSlpS3MinAssert" = "0x02"
34 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
35 register "PmConfigSlpS4MinAssert" = "0x04"
37 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
38 register "PmConfigSlpSusMinAssert" = "0x03"
40 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
41 register "PmConfigSlpAMinAssert" = "0x03"
44 # VR Settings Configuration for 4 Domains
45 #+----------------+-----------+-----------+-------------+----------+
46 #| Domain/Setting | SA | IA | GT Unsliced | GT |
47 #+----------------+-----------+-----------+-------------+----------+
48 #| Psi1Threshold | 20A | 20A | 20A | 20A |
49 #| Psi2Threshold | 4A | 5A | 5A | 5A |
50 #| Psi3Threshold | 1A | 1A | 1A | 1A |
51 #| Psi3Enable | 1 | 1 | 1 | 1 |
52 #| Psi4Enable | 1 | 1 | 1 | 1 |
53 #| ImonSlope | 0 | 0 | 0 | 0 |
54 #| ImonOffset | 0 | 0 | 0 | 0 |
55 #| IccMax | 7A | 34A | 35A | 35A |
56 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
57 #+----------------+-----------+-----------+-------------+----------+
58 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
59 .vr_config_enable = 1,
60 .psi1threshold = VR_CFG_AMP(20),
61 .psi2threshold = VR_CFG_AMP(4),
62 .psi3threshold = VR_CFG_AMP(1),
63 .psi3enable = 1,
64 .psi4enable = 1,
65 .imon_slope = 0x0,
66 .imon_offset = 0x0,
67 .icc_max = VR_CFG_AMP(7),
68 .voltage_limit = 1520,
71 register "domain_vr_config[VR_IA_CORE]" = "{
72 .vr_config_enable = 1,
73 .psi1threshold = VR_CFG_AMP(20),
74 .psi2threshold = VR_CFG_AMP(5),
75 .psi3threshold = VR_CFG_AMP(1),
76 .psi3enable = 1,
77 .psi4enable = 1,
78 .imon_slope = 0x0,
79 .imon_offset = 0x0,
80 .icc_max = VR_CFG_AMP(34),
81 .voltage_limit = 1520,
84 register "domain_vr_config[VR_GT_UNSLICED]" = "{
85 .vr_config_enable = 1,
86 .psi1threshold = VR_CFG_AMP(20),
87 .psi2threshold = VR_CFG_AMP(5),
88 .psi3threshold = VR_CFG_AMP(1),
89 .psi3enable = 1,
90 .psi4enable = 1,
91 .imon_slope = 0x0,
92 .imon_offset = 0x0,
93 .icc_max = VR_CFG_AMP(35),
94 .voltage_limit = 1520,
97 register "domain_vr_config[VR_GT_SLICED]" = "{
98 .vr_config_enable = 1,
99 .psi1threshold = VR_CFG_AMP(20),
100 .psi2threshold = VR_CFG_AMP(5),
101 .psi3threshold = VR_CFG_AMP(1),
102 .psi3enable = 1,
103 .psi4enable = 1,
104 .imon_slope = 0x0,
105 .imon_offset = 0x0,
106 .icc_max = VR_CFG_AMP(35),
107 .voltage_limit = 1520,
110 # Enable Root port 1 and 5.
111 register "PcieRpEnable[0]" = "1"
112 register "PcieRpEnable[4]" = "1"
113 # Enable CLKREQ#
114 register "PcieRpClkReqSupport[0]" = "1"
115 register "PcieRpClkReqSupport[4]" = "1"
116 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
117 register "PcieRpClkReqNumber[0]" = "1"
118 register "PcieRpClkReqNumber[4]" = "2"
120 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1
121 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC1)" # Type-C Port 2
122 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
123 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (card)
124 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
125 register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board)
127 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
128 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
129 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (card)
130 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board)
132 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
134 # Must leave UART0 enabled or SD/eMMC will not work as PCI
135 register "SerialIoDevMode" = "{ \
136 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
137 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
138 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
139 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
140 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
141 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
142 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
143 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
144 [PchSerialIoIndexUart0] = PchSerialIoPci, \
145 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
146 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
149 # PL2 override 25W
150 register "power_limits_config" = "{
151 .tdp_pl2_override = 25,
154 # Send an extra VR mailbox command for the PS4 exit issue
155 register "SendVrMbxCmd" = "2"
157 # Use default SD card detect GPIO configuration
158 register "sdcard_cd_gpio" = "GPP_A7"
160 device cpu_cluster 0 on
161 device lapic 0 on end
163 device domain 0 on
164 device pci 00.0 on end # Host Bridge
165 device pci 02.0 on end # Integrated Graphics Device
166 device pci 04.0 on end # SA thermal subsystem
167 device pci 14.0 on end # USB xHCI
168 device pci 14.1 off end # USB xDCI (OTG)
169 device pci 14.2 on end # Thermal Subsystem
170 device pci 15.0 on
171 chip drivers/i2c/generic
172 register "hid" = ""ELAN0001""
173 register "desc" = ""ELAN Touchscreen""
174 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)"
175 device i2c 10 on end
177 end # I2C #0
178 device pci 15.1 on
179 chip drivers/i2c/generic
180 register "hid" = ""ELAN0000""
181 register "desc" = ""ELAN Touchpad""
182 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
183 register "wake" = "GPE0_DW0_05"
184 device i2c 15 on end
186 end # I2C #1
187 device pci 15.2 off end # I2C #2
188 device pci 15.3 off end # I2C #3
189 device pci 16.0 on end # Management Engine Interface 1
190 device pci 16.1 off end # Management Engine Interface 2
191 device pci 16.2 off end # Management Engine IDE-R
192 device pci 16.3 off end # Management Engine KT Redirection
193 device pci 16.4 off end # Management Engine Interface 3
194 device pci 17.0 off end # SATA
195 device pci 19.0 on end # UART #2
196 device pci 19.1 off end # I2C #5
197 device pci 19.2 on
198 chip drivers/i2c/nau8825
199 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)"
200 register "jkdet_enable" = "1"
201 register "jkdet_pull_enable" = "1"
202 register "jkdet_pull_up" = "1"
203 register "jkdet_polarity" = "1" # ActiveLow
204 register "vref_impedance" = "2" # 125kOhm
205 register "micbias_voltage" = "6" # 2.754
206 register "sar_threshold_num" = "4"
207 register "sar_threshold[0]" = "0x08"
208 register "sar_threshold[1]" = "0x12"
209 register "sar_threshold[2]" = "0x26"
210 register "sar_threshold[3]" = "0x73"
211 register "sar_hysteresis" = "0"
212 register "sar_voltage" = "6"
213 register "sar_compare_time" = "1" # 1us
214 register "sar_sampling_time" = "1" # 4us
215 register "short_key_debounce" = "3" # 30ms
216 register "jack_insert_debounce" = "7" # 512ms
217 register "jack_eject_debounce" = "0"
218 device i2c 1a on end
220 chip drivers/i2c/generic
221 register "hid" = ""INT343B""
222 register "desc" = ""SSM4567 Left Speaker Amp""
223 register "uid" = "0"
224 register "device_present_gpio" = "GPP_E3"
225 device i2c 34 on end
227 chip drivers/i2c/generic
228 register "hid" = ""INT343B""
229 register "desc" = ""SSM4567 Right Speaker Amp""
230 register "uid" = "1"
231 register "device_present_gpio" = "GPP_E3"
232 device i2c 35 on end
234 end # I2C #4
235 device pci 1c.0 on
236 chip drivers/wifi/generic
237 register "wake" = "GPE0_DW0_16"
238 device pci 00.0 on end
240 end # PCI Express Port 1
241 device pci 1c.1 off end # PCI Express Port 2
242 device pci 1c.2 off end # PCI Express Port 3
243 device pci 1c.3 off end # PCI Express Port 4
244 device pci 1c.4 on end # PCI Express Port 5
245 device pci 1c.5 off end # PCI Express Port 6
246 device pci 1c.6 off end # PCI Express Port 7
247 device pci 1c.7 off end # PCI Express Port 8
248 device pci 1d.0 off end # PCI Express Port 9
249 device pci 1d.1 off end # PCI Express Port 10
250 device pci 1d.2 off end # PCI Express Port 11
251 device pci 1d.3 off end # PCI Express Port 12
252 device pci 1e.0 on end # UART #0
253 device pci 1e.1 off end # UART #1
254 device pci 1e.2 off end # GSPI #0
255 device pci 1e.3 off end # GSPI #1
256 device pci 1e.4 on end # eMMC
257 device pci 1e.5 off end # SDIO
258 device pci 1e.6 on end # SDCard
259 device pci 1f.0 on
260 chip drivers/pc80/tpm
261 device pnp 0c31.0 on end
263 chip ec/google/chromeec
264 device pnp 0c09.0 on end
266 end # LPC Interface
267 device pci 1f.1 on end # P2SB
268 device pci 1f.2 on end # Power Management Controller
269 device pci 1f.3 on
270 chip drivers/generic/max98357a
271 register "hid" = ""MX98357A""
272 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)"
273 register "device_present_gpio" = "GPP_E3"
274 register "device_present_gpio_invert" = "1"
275 device generic 0 on end
277 end # Intel HDA
278 device pci 1f.4 on end # SMBus
279 device pci 1f.5 on end # PCH SPI
280 device pci 1f.6 off end # GbE