Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp875105imj; Fri, 15 Feb 2019 08:13:28 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib3unjfyYLoHhKAjzoWvqPS8qfiMmVNnJjdCzNoywbQUknKHBWO8JDxnkN/nh8ytfIzp5NR X-Received: by 2002:a17:902:380c:: with SMTP id l12mr10778177plc.326.1550247208454; Fri, 15 Feb 2019 08:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247208; cv=none; d=google.com; s=arc-20160816; b=vxvSxNl+ZseidTaeYvq13gsNg6TC3QczBTYEsOd4McKyPWvH0Cw5pvFOPeq1/4N+I+ KXH9zkb1A4qn0LGZ5Ev4d+tTe1iw9a71ED9C4s5Kp+4t7A/L7PxYHY1RqS4ypdugZ3mq x5tIPVmDaglrky8r/wzehrYQMZZ2YZUIaq6M38w8xAVk/3BwS/KYbNiWpTQX3JcAQHRQ w2ttvOZ5Lt89CVaMobhHqh0UUesbWY1CduMd67I+dbOUNqPibj9YU8mU6eTl4hlpRDRo Y44X+DfFHXTr/VqPjrQe0w9eJVbvt5VW0DnOF/oQcfz6EAgKcm1qqy9piJAfUf+P5LfI OH/w== 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=fKqDxJwz0oA2ARwx1EfeNZEKilrKaY5WoRe1tRUGNhA=; b=TzMSShYRVzJfjaoUGtWKejYTRkbyivimMqh8wfhFGd2a8lxu8h8gyHe286M9v9tCcb INWLVsWv+f19D/EzzCB4yvjZXoji9IN6lixDCP1fuyLOULYq/IZeKntwfjCe4/b0vfwV 7Rre/C3qMMHn2+16hUlLFMeRxttve0GGoQN35Sksg1sdc1F/F0sg4t8mTvY+ztAql6QJ Gb/grXFf2U5BbtQ9EJ3kgMNF5LuAJwzbv0zu0eldyEbWBGpxH9Tk16jH4un8InAHVO+0 tEQGTZwWvciNtbG8ZHxB67v6yyMnfP0nL1wgBKK1kSdhp5Pc/vHhTy8sxvS442mXEuS6 i3fw== 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 a8si5233995pgt.326.2019.02.15.08.13.12; Fri, 15 Feb 2019 08:13:28 -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 S2394545AbfBOLvI (ORCPT + 99 others); Fri, 15 Feb 2019 06:51:08 -0500 Received: from olimex.com ([184.105.72.32]:42902 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394528AbfBOLu6 (ORCPT ); Fri, 15 Feb 2019 06:50:58 -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:51 -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 5/8] arm64: dts: allwinner: Enable AXP803 CHGLED for Olimex boards Date: Fri, 15 Feb 2019 13:50:10 +0200 Message-Id: <20190215115013.11098-6-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 Teres-I and A64-OLinuXino commes with populated LED connected to AXP803. So to be used as battery indication, pass the LED control to the charger itself in mode 0 ( FULL while charging, OFF no battery or completed). Signed-off-by: Stefan Mavrodiev --- arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 6 ++++++ arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index f7a4bccaa5d4..7d6930319fba 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -177,6 +177,12 @@ #include "axp803.dtsi" +&axp_led { + label = "a64-olinuxino:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + ®_aldo1 { regulator-always-on; regulator-min-microvolt = <2800000>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index c455b24dd079..cdffdd4e4561 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -145,6 +145,12 @@ #include "axp803.dtsi" +&axp_led { + label = "teres-i:yellow:chgled"; + status = "okay"; + x-powers,charger-mode = <0>; +}; + ®_aldo1 { regulator-always-on; regulator-min-microvolt = <2800000>; -- 2.17.1