Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp874523imj; Fri, 15 Feb 2019 08:12:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IYfMLF/0l7Y7/6fUZsSN5xWMp+fbWAnBIgjxcspyVNX+JF5GXbHyOz7coREe4UcDOnndVA9 X-Received: by 2002:a65:6215:: with SMTP id d21mr6105482pgv.289.1550247176401; Fri, 15 Feb 2019 08:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247176; cv=none; d=google.com; s=arc-20160816; b=jh9G4iFGBsjTovW1v2PDCYYyMWobKSKFNWLhQwz6TWOpIIwdRn/u2AppkiiAfbUwVB sPZZsd6s6/QMAFLtiKdzl/WME3PTfmhxnPRvIkGbllcFpchqEuP0AIsUO7rlvGnxRl3Z Kz0t1tZbQsvnmC/u0FYfIu9yh4A+m0m1S4LfURk5b1Vint/MBv0oGf5q1geyspVpQBDL TZTMX6H7eMDfcWqAKjuWySShi6itiYZ07Tc+va7zHmRD3h+WwOGSQCzJVHToDSnNpRQK ZU9PxpBRhje1wToKPFYeO809JeXGtNep8woz/DiunLAY2KIwaBNlx9twW2wkBQyQWTH2 pWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=KeCrbvnBF9ke1L40kYD+TtMGXnqEtfj9QxdMvL5icMs=; b=xDePYWBxErDmIO1YZ3idDyC4GOEsrITUzBprhvaaIOBf2RpoN7uOOTzqHAIY+zjnq/ DPl4q+BHk+6YaxdJAjNFEPvZ3Nlv73z8L3h/r/BLb8es49cGIiqpDkwoRuB6M4rIujEl Y+IDwnpsY5qjcCFXBEnsT7HYRhZshnLsMfhZyUNDnEix4r1ptSj2r9fiZfYIe6c914Fx +3MI12QDhwR1Z1/9BuEhjViWDo5HxtgYFa7PDmr4MznbwZ1NjYcHuCOnUMDeiCGPyawu d4ffPMSoB2/tfvraIk7S8nZ+vAI+3amDto5hEO/rSEM3KX05a3XJYgYhEYg1myAwumzi +Wxw== 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 k19si5524440pfi.258.2019.02.15.08.12.40; Fri, 15 Feb 2019 08:12:56 -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 S2436746AbfBOLvJ (ORCPT + 99 others); Fri, 15 Feb 2019 06:51:09 -0500 Received: from olimex.com ([184.105.72.32]:60368 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394552AbfBOLvJ (ORCPT ); Fri, 15 Feb 2019 06:51:09 -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:57 -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 7/8] ARM: dts: sun7i: Enable AXP209 CHGLED for Olimex boards Date: Fri, 15 Feb 2019 13:50:12 +0200 Message-Id: <20190215115013.11098-8-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215115013.11098-1-stefan@olimex.com> References: <20190215115013.11098-1-stefan@olimex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Olimex A20-OLinuXino based boards (MICRO, SOM, SOM204, LIME2) commes with populated LED connected to AXP209. By default the LED is controlled by AXP209, so this binding actually doesn't modify any registers. However this can can be used as general purpose LED, if the control mode is overridden. Also this binding is enabled only for OLIMEX boards, since I have no knowlegde if the other manifactures are populating this LED. Signed-off-by: Stefan Mavrodiev --- arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 6 ++++++ arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts | 6 ++++++ arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 6 ++++++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts index f0e6a96e5785..677ee1c2795a 100644 --- a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts @@ -243,6 +243,12 @@ #include "axp209.dtsi" +&axp_led { + label = "a20-olimex-som-evb:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>; diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts index 823aabce0462..31a3ab5ad4e3 100644 --- a/arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts @@ -205,6 +205,12 @@ status = "okay"; }; +&axp_led { + label = "a20-som204-evb:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + &battery_power_supply { status = "okay"; }; diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index 4e1c590eb098..66dd80ced1fa 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts @@ -200,6 +200,12 @@ #include "axp209.dtsi" +&axp_led { + label = "a20-olinuxino-lime2:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>; diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts index 840ae1194a66..700de909eb49 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts @@ -272,6 +272,12 @@ status = "okay"; }; +&axp_led { + label = "a20-olinuxino-micro:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + &battery_power_supply { status = "okay"; }; -- 2.17.1