mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / google / cyan / acpi / touchscreen_elan.asl
blob312c1a800d7869a44e42f5529e6985a8f3355f08
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope (\_SB.PCI0.I2C1)
5         Device (ETSA)
6         {
7                 Name (_HID, "ELAN0001")
8                 Name (_DDN, "Elan Touchscreen ")
9                 Name (_UID, 5)
10                 Name (ISTP, 0) /* TouchScreen */
12                 Method(_CRS, 0x0, NotSerialized)
13                 {
14                         Name(BUF0,ResourceTemplate ()
15                         {
16                                 I2CSerialBus(
17                                         0x10,                     /* SlaveAddress */
18                                         ControllerInitiated,      /* SlaveMode */
19                                         400000,                   /* ConnectionSpeed */
20                                         AddressingMode7Bit,       /* AddressingMode */
21                                         "\\_SB.PCI0.I2C1",        /* ResourceSource */
22                                 )
23                                 GpioInt (Level, ActiveLow, SharedAndWake, PullDefault,,
24                                         "\\_SB.GPNC") { BOARD_TOUCH_GPIO_INDEX }
26                         } )
27                         Return (BUF0)
28                 }
30                 Method (_STA)
31                 {
32                         If (\S1EN == 1) {
33                                 Return (0xF)
34                         } Else {
35                                 Return (0x0)
36                         }
37                 }
38 #if CONFIG(CHROMEOS)
39                 Name (_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x3 })
40 #endif
41                 /* Allow device to power off in S0 */
42                 Name (_S0W, 4)
43         }