Thread (7 messages) read the whole thread 7 messages, 3 authors, 2016-02-16

Re: [RFC PATCH] GPIO/ACPI: DesignWare: Add GPIO-signaled ACPI events support for power button

From: Mika Westerberg <mika.westerberg@linux.intel.com>
Date: 2016-02-16 12:49:08
Also in: linux-acpi, lkml

On Tue, Feb 16, 2016 at 08:43:06PM +0800, Jiang Qiu wrote:
Device(GPI0) {
        Name(_HID, "HISI0181")
	Name(_ADR, 0) // _ADR: Address
        Name(_UID, 0)
		
	Name (_CRS, ResourceTemplate ()  {
		Memory32Fixed (ReadWrite, 0x802e0000, 0x10000)
		Interrupt (ResourceConsumer, Level, ActiveHigh,
		Exclusive,,,) {344}
	})
		
	Device(PRTa) {
		Name (_DSD, Package () {
			ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
			Package () {
				Package () {"reg",0},
				Package () {"snps,nr-gpios",32},
			}
		})
	}
		
	Name (_AEI, ResourceTemplate () {	
		GpioInt(Edge, ActiveLow, ExclusiveAndWake, PullUp, ,
		" \\_SB.GPI0") {8}
	})
		
	Method (_E08, 0x0, NotSerialized) {
		Notify (\_SB.PWRB, 0x80)
	}
OK, it looks sane to me. Thanks for sharing.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help