Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp916484rbd; Fri, 23 Feb 2024 07:29:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVW4xDSyc0EP0p3W+TU1PRLJk5K/HttKd5WM1lfEYvxpG2unDak8kp9qS31FCGYth+NcuplE28DCoRk9XhALz/J/wnM0YoVEgOikCJkrw== X-Google-Smtp-Source: AGHT+IGM8yLoLxapvcOy1Dw3HRr/szK3akWj7L0Yfu9ybbL5qpvuRsrpUemarTMiG1FWgeV0nMfC X-Received: by 2002:aa7:9d10:0:b0:6e3:847d:3311 with SMTP id k16-20020aa79d10000000b006e3847d3311mr120215pfp.5.1708702149134; Fri, 23 Feb 2024 07:29:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708702149; cv=pass; d=google.com; s=arc-20160816; b=xTveU42vrv4DnlRmYJZxhEdfVpwEZlrxEE3lRLxjCqpm2z4MqZIHPxnuyMaKwozUef 88BP9CyhLZOrKbTyBuNh9on18Agrx9ltb/rx0x+DMFavHoch1HrsLFEN2LLiP+mvl0en FbuyXiEnDk4HcxkaBPsdlDfWGyoi1G2DEezTleG+YPOP5yHcNxYJ9TAk3AoQY4X4L7ag SHiLYOON42fcFciH6eeDuWNh4tEgMpamiolVWxtVMA0fDmibsqCca5zre1yBrSvO4c+4 Fg71tr5IJtdzFl8eqSqBGDStqZpEblS6iJI8zFprJeRsCCckajcv2lXgRRVpnLB7cWRC FKlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=dkim-signature:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:to:from:date; bh=/xPGKWu8KokBiTM1Ns88qRxeRkPSchgepjKoxnDo5og=; fh=jKI6PCW2z1mw8BPSkvSS71h3GffspUXqeKnVsQoASX0=; b=p3PD7MBRphTfb4XOEuoKzMdFLa12XpZ36utxC4T2phKC74N+QV4Sc58Ycu4vkCsa6Y NZXtZbjuXJhfRskH7yjtLO3Z9lR11GCdArhJ9bDICqXwMHnfYGaY0oENXQln/3qRuCI1 zE9W+5gPfmYzHbM70yFoOkEUb+pgtg8Rnnx26lskbfxmdUbov4tzayPsua1zfUqredfY R4frjp7p+e30NrTq4eAOH7euYl2Z9/CpLYmLXQJMWZXUn7DHTwqLA7xP+CIfCUjZAP8X Hn7HBOflHfwS5SgWtZgwy7eRRIEvVIxeC7c3449pdQYUWDCqwf95s0F5nfb++WEj4XOM w9nQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=BU34EUMB; 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-78607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ll9-20020a056a00728900b006de1e26adb5si11988288pfb.275.2024.02.23.07.29.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 07:29:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=BU34EUMB; 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-78607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78607-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CB813282E53 for ; Fri, 23 Feb 2024 15:29:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF5628286E; Fri, 23 Feb 2024 15:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="BU34EUMB" 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 4112C10A3E; Fri, 23 Feb 2024 15:29:01 +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=1708702143; cv=none; b=d++wb8kO1fBJZS4DRlxcBwpRN5pNUX5FskHyLq3YrANuv9pk/m2CClJ6fiiD3bC0lcAKN3zs5jGjcPGExwPgnBFhkaUhiJOgJn2fTmAz4N9Bi8SOQLBd0/bBd50J6nR+gABvTcnmJmz6Vhms/KprKk017ic9ehbIrBbbJtFljvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702143; c=relaxed/simple; bh=25P7JcxoGTkRa2dDDX/BuiwaEg9vmsf9zGtQolf4VMo=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WhowyCPTbwQVW8dtIL2jho4sIQ4pG9mGqdo84sFp1lH28z6zUTlkvSkHD1VA3joa4ub6PIGaH3OtD+umdbsPd2ms7fa43uixti/mlNAsJb4JakoKG79CSW9uIdhpq4WKlNvl14v313jM5hwbiv1kmZTjSpnVQLWpptkfMVStCXo= 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=BU34EUMB; 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 46802401E9; Fri, 23 Feb 2024 15:22:38 +0000 (UTC) Date: Fri, 23 Feb 2024 10:22:36 -0500 From: Aren To: =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, Jean-Jacques Hiblot , Chen-Yu Tsai , linux-sunxi@lists.linux.dev, Lee Jones , Pavel Machek , linux-arm-kernel@lists.infradead.org, Jernej Skrabec , linux-leds@vger.kernel.org, Conor Dooley , Miles Alan , Samuel Holland Subject: Re: [PATCH v2 3/4] arm64: dts: sun50i-a64-pinephone: add multicolor led node Message-ID: <5hqfabcolgqcu22hs3xnaimojwuz26tzi63px3rvbsgxa6kjss@ik42w7k26see> References: <20240206185400.596979-1-aren@peacevolution.org> <20240206185400.596979-3-aren@peacevolution.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spamd-Bar: / Authentication-Results: auth=pass smtp.auth=aren@peacevolution.org smtp.mailfrom=aren@peacevolution.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peacevolution.org; s=dkim; t=1708701759; h=from:subject:date:message-id:to:mime-version:content-type:content-transfer-encoding:in-reply-to:references; bh=/xPGKWu8KokBiTM1Ns88qRxeRkPSchgepjKoxnDo5og=; b=BU34EUMBKkMZj9cFgixCr6e8kpnC8CmyEaBxEXatlZ2lG+RNvZsrr/0A4pL7+pm6xSWq+Q hOCt2IrL/F7WJ5gastagvM/VAtEtUP5tI4RV7wNQSsFi4M2uBQR51LvKarznrxWXngCX+x ZaHL352QGXXAhOgqBatwFmIpHh816mM= On Fri, Feb 23, 2024 at 09:46:25AM +0100, Ondřej Jirman wrote: > Hello Aren, > > On Tue, Feb 06, 2024 at 01:13:19PM -0500, Aren Moynihan wrote: > > The red, green, and blue leds currently in the device tree represent a > > single rgb led on the front of the PinePhone. > > > > Signed-off-by: Aren Moynihan > > --- > > > > Changes in v2: > > - remove function property from individual led nodes > > > > .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++------ > > 1 file changed, 10 insertions(+), 6 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > index ad2476ee01e4..e53e0d4579a7 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > @@ -39,28 +39,32 @@ chosen { > > leds { > > compatible = "gpio-leds"; > > > > - led-0 { > > - function = LED_FUNCTION_INDICATOR; > > This looks like a needless change that will just break people's current scripts > and setup. It does mine, and there sure are others that will be surprised, too. > > This leads to a change in sysfs path from: > > /sys/class/leds/blue:indicator > > to > > /sys/class/leds/blue: > > which is 1) a weird name and 2) a backwards compatibility break for seemingly > no apparent reason. Any reaons for the change? Leds-group-multicolor will make those read-only, so that will break when it's enabled either way. Removing the function property makes it less likely that programs attempting to discover leds will use the wrong path. I left these in v1 of this patch, but was recommended to remove them. https://lore.kernel.org/lkml/k26bellccok4tj3kz2nrtp2vth2rnsiea677e2kzm56m767wjx@pnkqiz5hmiyb/ Thanks for taking a look at this - Aren > People normally hardcode these paths in eg. /etc/tmpfiles.d to apply LED triggers > to particular LEDs. > > Kind regards, > o. > > > + led0: led-0 { > > color = ; > > gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ > > retain-state-suspended; > > }; > > > > - led-1 { > > - function = LED_FUNCTION_INDICATOR; > > + led1: led-1 { > > color = ; > > gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ > > retain-state-suspended; > > }; > > > > - led-2 { > > - function = LED_FUNCTION_INDICATOR; > > + led2: led-2 { > > color = ; > > gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ > > retain-state-suspended; > > }; > > }; > > > > + multi-led { > > + compatible = "leds-group-multicolor"; > > + color = ; > > + function = LED_FUNCTION_INDICATOR; > > + leds = <&led0>, <&led1>, <&led2>; > > + }; > > + > > reg_ps: ps-regulator { > > compatible = "regulator-fixed"; > > regulator-name = "ps"; > > -- > > 2.43.0 > >