From patchwork Fri Oct 21 21:01:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Nelson X-Patchwork-Id: 9390195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E83DA60780 for ; Fri, 21 Oct 2016 21:01:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D96562888C for ; Fri, 21 Oct 2016 21:01:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE23029FDF; Fri, 21 Oct 2016 21:01:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 712E12888C for ; Fri, 21 Oct 2016 21:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755258AbcJUVBm (ORCPT ); Fri, 21 Oct 2016 17:01:42 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:34001 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755056AbcJUVBk (ORCPT ); Fri, 21 Oct 2016 17:01:40 -0400 Received: by mail-it0-f68.google.com with SMTP id e203so628638itc.1; Fri, 21 Oct 2016 14:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BuHrSfbNCNj4LmYX1DhfiFSLpCfKOSPHlIeP/6TT+U0=; b=mVNeFKi6X7Xz6aDLky8czOA5WKhQlCHIfGmII+AThLOGX4E5M2kjpkQGwcrjX6+FUC BfztNAuxvbjgoSu6AvOjlDOEWstAzaMBeeYOkkCK+4xFfaZ4MTqJyxUB2vo7ShUqKpuK 2Re3Wfn0UVaU0Be1kzs1ufoxmBhHn++AF5NMTrry2r0NrYQK6sboBujQYYamsNETL1kL A9GqEkvHZ4wtaaKX0jHVKAi6gRt5Fv1MoG1rUc7Sb1ZqLpAfS7KRxN9IOFJpYu/IO1sM 7StJNKd2FFZZb7pO72qMInMmMpzxoUV5MyF1va9uvUYJ4le3G4N45fUsfCBNVY+MVHnJ HfUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BuHrSfbNCNj4LmYX1DhfiFSLpCfKOSPHlIeP/6TT+U0=; b=XST51dnaDHYTx/9suHz7Cm496SrB195tJWYyxpt0d3ExNabNueVRaDi85ipuL05kZv qIcOMj4NAFe9+qsgZ0xbrPOdWLttT1oylL1uQ00mq9FIhvH6YDWHaWIGy4tjlzowX754 8m7D7TkDDsTWTFc7oLgWREPfWhk6EIXFyqeMk5KOcHp211lQHf2WB/kLX77wIAvujiN0 LkSLwFSNKBrgEylvNB8kicu0F3sfcExU8y4daJ5nUFqGhNt+kp2bwtYa6y3AjxNdZBgo ZwbdZq/ema7tPY20CTV6q3izk79BUy55MXPPAi3cH4UxeWzAqiIv9xMDnxhEtpuTH9Bh oBXQ== X-Gm-Message-State: ABUngvemHD3UyWycItFNl0DYe47kOvNruX58plfDE0V1rUb6SgpJfF0v5igK7t7xaYBmPNViKCJhdmrdPEgrzg== X-Received: by 10.107.47.16 with SMTP id j16mr3466189ioo.108.1477083699487; Fri, 21 Oct 2016 14:01:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.9.205 with HTTP; Fri, 21 Oct 2016 14:01:09 -0700 (PDT) In-Reply-To: References: <20161021140106.21531-1-woogyom.kim@gmail.com> <20161021140106.21531-6-woogyom.kim@gmail.com> From: Robert Nelson Date: Fri, 21 Oct 2016 16:01:09 -0500 Message-ID: Subject: Re: [PATCH 5/7] ARM: dts: am335x: Add the charger interrupt To: Milo Kim Cc: =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , "linux-omap@vger.kernel.org" , devicetree , "linux-arm-kernel@lists.infradead.org" , linux kernel , Lee Jones , Keerthy Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, Oct 21, 2016 at 3:47 PM, Robert Nelson wrote: > On Fri, Oct 21, 2016 at 9:01 AM, Milo Kim wrote: >> This enables the charger driver gets corresponding IRQ number by using >> platform_get_irq_byname() helper. >> >> Signed-off-by: Milo Kim >> --- >> arch/arm/boot/dts/am335x-bone-common.dtsi | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi >> index 25303d9..cec9d91 100644 >> --- a/arch/arm/boot/dts/am335x-bone-common.dtsi >> +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi >> @@ -6,6 +6,8 @@ >> * published by the Free Software Foundation. >> */ >> >> +#include > > ^ this hasn't been posted nor pushed to mainline yet.. ;) So, with this patchset + Keerthy's [RESEND PATCH v8 0/5] mfd: tps65218: Clean ups: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1250918.html and this patch, as systemd is looking for "tps65217_pwr_but".. https://github.com/systemd/systemd/blob/master/src/login/70-power-switch.rules#L13 Shutdown is working on my BBB/BBG/BBGW/BBBW's... Regards, diff --git a/drivers/input/misc/tps65218-pwrbutton.c b/drivers/input/misc/tps65218-pwrbutton.c index cc74a41..f7e5492 100644 --- a/drivers/input/misc/tps65218-pwrbutton.c +++ b/drivers/input/misc/tps65218-pwrbutton.c @@ -36,7 +36,7 @@ struct tps6521x_data { static const struct tps6521x_data tps65217_data = { .reg_status = TPS65217_REG_STATUS, .pb_mask = TPS65217_STATUS_PB, - .name = "tps65217_pwrbutton", + .name = "tps65217_pwr_but", }; static const struct tps6521x_data tps65218_data = { diff --git a/include/dt-bindings/mfd/tps65217.h b/include/dt-bindings/mfd/tps65217.h new file mode 100644 index 0000000..26b2ba8 --- /dev/null +++ b/include/dt-bindings/mfd/tps65217.h @@ -0,0 +1,9 @@ +#ifndef __DT_BINDINGS_TPS65217_H +#define __DT_BINDINGS_TPS65217_H + +#define TPS65217_IRQ_USB 0 +#define TPS65217_IRQ_AC 1 +#define TPS65217_IRQ_PB 2 +#define TPS65217_NUM_IRQ 3 + +#endif /* __DT_BINDINGS_TPS65217_H */