From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753120AbcD2JZW (ORCPT ); Fri, 29 Apr 2016 05:25:22 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:32867 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbcD2JZS (ORCPT ); Fri, 29 Apr 2016 05:25:18 -0400 MIME-Version: 1.0 In-Reply-To: <1461835923-68492-4-git-send-email-qiujiang@huawei.com> References: <1461835923-68492-1-git-send-email-qiujiang@huawei.com> <1461835923-68492-4-git-send-email-qiujiang@huawei.com> Date: Fri, 29 Apr 2016 11:25:17 +0200 Message-ID: Subject: Re: [PATCH v10 3/3] gpio: dwapb: add gpio-signaled acpi event support From: Linus Walleij To: Jiang Qiu Cc: Alexandre Courbot , Mika Westerberg , Andy Shevchenko , Alan Tull , Jamie Iles , charles.chenxin@huawei.com, "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , ACPI Devel Maling List , Linuxarm Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 28, 2016 at 11:32 AM, Jiang Qiu wrote: > This patch adds gpio-signaled acpi event support. It is used for > power button on hisilicon D02 board, an arm64 platform. > > The corresponding DSDT file is defined as follows: > Device(GPI0) { > Name(_HID, "HISI0181") > Name(_ADR, 0) > Name(_UID, 0) > > Name (_CRS, ResourceTemplate () { > Memory32Fixed (ReadWrite, 0x802e0000, 0x10000) > Interrupt (ResourceConsumer, Level, ActiveHigh, > Exclusive,,,) {344} > }) > > Device(PRTa) { > Name (_DSD, Package () { > 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) > } > } > > Acked-by: Mika Westerberg > Reviewed-by: Andy Shevchenko > Signed-off-by: Jiang Qiu Patch applied. Yours, Linus Walleij