Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2004356rwd; Mon, 15 May 2023 06:10:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yySq1J7JA2jjxgMyKcm6t+7l3uqQORzSUt6J5/HXAiyRgf75KxI41JT8lqD17MnKf8o+X X-Received: by 2002:a05:6a20:42a5:b0:101:3046:8db3 with SMTP id o37-20020a056a2042a500b0010130468db3mr25861992pzj.22.1684156230430; Mon, 15 May 2023 06:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156230; cv=none; d=google.com; s=arc-20160816; b=woVxElaJDIDqDR52hpMJKrupGfUbyBLbSMFMxrMtfHFTNWUWd4EQLJKQEFCWzKcSJg 3Xv0L4bSvnooHu3VY+HYLQwTtKItTur2IvH1rFZMfCdDlsRhOkAws7c3vmHmUMZkluY6 jRnOvurtjyE2lGjYaVx+66rh8dvaJMHW9JI9JgM4jeCuP+m6wzEu7H9QE8MlS67vahBl SenWHIcN7wTvEApwG9n+N+5Nik6PnDGfzbtEMuGZ12AOQI+SZFZT5un2004Zb6U7ICjA vE4RQ/qcjFAOah4v6q+SvhnYJhYO0YNSqkO3icsQCjKosfSLXaW0P4LhDXJmNaAoTqZ+ 1MYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=rR26KoK3MUOtkIFXRmgzOSRF/AaxkVJzQqfchzBzQ/PfiRNck6cQ29YrXveEnwFFlJ EhIk4kwlz8EgIkWgzbWiFC1xPT34RlqWgVzKz/d3F4IC/6Z+xCPaVem1e1b0levEfpID sAcYh8ij78gMPrcjVr0XhG7pJexCKoo0fo38504rW7jmAQ026JAXU6DT1D6MkEeDc/8/ NQuvwtpXwWpQ8wowiRQ2/NuxdjUXukkNjNy/7a6m1uhTVMsRZzyZq2sXkKwXTXKnud1Y 1SVt1PH6zmZDqGTELKH+peRm1s5XhZlniIGqFcOqB5TTOF6wpxfZO8uYN1XWqvxKxuvJ /N4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5nDGF7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a633749000000b005307598826csi10334775pgn.87.2023.05.15.06.10.14; Mon, 15 May 2023 06:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5nDGF7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242136AbjEONEk (ORCPT + 99 others); Mon, 15 May 2023 09:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242064AbjEONEc (ORCPT ); Mon, 15 May 2023 09:04:32 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6F51FCD for ; Mon, 15 May 2023 06:04:31 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so123685521fa.2 for ; Mon, 15 May 2023 06:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155869; x=1686747869; 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=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=a5nDGF7rksHDgevXg2zyWmIWc8vj2V5NROKEZVW5SsCDhfUkFbh/HagIviZR+7JvI0 LTwBO0a2RSIYhHRNQ75PAfl7gwOmFDzd8iar6DtY91nhlhFuvOT6+ajuq19iZAzbzu3Q tjCm3FWOdHmDuT0XAonZWPFrGRKNfDZNZXXzWmixbYTdQF214lu9No8kgV5+C7WbS/PI 5wSkaqOs40/HPFF3Pv426msimLO/iA6tT89HztE3jMvgJnbUkqrFeqysE4+cu2aNoGrA 1LLctSnuZngzIDd2ohtPyN9Q/LbkzY4hsQSp7U5hkwRAGef5ReFS85WcqTbfIQrcyMCX S3Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155869; x=1686747869; 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=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=FJ2m6wBzrnRbUk97LNy2IabrfBrToO93XMsNtS6Eu7ppCuCJsNLP7jUXyY++AwHPo1 2blf5PItJtkQ5BMJMy9sB62yLtzYnxzbjmLjb22cllsynyHn6w3K7DI36VCMYiN7Bwyq 2VP0ADRHMU46f4xGCmJq+Xu0t+0ur8Y79B0733qATXWB32fxveaGtE2DCP0zM8fkwm8B Ps7+h/sNoCcchn3VIqtqjVM4hwbt3PFFCFNexAk+QyXavBl01rNWt/OtXM65C67MRpV0 HIkvvWm6N5m1dGW7NzlaSG/Qi88nBa9VRe7EuAUh/Rqmqq0t2IleinT0W+AEhWDAZtaT hs6w== X-Gm-Message-State: AC+VfDyxwE/8YahexqjOnSn42pOMCF+On6HK83visS7GHOxWXn91qJZA 0p1pm/ChmyxDI1wFOirjR8uAWw== X-Received: by 2002:ac2:46fc:0:b0:4e8:4abf:f19d with SMTP id q28-20020ac246fc000000b004e84abff19dmr6724908lfo.15.1684155869511; Mon, 15 May 2023 06:04:29 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:29 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:14 +0200 Subject: [PATCH 3/5] arm64: dts: qcom: qrb4210-rb2: Add GPIO LEDs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230515-topic-rb2-bits-v1-3-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma 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=1684155864; l=1837; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gmZbSh+JOUC+q5+4Lzmg2xUn1mIKUGv1YtKkgkYpX78=; b=fZAz1gy9ePR31Ep8NxEzX/W0TI0WEiBFUIeyMvp9kchEpAsW12jE3xheLtb/D+6lfseIw//GW +NHQruS5/M2DS4c3wnx0n0kdFILoBibvbEBjQaIYHdPKjHvZRNOpNK6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 36 ++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 9b539720f05d..eeee268ebfe2 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "sm4250.dtsi" / { @@ -30,6 +31,38 @@ hdmi_con: endpoint { }; }; + 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"; @@ -385,8 +418,7 @@ &sleep_clk { }; &tlmm { - gpio-reserved-ranges = <43 2>, <47 1>, - <49 1>, <52 1>, <54 1>, + gpio-reserved-ranges = <43 2>, <49 1>, <54 1>, <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; -- 2.40.1