From patchwork Thu Feb 2 12:11:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Niestroj X-Patchwork-Id: 9551767 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 C9D6A604E0 for ; Thu, 2 Feb 2017 12:56:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4A5A27FA6 for ; Thu, 2 Feb 2017 12:56:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7BE2280FC; Thu, 2 Feb 2017 12:56:48 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham 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 6C04327F9F for ; Thu, 2 Feb 2017 12:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdBBM4f (ORCPT ); Thu, 2 Feb 2017 07:56:35 -0500 Received: from smtp.megiteam.pl ([31.186.83.105]:34146 "EHLO smtp.megiteam.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbdBBM4e (ORCPT ); Thu, 2 Feb 2017 07:56:34 -0500 X-Greylist: delayed 2659 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Feb 2017 07:56:33 EST Received: from [95.143.241.142] (helo=localhost.localdomain) by smtp.megiteam.pl with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cZGFD-0008GU-Ti; Thu, 02 Feb 2017 13:12:09 +0100 From: Marcin Niestroj To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= Cc: Tony Lindgren , Rob Herring , Mark Rutland , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Marcin Niestroj Subject: [PATCH 2/2] ARM: dts: am335x-chiliboard: Support charger Date: Thu, 2 Feb 2017 13:11:55 +0100 Message-Id: <20170202121155.6575-2-m.niestroj@grinn-global.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202121155.6575-1-m.niestroj@grinn-global.com> References: <20170202121155.6575-1-m.niestroj@grinn-global.com> 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 chiliBoard has a battery connector, so support charging battery through tps65217 chip. Additionally, enabling tps65217 charger allows us to get status of AC power. Signed-off-by: Marcin Niestroj --- arch/arm/boot/dts/am335x-chiliboard.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am335x-chiliboard.dts b/arch/arm/boot/dts/am335x-chiliboard.dts index 4e13cc03d656..d8769799772e 100644 --- a/arch/arm/boot/dts/am335x-chiliboard.dts +++ b/arch/arm/boot/dts/am335x-chiliboard.dts @@ -190,6 +190,12 @@ interrupt-parent = <&intc>; interrupts = <7>; /* NNMI */ + charger { + interrupts = <0>, <1>; + interrupt-names = "USB", "AC"; + status = "okay"; + }; + pwrbutton { interrupts = <2>; status = "okay";