mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / google / cyan / acpi / touchscreen_melfas.asl
blob4aa39961b5a82c745e58fd485a055f9a09be749a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope (\_SB.PCI0.I2C1)
5         Device (MTSA)
6         {
7                 Name (_HID, "MLFS0000")
8                 Name (_DDN, "Melfas Touchscreen ")
9                 Name (_UID, 5)
10                 Name (ISTP, 0) /* TouchScreen */
12                 Method(_CRS, 0x0, NotSerialized)
13                 {
14                         Name (BUF0, ResourceTemplate ()
15                         {
16                                 I2cSerialBus(
17                                         0x34,                     /* 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 }
25                         })
26                         Return (BUF0)
27                 }
29                 Method (_STA)
30                 {
31                         If (\S1EN == 1) {
32                                 Return (0xF)
33                         } Else {
34                                 Return (0x0)
35                         }
36                 }
37 #if CONFIG(CHROMEOS)
38                 Name (_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x3 })
39 #endif
40                 /* Allow device to power off in S0 */
41                 Name (_S0W, 4)
42         }