Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2619284ybv; Mon, 24 Feb 2020 08:29:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwnHOEL3nEhUGPt0eem1/cHmml7/ONB7EeRdK4FtSovuA5BV4bP+zR6IdDJ3j1Bb62vHTMI X-Received: by 2002:a05:6830:110a:: with SMTP id w10mr41346759otq.300.1582561742212; Mon, 24 Feb 2020 08:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582561742; cv=none; d=google.com; s=arc-20160816; b=nwW97kOFzXhnxW40T9VFz0hfS0Gy9YQJw+segCDaimysGjFhKr+jXMVF+N7fFpNlO7 8V+Yn97HKBEwb1wsY37EvT4R2R7mS0au7Vj6FUGhc579pDQ4+sdZ9TomGaGcleQSES8g Xb69HAtyzn32DSS7U/513Mj1E98Ng+uVhlwaB+G0z5k5GVJX6yeMpOAMIr2ug1z2lT5o uQY1OGII4uCf6r8CgGhcszsFEhw1JTeOdZSu3c7ZL9DROfFGMqL24ewNLche3wRxBY0s juF9NJtwWBSDMGJ3JC/kCdvl3/SqOGAjSA0T7hPqC5wsntlbS67Ur84/rf/9f4InILqU 0nHw== 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-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=uGGrpDtUIL0o8j31t2HHGjKqeeqr4emLgUq9WPe8GZs=; b=pbnmR64uepbRXxAHDG7utFFdjpd639SdKaOjr2/wgDtiSTa6aDdjUTZ4fxJqnJkPUl iuStIXfzba+aiXztJxFq6Je+nqlWANpXWPLMBsfA+Leoz8hpywQ4WCFYd0qfekVt3faR FWueI8WpQAIa8unnzvAzqXeeLRzO8M1nuUAuXQ0A/6Uh1JljmKD1VPJk5qp6plO7FxLg UNDnHKCo7tuFkIRJWGqq2ML3Z1rOUx8IhdzSkjSK95iI31oAmmh+3mlBE/rRv1CvyOPf 6qYQb5PHGQb2lX/bdli8H9eO25Xn8cJDM8dXwbGCMineDKm3gYrZ2vYq+AxFQ9CFMUog tWAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="WDKWj//9"; 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 h6si6470981otk.276.2020.02.24.08.28.50; Mon, 24 Feb 2020 08:29:02 -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="WDKWj//9"; 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 S1727849AbgBXQ2m (ORCPT + 99 others); Mon, 24 Feb 2020 11:28:42 -0500 Received: from vps.xff.cz ([195.181.215.36]:59288 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727299AbgBXQ2m (ORCPT ); Mon, 24 Feb 2020 11:28:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582561720; bh=wkV253iNdu34zWLZa2QqrlFlrBm18YkIXQNR8JlEGXc=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=WDKWj//9hWJyzQ+9eJs8ZC/lnXAkW5HiOq9ChU8ruQvc7s2a8caBEhBu0EBTqedJL oF0QzLdL5peysOVfOP4s0H2nZXya9z8FBi6xQQZP8L8Am/AvpCoJXQZQq6M2YpXbpR Z5xeQIUsADukIZgVk853toibAnc2nrgeVvxDR+jk= Date: Mon, 24 Feb 2020 17:28:40 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Stefan Mavrodiev Cc: 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 Subject: Re: [linux-sunxi] Re: [PATCH 0/4] Add support for charger LED for AXP813 and TBS A711 Tablet Message-ID: <20200224162840.z7csqagz2frwvmf3@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Stefan Mavrodiev , 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> <20200223132730.6g7tnm2f263oubhv@core.my.home> <20200223133517.hfqrg5dta2xk4zj3@core.my.home> <1464324b-2b69-c20e-4af8-f32ae5451ea6@olimex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1464324b-2b69-c20e-4af8-f32ae5451ea6@olimex.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 Mon, Feb 24, 2020 at 08:31:06AM +0200, Stefan Mavrodiev wrote: > > On 2/23/20 3:35 PM, Ondřej Jirman wrote: > > On Sun, Feb 23, 2020 at 02:27:30PM +0100, megous hlavni wrote: > > > 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. > > Though the meaning of "recently" is a bit relative. The other work was sent in > > a year ago. Here's a reference: > > > > https://lore.kernel.org/patchwork/cover/1042764/ > > Hi, > > I'm the author of the 'other' work. I don't know the full story here, but I > don't > mind someone else submitting this patch as his. Hello Stefan, There's really no story. Just me being a bit anoyed at myself, for not checking the mailing lists prior to spending some time cleaning up and extending some old patches to upstream them, and wasting quite a bit of time in the process. https://megous.com/git/linux/commit/?h=linux-tbs&id=737eec64565d328cab98b75879e3f9eb1cf2f609 > When I submitted the last patch, there was the proposal to use the > ledtrig-pattern instead > of sysfs entries. Also AXP209 has inverted CTRL bit. > > Please read the the 'other' discussion. Thanks, I'll check it out. regards, o. > Best regards, > Stefan Mavrodiev > > > > > > 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 > > > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel