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