From patchwork Thu Apr 13 00:37:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 674267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ABCCC77B6E for ; Thu, 13 Apr 2023 00:37:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjDMAhp (ORCPT ); Wed, 12 Apr 2023 20:37:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjDMAho (ORCPT ); Wed, 12 Apr 2023 20:37:44 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 255D84EEC for ; Wed, 12 Apr 2023 17:37:43 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id z8so18788358lfb.12 for ; Wed, 12 Apr 2023 17:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681346261; x=1683938261; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=5mkrhtaW8RsYbUQ5f7IhajN13a1zUBEoHVYcCAD4lt8=; b=YAUQK6Uqc8xFn1mrCRoO2XRW2ReAsqji5eNZL0FBpz14vLPT6uViBgrDcVLKB7vCK9 qzZlBuNR9hs3yTwEdetkHvjy+0ge7awJERq9xpbZJx9asVdjnHEmhlYQpxQLXcV1+VOk 7U1rzfEl+cf5VuOKQARmoeUL0W3olCbQs/Ln0iJMsOyUyj2glO2REK42MwMrk6dfheOb begKYhC0/wIQVs9nVImUHblAxR8c9n4SZS3RrVC+QDtnWmdJzjOqBDn/uYOuMzw8u9EA nKV8/TR26Wcslx2+BnRFy66bRrccNZxgQSCcOwb6Cqgbr/IWV2QagXei2xcOXcehByE+ zPCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681346261; x=1683938261; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5mkrhtaW8RsYbUQ5f7IhajN13a1zUBEoHVYcCAD4lt8=; b=YPpgcehlLCT6w3XY3u6V6XmPi5ju6mIAFGrCuy1cV5vwWAQG7BMhEkWtBCiV3DHbSY uXPYqaTzcl+wQJ2ikUowzFFZnWahzsm1w52Ad+KXDNSMQDFldjJFjc4ED887MI3WVRZV oWD+59T8dNiI6cJe3KQfxkDMkGvax2NSfLk98w0EE1zZ9w2xAvliALmKS2bqg5gB5kCA YQmWhYuR8vXtWjpp59rK++92ldbwf89fhOLB7X8uybbsT6xAn9d/QKfnguJPCDbxh3n0 a29zsq7NnSrmETZksx1g4yfQE79UQRTjgr6jjgXyV3QsaEuxQN/oqd9u4SAsaXoIVEtd jIcQ== X-Gm-Message-State: AAQBX9cv+3j+urZr85iXE6vSwtCzTsAuwUDf8wIV8cglEnItka9yM6iw IAw/yQsdjZXhwKbR11d4MXUGNhnQOAM1BMqpQ+U= X-Google-Smtp-Source: AKy350Y3SDVjMmc9PlqIlyeh9f7wZCt13CLFaobUPByq17P4fvjyFCNsXA94jtRMwT1S0VjCVanJ5Q== X-Received: by 2002:ac2:5228:0:b0:4dc:828f:ef97 with SMTP id i8-20020ac25228000000b004dc828fef97mr236444lfl.60.1681346261169; Wed, 12 Apr 2023 17:37:41 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id u6-20020ac243c6000000b004e7fa99f2b5sm48280lfl.186.2023.04.12.17.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 17:37:40 -0700 (PDT) From: Konrad Dybcio Date: Thu, 13 Apr 2023 02:37:36 +0200 Subject: [PATCH] arm64: dts: qcom: msm8996-tone: Enable LPG LEDs MIME-Version: 1.0 Message-Id: <20230413-tone_led-v1-1-bc3c73393bfa@linaro.org> X-B4-Tracking: v=1; b=H4sIAM9ON2QC/x2M0QpAQBBFf0XzbGuXRfkVSWsNprahXaTk300ez +3c80DCSJigzR6IeFGijQVMnoFfHS+oaBKGQheltqZUx8Y4BJxUbetqtkYb31Qg+ugSqjE69qs c+AxBxj3iTPff7/r3/QCzjKCXbwAAAA== To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681346259; l=1516; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=MrJT4mj6R582Z5U+PgPBwlwFZ2TPZnZ9vzzkyNUYHv0=; b=cbCGz68G8gQkNon6eTKu+JtLpOInN4sNKXzNSIhMtiBml/aps00bbZ+x/qwArs9VUZJbaz29BwgF oXYQXPgUBHP+kppjID6BqfQpOfUtOGKf0q+KO5T81/wxz7DTgTft X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the notification LED(s) wired up to the PMI8994(6) LPG. Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) --- base-commit: 7d8214bba44c1aa6a75921a09a691945d26a8d43 change-id: 20230413-tone_led-6465f4101c75 Best regards, diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi index 7f4d493a55ff..b4b770a9277d 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi @@ -11,6 +11,7 @@ #include "pmi8996.dtsi" #include #include +#include #include #include @@ -605,6 +606,34 @@ pm8994_s11: s11 { }; }; +&pmi8994_lpg { + qcom,power-source = <1>; + status = "okay"; + + 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 = ; + }; + }; +}; + &pmi8994_spmi_regulators { vdd_gfx: pmi8994_s2: s2 {