1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2017 Intel Corporation
5 * Partially based on southcluster.asl for other x86 platforms
10 Name (_HID, EISAID("PNP0A08")) /* PCIe */
11 Name (_CID, EISAID("PNP0A03")) /* PCI */
16 Name (MCRS, ResourceTemplate()
19 WordBusNumber(ResourceProducer, MinFixed, MaxFixed, PosDecode,
20 0x0000, 0x0000, 0x00ff, 0x0000, 0x0100, , , PB00)
23 WordIO(ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
24 0x0000, 0x0000, 0x0cf7, 0x0000, 0x0cf8, , , PI00)
26 /* PCI Config Space */
27 IO(Decode16, 0x0cf8, 0x0cf8, 0x0001, 0x0008)
30 WordIO(ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
31 0x0000, 0x0d00, 0xffff, 0x0000, 0xf300, , , PI01)
33 /* GPIO Low Memory Region */
34 DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
36 0x00000000, 0x000ddcc0, 0x000ddccf, 0x00000000,
39 /* PSH Memory Region 0 */
40 DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
42 0x00000000, 0x04819000, 0x04898fff, 0x00000000,
45 /* PSH Memory Region 1 */
46 DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
48 0x00000000, 0x04919000, 0x04920fff, 0x00000000,
51 /* SST Memory Region */
52 DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
54 0x00000000, 0x05e00000, 0x05ffffff, 0x00000000,
57 /* PCI Memory Region */
58 DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
60 0x00000000, 0x80000000, 0xffffffff, 0x00000000,
64 Method (_CRS, 0, Serialized)
71 /* Check for proper GUID */
72 If (LEqual(Arg0, ToUUID("33db4d5b-1ff7-401c-9657-7441c03dd766"))) {
73 /* Let OS control everything */
76 /* Unrecognized UUID */
77 CreateDWordField(Arg3, 0, CDW1)
85 Name (_ADR, 0x00010003)
86 Name (_DEP, Package (0x01)
97 Method (_PS3, 0, NotSerialized)
101 Method (_PS0, 0, NotSerialized)
105 If (^^GPIO.AVBL == One)
117 Name (_DEP, Package (0x01)
127 Method (_RMV, 0, NotSerialized)
132 Method (_PS3, 0, NotSerialized)
134 If (^^^GPIO.AVBL == One)
141 Method (_PS0, 0, NotSerialized)
145 If (^^^GPIO.AVBL == One)
157 Method (_STA, 0, NotSerialized)
162 Method (_RMV, 0, NotSerialized)
171 Name (_ADR, 0x00070001)
172 Name (RBUF, ResourceTemplate()
174 GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
175 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 110 }
176 GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
177 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 111 }
178 GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
179 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 112 }
180 GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
181 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 113 }
183 FixedDMA(0x000d, 0x0002, Width32bit, )
184 FixedDMA(0x000c, 0x0003, Width32bit, )
187 Method (_CRS, 0, NotSerialized)
194 * http://www.kernel.org/doc/Documentation/acpi/gpio-properties.txt
195 * for more information about GPIO bindings.
197 Name (_DSD, Package () {
198 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
201 "cs-gpios", Package () {
211 Method (_STA, 0, NotSerialized)
219 Name (_ADR, 0x00080000)
221 Method (_STA, 0, NotSerialized)
226 Name (RBUF, ResourceTemplate()
228 FixedDMA(0x0009, 0x0000, Width32bit, )
229 FixedDMA(0x0008, 0x0001, Width32bit, )
232 Method (_CRS, 0, NotSerialized)
240 Name (_ADR, 0x00090001)
242 Method (_STA, 0, NotSerialized)
250 Name (_ADR, 0x000c0000)
258 Method (_REG, 2, NotSerialized)
266 OperationRegion (GPOP, GeneralPurposeIo, 0, 1)
267 Field (GPOP, ByteAcc, NoLock, Preserve)
270 GpioIo(Exclusive, PullDefault, 0, 0, IoRestrictionOutputOnly,
271 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 96 }
279 Name (_ADR, 0x00170000)
281 Method (_STA, 0, NotSerialized)
289 Name (_ADR, 0x00040001)
291 Method (_STA, 0, NotSerialized)
298 Name (_HID, "BCM2E95")
299 Name (_DEP, Package ()
305 Method (_STA, 0, NotSerialized)
310 Method (_CRS, 0, Serialized)
312 Name (RBUF, ResourceTemplate()
314 UartSerialBus(0x0001C200, DataBitsEight, StopBitsOne,
315 0xFC, LittleEndian, ParityTypeNone, FlowControlHardware,
316 0x20, 0x20, "\\_SB.PCI0.HSU0", 0, ResourceConsumer, , )
317 GpioInt(Level, ActiveHigh, Exclusive, PullNone, 0,
318 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 185 }
319 GpioIo(Exclusive, PullDefault, 0, 0, IoRestrictionOutputOnly,
320 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 184 }
321 GpioIo(Exclusive, PullDefault, 0, 0, IoRestrictionOutputOnly,
322 "\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 71 }
327 Name (_DSD, Package () {
328 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
330 Package () { "host-wakeup-gpios", Package () { ^BTH0, 0, 0, 0 } },
331 Package () { "device-wakeup-gpios", Package () { ^BTH0, 1, 0, 0 } },
332 Package () { "shutdown-gpios", Package () { ^BTH0, 2, 0, 0 } },
340 Name (_ADR, 0x00130000)
342 Method (_STA, 0, NotSerialized)
350 Name (_HID, "INTC100E")
351 Name (_CID, "INTC100E")
352 Name (_DDN, "Basin Cove PMIC")
353 Name (_DEP, Package ()
358 Method (_STA, 0, NotSerialized)
363 Method (_CRS, 0, Serialized)
365 Name (RBUF, ResourceTemplate()
368 * Shadow registers in SRAM for PMIC:
370 * --------------------
372 * 0x03 THRMIRQ (0x04)
375 * 0x06 CHGRIRQ0 (0x07)
376 * 0x07 CHGRIRQ1 (0x08)
378 * 0x0a PBSTATUS (0x27)
381 Memory32Fixed(ReadWrite, 0xFFFFF610, 0x00000010)
382 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 30 }
383 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 23 }
384 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 52 }
385 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 51 }
386 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 50 }
387 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 27 }
388 Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 49 }
393 OperationRegion (PMOP, 0x8D, Zero, 0x0100)
394 Field (PMOP, DWordAcc, NoLock, Preserve)
415 Method (_REG, 2, NotSerialized)
428 Name (_HID, "INTC1002")
429 Name (_DDN, "Intel Merrifield Family-Level Interface Shim")
430 Name (RBUF, ResourceTemplate()
432 Memory32Fixed(ReadWrite, 0xFF0C0000, 0x00008000)
433 PinGroup("spi5", ResourceProducer, ) { 90, 91, 92, 93, 94, 95, 96 }
434 PinGroup("uart0", ResourceProducer, ) { 115, 116, 117, 118 }
435 PinGroup("uart1", ResourceProducer, ) { 119, 120, 121, 122 }
436 PinGroup("uart2", ResourceProducer, ) { 123, 124, 125, 126 }
437 PinGroup("pwm0", ResourceProducer, ) { 144 }
438 PinGroup("pwm1", ResourceProducer, ) { 145 }
439 PinGroup("pwm2", ResourceProducer, ) { 132 }
440 PinGroup("pwm3", ResourceProducer, ) { 133 }
443 Method (_CRS, 0, NotSerialized)
448 Method (_STA, 0, NotSerialized)