Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2091971ybv; Sun, 23 Feb 2020 22:32:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzh8hUoj0emFq+qjmHnmZcuJxqD0Wv6mBZec/J3CngrVyYJAbDjKEch/Ae+W65tJDhn6JRp X-Received: by 2002:a9d:24c8:: with SMTP id z66mr39821578ota.52.1582525949641; Sun, 23 Feb 2020 22:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582525949; cv=none; d=google.com; s=arc-20160816; b=gr/rqd9A4mtiUx5MK2hhd0jI7xM2SadvYpNP7mRTMVGrgOqvHF7S3WjxQ2472Ky4PT RE0+Fb40apemdfwSoEZVvkJsc9WC3wuKcUJNCN7EkZ/806hQEiwJPZAAJIkKDvlji2ru giUd7JdWnSWeQE6HDT1CCY7eboS85rr9gkXZpVKvwS4hdQuVegNvurRxPuw4IvzoYTlI AtS0xb/g2SNJ/npPVYQhvMJplF2MLoWvHVZtovEwI4U5ifokL3qbB8QEwiOjs06cEa0h kVAxlJXgO8gtOFmGeH3EonvHDfoI2tSo7XSnnVgYBwnlltJ6MqM3zzt22Offcc+6HH9S Kqgg== 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:to:subject; bh=5295/8AwVa0wbztrSMS7vJM+9WHMIMHpkpMFMMICr+A=; b=n9IXkCnwpmvEF4FAD/9M3HNcI2fADnOVoq1gNf1kMbNmlGafV4xw8Zq5E4iaAU4GeS mToAOh8248GHZCk9IniSLIAcdsZp/GMzRJlWME2GJb2RI5fVKBqdv+uYxMXNTldk0uQH Su7Lfiyg6GtDSbgqDkjJvgFmakXDbkzD3BnzsjWQbjG2k5YoXCKqwuP7Hs7oVimGGJX6 v1fYgr3cNZxno0WcrFPfAEnPSyKA57VxWo9JGpjHXC93+f8G3O2OOQfcxGejSXjN3w9D 8FtfiKl/Sb3VeZGTD+67dsYmimQ98qOEfkZ+jmDN0GQhTDtozYKaByN8jhf2rGL9cJyU wlpg== 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 z23si5884239oti.34.2020.02.23.22.32.17; Sun, 23 Feb 2020 22:32:29 -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 S1727426AbgBXGbV (ORCPT + 99 others); Mon, 24 Feb 2020 01:31:21 -0500 Received: from olimex.com ([184.105.72.32]:45909 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbgBXGbT (ORCPT ); Mon, 24 Feb 2020 01:31:19 -0500 Received: from 94.155.250.134 ([94.155.250.134]) 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 ; Sun, 23 Feb 2020 22:31:11 -0800 Subject: Re: [linux-sunxi] Re: [PATCH 0/4] Add support for charger LED for AXP813 and TBS A711 Tablet 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> <20200223132730.6g7tnm2f263oubhv@core.my.home> <20200223133517.hfqrg5dta2xk4zj3@core.my.home> From: Stefan Mavrodiev Message-ID: <1464324b-2b69-c20e-4af8-f32ae5451ea6@olimex.com> Date: Mon, 24 Feb 2020 08:31:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200223133517.hfqrg5dta2xk4zj3@core.my.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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/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. 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. 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 >>>