From patchwork Sun Apr 30 18:30:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 9706189 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 53351601D2 for ; Sun, 30 Apr 2017 18:32:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49ADA205D6 for ; Sun, 30 Apr 2017 18:32:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E8CE23F88; Sun, 30 Apr 2017 18:32:23 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EFCD6205D6 for ; Sun, 30 Apr 2017 18:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Aw+gqwNxWAFnJqM0TriaZs1WwwDZ50p1FXCBO1RbkOQ=; b=FXfF4PM4ik0sIXzSDJr8pHcSEg CDoCPAQTUIEygQ0rqCA7MvtAN5E2OXezsrIWoeBqMjvSO5AfndhlSmaXcJxY++/aB3sJY9Es+BqR7 YB0oxjI9u+wnO6ZHSIpIzoq2CvXB//vZlBHDiKcHNEqxVE7UjB7QuwjAkg0No6rgXBgHREvV4BvrP 41gnQRrgJBfJaseMj12J/3ACGxvhAhds/PoI8XntcO8Z4vWwtEY65nt4QZQH8XE6E0fH6xuuSHb4a i2dso5Dys4qOLaASaMlnV2rGhBt6ghbAvoA/EtyDf6GNBmxf9FPLs3I5ACfNswgvxhMuBXD38T3ej QlIp83iA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d4tdu-00071Z-Ed; Sun, 30 Apr 2017 18:32:22 +0000 Received: from gagarine.paulk.fr ([109.190.93.129]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d4tdh-0006ZI-7d; Sun, 30 Apr 2017 18:32:10 +0000 Received: by gagarine.paulk.fr (Postfix, from userid 65534) id F08602098E; Sun, 30 Apr 2017 20:31:49 +0200 (CEST) Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 55DF92086F; Sun, 30 Apr 2017 20:31:36 +0200 (CEST) From: Paul Kocialkowski To: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: rockchip: List charger as power supply for sbs battery Date: Sun, 30 Apr 2017 20:30:53 +0200 Message-Id: <20170430183054.24563-2-contact@paulk.fr> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170430183054.24563-1-contact@paulk.fr> References: <20170430183054.24563-1-contact@paulk.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170430_113209_479864_3B048DD3 X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Rob Herring , Heiko Stuebner , Paul Kocialkowski , Russell King MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This lists the GPIO charger node as power supply for the battery, which in turns allows receiving external power notifications and synchronizing the charging state as soon as possible. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi | 1 + arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi b/arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi index 71f5c5ecce46..8e4d2b9a35e1 100644 --- a/arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi @@ -48,5 +48,6 @@ reg = <0xb>; sbs,i2c-retry-count = <2>; sbs,poll-retry-count = <1>; + power-supplies = <&charger>; }; }; diff --git a/arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi b/arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi index d752a315f884..fd4a3886c94b 100644 --- a/arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron-chromebook.dtsi @@ -99,7 +99,7 @@ pwm-delay-us = <10000>; }; - gpio-charger { + charger: gpio-charger { compatible = "gpio-charger"; charger-type = "mains"; gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;