From patchwork Mon May 8 00:33:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 680463 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 2A8ACC7EE32 for ; Mon, 8 May 2023 00:33:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbjEHAdW (ORCPT ); Sun, 7 May 2023 20:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjEHAdS (ORCPT ); Sun, 7 May 2023 20:33:18 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2629ECD for ; Sun, 7 May 2023 17:33:15 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f13bfe257aso4388918e87.3 for ; Sun, 07 May 2023 17:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683505994; x=1686097994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eZ39LePwzfXGUX5T8kPy8FR1120Whr91g1ULF3PXJPQ=; b=fLv/w6nSTVC2C1/Q7ISdCiQd7n5tS52T31v/Pb3ESMpuqcloYojscVSDZXKzQfFsCZ 2ba5zR2IZ6K8Cc2AP5BzpwqXMj2gf2GaARC99uaI0AwCIrc0L/vH7yqFSHU2Epx9gE77 1JT0RoMjePLD8+hkEiiIII58kODj10fehq5/q3n7yIr3x98EVoa9xKLAUahL3bQ4zLL0 hpDaKw6ZnypE1llninsKKb83EERQ+FXS0grE07bdYPjlzuvVZNBaviFAegC1SaMtY2Mo iF9hj5QOWwrhF/P3GUJ/zia3qejbJleh4W2IbJl4hktKKVBhhaIIX3+6nU02jTtGMu/g Ux1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683505994; x=1686097994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eZ39LePwzfXGUX5T8kPy8FR1120Whr91g1ULF3PXJPQ=; b=GM62H0yusSoZonr7BRCoiA0gcenTRU5S0WXlx32yZUjxwYEG8pJ8i1kX5ET8aiQO0b 262itc0axR+c5hLkHXWaawWTFsrPGrCO936BcBFMYH8JlUXTymXWOCZj8M5SxC5MAcSB ASSrMo+lrb0frEmhoExebnqxkLv3Sk+2CvOpDNqDhFSFiC1/4g2toqYgs8AWl1bODEkE R/EV5SMpnAtCQRZYAPZKE/aOjCXVpKmPfqbaz2DI5qghqgQpWl905eh/RLmULJGLvkLn N2EdEnPfKBPQfn6QFsY+TuRcuO2bKcatrNgrma6RplvCN7w3B2+OARs8kEdD5tdNgsB4 cixg== X-Gm-Message-State: AC+VfDwN4pZUVAEtZtCiuO1YdpExfJ3+lwMGkXY9TkDkYw6vYCflAV3v uAUgoCDXle5DfiHjw7BJyf4Zpw== X-Google-Smtp-Source: ACHHUZ6c46A+L0LTHo+BJXLdpuWw6r0Yxf/FeK0ARsHgolnU7SgB6GwinbyprvwCrIKIEmaTbM0+dg== X-Received: by 2002:ac2:442a:0:b0:4dd:afd7:8f1 with SMTP id w10-20020ac2442a000000b004ddafd708f1mr2070131lfl.52.1683505993858; Sun, 07 May 2023 17:33:13 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id m22-20020ac24256000000b004eca2b8b6bdsm1114807lfl.4.2023.05.07.17.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 17:33:13 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 5/6] ARM: dts: qcom: apq8074-dragonboard: add onboard leds Date: Mon, 8 May 2023 03:33:08 +0300 Message-Id: <20230508003309.2363787-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508003309.2363787-1-dmitry.baryshkov@linaro.org> References: <20230508003309.2363787-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The dragonboard as three LEDs: red, green and blue. Add corresponding description. Signed-off-by: Dmitry Baryshkov --- .../arm/boot/dts/qcom-apq8074-dragonboard.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts index 2017bdf81677..16d609b85dfe 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include +#include #include #include "qcom-msm8974.dtsi" #include "qcom-pm8841.dtsi" @@ -126,6 +127,29 @@ pinconf { }; }; +&pm8941_lpg { + qcom,power-source = <1>; + status = "okay"; + + led@5 { + reg = <5>; + color = ; + function = LED_FUNCTION_INDICATOR; + }; + + led@6 { + reg = <6>; + color = ; + function = LED_FUNCTION_INDICATOR; + }; + + led@7 { + reg = <7>; + color = ; + function = LED_FUNCTION_INDICATOR; + }; +}; + &pm8941_resin { status = "okay"; linux,code = ;