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: 9390201 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 E646260780 for ; Fri, 21 Oct 2016 21:03:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D60342888C for ; Fri, 21 Oct 2016 21:03:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C88AA29FDF; Fri, 21 Oct 2016 21:03:16 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FA4D2888C for ; Fri, 21 Oct 2016 21:03:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxgx4-0001sQ-E3; Fri, 21 Oct 2016 21:02:06 +0000 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxgwy-0001oc-PY for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2016 21:02:01 +0000 Received: by mail-it0-x241.google.com with SMTP id k64so643970itb.0 for ; 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=GS93mNvRlMR/m6SAbTE8ARq1PkAsx0+ff6RqSaWXe5D/KCZk2CAeLv0r/MnKfDUZ5E y641eae4qDdOmevR2qI+hXV2d/aCXwaDmx5oFACYg4jbX5evJ95PgxW8WeVA/WZcjNDZ tZ3d53jge2v4TwYfaRa8RSrDJkjpGOLrd+t2lm8db1buzm6ZPqzRtwUkK5NfkDtnj6CP LNffUYy1aCiL3Sr2r1Yx8ki5C1kfjXwH5BpGoOnPl9+KerrD9wpJC1rXABaSAaSnuSld J8177t63fUnekn14JdUrheqFqn1cfLG54wGgyhvsdTqKCf/W318yCf0Cp0P+Zq9wjDvX EU9A== X-Gm-Message-State: ABUngvfWvUszLYeUUWGoL7rNViyeslZ/l8O/bF2awEvSfH4iyhDJGLGBk3uszXUaylWbGm7r1p1TJC+d+J+C1Q== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161021_140200_928270_5B668E3E X-CRM114-Status: GOOD ( 17.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Tony Lindgren , Keerthy , linux kernel , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , "linux-omap@vger.kernel.org" , Lee Jones , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 */