Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1375942ybv; Sun, 23 Feb 2020 05:17:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzCjTwYHEXYirDsSRvIAPRLThJ7LtLXHTYzuARNQd3NxuJCqdlmEj3JeAnjumjBTe6ajhG3 X-Received: by 2002:a9d:6b84:: with SMTP id b4mr36768583otq.190.1582463834593; Sun, 23 Feb 2020 05:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582463834; cv=none; d=google.com; s=arc-20160816; b=sotlPDYybGxQl383HsOFM1EGJYeMsWD+wcq0ttfZaU5Mt/Pkh8cCSxEUDEDHpTao4n DLcgAtP1aPVPl4zxeXuWAt2iYgUb2ii8GBc98cbwzfT8blhJNP8WsR1clFSkyu+gBXvL JA8lhIXQFJGsSTX4Md9Uh8sxKtjqAyrLiqHQ6wzit/7X3V5PSgF/QslD2M7SjLSWXeEz Zf+AAeu6SkqfAprvmkgNal9Zr7SkzUUqp8SGkd3NMhuEVYsJvhztNkAL2OpwGNfS+usL FXrghEUN1ZuKnKCR3Jj9gXEkafu+pS0TEQvhMHVEQZPEgK9+AWdabOB/g8aXij84SNSq /x7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wQyUfPKte09p4iCcM94gWMR520gjtLK7c5C0KIJz61g=; b=s9Wz7TFvivRENvUwideGbjj0F1m2EB5aVmeeRn/+AaCVKR8xtgnajOtgkcgTFCsymm u+wLsg7ft4JqJouxDTf8RW1mtPO8eOtklMM4oqzNFDasXGUY3jWgKslgRnhSO//TwD6y 7p1hwVjjkWyOBv3K+oH/3fbvm/l0nTweCseboP8/kg2LVpfblHEXA1W+HeO3I9J3Pdvs Nc8iMnxrXrL3McuVBSpsOygEwhc6eN68rn6pa/2FiqUr0s1ccWQkYCYkt5HBPHAb1Tif 3p+pDAXL/r4lk39fRBrRsh2aLGoPJwPOCrL2PlkJ4xmsGmNfikthWOf+4sxIP+IRKp+a b0zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=X2KI36Vn; 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 n186si3751302oig.191.2020.02.23.05.17.01; Sun, 23 Feb 2020 05:17:14 -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=X2KI36Vn; 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 S1727030AbgBWNOv (ORCPT + 99 others); Sun, 23 Feb 2020 08:14:51 -0500 Received: from vps.xff.cz ([195.181.215.36]:42634 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgBWNOv (ORCPT ); Sun, 23 Feb 2020 08:14:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582463688; bh=7u5RcG9coKsFNhS7jd0YQxz5uywiYal8+aKSaymmgCs=; h=From:To:Cc:Subject:Date:From; b=X2KI36Vnmx99OdMgF7wGS1IBvl6b+VOpvnu1QvmrwBfUFfuTUlzpAEeCN7KXqK5qk k1jiQkZY4u6kewOrR7rOOqIMAEvyMNIzbFq3sc5sEmUQkK0Sdg1QaxeT1QAnoQya/Y f0pUPdzycHCQ5dgFIf8tq4fuxs0U5NY/6Kpshii8= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Chen-Yu Tsai , Maxime Ripard Cc: Ondrej Jirman , 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: [PATCH 0/4] Add support for charger LED for AXP813 and TBS A711 Tablet Date: Sun, 23 Feb 2020 14:14:31 +0100 Message-Id: <20200223131435.681620-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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