Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1383112ybv; Sun, 23 Feb 2020 05:27:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwti6KI6CuwhJ9iPZMCft/m9zm6qDa5LbFWtGICt6J0ke0qD5YRdJtlL9tUATW2eXnR4h/Y X-Received: by 2002:aca:4e10:: with SMTP id c16mr9006246oib.6.1582464470827; Sun, 23 Feb 2020 05:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582464470; cv=none; d=google.com; s=arc-20160816; b=KbKADjL6Dkac/1EGuQZH0j/KC/gbFkoA/ws6edPrDGsWt9YdDNG8ni0r7hVOXppcyr pX533zJyAq3PSm4GonEZfPycIW93WH5FMfOctYubkCtK9VZMyamIHhoXdshZMVbrxXnR P7YXPYRDegauf2++OFw2icFP8zrGpamw2l4xVqzpRiF6VeMbYGUtnCVMwAjfuPJ91BRh TPj3QOUz+faUHEDM1+MNVuw5bNpsFxIXm8Eov4MOTKG3yW9rq7cIFHBEkIZAb14//2yt FWz7X5UMg3n+TxWHoXvOc8UXUpTKI712gDSehRxs44NpvztlFp4Exkzklq0/1BcsMZXa fUEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=bpLYoDSOxlfRrn8E8yKOpZo7BPzE0zEi+wMGzAOdbpk=; b=iLivjSBFj4NJXh1RYLxzso2CXd9CBj4Vyuz74h/KFofaplUnD15PY/cUHOSJgG01La g64vjIfe54sLkncp5LOL3REb2iiIL3s7XQgNJ4vcDmqQpFE5yn0BzkQzedalBVCOEPjc ZlRiRYi4CdAblt2YMs3AxCt0VjgWOV85nQC2evoPZPcKJhSSHKga/1UA+vlfF4GYMbBU 9Dbo2rb9pTdK4o4BVWDKQvI1cJFx6RbJnZ7n73WhmuJG1YgEaTgE3jzCgyhmYFerGXFm 03WhbS51UYe+B8VT85KhtVMnXldJjRKd01tDa4T61yjKiGeOWzkTI+PSq8fNiRMzyM1n z+yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=EADMqKyX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si4766784otp.69.2020.02.23.05.27.38; Sun, 23 Feb 2020 05:27:50 -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; dkim=pass header.i=@megous.com header.s=mail header.b=EADMqKyX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbgBWN1d (ORCPT + 99 others); Sun, 23 Feb 2020 08:27:33 -0500 Received: from vps.xff.cz ([195.181.215.36]:42894 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbgBWN1c (ORCPT ); Sun, 23 Feb 2020 08:27:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582464450; bh=6aDHgxpbScn4fEVS27fALRMx2ilXcZswkQLdJ3FPyzw=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=EADMqKyXxVdzmDWQ76/XPfZr0J4bY28ZjFJgZp6eZVs0oKk9Qu4ZdzLjoNnda5haC EE6YUVmcGbmMRLGzcqabEl7qSFRk76ACaqycPpE9Lax0k6vPypwIgs0VsOjk6f7+Nm F1997+wQHVRDj0QyIfubsgMu/GlqqVAXVRrB4giE= Date: Sun, 23 Feb 2020 14:27:30 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: linux-sunxi@googlegroups.com, Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Chen-Yu Tsai , Maxime Ripard Cc: Mark Rutland , Lee Jones , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/4] Add support for charger LED for AXP813 and TBS A711 Tablet Message-ID: <20200223132730.6g7tnm2f263oubhv@core.my.home> Mail-Followup-To: linux-sunxi@googlegroups.com, Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Lee Jones , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200223131435.681620-1-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200223131435.681620-1-megous@megous.com> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 02:14:31PM +0100, megous hlavni wrote: > The tablet has a charger LED exposed on the top. This LED is controlled > by AXP813 PMIC. Add support for enabling the LED and using it either > for charging indication (handled by PMIC automatically) or for other uses > via user control. Dang, I just noticed someone sent a similar driver recently, although I had this one prepared for quite some time (since 2017) in my tree. I guess I should have sent it earlier. Please ignore. regards, o. > Please take a look. > > thank you and regards, > Ondrej Jirman > > Ondrej Jirman (4): > dt-bindings: leds: Add a binding for AXP813 charger led > leds: axp20x: Support charger LED on AXP20x like PMICs > ARM: dts: axp813: Add charger LED > ARM: dts: sun8i-a83t-tbs-a711: Enable charging LED > > .../devicetree/bindings/leds/leds-axp20x.yaml | 24 ++ > arch/arm/boot/dts/axp81x.dtsi | 5 + > arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 + > drivers/leds/Kconfig | 7 + > drivers/leds/Makefile | 1 + > drivers/leds/leds-axp20x.c | 240 ++++++++++++++++++ > drivers/mfd/axp20x.c | 3 + > 7 files changed, 284 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/leds-axp20x.yaml > create mode 100644 drivers/leds/leds-axp20x.c > > -- > 2.25.1 >