From patchwork Wed Sep 6 09:24:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13375425 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 816B6EB8FA5 for ; Wed, 6 Sep 2023 09:25:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236717AbjIFJZJ (ORCPT ); Wed, 6 Sep 2023 05:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236702AbjIFJZI (ORCPT ); Wed, 6 Sep 2023 05:25:08 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D311709 for ; Wed, 6 Sep 2023 02:25:04 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-52bca2e8563so4893258a12.2 for ; Wed, 06 Sep 2023 02:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693992303; x=1694597103; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/6p/xZXs900v4vDHCTqR/tX5qKtbr2J5Y6y2wWsKdjA=; b=ApaOGQd9FqXgZftmrsjFERD93alSlyBQfC7VrDm2OYdejxYI5HchDzEAg+mnxUypBu udcs9NfIkuJPtb7uMHvVMnld0KUApqujZ/qqYIxrDu74Bh3kLe8o/Qy0/CQSVqg9zMFd 1R5A+Z+UrZ8O6sy+XSLV4uYqaeQpuZSBJqYyS5vuY87M8EUhKD7tn7/Ldmb435/ZLxMf QVEJae2jruQvRbdk6n/YRXAI2Ok/61ArsfS2iVLR7XPkRU+Tfd43gATRsHmlsb7t75oq aTjI8zXqBhSAmnviR9thMBgf8YPFfz197MW/JhhdSW6ozzbIggArQYBv8hPnLtajowXP ALZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693992303; x=1694597103; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/6p/xZXs900v4vDHCTqR/tX5qKtbr2J5Y6y2wWsKdjA=; b=XMo/8Oqx1waJwjZitnXOcn2gx1YTjGwR3JaaQw24yugFmYc/ZjgBrQqn2LLwYy+2rz rdHYVfvawSEES06fIY4iZqbqti/sPvY34qJqBjN/VDW6epZMc7dwhKPkOYa+XmnRQvRj uWPFnTpbFe/IVTzUtlDKCEt7n/je+ChU7MS2SnfYGZXKKawfut5CB2+A1eKDbu/0FShN noNf84fiXPvmn2Ia60LxQyATjbO0+lMkk0ky5SGHFVo3aaMdDWbiVy2MiswhMGMl8UzO xpyOdlPVGf0F4NFUtuBdFF199lG4lJyEn1l0dqPs/bBXIc0FP6OWRejXLFCZrfK+QpXx dtOw== X-Gm-Message-State: AOJu0YyYfspevrBRHLsi6oMYxAGeCIzI/agiTxbso4htO9I38zYbibPu e5+atH9NFA0hjh4BAlH7m96ZyA== X-Google-Smtp-Source: AGHT+IFdAEMUz+88edXZb43tzldXC9wcDLVBbqV0a4yyVzNmNROPo4VCN1khS5KFMQ3UGo0caLGccw== X-Received: by 2002:a05:6402:5172:b0:523:2e30:aaee with SMTP id d18-20020a056402517200b005232e30aaeemr1773809ede.32.1693992303456; Wed, 06 Sep 2023 02:25:03 -0700 (PDT) Received: from [10.167.154.1] (178235177204.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.204]) by smtp.gmail.com with ESMTPSA id q10-20020aa7cc0a000000b005232c051605sm8096155edt.19.2023.09.06.02.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 02:25:03 -0700 (PDT) From: Konrad Dybcio Date: Wed, 06 Sep 2023 11:24:58 +0200 Subject: [PATCH 4/5] arm64: dts: qcom: qrb2210-rb1: Add GPIO LEDs MIME-Version: 1.0 Message-Id: <20230906-topic-rb1_features_sans_icc-v1-4-e92ce6fbde16@linaro.org> References: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> In-Reply-To: <20230906-topic-rb1_features_sans_icc-v1-0-e92ce6fbde16@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov 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=1693992295; l=1581; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UuNd8tggE5iWiyJA3F8yW6H2YAWEjVItZbSqtIqrHRA=; b=vlWYHvPSLfOkpmRgpAeQijRsCZdcBV9xDwMZbr3XygAYB4tIIDlFLKMfebwqwlESs2L4oJgD8 7D5yBqy0iY7CyizPLcKGRnj/YaKJeYHUUMtF8ZnPsqnuyR1Z94G53vc X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index 5f7619518deb..fd45f58e254d 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "qcm2290.dtsi" #include "pm2250.dtsi" @@ -39,6 +40,38 @@ key-volume-up { }; }; + leds { + compatible = "gpio-leds"; + + led-bt { + label = "blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bluetooth-power"; + default-state = "off"; + }; + + led-user0 { + label = "green:user0"; + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + panic-indicator; + }; + + led-wlan { + label = "yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; + gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible = "regulator-fixed"; regulator-name = "VREG_HDMI_OUT_1P2";