mb/google/nissa/var/rull: Change padbased_override to rtd3 of wifi
[coreboot2.git] / src / mainboard / lenovo / thinkcentre_m710s / devicetree.cb
blob4d1828c5ab7eb8d50220da997b938231641086d7
1 # SPDX-License-Identifier: GPL-2.0-only
3 chip soc/intel/skylake
4 register "eist_enable" = "true"
6 device domain 0 on
7 device ref peg0 on # PCIE16X
8 smbios_slot_desc "SlotTypePciExpressGen3X16"
9 "SlotLengthLong"
10 "PCIE16X"
11 "SlotDataBusWidth16X"
12 end
13 device ref igpu on end
14 device ref south_xhci on
15 register "usb2_ports" = "{
16 [0] = USB2_PORT_MID(OC1), // USB30A
17 [1] = USB2_PORT_MID(OC1), // USB30B
18 [2] = USB2_PORT_MID(OC2), // F_USB30_1A
19 [3] = USB2_PORT_MID(OC2), // F_USB30_1B
20 [4] = USB2_PORT_MID(OC3), // F_USB30_2A
21 [5] = USB2_PORT_MID(OC3), // F_USB30_2B
22 [6] = USB2_PORT_MID(OC_SKIP), // M.2 Bluetooth
23 [7] = USB2_PORT_MID(OC5), // USB_LANA
24 [8] = USB2_PORT_MID(OC5), // USB_LANB
25 [9] = USB2_PORT_MID(OC_SKIP), // F_USB1 (Pins 5, 7)
26 [10] = USB2_PORT_MID(OC_SKIP), // F_USB1 (Pins 6, 8)
27 // Used by the SD/MMC reader.
28 [11] = USB2_PORT_MID(OC_SKIP), // F_USB2 (Pins 5, 7)
30 register "usb3_ports" = "{
31 [0] = USB3_PORT_DEFAULT(OC1), // USB30A
32 [1] = USB3_PORT_DEFAULT(OC1), // USB30B
33 [2] = USB3_PORT_DEFAULT(OC2), // F_USB30_1A
34 [3] = USB3_PORT_DEFAULT(OC2), // F_USB30_1B
35 [4] = USB3_PORT_DEFAULT(OC3), // F_USB30_2A
36 [5] = USB3_PORT_DEFAULT(OC3), // F_USB30_2B
39 chip drivers/usb/acpi
40 register "desc" = ""xHCI Root Hub""
41 register "type" = "UPC_TYPE_HUB"
42 device usb 0.0 on
43 chip drivers/usb/acpi
44 register "desc" = ""USB30A""
45 register "type" = "UPC_TYPE_USB3_A"
46 register "group" = "ACPI_PLD_GROUP(1, 1)"
47 device usb 2.0 on end
48 end
49 chip drivers/usb/acpi
50 register "desc" = ""USB30B""
51 register "type" = "UPC_TYPE_USB3_A"
52 register "group" = "ACPI_PLD_GROUP(1, 2)"
53 device usb 2.1 on end
54 end
55 chip drivers/usb/acpi
56 register "desc" = ""F_USB30_1A""
57 register "type" = "UPC_TYPE_USB3_A"
58 register "group" = "ACPI_PLD_GROUP(2, 1)"
59 device usb 2.2 on end
60 end
61 chip drivers/usb/acpi
62 register "desc" = ""F_USB30_1B""
63 register "type" = "UPC_TYPE_USB3_A"
64 register "group" = "ACPI_PLD_GROUP(2, 2)"
65 device usb 2.3 on end
66 end
67 chip drivers/usb/acpi
68 register "desc" = ""F_USB30_2A""
69 register "type" = "UPC_TYPE_USB3_A"
70 register "group" = "ACPI_PLD_GROUP(3, 1)"
71 device usb 2.4 on end
72 end
73 chip drivers/usb/acpi
74 register "desc" = ""F_USB30_2B""
75 register "type" = "UPC_TYPE_USB3_A"
76 register "group" = "ACPI_PLD_GROUP(3, 2)"
77 device usb 2.5 on end
78 end
79 chip drivers/usb/acpi
80 register "desc" = ""M.2 Bluetooth""
81 register "type" = "UPC_TYPE_INTERNAL"
82 device usb 2.6 on end
83 end
84 chip drivers/usb/acpi
85 register "desc" = ""USB_LANA""
86 register "type" = "UPC_TYPE_A"
87 register "group" = "ACPI_PLD_GROUP(4, 1)"
88 device usb 2.7 on end
89 end
90 chip drivers/usb/acpi
91 register "desc" = ""USB_LANB""
92 register "type" = "UPC_TYPE_A"
93 register "group" = "ACPI_PLD_GROUP(4, 2)"
94 device usb 2.8 on end
95 end
96 chip drivers/usb/acpi
97 register "desc" = ""F_USB1 (Pins 5, 7)""
98 register "type" = "UPC_TYPE_INTERNAL"
99 register "group" = "ACPI_PLD_GROUP(5, 1)"
100 device usb 2.9 on end
102 chip drivers/usb/acpi
103 register "desc" = ""F_USB1 (Pins 6, 8)""
104 register "type" = "UPC_TYPE_INTERNAL"
105 register "group" = "ACPI_PLD_GROUP(5, 2)"
106 device usb 2.10 on end
108 chip drivers/usb/acpi
109 register "desc" = ""F_USB2 (Pins 5, 7)""
110 register "type" = "UPC_TYPE_INTERNAL"
111 device usb 2.11 on end
113 chip drivers/usb/acpi
114 register "desc" = ""USB30A""
115 register "type" = "UPC_TYPE_USB3_A"
116 register "group" = "ACPI_PLD_GROUP(1, 1)"
117 device usb 3.0 on end
119 chip drivers/usb/acpi
120 register "desc" = ""USB30B""
121 register "type" = "UPC_TYPE_USB3_A"
122 register "group" = "ACPI_PLD_GROUP(1, 2)"
123 device usb 3.1 on end
125 chip drivers/usb/acpi
126 register "desc" = ""F_USB30_1A""
127 register "type" = "UPC_TYPE_USB3_A"
128 register "group" = "ACPI_PLD_GROUP(2, 1)"
129 device usb 3.2 on end
131 chip drivers/usb/acpi
132 register "desc" = ""F_USB30_1B""
133 register "type" = "UPC_TYPE_USB3_A"
134 register "group" = "ACPI_PLD_GROUP(2, 2)"
135 device usb 3.3 on end
137 chip drivers/usb/acpi
138 register "desc" = ""F_USB30_2A""
139 register "type" = "UPC_TYPE_USB3_A"
140 register "group" = "ACPI_PLD_GROUP(3, 1)"
141 device usb 3.4 on end
143 chip drivers/usb/acpi
144 register "desc" = ""F_USB30_2B""
145 register "type" = "UPC_TYPE_USB3_A"
146 register "group" = "ACPI_PLD_GROUP(3, 2)"
147 device usb 3.5 on end
152 device ref thermal on end
153 device ref heci1 on end
154 device ref sata on
155 register "SataSalpSupport" = "true"
156 register "SataPortsEnable" = "{
157 [0] = true, // SATA1
158 [1] = true, // SATA2
159 [2] = true, // SATA3
162 device ref pcie_rp5 on # USB_LAN
163 register "PcieRpEnable[4]" = "true"
164 register "PcieRpLtrEnable[4]" = "true"
165 register "PcieRpClkReqSupport[4]" = "true"
166 register "PcieRpClkReqNumber[4]" = "5"
167 register "PcieRpClkSrcNumber[4]" = "5"
168 register "PcieRpAdvancedErrorReporting[4]" = "true"
170 device ref pcie_rp7 on # PCIE1X_2
171 smbios_slot_desc "SlotTypePciExpressGen3X1"
172 "SlotLengthShort"
173 "PCIE1X_2"
174 "SlotDataBusWidth1X"
176 register "PcieRpEnable[6]" = "true"
177 register "PcieRpLtrEnable[6]" = "true"
178 register "PcieRpClkReqSupport[6]" = "true"
179 register "PcieRpClkReqNumber[6]" = "7"
180 register "PcieRpClkSrcNumber[6]" = "7"
181 register "PcieRpAdvancedErrorReporting[6]" = "true"
183 device ref pcie_rp8 on # PCIE1X_1
184 smbios_slot_desc "SlotTypePciExpressGen3X1"
185 "SlotLengthShort"
186 "PCIE1X_1"
187 "SlotDataBusWidth1X"
189 register "PcieRpEnable[7]" = "true"
190 register "PcieRpLtrEnable[7]" = "true"
191 register "PcieRpClkReqSupport[7]" = "true"
192 register "PcieRpClkReqNumber[7]" = "8"
193 register "PcieRpClkSrcNumber[7]" = "8"
194 register "PcieRpAdvancedErrorReporting[7]" = "true"
196 device ref pcie_rp11 on # M2_WIFI
197 smbios_slot_desc "SlotTypeM2Socket1_SD"
198 "SlotLengthOther"
199 "M2_WIFI"
200 "SlotDataBusWidth1X"
202 register "PcieRpEnable[10]" = "true"
203 register "PcieRpLtrEnable[10]" = "true"
204 register "PcieRpClkReqSupport[10]" = "true"
205 register "PcieRpClkReqNumber[10]" = "1"
206 register "PcieRpClkSrcNumber[10]" = "1"
207 register "PcieRpAdvancedErrorReporting[10]" = "true"
209 device ref pcie_rp21 on # M2_SSD
210 smbios_slot_desc "SlotTypeM2Socket3"
211 "SlotLengthOther"
212 "M2_SSD"
213 "SlotDataBusWidth1X"
215 register "PcieRpEnable[20]" = "true"
216 register "PcieRpLtrEnable[20]" = "true"
217 register "PcieRpClkReqSupport[20]" = "true"
218 register "PcieRpClkReqNumber[20]" = "6"
219 register "PcieRpClkSrcNumber[20]" = "2"
220 register "PcieRpAdvancedErrorReporting[20]" = "true"
222 device ref lpc_espi on
223 register "serirq_mode" = "SERIRQ_CONTINUOUS"
225 chip superio/ite/it8629e
226 register "TMPIN1.mode" = "THERMAL_DIODE" # THER_HD
227 register "TMPIN2.mode" = "THERMAL_MODE_DISABLED"
228 # Located close to VR MOSFET.
229 register "TMPIN3.mode" = "THERMAL_DIODE"
231 # CPU_FAN
232 register "FAN1" = "{
233 .mode = FAN_SMART_AUTOMATIC,
234 .smart = {
235 .tmpin = 3,
236 .tmp_off = 35,
237 .tmp_start = 60,
238 .tmp_full = 85,
239 .tmp_delta = 2,
240 .pwm_start = 20,
241 .slope = 24,
245 register "FAN2.mode" = "FAN_MODE_OFF" # SYS_FAN
246 register "FAN3.mode" = "FAN_MODE_OFF" # AUX1_FAN
247 # TODO: Add support for 6 fans.
248 #register "FAN6.mode" = "FAN_MODE_OFF" # AUX2_FAN
250 register "ec.vin_mask" = "VIN_ALL"
252 # Vendor values dumped using util/superiotool.
253 device pnp 2e.0 off end
254 device pnp 2e.1 on # VGA_COM1A
255 io 0x60 = 0x03f8
256 irq 0x70 = 0x04
257 irq 0xf1 = 0x50
259 device pnp 2e.2 off end
260 device pnp 2e.3 off end
261 device pnp 2e.4 on
262 io 0x60 = 0x0a30
263 io 0x62 = 0x0230
264 irq 0x70 = 0x09
265 irq 0xf0 = 0x40
267 device pnp 2e.5 on # KB_MS (PS/2 Keyboard)
268 io 0x60 = 0x0060
269 io 0x62 = 0x0064
270 irq 0x70 = 0x01
271 irq 0x71 = 0x02
272 irq 0xf0 = 0x48
274 device pnp 2e.6 on # KB_MS (PS/2 Mouse)
275 irq 0x70 = 0x0c
276 irq 0x71 = 0x02
278 device pnp 2e.7 on
279 irq 0x25 = 0x11
280 irq 0x26 = 0x04
281 irq 0x28 = 0x81
282 irq 0x2a = 0x0d
283 irq 0x2c = 0x01
284 io 0x60 = 0x0000
285 io 0x62 = 0x0a00
286 io 0x64 = 0x0000
287 irq 0x70 = 0x00
288 irq 0x71 = 0x09
289 irq 0x72 = 0x20
290 irq 0x73 = 0x38
291 irq 0xb8 = 0x11
292 irq 0xbc = 0xc0
293 irq 0xbd = 0x03
294 irq 0xc0 = 0x01
295 irq 0xc1 = 0x04
296 irq 0xc3 = 0x41
297 irq 0xc8 = 0x01
298 irq 0xc9 = 0x04
299 irq 0xcb = 0x01
300 irq 0xe9 = 0x07
301 irq 0xf0 = 0x10
302 irq 0xf4 = 0x0c
303 irq 0xf6 = 0x0e
304 irq 0xf8 = 0x08
305 irq 0xf9 = 0x02
306 irq 0xfc = 0x7c
308 device pnp 2e.8 on
309 io 0x60 = 0x0270
310 irq 0x70 = 0x08
312 device pnp 2e.a off end
314 chip drivers/pc80/tpm
315 device pnp c31.0 on end
318 device ref pmc on end
319 device ref hda on end
320 device ref smbus on end
321 device ref gbe on end # USB_LAN (maps to PCIe RP5)