Message ID | 20240206185400.596979-4-aren@peacevolution.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1760115dyb; Tue, 6 Feb 2024 11:12:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1uhuNRr54lIQ2DCXJHuhh9Cjo05LdPmZaDYM7b2BO4G2J2wFBd3XoVUC8QXeyNl1MInk6 X-Received: by 2002:a17:90b:384e:b0:296:5e20:48bc with SMTP id nl14-20020a17090b384e00b002965e2048bcmr559284pjb.10.1707246771487; Tue, 06 Feb 2024 11:12:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707246771; cv=pass; d=google.com; s=arc-20160816; b=k5fxRecje9bpf7ILbnefJW7e0v2hhzfCZSj6KOYXbWhBcmM8o6ONssp81wqyg61WJO /45m0lJL0FreuTAYCxfpNL9zakV1b7pVPBguf/AwSdFFvT2SRkehBdASQgGVPczGuIpd HpqUzkyeLVkZC9ob1p1lAzNdBkoW7GcBq0eu6kToGfyEigikgx4a2vZnsOrAqo5Goeyv gonP4L9USeJ2aYqb82g3JMBWseVyuBk71Q3+DHyEb0TLWEH+V7yiEbQ4JlOz2ArvqjXI /SFfUlwFtX0KQJjfTIE0MKXsBIc4XD6LnmK9pYeY4sLqNimja+vsx+dBBOwD6mNKawj4 TTkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=dkim-signature:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=7Z+f/WZ4DkXoVZnfMaT27NbYFoy33khw5gBrGUb/KKw=; fh=7r+KiVbLb4w/KpejXxb31hm2EOt9Z6HO7pK9bFP9aCw=; b=zW3FfgMq63lDIoT8NUpxUyrPQi77gi36MmogpMPm+BleXJjbwUPCtcO1kH2f0pK3+Z JXlYO6EbU7fWeEOZHobFv9vFKuc38Cx/TXrnEThWqGNFDE/R8WolJzptQRkyp8h0jBP5 JFN+ruGuDeE7iJotNPPZ/zxkaI1G+8sPmMpx1NItFMLE9CvEC/WMW/H5nYgtOPwEuHgE HkI0fV+UpuTzqjzXW55mKrB8H/NsTphixl2cBPpX4hyPxWAuJImnHF0AlwOeMVq03UCh 27pv7tx4sbt0jyfIUW70nmh4BTy203zacXAXwxL0yK+/1ncuWgd2PB2JQQU9wWRlVcYY Niqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=E8H30nIC; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org X-Forwarded-Encrypted: i=1; AJvYcCUQUsXIvsWc+YYlZugt+0icWF4FiluOEOt7YhML1JQtLoCPh4Rn14+L1YYSmb/u9e+5q4LtQXWIj8WIYDlUys9xAYVulw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v20-20020a17090a899400b00296a1d0ce70si1517127pjn.18.2024.02.06.11.12.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 11:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=E8H30nIC; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55535-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0C30DB231AC for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 19:05:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EA5D1B947; Tue, 6 Feb 2024 19:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="E8H30nIC" Received: from a.peacevolution.org (a.peacevolution.org [206.189.193.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFCD71B803; Tue, 6 Feb 2024 19:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.193.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707246209; cv=none; b=MFm86Tu8mpi+uULjsMCYg2oKhewYjTKVzUEfQPmBdechZBWgDD1PLunyKY2VGS4HkXjqWanse1B+XUmQo+yGsZuK/vP/2Bc72EJp7QqzVgN97NhQv5xtC0aLbYnCNka9xKF10KsR9NqK7RuVlqUTJ6RPhD2ZUd74j7d2SgM9IUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707246209; c=relaxed/simple; bh=7R8s3dS4oPzpvS/xucheAR6yleyBZvEtG5Mu/F0LqNc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hCaXPeV0zVxmKL99j1kjj0xwV1Nmce7IIFBYkkm7rvh7eacBPLiA8AljmuPUIgyLXWTpoLOpkLfnC7ZUCAJgtjdCiU8ef9kp8S1CTt7XQvTbyqCL7fyB+pGx6Y+260m6RoMMq+xixYNFuEDnJ58Th7wrNcKg9ANC7TdbXidNpnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org; spf=pass smtp.mailfrom=peacevolution.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b=E8H30nIC; arc=none smtp.client-ip=206.189.193.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peacevolution.org Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by a.peacevolution.org (Postfix) with ESMTPA id B14B8465FF; Tue, 6 Feb 2024 19:03:25 +0000 (UTC) From: Aren Moynihan <aren@peacevolution.org> To: linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, Jean-Jacques Hiblot <jjhiblot@traphandler.com>, Chen-Yu Tsai <wens@csie.org>, Ondrej Jirman <megi@xff.cz>, linux-sunxi@lists.linux.dev, Lee Jones <lee@kernel.org>, Pavel Machek <pavel@ucw.cz>, linux-arm-kernel@lists.infradead.org, Jernej Skrabec <jernej.skrabec@gmail.com>, linux-leds@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>, Miles Alan <m@milesalan.com>, Samuel Holland <samuel@sholland.org>, Aren Moynihan <aren@peacevolution.org> Subject: [PATCH v2 4/4] arm64: dts: sun50i-a64-pinephone: change led type to status Date: Tue, 6 Feb 2024 13:13:20 -0500 Message-ID: <20240206185400.596979-4-aren@peacevolution.org> In-Reply-To: <20240206185400.596979-1-aren@peacevolution.org> References: <20240206185400.596979-1-aren@peacevolution.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: auth=pass smtp.auth=aren@peacevolution.org smtp.mailfrom=aren@peacevolution.org X-Spam-Level: **** X-Spamd-Bar: ++++ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peacevolution.org; s=dkim; t=1707246206; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=7Z+f/WZ4DkXoVZnfMaT27NbYFoy33khw5gBrGUb/KKw=; b=E8H30nICUV7C40BRiCbC6jW+dZaE//BwLh94pzcLV7Kc5gR2epg5O/RMLYX7l/sMytqls7 ix5lHv7U5TFFagxV1lB6MT2wn0s2z6rmXHNYaZuSILswCDEp+85E1mo7R8MZeZOrMftTBH AB0U6/So6MjmyopbyRqd/HJHIDjPvNY= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790177990528526379 X-GMAIL-MSGID: 1790177990528526379 |
Series |
[v2,1/4] leds: rgb: leds-group-multicolor: allow leds to stay on in suspend
|
|
Commit Message
Aren
Feb. 6, 2024, 6:13 p.m. UTC
The status function is described in the documentation as being a rgb led
used for system notifications on phones[1][2]. This is exactly what this
led is used for on the PinePhone, so using status is probably more
accurate than indicator.
1: Documentation/leds/well-known-leds.txt
2: include/dt-bindings/leds/common.h
Signed-off-by: Aren Moynihan <aren@peacevolution.org>
---
I can't find any documentation describing the indicator function, so
it's definitely less specific than status, but besides that I'm not sure
how it compares. Please ignore this patch if it's not useful.
(no changes since v1)
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Dne torek, 06. februar 2024 ob 19:13:20 CET je Aren Moynihan napisal(a): > The status function is described in the documentation as being a rgb led > used for system notifications on phones[1][2]. This is exactly what this > led is used for on the PinePhone, so using status is probably more > accurate than indicator. > > 1: Documentation/leds/well-known-leds.txt > 2: include/dt-bindings/leds/common.h > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> Sorry for late review. Please update subject in patches 2-3. Instead of "sun50i-a64-pinephone:" use "allwinner: pinephone:" (check commit history of sun50i-a64-pinephone.dtsi). Also rgb -> RGB, led -> LED. Last, please reword commit message to exclude links and just say DT bindings documentation. Note that I'll merge patches 2-3 once patch 1 is merged. Best regards, Jernej > --- > I can't find any documentation describing the indicator function, so > it's definitely less specific than status, but besides that I'm not sure > how it compares. Please ignore this patch if it's not useful. > > (no changes since v1) > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > index e53e0d4579a7..6d327266e6cc 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > @@ -61,7 +61,7 @@ led2: led-2 { > multi-led { > compatible = "leds-group-multicolor"; > color = <LED_COLOR_ID_RGB>; > - function = LED_FUNCTION_INDICATOR; > + function = LED_FUNCTION_STATUS; > leds = <&led0>, <&led1>, <&led2>; > }; > >
On Thu, 22 Feb 2024, Jernej Škrabec wrote: > Dne torek, 06. februar 2024 ob 19:13:20 CET je Aren Moynihan napisal(a): > > The status function is described in the documentation as being a rgb led > > used for system notifications on phones[1][2]. This is exactly what this > > led is used for on the PinePhone, so using status is probably more > > accurate than indicator. > > > > 1: Documentation/leds/well-known-leds.txt > > 2: include/dt-bindings/leds/common.h > > > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> > > Sorry for late review. > > Please update subject in patches 2-3. Instead of "sun50i-a64-pinephone:" > use "allwinner: pinephone:" (check commit history of sun50i-a64-pinephone.dtsi). > Also rgb -> RGB, led -> LED. Last, please reword commit message to exclude > links and just say DT bindings documentation. > > Note that I'll merge patches 2-3 once patch 1 is merged. Works for me - I'll go apply it now.
On Thu, Feb 22, 2024 at 09:57:00PM +0100, Jernej Škrabec wrote: > Dne torek, 06. februar 2024 ob 19:13:20 CET je Aren Moynihan napisal(a): > > The status function is described in the documentation as being a rgb led > > used for system notifications on phones[1][2]. This is exactly what this > > led is used for on the PinePhone, so using status is probably more > > accurate than indicator. > > > > 1: Documentation/leds/well-known-leds.txt > > 2: include/dt-bindings/leds/common.h > > > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> > > Sorry for late review. > > Please update subject in patches 2-3. Instead of "sun50i-a64-pinephone:" > use "allwinner: pinephone:" (check commit history of sun50i-a64-pinephone.dtsi). > Also rgb -> RGB, led -> LED. Last, please reword commit message to exclude > links and just say DT bindings documentation. > > Note that I'll merge patches 2-3 once patch 1 is merged. Would you like me to reword and resend the patches, or is it quicker for you to just do it when you apply them? Thanks for taking a look at this, - Aren > Best regards, > Jernej > > > --- > > I can't find any documentation describing the indicator function, so > > it's definitely less specific than status, but besides that I'm not sure > > how it compares. Please ignore this patch if it's not useful. > > > > (no changes since v1) > > > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > index e53e0d4579a7..6d327266e6cc 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > @@ -61,7 +61,7 @@ led2: led-2 { > > multi-led { > > compatible = "leds-group-multicolor"; > > color = <LED_COLOR_ID_RGB>; > > - function = LED_FUNCTION_INDICATOR; > > + function = LED_FUNCTION_STATUS; > > leds = <&led0>, <&led1>, <&led2>; > > }; > > > > > > > >
Dne petek, 23. februar 2024 ob 17:30:00 CET je Aren napisal(a): > On Thu, Feb 22, 2024 at 09:57:00PM +0100, Jernej Škrabec wrote: > > Dne torek, 06. februar 2024 ob 19:13:20 CET je Aren Moynihan napisal(a): > > > The status function is described in the documentation as being a rgb led > > > used for system notifications on phones[1][2]. This is exactly what this > > > led is used for on the PinePhone, so using status is probably more > > > accurate than indicator. > > > > > > 1: Documentation/leds/well-known-leds.txt > > > 2: include/dt-bindings/leds/common.h > > > > > > Signed-off-by: Aren Moynihan <aren@peacevolution.org> > > > > Sorry for late review. > > > > Please update subject in patches 2-3. Instead of "sun50i-a64-pinephone:" > > use "allwinner: pinephone:" (check commit history of sun50i-a64-pinephone.dtsi). > > Also rgb -> RGB, led -> LED. Last, please reword commit message to exclude > > links and just say DT bindings documentation. > > > > Note that I'll merge patches 2-3 once patch 1 is merged. > > Would you like me to reword and resend the patches, or is it quicker > for you to just do it when you apply them? Since Ondřej raised concerns, let's finish that discussion first. It's possible that this patch will be rejected. That would also mean new revision of patches. Sadly, this means DT patches will miss v6.9 window. Best regards, Jernej > > Thanks for taking a look at this, > - Aren > > > Best regards, > > Jernej > > > > > --- > > > I can't find any documentation describing the indicator function, so > > > it's definitely less specific than status, but besides that I'm not sure > > > how it compares. Please ignore this patch if it's not useful. > > > > > > (no changes since v1) > > > > > > arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > index e53e0d4579a7..6d327266e6cc 100644 > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > > @@ -61,7 +61,7 @@ led2: led-2 { > > > multi-led { > > > compatible = "leds-group-multicolor"; > > > color = <LED_COLOR_ID_RGB>; > > > - function = LED_FUNCTION_INDICATOR; > > > + function = LED_FUNCTION_STATUS; > > > leds = <&led0>, <&led1>, <&led2>; > > > }; > > > > > > > > > > > > > > >
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index e53e0d4579a7..6d327266e6cc 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -61,7 +61,7 @@ led2: led-2 { multi-led { compatible = "leds-group-multicolor"; color = <LED_COLOR_ID_RGB>; - function = LED_FUNCTION_INDICATOR; + function = LED_FUNCTION_STATUS; leds = <&led0>, <&led1>, <&led2>; };