soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / link / acpi / mainboard.asl
blob28d6d34c76ae7c375dd47743f77acd8ef1bba65c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/google/link/onboard.h>
5 Scope (\_SB) {
6         Device (TPAD)
7         {
8                 Name (_UID, 1)
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()
15                 {
16                         // PIRQE -> GSI20
17                         Interrupt (ResourceConsumer, Edge, ActiveLow)
18                         {
19                                 BOARD_TRACKPAD_IRQ
20                         }
22                         // SMBUS Address 0x4b
23                         VendorShort (ADDR) { BOARD_TRACKPAD_I2C_ADDR }
24                 })
25         }
27         Device (TSCR)
28         {
29                 Name (_UID, 2)
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()
36                 {
37                         // PIRQG -> GSI22
38                         Interrupt (ResourceConsumer, Edge, ActiveLow) {22}
40                         // SMBUS Address 0x4a
41                         VendorShort (ADDR) {0x4a}
42                 })
43         }
47 Scope (\_SB.PCI0.GFX0)
49         Device (GMBS){
50                 Name (_HID, "BOOT0001")
51                 Method (_STA, 0, NotSerialized)  // _STA: Status
52                 {
53                         Return (0x0F)
54                 }
56                 Method (MMIO, 0, Serialized)
57                 {
58                         Local0 = BAR0 & 0xFFFFFFFFFFFFFFF0
59                         Return (Local0)
60                 }
62                 Device (LVGA) {
63                         Name (_HID, "BOOT0002")
64                         Name (_UID, 0)
65                         Name (_DSD, Package () {
66                                 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
67                                 Package () {
68                                         Package (2) {"coolstar,bus-number", GMBUS_PIN_VGADDC}
69                                 }
70                         })
72                         Method (_STA)
73                         {
74                                 Return (0xF)
75                         }
77                         Device (ATPD)
78                         {
79                                 Name (_HID, "ATML0000")
80                                 Name (_DDN, "Atmel Touchpad")
81                                 Name (_UID, 0)
83                                 Name (_CRS, ResourceTemplate()
84                                 {
85                                         I2cSerialBus (
86                                                 BOARD_TRACKPAD_I2C_ADDR,        // SlaveAddress
87                                                 ControllerInitiated,            // SlaveMode
88                                                 100000,                         // ConnectionSpeed
89                                                 AddressingMode7Bit,             // AddressingMode
90                                                 "\\_SB.PCI0.GFX0.GMBS.LVGA",    // ResourceSource
91                                         )
93                                         Interrupt (ResourceConsumer, Level, ActiveLow) { BOARD_TRACKPAD_IRQ }
94                                 })
96                                 // Trackpad Wake is GPIO12
97                                 Name(_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x03 } )
99                                 Method (_STA)
100                                 {
101                                         Return (0xF)
102                                 }
103                         }
104                 }
106                 Device (LPNL) {
107                         Name (_HID, "BOOT0002")
108                         Name (_UID, 1)
109                         Name (_DSD, Package () {
110                                 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
111                                 Package () {
112                                         Package (2) {"coolstar,bus-number", GMBUS_PIN_PANEL}
113                                 }
114                         })
116                         Method (_STA)
117                         {
118                                 Return (0xF)
119                         }
121                         Device (ATSA)
122                         {
123                                 Name (_HID, "ATML0001")
124                                 Name (_DDN, "Atmel TouchScreen")
125                                 Name (_UID, 0)
127                                 Name (_CRS, ResourceTemplate()
128                                 {
129                                         I2cSerialBus (
130                                                 BOARD_TOUCHSCREEN_I2C_ADDR,     // SlaveAddress
131                                                 ControllerInitiated,            // SlaveMode
132                                                 100000,                         // ConnectionSpeed
133                                                 AddressingMode7Bit,             // AddressingMode
134                                                 "\\_SB.PCI0.GFX0.GMBS.LPNL",    // ResourceSource
135                                         )
137                                         Interrupt (ResourceConsumer, Level, ActiveLow) { BOARD_TOUCHSCREEN_IRQ }
138                                 })
140                                 // Touchscreen Wake is GPIO14
141                                 Name(_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x03 } )
143                                 Method (_STA)
144                                 {
145                                         Return (0xF)
146                                 }
147                         }
148                 }
149         }