mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / rambi / acpi / trackpad_elan.asl
blobf195e39349f3735e24345b00ac679228da29e0b9
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <variant/onboard.h>
5 Scope (\_SB.PCI0.I2C1)
7         Device (ETPA)
8         {
9                 Name (_HID, "ELAN0000")
10                 Name (_DDN, "Elan Touchpad")
11                 Name (_UID, 3)
12                 Name (ISTP, 1) /* Touchpad */
14                 Name (_CRS, ResourceTemplate()
15                 {
16                         I2cSerialBus (
17                                 BOARD_TRACKPAD_I2C_ADDR,        // SlaveAddress
18                                 ControllerInitiated,            // SlaveMode
19                                 400000,                         // ConnectionSpeed
20                                 AddressingMode7Bit,             // AddressingMode
21                                 "\\_SB.PCI0.I2C1",              // ResourceSource
22                         )
23                         Interrupt (ResourceConsumer, Level, ActiveLow)
24                         {
25                                 BOARD_TRACKPAD_IRQ
26                         }
27                 })
29                 Method (_STA)
30                 {
31                         If (\S1EN == 1) {
32                                 Return (0xF)
33                         } Else {
34                                 Return (0x0)
35                         }
36                 }
38                 /* Allow device to power off in S0 */
39                 Name (_S0W, 4)
40         }