Debian Codegraph @

src/mainboard/asrock/h110m/devicetree.cb

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/skylake
4
5 register "deep_sx_config" = "DSX_EN_WAKE_PIN"
6
7 register "eist_enable" = "true"
8
9 # GPE configuration
10 # Note that GPE events called out in ASL code rely on this
11 # route. i.e. If this route changes then the affected GPE
12 # offset bits also need to be changed.
13 register "gpe0_dw0" = "GPP_B"
14 register "gpe0_dw1" = "GPP_D"
15 register "gpe0_dw2" = "GPP_E"
16
17 # Enable DPTF
18 register "dptf_enable" = "true"
19
20 # FSP Configuration
21 register "PrimaryDisplay" = "Display_PEG"
22
23 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
24 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
25 register "PmConfigSlpS3MinAssert" = "0x02"
26
27 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
28 register "PmConfigSlpS4MinAssert" = "0x04"
29
30 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
31 register "PmConfigSlpSusMinAssert" = "0x03"
32
33 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
34 register "PmConfigSlpAMinAssert" = "0x03"
35
36 # PL2 override 91W
37 register "power_limits_config" = "{
38 .tdp_pl2_override = 91,
39 }"
40
41 # Send an extra VR mailbox command for the PS4 exit issue
42 register "SendVrMbxCmd" = "2"
43
44 device domain 0 on
45 device ref system_agent on
46 subsystemid 0x1849 0x191f
47 end
48 device ref peg0 on
49 subsystemid 0x1849 0x1901
50 register "Peg0MaxLinkWidth" = "Peg0_x16"
51
52 # Configure PCIe clockgen in PCH
53 register "PcieRpClkReqSupport[0]" = "true"
54 register "PcieRpClkReqNumber[0]" = "0"
55 register "PcieRpClkSrcNumber[0]" = "0"
56 end
57 device ref igpu on
58 subsystemid 0x1849 0x1912
59 end
60 device ref sa_thermal on end
61 device ref south_xhci on
62 subsystemid 0x1849 0xa131
63
64 register "usb2_ports" = "{
65 [0] = USB2_PORT_MID(OC0),
66 [1] = USB2_PORT_MID(OC0),
67 [2] = USB2_PORT_MID(OC4),
68 [3] = USB2_PORT_MID(OC4),
69 [4] = USB2_PORT_MID(OC2),
70 [5] = USB2_PORT_MID(OC2),
71 [6] = USB2_PORT_MID(OC0),
72 [7] = USB2_PORT_MID(OC0),
73 [8] = USB2_PORT_MID(OC0),
74 [9] = USB2_PORT_MID(OC0),
75 [10] = USB2_PORT_MID(OC1),
76 [11] = USB2_PORT_MID(OC1),
77 [12] = USB2_PORT_MID(OC_SKIP),
78 [13] = USB2_PORT_MID(OC_SKIP),
79 }"
80 register "usb3_ports" = "{
81 [0] = USB3_PORT_DEFAULT(OC0),
82 [1] = USB3_PORT_DEFAULT(OC0),
83 [2] = USB3_PORT_DEFAULT(OC3),
84 [3] = USB3_PORT_DEFAULT(OC3),
85 [4] = USB3_PORT_DEFAULT(OC1),
86 [5] = USB3_PORT_DEFAULT(OC1),
87 [6] = USB3_PORT_DEFAULT(OC_SKIP),
88 [7] = USB3_PORT_DEFAULT(OC_SKIP),
89 [8] = USB3_PORT_DEFAULT(OC_SKIP),
90 [9] = USB3_PORT_DEFAULT(OC_SKIP),
91 }"
92 end
93 device ref thermal on
94 subsystemid 0x1849 0xa131
95 end
96 device ref heci1 on
97 subsystemid 0x1849 0xa131
98 end
99 device ref sata on
100 subsystemid 0x1849 0xa102
101 register "SataSalpSupport" = "1"
102 # SATA4 and SATA5 are located in the lower right corner of the board,
103 # but they are not populated. This is because the same PCB is used to
104 # make boards with better PCHs, which can have up to six SATA ports.
105 # However, the H110 PCH only has four SATA ports, which explains why
106 # two connectors are missing.
107 register "SataPortsEnable" = "{
108 [0] = 1,
109 [1] = 1,
110 [2] = 1,
111 [3] = 1,
112 }"
113 end
114 device ref pcie_rp1 on end
115 device ref pcie_rp5 on
116 register "PcieRpClkReqSupport[4]" = "true"
117 register "PcieRpClkReqNumber[4]" = "2"
118 register "PcieRpAdvancedErrorReporting[4]" = "1"
119 register "PcieRpLtrEnable[4]" = "true"
120 register "PcieRpClkSrcNumber[4]" = "2"
121 register "PcieRpHotPlug[4]" = "1"
122 end
123 device ref pcie_rp6 on
124
125 # Disable CLKREQ#, since onboard LAN is always present
126 register "PcieRpClkReqSupport[5]" = "false"
127 register "PcieRpAdvancedErrorReporting[5]" = "1"
128 register "PcieRpLtrEnable[5]" = "true"
129 register "PcieRpClkSrcNumber[5]" = "1"
130 end
131 device ref pcie_rp7 on
132 register "PcieRpClkReqSupport[6]" = "true"
133 register "PcieRpClkReqNumber[6]" = "3"
134 register "PcieRpAdvancedErrorReporting[6]" = "1"
135 register "PcieRpLtrEnable[6]" = "true"
136 register "PcieRpClkSrcNumber[6]" = "3"
137 register "PcieRpHotPlug[6]" = "1"
138 end
139 device ref lpc_espi on
140 subsystemid 0x1849 0x1a43
141
142 # Set @0x280-0x2ff I/O Range for SuperIO HWM
143 register "gen1_dec" = "0x007c0281"
144
145 # Set LPC Serial IRQ mode
146 register "serirq_mode" = "SERIRQ_CONTINUOUS"
147
148 chip superio/common
149 device pnp 2e.0 on # passes SIO base addr to SSDT gen
150
151 chip superio/nuvoton/nct6791d
152 device pnp 2e.1 on
153 # Global Control Registers
154 # Device IRQ Polarity
155 irq 0x13 = 0x00
156 irq 0x14 = 0x00
157 # Global Option
158 irq 0x24 = 0xfb
159 irq 0x27 = 0x10
160 # Multi Function
161 irq 0x1a = 0xb0
162 irq 0x1b = 0xe6
163 irq 0x2a = 0x04
164 irq 0x2c = 0x40
165 irq 0x2d = 0x03
166
167 # Parallel Port
168 io 0x60 = 0x0378
169 irq 0x70 = 7
170 drq 0x74 = 4 # No DMA
171 irq 0xf0 = 0x3c # Printer mode
172 end
173 device pnp 2e.2 on # UART A
174 io 0x60 = 0x03f8
175 irq 0x70 = 4
176 end
177 device pnp 2e.3 on # IR
178 io 0x60 = 0x02f8
179 irq 0x70 = 3
180 end
181 device pnp 2e.5 on # PS/2 KBC
182 io 0x60 = 0x0060
183 io 0x62 = 0x0064
184 irq 0x70 = 1 # Keyboard
185 irq 0x72 = 12 # Mouse
186 end
187 device pnp 2e.6 off end # CIR
188 device pnp 2e.7 on # GPIO6
189 irq 0xf6 = 0xff
190 irq 0xf7 = 0xff
191 irq 0xf8 = 0xff
192 end
193 device pnp 2e.107 on # GPIO7
194 irq 0xe0 = 0x7f
195 irq 0xe1 = 0x0d
196 end
197 device pnp 2e.207 on # GPIO8
198 irq 0xe6 = 0xff
199 irq 0xe7 = 0xff
200 irq 0xed = 0xff
201 end
202 device pnp 2e.8 off end # WDT
203 device pnp 2e.108 on end # GPIO0
204 device pnp 2e.308 off end # GPIO base
205 device pnp 2e.408 off end # WDTMEM
206 device pnp 2e.708 on end # GPIO1
207 device pnp 2e.9 on end # GPIO2
208 device pnp 2e.109 on # GPIO3
209 irq 0xe4 = 0x7b
210 irq 0xe5 = 0x02
211 irq 0xea = 0x04
212 end
213 device pnp 2e.209 on # GPIO4
214 irq 0xf0 = 0x7f
215 irq 0xf1 = 0x80
216 end
217 device pnp 2e.309 on # GPIO5
218 irq 0xf4 = 0xdf
219 irq 0xf5 = 0xd5
220 end
221 device pnp 2e.a on
222 # Power RAM in S3 and let the PCH
223 # handle power failure actions
224 irq 0xe4 = 0x70
225 # Set HWM reset source to LRESET#
226 irq 0xe7 = 0x01
227 end # ACPI
228 device pnp 2e.b on # HWM, LED
229 io 0x60 = 0x0290
230 io 0x62 = 0
231 irq 0x70 = 0
232 end
233 device pnp 2e.d off end # BCLK, WDT2, WDT_MEM
234 device pnp 2e.e off end # CIR wake-up
235 device pnp 2e.f off end # GPIO PP/OD
236 device pnp 2e.14 off end # SVID, Port 80 UART
237 device pnp 2e.16 off end # DS5
238 device pnp 2e.116 off end # DS3
239 device pnp 2e.316 on end # PCHDSW
240 device pnp 2e.416 off end # DSWWOPT
241 device pnp 2e.516 on end # DS3OPT
242 device pnp 2e.616 on end # DSDSS
243 device pnp 2e.716 off end # DSPU
244 end # chip superio/nuvoton/nct6791d
245
246 end # device pnp 2e.0
247 end # chip superio/common
248
249 chip drivers/pc80/tpm
250 device pnp 4e.0 on end # TPM module
251 end
252 end
253 device ref hda on
254 register "PchHdaVcType" = "Vc1"
255 end
256 device ref smbus on end
257 device ref fast_spi on end
258 end
259 end