Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp827846rdb; Fri, 23 Feb 2024 00:46:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxfbUs69BLbvSQrxRQIsue1Dif9Fe8gLl4un85/apFw54RpyTkBEbZzr15bIL3pXCOMaWFs9ox+q3SDMZyDtXfL1mj6pyQymLKuymTWQ== X-Google-Smtp-Source: AGHT+IHCDvP1AIY/SB3Q12iVXHkSzL+n7fzxeXNgPH/tghcd28kzpz/1Q7tcYuADTU6mTOYJfqyR X-Received: by 2002:a17:90a:9918:b0:299:2241:820b with SMTP id b24-20020a17090a991800b002992241820bmr1050496pjp.37.1708677996661; Fri, 23 Feb 2024 00:46:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708677996; cv=pass; d=google.com; s=arc-20160816; b=0ZqeI6yd1DwuPRUIrlBDDUOHe9pvOQ6fMg1KthWlq5F8z2Q891UQA+U0wh2cA7yAqK L/mJFiEKfBdjGVQngK5qFFVEAfFskPsWkc/s4XqDe5gg7AvkNvILZ5qmSUK4Y+ZDgsQI wV7zhbrFaIS3JBT2uZDy7o3gLkktSU+XsHx/OJB+LXCRDLjY/2o7pARqMxsDtDXCvgDP 4XcfKoiwynx6iJZyQZ0CoV0uDFebT0biIaEcU1E5MFbfQmSa5+WiN3FfUUvrTfuwc+3t 7uotNNQYdvl3bBB+GotLYMDXCgmccN4Q3kGzp5j22SZBYyp+pPzo/zJ56yAihO7u/nwD ibFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=hEGq1oJ4zxu3e9o83mqcMR6PF1dfT1+fQr2OnIq79zQ=; fh=liV2akj1zu2q8koL0aTdkmWHqGeF9rWyOSU+3tc3LpU=; b=kPf1KbdU/MhKyhSh0NhRcKeTyAQp46v22P/kUYd4175/dvULUmKg4CpmusQVKfsWRH A5RFRkvyMkUobEFex+qHSyQi9BE8iFIFn/JHjpuMg5ObrZTksRNPu0c3bAgO8vj6AXP4 wmpsO3+p4/ZeagN0ZPpbK7MUCih1+iAwGy3lBG13kSnigjk7PYI9enSkGhZ5Fipfvbn7 vasZRHgugrN6+mZxo+uw/O7dPpu3nXbTIeo7y47uNp/jHtBbi3GrP6tJI9+MeJX3aNEu aROuzPMLt0toQD8P0U/lN3GZZrQjfdAeOs8Fi7mF0qUYe8awCUeUrqQq96+oGu/p/C7T 9lhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=tYDKGXyT; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-77944-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q3-20020a17090a750300b0029718f62c01si804827pjk.1.2024.02.23.00.46.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 00:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77944-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=tYDKGXyT; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-77944-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz 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 5E89C286645 for ; Fri, 23 Feb 2024 08:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1762E19475; Fri, 23 Feb 2024 08:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="tYDKGXyT" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22BF618E1E; Fri, 23 Feb 2024 08:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708677990; cv=none; b=FaISb6QcpKcFTTwF6ZX5w6M6DOkWKKdeUo6zC0XpxEBqq6arBhD3OZW0sWOuZh1RO15G1cHCmg8YZMkcnMFdSmJLZEc8lAUVdbswY4tHA3oOWq24ckXBrJ0mHujWgmwfkLwbTEYq2nSxxWYdp9/9pxKceU3qt/K8EL7/SezcHGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708677990; c=relaxed/simple; bh=EZZPQchlQbMRgMLdaZSVRfWs5DMx2XOakjV6Hz3uCjc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u6OUgxfN3J5gF/LyvAacZ4JoQLif2LdTxzPzKVVvgDXFbDG9mYHyT2LHItRGOtHtcVV5FC0IpsdazK9ilHuR5BmDai+pPGfIiOhINZ2ADJzZkHZpAnWhGN3mqdisTSkw6anfSbEO5pDELO8HBV5qHP8sUJ+RAEBlHrtbN4jleqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=tYDKGXyT; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1708677986; bh=EZZPQchlQbMRgMLdaZSVRfWs5DMx2XOakjV6Hz3uCjc=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=tYDKGXyTUFx45Cfn4MxTIQ4wjmFHD/P+5LQ8Tv8lWgD9lkdtT3FOkBhEEyWWts15p NdK0gVmh6eiX1XcL39WrYugf7CrmeaVPEU3mcpfmHMTbimF+jrF2xM5GtbVsDSDBHq a3IKS0Xu+eifTUatSjo6DXYkh12/fb+JEgtO842c= Date: Fri, 23 Feb 2024 09:46:25 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Aren Moynihan Cc: 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: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Aren Moynihan , 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 X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED 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=us-ascii Content-Disposition: inline In-Reply-To: <20240206185400.596979-3-aren@peacevolution.org> 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? 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 >