Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp875156imj; Fri, 15 Feb 2019 08:13:31 -0800 (PST) X-Google-Smtp-Source: AHgI3Iakp8YsZHd9THDm5SFX4FaEYGlad3JzVs4M/pYITvUlA9UIXSVyRZ3Lx0FcSuvuexCh8Kyy X-Received: by 2002:a63:194f:: with SMTP id 15mr6171554pgz.192.1550247211563; Fri, 15 Feb 2019 08:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247211; cv=none; d=google.com; s=arc-20160816; b=iosxwP46PbiVEvFNq6KqFH6BrnJ6CixlGGPocL9H+/Ba7Jffuct1TZsS5g4I54l+ZV qMTgitpJu7qDPtYAyoAs5KINgM5/I2mRCD/sO9a8ysDvxcJSPrIMQpgv9UsjzIzJbHYt YFHVr9rpWW7EiBXgeZZzG0yUX5Y+i7cLaFRSHr4GlNGF1rawwa5d9lWM4gwD6PlH4AC9 Fndm2w5eWrSJ8q3yAK30I7Qh7q+Y00z3g7XXZmXK+jtPCvJjZfYQs/+c+5tOz/ihpxFj phF9zMbxeSju0TrdgtHZejURx6g2/LKwE9jWLJLC78haU9ckyIap5E0Y4U1A/fe6u6ym T2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=n1Rzf9Qw/pXA1ccQ94E5LXfUNLG1HLAHzij1v7KjRQ8=; b=p5q7hHiIGMSrOvi53cyXuynDgZnbB3ph7iBL0ubEtx5D9SR/5I33PmJOCAcI4zh6Vy oNoo07jCCjjd1ONyA79wghdRYijJdOF1x+8JbIx91BkXI0+ugrn1amum4hxU3UflfRYv xgsAJcByeXrZ6oDt2iMySK3e7pe8WF2d3Me0dfa421WZsxlmnDK1RrRcCcnAPPuvIz8V m/P+RFsH1IzWP7HbLFagjV27ZqmgDXE2z7x8rPa30eeHRIraXVS+y3RxygZNjBeEE3BP rc7nt9q735N6BgK8vHcN+nww82n9KfxCTlfTjSzzrmM48oFLaT3rUHmd4Opt6cseDyIQ 9doQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w123si5920322pfb.172.2019.02.15.08.13.15; Fri, 15 Feb 2019 08:13:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394573AbfBOLvN (ORCPT + 99 others); Fri, 15 Feb 2019 06:51:13 -0500 Received: from olimex.com ([184.105.72.32]:49799 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394560AbfBOLvJ (ORCPT ); Fri, 15 Feb 2019 06:51:09 -0500 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 ; Fri, 15 Feb 2019 03:50:59 -0800 From: Stefan Mavrodiev To: Jacek Anaszewski , Pavel Machek , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones , 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) Cc: Stefan Mavrodiev 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 6 ++++++ 1 file changed, 6 insertions(+) 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"; }; -- 2.17.1