Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3257510imj; Mon, 18 Feb 2019 23:45:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IatgX4ufn/3nxgJt6g5D3VfBxXrSCsmpn2wQtqNtefJvM+MrMRpoZ5zcLbcxIIFYtcxFnW2 X-Received: by 2002:a63:5b1f:: with SMTP id p31mr22478609pgb.56.1550562327229; Mon, 18 Feb 2019 23:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550562327; cv=none; d=google.com; s=arc-20160816; b=TXuiAaQVKACShig88wFa5Rlk6O1+2zigXVtSbo0PPs1H2d3Tw+Yk0V4Sdl4D/94B0y NnOxN9f7vaZQfzRT8iiECfa9BjLwGlES8L5Z2F7dR7yUv0T1HN6HwKDHc7AKP95ZIT14 1fSOGmLIsgMtSGUn0ZU8QRbEcPvr0qwC0BgIrb5ReSP0UphwBuxVFuTI/JLe6NfWUVGm uxwQVWD3sF6VcHujIj8Y/UIVVlkC+4Gjr2pMqELLa21qtbayrH830n6qcLtjDNhPpkco tt/Oh7E4LsUSxgV/YMybyYi0MYWeit7kXMoUQknBl7AIYK1DvWhzwfkR3eSqGWWUpbbM SeoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YRaxdmoWjJPzOuPFqvJkxwWVRPTmJs1t+1f9+zEDS5M=; b=Zj1QE/MVy1xGH8dLY9f+F6EQmIbJsoCC+DoTIphaUdWVq0HkRCKll0sOAx35UEasE7 cPXP5U71/4zEKCwTqekdIpwEb0d89Tfu46q3iAlYoBzoG5HHhYl4GF7S3udc4+JLl2kf dy1AirvJ/w4SyDXHxaTzpO/k1p5J3AlkOlKSXE/hMDeymwDUzPDZi2mTQnTAYOHPgKiJ XUoPOIy2YAbZhVXXMGIMY8uIa03CULSXpMi5u6zdkkdGVgmv2BlMaorj4ua7kyLOsw0u fN0B0QNhBWMcfHQp/Q2zacnrwq63hSklJP2mAjhmWwF0qFsLY18syxRDyEDyPTIMbsPO at/A== 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 j61si13654947plb.232.2019.02.18.23.45.12; Mon, 18 Feb 2019 23:45:27 -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 S1726834AbfBSHoU (ORCPT + 99 others); Tue, 19 Feb 2019 02:44:20 -0500 Received: from olimex.com ([184.105.72.32]:41596 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfBSHoU (ORCPT ); Tue, 19 Feb 2019 02:44:20 -0500 Received: from 195.238.85.143 ([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 ; Mon, 18 Feb 2019 23:44:15 -0800 Subject: Re: [PATCH v2 5/8] arm64: dts: allwinner: Enable AXP803 CHGLED for Olimex boards To: Pavel Machek , Stefan Mavrodiev Cc: Jacek Anaszewski , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones , "open list:LED SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS" , "moderated list:ARM/Allwinner sunXi SoC support" References: <20190215115013.11098-1-stefan@olimex.com> <20190215115013.11098-6-stefan@olimex.com> <20190215184916.GA17897@amd> From: Stefan Mavrodiev Message-ID: Date: Tue, 19 Feb 2019 09:43:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190215184916.GA17897@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/15/19 8:49 PM, Pavel Machek wrote: > On Fri 2019-02-15 13:50:10, Stefan Mavrodiev wrote: >> Teres-I and A64-OLinuXino commes with populated LED connected >> to AXP803. So to be used as battery indication, pass the LED control >> to the charger itself in mode 0 ( FULL while charging, OFF no battery >> or completed). >> >> Signed-off-by: Stefan Mavrodiev >> --- >> arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 6 ++++++ >> arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 6 ++++++ >> 2 files changed, 12 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts >> index f7a4bccaa5d4..7d6930319fba 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts >> @@ -177,6 +177,12 @@ >> >> #include "axp803.dtsi" >> >> +&axp_led { >> + label = "a64-olinuxino:yellow:chgled"; > There's little chance userspace will recognize this led. > > Can you make it "platform:yellow:charging" and fix it for other > boards, too? Sure. Best regards, Stefan Mavrodiev > > Pavel