Message ID | 20230515-topic-rb2-bits-v1-3-a52d154a639d@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6911711vqo; Mon, 15 May 2023 06:14:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NzfhE5O2HLksIBqVorFq/pLcXO+UdbLVeQOfhb8HWpu6oXL5XVs4Uoa8xC2Yl408Yxtr3 X-Received: by 2002:a17:902:ed43:b0:1a6:6bd4:cd8c with SMTP id y3-20020a170902ed4300b001a66bd4cd8cmr31712612plb.25.1684156479497; Mon, 15 May 2023 06:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156479; cv=none; d=google.com; s=arc-20160816; b=za1p38lHC3tB+DFSPnPgNXWQGilCbzQ63ONR1RLngWD8UosFde5b5VKeBE2+u6rrLR kZ9jHqXfZCoAg2l/ZUdJPGBBfe7jGBwk80KTKEfmCJ1w2VTXUaI5Mjs8I72Xl0//VGXT GXYOPRXtYJSeZdtiggGR9ZsPOruaDx+kTt20eXplourm/olmW5em47J12XOJDLQFLuEs UWVOWc+6NJx+SSgeoRtOtFvl+VsJcKv+4w+atWtf0db4ZhVoUtxc6VXoPUs/NgocxQWX rmMBNlgy76nqd9iO16YMHzHeZrfPPNlkxS9MyJ0sF44+n2vMjBUbOwAkDVoNLT/2LDea 6TrQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a170902e54200b001a1f6671a6dsi17490236plf.397.2023.05.15.06.14.23; Mon, 15 May 2023 06:14:39 -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 S242137AbjEONEl (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Mon, 15 May 2023 09:04:41 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Mon, 15 May 2023 06:04:31 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so123685521fa.2 for <linux-kernel@vger.kernel.org>; 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 <konrad.dybcio@linaro.org> 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 <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Bhupesh Sharma <bhupesh.sharma@linaro.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765966064139084052?= X-GMAIL-MSGID: =?utf-8?q?1765966064139084052?= |
Series |
QTI RB2 features
|
|
Commit Message
Konrad Dybcio
May 15, 2023, 1:04 p.m. UTC
Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 36 ++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
Comments
On Mon, May 15, 2023 at 03:04:14PM +0200, Konrad Dybcio wrote: > Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > 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 <dt-bindings/leds/common.h> > #include "sm4250.dtsi" > > / { > @@ -30,6 +31,38 @@ hdmi_con: endpoint { > }; > }; > > + leds { > + compatible = "gpio-leds"; > + > + led-bt { > + label = "blue:bt"; > + function = LED_FUNCTION_BLUETOOTH; > + color = <LED_COLOR_ID_BLUE>; > + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "bluetooth-power"; > + default-state = "off"; > + }; > + > + led-user0 { > + label = "green:user0"; > + function = LED_FUNCTION_INDICATOR; > + color = <LED_COLOR_ID_GREEN>; > + 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 = <LED_COLOR_ID_YELLOW>; > + 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>, How come pin 49 becomes inaccessible here? Was this intended for the previous patch? Regards, Bjorn > <56 3>, <61 2>, <64 1>, > <68 1>, <72 8>, <96 1>; > > > -- > 2.40.1 >
On 18.05.2023 04:13, Bjorn Andersson wrote: > On Mon, May 15, 2023 at 03:04:14PM +0200, Konrad Dybcio wrote: >> Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> 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 <dt-bindings/leds/common.h> >> #include "sm4250.dtsi" >> >> / { >> @@ -30,6 +31,38 @@ hdmi_con: endpoint { >> }; >> }; >> >> + leds { >> + compatible = "gpio-leds"; >> + >> + led-bt { >> + label = "blue:bt"; >> + function = LED_FUNCTION_BLUETOOTH; >> + color = <LED_COLOR_ID_BLUE>; >> + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; >> + linux,default-trigger = "bluetooth-power"; >> + default-state = "off"; >> + }; >> + >> + led-user0 { >> + label = "green:user0"; >> + function = LED_FUNCTION_INDICATOR; >> + color = <LED_COLOR_ID_GREEN>; >> + 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 = <LED_COLOR_ID_YELLOW>; >> + 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>, > > How come pin 49 becomes inaccessible here? Was this intended for the > previous patch? It doesn't, the "remove" part of the diff is 2-lines. This reserved-ranges is totally bogus since introduction.. I can send a separate patch squaring it out. Konrad > > Regards, > Bjorn > >> <56 3>, <61 2>, <64 1>, >> <68 1>, <72 8>, <96 1>; >> >> >> -- >> 2.40.1 >>
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 <dt-bindings/leds/common.h> #include "sm4250.dtsi" / { @@ -30,6 +31,38 @@ hdmi_con: endpoint { }; }; + leds { + compatible = "gpio-leds"; + + led-bt { + label = "blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = <LED_COLOR_ID_BLUE>; + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bluetooth-power"; + default-state = "off"; + }; + + led-user0 { + label = "green:user0"; + function = LED_FUNCTION_INDICATOR; + color = <LED_COLOR_ID_GREEN>; + 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 = <LED_COLOR_ID_YELLOW>; + 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>;