From patchwork Wed May 31 01:26:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 687538 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 55AA8C7EE23 for ; Wed, 31 May 2023 01:26:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233675AbjEaB0d (ORCPT ); Tue, 30 May 2023 21:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjEaB0c (ORCPT ); Tue, 30 May 2023 21:26:32 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2EAF3 for ; Tue, 30 May 2023 18:26:31 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f3b5881734so6008660e87.0 for ; Tue, 30 May 2023 18:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685496389; x=1688088389; 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=rbd5t5Zp+ma3P1n+fyVRc8yZo3nip3v6YMJHIs9kFoc=; b=fPBG52Wzjjl56Z9LTtRwkj7CXMrzjj/VwVI1atzM7JPbxgPNnYfhWs0Uo56hsZTp7M cJcamOKGOZLvhut3m2TJl/Y4BSkVD66spyY0VTeJzqz3N+R5FiQxnVMWATLVOraUZP43 b6QvFXv5B2hGKLlMN8eCKGFIvT/0Q3GKcLXyhLetjhMVDXIxYf3ux0RytohLi6ZYMaqR FndIj/AQzDfBo+41JvXqzusy68XElauQ3kgj9hjg2qEBfbeHh3TE4cWUqYofdwzfXfgz yd184eeZa3q2WdcwhDZYo6KiP4UZXJ/yc5RIkk2+eGwfSyCEI9o9XwmYQr5uARoY61qI ccjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685496389; x=1688088389; 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=rbd5t5Zp+ma3P1n+fyVRc8yZo3nip3v6YMJHIs9kFoc=; b=V2cPG/Zrgxawqzwd6bR9t8vjcWBw9TQZPtBaOI/CpySlXPl6TOm0MIy4YWKJn2CvoP r7MlGwMDNDMpTRt5I6FJ4e3j4svFk+PMghXb0M0W97k6cx/q0UMr8eeGPzBBcP4WUC3R QfAa6iNvtsmRBDNgBCn/itvQVXIwuteey552rdhIk0BKt++pv3sO89bBNiQXR3DfPeLg MIivgmJuEDOsyFSXpbIHbveye9qmnLUqqYYm4aUtrqh4uXgXX99cxbszagxdHsf+hgZ2 lCgR6CPdayAvqKYk+CxYRHsdbYmsPM3j7GM6LY7NGin6FQXi9vbJb3NyX+Mmdq37ATny N/Lg== X-Gm-Message-State: AC+VfDy2J5PhgokxqKKSo8DYDt1vMR+obg38+h8ANayvETvicJOKSkiI wTSEI7GjrYGVTD+6ZN+HFOt7CQ== X-Google-Smtp-Source: ACHHUZ782aWdccRDyyEeNmjsOuHuDTndW87mJqmx2cXR16ic2Nsz+83+Me/mfXElLMchR6LWt2bpGw== X-Received: by 2002:ac2:55a4:0:b0:4f3:ac64:84f8 with SMTP id y4-20020ac255a4000000b004f3ac6484f8mr1758851lfg.34.1685496389747; Tue, 30 May 2023 18:26:29 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q3-20020ac24a63000000b004f27471e0aesm509992lfp.79.2023.05.30.18.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:26:29 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: qcom: apq8074-dragonboard: add onboard leds Date: Wed, 31 May 2023 04:26:26 +0300 Message-Id: <20230531012627.3813060-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531012627.3813060-1-dmitry.baryshkov@linaro.org> References: <20230531012627.3813060-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 72f6611bbe49..dc8667ad1b54 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include #include "qcom-msm8974.dtsi" #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" @@ -90,6 +91,29 @@ &mdss_dsi0_phy { vddio-supply = <&pm8941_l12>; }; +&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_wled { qcom,cs-out; qcom,switching-freq = <3200>;