Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp874280imj; Fri, 15 Feb 2019 08:12:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IZmWvHFLujKu7lNEHvzNSPRdGtggwvK/uZLq5SVymL3bC7XZKby6f4VEFb57JRhins1x47F X-Received: by 2002:a63:2ccd:: with SMTP id s196mr6060158pgs.194.1550247159921; Fri, 15 Feb 2019 08:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247159; cv=none; d=google.com; s=arc-20160816; b=in3MWD793l4MWiBAgtha4vdsvI/EaQM86qKu3GnC09Zn3DRrZ0wCvSmNM36s+02Fxt CSYYDGj8SJnDKGPpSFDbCSjQ5UDP/2KIy+AyUKQO0p6jU1hoA8Jq+95EQ0TmVOEBrTDc fxOfdN7u6wd89iahstPtWRVjqFy5+jv15wZxkMKxBCsJ0bac6bxC17HxpoFiSyLHvkL6 SFXEWhydTNWC93tlo8Ozs3IZXR37bu5GytxSNEGXrLx6QFS2DzowSWJJznyzp5ANc23Y x8KZxoeCfXrP/OHr1V7XWrPVwWuyCvGsW5wvX6KCEoO0str9y6KKYzvjA51G0+IOzPDZ eSUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=KqBoA2ZEQo1v2okyLO1ztxL78f8MjW/Qzf2i5el5zqw=; b=l+XEq2cXfYymXD7dhRkK4Ze+AOwaXNJoExzD8bSx7HbDCK1VAixpftnTvKtan3Dkj/ FrwaKb3eLDExJFiZ83468syMLxIeyragSHcG2X//lT/ya8MOCM1Z7XssR9K5D8CFMRDF 6zuPbkaiAjgqn/9VlDN8b7RERRkiv047l2Da1WO5ypfoBk6iuHJrAvJ/S8KarZbWy6o6 rZP7mQ2B9NumzIEx4JODZf6yA5jsCBi/KQWIlVMf5A/0UuNwDpsyDfmerwBXTgZ7BmwP dYDTiWBasKwjoD3gT7i2aywfWrVVgv3hpGSdLWzXs0TG0idwXjUX/tEpss0m0v9ZwcMQ DE2w== 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 39si6304133plc.153.2019.02.15.08.12.24; Fri, 15 Feb 2019 08:12:39 -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 S1730783AbfBOLuh (ORCPT + 99 others); Fri, 15 Feb 2019 06:50:37 -0500 Received: from olimex.com ([184.105.72.32]:57445 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbfBOLuh (ORCPT ); Fri, 15 Feb 2019 06:50:37 -0500 Received: from localhost.localdomain ([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 ; Fri, 15 Feb 2019 03:50:36 -0800 From: Stefan Mavrodiev To: Jacek Anaszewski , Pavel Machek , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones , linux-leds@vger.kernel.org (open list:LED SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list:X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Cc: Stefan Mavrodiev Subject: [PATCH v2 0/8] leds: Add AXP20X CHGLED Date: Fri, 15 Feb 2019 13:50:05 +0200 Message-Id: <20190215115013.11098-1-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series add support for CHGLED pin found on most of X-Powers PMICs. Changes for v2: - use mutex when accessing hardware registers - fixed LED naming style - fixed some typos - fix variable types when showing attributes - remove useless private data - fix binding documentation - add device consumers Stefan Mavrodiev (8): leds: Add support for AXP20X CHGLED mfd: axp20x: Add axp20x-led cell dt-bindings: leds: Add binding for axp20x-led device driver arm64: dts: allwinner: axp803: add charge led node arm64: dts: allwinner: Enable AXP803 CHGLED for Olimex boards arm: dts: axpxx: add charge led node ARM: dts: sun7i: Enable AXP209 CHGLED for Olimex boards ARM: dts: sun8i: a33: Enable AXP223 CHGLED for A33-OLinuXino .../devicetree/bindings/leds/leds-axp20x.txt | 74 +++++ arch/arm/boot/dts/axp209.dtsi | 5 + arch/arm/boot/dts/axp22x.dtsi | 5 + arch/arm/boot/dts/axp81x.dtsi | 5 + .../arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 6 + .../boot/dts/sun7i-a20-olimex-som204-evb.dts | 6 + .../boot/dts/sun7i-a20-olinuxino-lime2.dts | 6 + .../boot/dts/sun7i-a20-olinuxino-micro.dts | 6 + arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 6 + arch/arm64/boot/dts/allwinner/axp803.dtsi | 5 + .../dts/allwinner/sun50i-a64-olinuxino.dts | 6 + .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 6 + drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-axp20x.c | 291 ++++++++++++++++++ drivers/mfd/axp20x.c | 24 +- 16 files changed, 461 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/leds/leds-axp20x.txt create mode 100644 drivers/leds/leds-axp20x.c -- 2.17.1