Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4690494iob; Sun, 8 May 2022 22:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVsqvTxdmOtGxnqdXY1Yq38SUVeM5ptsfqcQB6GBYQc/iHjCYevEESz4DJd0maohN7EwfA X-Received: by 2002:a17:903:248:b0:155:ecb7:dfaf with SMTP id j8-20020a170903024800b00155ecb7dfafmr14679701plh.84.1652072884355; Sun, 08 May 2022 22:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652072884; cv=none; d=google.com; s=arc-20160816; b=hi6Uh2MI3D1hUZ2qI4QGGxInFbaYjcAF4zW4ALdauPCrjGo70tsHX1RCfQcyUK6sng 1bHgFA8jgwWDdlz/6dE6QEzuZgJCKsUL0XwkVV5oM0NzdyYQCFE9wX8sqzjLgOgPp3hU /X6xVfC70dNVRvxolIpuLb/4yiKTdCcJ2CXRUAqBZiWXUZbWiHJK28RhYe63zEDVofqq uxYuwTwVkWjKvHxXuFyjbJ6HGNW7tpB/Af4EPXhrtViB4Uso4KuDXpCQTap4W97kBGON reQF9GDws7ZJignMtB7bvI16U6zLedqVYAiKqmKeHMzTZBDJKsQLIQgiL0zgWFxVzfiu UpwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4EP6qCfFWPDltXxr4FYSpUkGRDDeos6f5eS/gkXqugs=; b=CdOHhDgyorFrpn0PA54hRQo0KXcGc0eORZIPxuBcvvPjtk3LMJQUaoXVCwWsAjotez NFXpfnf3Qb98+QSqc8BjWFYlkfuMG6z5KborEwEtn/YX1vNf1rHKDTODtj6n/wltHbq7 /dFZFOwKfPiSlKEj71/yizyOEPamlS9eToOjcmN2w2OQNm1ZuOT6WNDECQgpV8tb0Nm9 olCzwxca1J9VkrtY22Mm8Ne8MmQB8O+56Bee9lAbsNIxW0XDADSjNbTnn1G/B9862Xei /+WukgESKen5gIqFGbeB9N2sxYdoBpSXnP3YsP8H/ZSZ35OeaASO7eBU+uxNAleVMD05 NycQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mw1-20020a17090b4d0100b001cd6a811925si14906873pjb.48.2022.05.08.22.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:08:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AEE9713E9A; Sun, 8 May 2022 22:00:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387781AbiEGWPb (ORCPT + 99 others); Sat, 7 May 2022 18:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387624AbiEGWPV (ORCPT ); Sat, 7 May 2022 18:15:21 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [IPv6:2001:4b7a:2000:18::171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C09A1FA47; Sat, 7 May 2022 15:11:33 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 14DB13F367; Sun, 8 May 2022 00:11:31 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org, Pavel Machek , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org, Rob Herring , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross Subject: [PATCH 4/4] arm64: dts: qcom: sdm630-nile: Add RGB status LED on the PM660L LPG Date: Sun, 8 May 2022 00:11:23 +0200 Message-Id: <20220507221123.2201668-4-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220507221123.2201668-1-marijn.suijten@somainline.org> References: <20220507221123.2201668-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The entire Sony Nile and Ganges lineup utilize the first three channels (the triled channels) of the LPG block for an RGB (battery) status and notification indicator. Signed-off-by: Marijn Suijten --- .../dts/qcom/sdm630-sony-xperia-nile.dtsi | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi index 42af1fade461..f42304671520 100644 --- a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include / { /* required for bootloader to select correct board */ @@ -214,6 +215,38 @@ &blsp2_uart1 { /* HCI Bluetooth */ }; +&pm660l_lpg { + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + + qcom,power-source = <1>; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + &pon_pwrkey { status = "okay"; }; -- 2.36.0