1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/google/link/onboard.h>
10 // Report as a Sleep Button device so Linux will
11 // automatically enable it as a wake source
12 Name(_HID, EisaId("PNP0C0E"))
14 Name(_CRS, ResourceTemplate()
17 Interrupt (ResourceConsumer, Edge, ActiveLow)
23 VendorShort (ADDR) { BOARD_TRACKPAD_I2C_ADDR }
31 // Report as a Sleep Button device so Linux will
32 // automatically enable it as a wake source
33 Name(_HID, EisaId("PNP0C0E"))
35 Name(_CRS, ResourceTemplate()
38 Interrupt (ResourceConsumer, Edge, ActiveLow) {22}
41 VendorShort (ADDR) {0x4a}
47 Scope (\_SB.PCI0.GFX0)
50 Name (_HID, "BOOT0001")
51 Method (_STA, 0, NotSerialized) // _STA: Status
56 Method (MMIO, 0, Serialized)
58 Local0 = BAR0 & 0xFFFFFFFFFFFFFFF0
63 Name (_HID, "BOOT0002")
65 Name (_DSD, Package () {
66 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
68 Package (2) {"coolstar,bus-number", GMBUS_PIN_VGADDC}
79 Name (_HID, "ATML0000")
80 Name (_DDN, "Atmel Touchpad")
83 Name (_CRS, ResourceTemplate()
86 BOARD_TRACKPAD_I2C_ADDR, // SlaveAddress
87 ControllerInitiated, // SlaveMode
88 100000, // ConnectionSpeed
89 AddressingMode7Bit, // AddressingMode
90 "\\_SB.PCI0.GFX0.GMBS.LVGA", // ResourceSource
93 Interrupt (ResourceConsumer, Level, ActiveLow) { BOARD_TRACKPAD_IRQ }
96 // Trackpad Wake is GPIO12
97 Name(_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x03 } )
107 Name (_HID, "BOOT0002")
109 Name (_DSD, Package () {
110 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
112 Package (2) {"coolstar,bus-number", GMBUS_PIN_PANEL}
123 Name (_HID, "ATML0001")
124 Name (_DDN, "Atmel TouchScreen")
127 Name (_CRS, ResourceTemplate()
130 BOARD_TOUCHSCREEN_I2C_ADDR, // SlaveAddress
131 ControllerInitiated, // SlaveMode
132 100000, // ConnectionSpeed
133 AddressingMode7Bit, // AddressingMode
134 "\\_SB.PCI0.GFX0.GMBS.LPNL", // ResourceSource
137 Interrupt (ResourceConsumer, Level, ActiveLow) { BOARD_TOUCHSCREEN_IRQ }
140 // Touchscreen Wake is GPIO14
141 Name(_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x03 } )