1 2/* SPDX-License-Identifier: GPL-2.0-only */ 3 4Scope(\_SB.PCI0.I2C7) { 5// Touch Panels on I2C7 6// GPIO_212:TCH_PNL_INTR_LS_N North Community, IRQ number 0x75. 7//------------------------ 8 Device (TPL1) { 9 Name (HID2, 1) 10 Name (_HID, "WCOM508E") 11 Name (_CID, "PNP0C50") 12 Name (_S0W, 0x04) // _S0W: S0 Device Wake State 13 Name (SBFB, ResourceTemplate () { 14 I2cSerialBus ( 15 0x000A, 16 ControllerInitiated, 17 1000000, 18 AddressingMode7Bit, 19 "\\_SB.PCI0.I2C7", 20 0x00, 21 ResourceConsumer, 22 , 23 ) 24 }) 25 // 26 // GLK: Touchpanel Interrupt: GPIO_212: Northwest 27 // Pin 77 28 // Direct IRQ 0x75 29 // 30 Name (SBFG, ResourceTemplate () { 31 GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x0000, 32 "\\_SB.GPO0", 0x00, ResourceConsumer, , 33 ) 34 { 35 77 36 } 37 }) 38 Name (SBFI, ResourceTemplate () { 39 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) 40 { 41 0x75, 42 } 43 }) 44 45 Method (_INI, 0, NotSerialized) // _INI: Initialize 46 { 47 } 48 49 Method (_STA, 0, NotSerialized) 50 { 51 Return (0x0F) 52 } 53 54 Method (_CRS, 0, NotSerialized) { 55 Return (ConcatenateResTemplate(SBFB, SBFG)) 56 } 57 } // Device (TPL0) 58} 59