1 /* SPDX-License-Identifier: GPL-2.0-only */
9 Name (_HID, EisaId ("PNP0C0C"))
14 Scope (\_SB.PCI0.I2C1)
18 Name (_HID, "ATML0001")
19 Name (_DDN, "Atmel Touchscreen Bootloader")
21 Name (ISTP, 0) /* TouchScreen */
23 Method(_CRS, 0x0, Serialized)
25 Name (BUF0, ResourceTemplate ()
28 0x26, /* SlaveAddress */
29 ControllerInitiated, /* SlaveMode */
30 400000, /* ConnectionSpeed */
31 AddressingMode7Bit, /* AddressingMode */
32 "\\_SB.PCI0.I2C1", /* ResourceSource */
34 Interrupt (ResourceConsumer, Edge, ActiveLow)
51 /* Allow device to power off in S0 */
57 Name (_HID, "ATML0001")
58 Name (_DDN, "Atmel Touchscreen")
60 Name (ISTP, 0) /* TouchScreen */
62 Method(_CRS, 0x0, Serialized)
64 Name (BUF0, ResourceTemplate ()
67 0x4b, /* SlaveAddress */
68 ControllerInitiated, /* SlaveMode */
69 400000, /* ConnectionSpeed */
70 AddressingMode7Bit, /* AddressingMode */
71 "\\_SB.PCI0.I2C1", /* ResourceSource */
73 Interrupt (ResourceConsumer, Edge, ActiveLow)
90 Name (_PRW, Package() { BOARD_TOUCHSCREEN_WAKE_GPIO, 0x3 })
92 /* Allow device to power off in S0 */
97 Scope (\_SB.PCI0.I2C5)
99 /* Realtek Audio Codec */
100 Device (RTEK) /* Audio Codec driver I2C */
103 Name (_HID, AUDIO_CODEC_HID)
104 Name (_CID, AUDIO_CODEC_CID)
105 Name (_DDN, AUDIO_CODEC_DDN)
108 Method(_CRS, 0x0, Serialized)
110 Name(SBUF,ResourceTemplate ()
113 AUDIO_CODEC_I2C_ADDR, /* SlaveAddress: bus address */
114 ControllerInitiated, /* SlaveMode: default to ControllerInitiated */
115 400000, /* ConnectionSpeed: in Hz */
116 AddressingMode7Bit, /* Addressing Mode: default to 7 bit */
117 "\\_SB.PCI0.I2C5" /* ResourceSource: I2C bus controller name */
120 /* Jack Detect (index 0) */
121 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
122 "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
134 Scope (\_SB.PCI0.I2C6)
138 Name (_HID, "ELAN0000")
139 Name (_DDN, "Elan Touchpad")
141 Name (ISTP, 1) /* Touchpad */
143 Name (_CRS, ResourceTemplate()
146 0x15, /* SlaveAddress */
147 ControllerInitiated, /* SlaveMode */
148 400000, /* ConnectionSpeed */
149 AddressingMode7Bit, /* AddressingMode */
150 "\\_SB.PCI0.I2C6", /* ResourceSource */
152 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
153 "\\_SB.GPNC") { BOARD_TRACKPAD_GPIO_INDEX }
165 Name (_PRW, Package() { BOARD_TRACKPAD_WAKE_GPIO, 0x3 })
166 /* Allow device to power off in S0 */
171 Scope (\_SB.PCI0.LPEA)
173 Name (GBUF, ResourceTemplate ()
175 /* Jack Detect (index 0) */
176 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
177 "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
183 Method (_AEI, 0, Serialized)
185 Name (RBUF, ResourceTemplate ()
187 GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
188 "\\_SB.GPNC") { BOARD_SCI_GPIO_INDEX }
193 Method (_E0F, 0, NotSerialized) // _Exx: Edge-Triggered GPE