Message ID | 20190215115013.11098-9-stefan@olimex.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C5D4F13B5 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Feb 2019 11:51:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3C8A2EE7D for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Feb 2019 11:51:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A85F02EE71; Fri, 15 Feb 2019 11:51:57 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 6300B2EE60 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Feb 2019 11:51:57 +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=A4tlrBnVW3Ib/ctqflPt025DmwF39tLa+/5Vtay0yLI=; b=qfwVaAtAI4Nhog1VuAZyAwl09d ILEaJky0hl8e6TwBnn0XLeqCcvfd5OKlHW9jToS6f/3uRwbH4/FE13fWKlfboz4lijh+TI3PYsICI dNdwvB5NHn16bIA563CiePgEiEdhSg0OLSbwbpGFGlsrIceF+MSzRb0ZSBqKEFyWH8EE4X2FiWsBk 22TiPEsSoh6sE+hlFPPWIaIzsE9vuX1WkrosOg4AMi9lT3Ant3hGx+kWkjCs/XC+Fo3ufQgjtjfS7 49cSumI9NFq5uJXmECY52P4aYy/oe1Kv7RJW9eZzN2zeIGRBGUONyXvmlR3Pas4uNlFojMAdKt9V2 deP877ww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guc27-0008Qp-Bj; Fri, 15 Feb 2019 11:51:55 +0000 Received: from olimex.com ([184.105.72.32]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guc1M-0007ew-An for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 11:51:23 +0000 Received: from localhost.localdomain ([195.238.85.143]) by olimex.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username stefan@olimex.com, mechanism PLAIN) for <linux-arm-kernel@lists.infradead.org>; Fri, 15 Feb 2019 03:50:59 -0800 From: Stefan Mavrodiev <stefan@olimex.com> To: Jacek Anaszewski <jacek.anaszewski@gmail.com>, Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Chen-Yu Tsai <wens@csie.org>, Maxime Ripard <maxime.ripard@bootlin.com>, Lee Jones <lee.jones@linaro.org>, linux-leds@vger.kernel.org (open list:LED SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list:X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Subject: [PATCH v2 8/8] ARM: dts: sun8i: a33: Enable AXP223 CHGLED for A33-OLinuXino Date: Fri, 15 Feb 2019 13:50:13 +0200 Message-Id: <20190215115013.11098-9-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215115013.11098-1-stefan@olimex.com> References: <20190215115013.11098-1-stefan@olimex.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_035108_508131_EBC0D9CF X-CRM114-Status: GOOD ( 10.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Stefan Mavrodiev <stefan@olimex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
leds: Add AXP20X CHGLED
|
expand
|
diff --git a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts b/arch/arm/boot/dts/sun8i-a33-olinuxino.dts index 3d78169cdeed..a1e36ee51bbb 100644 --- a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts +++ b/arch/arm/boot/dts/sun8i-a33-olinuxino.dts @@ -111,6 +111,12 @@ status = "okay"; }; +&axp_led { + label = "a33-olinuxino:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + &battery_power_supply { status = "okay"; };
A33-OLinuXino comes with populated CHGLED LED indicating battery charging status. By default the control is set to manual mode, which doesn't indicate battery status. So it makes sense to set the control to automatic mode 0 ( FULL - charging, OFF - no battery or battery full). Signed-off-by: Stefan Mavrodiev <stefan@olimex.com> --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 6 ++++++ 1 file changed, 6 insertions(+)