Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp2023950rdb; Wed, 31 Jan 2024 17:28:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJweSW5hdffAWXkXj0gnA8faatiUuH2IMN2afzAGGY0i3JdFgtJDu3roPV48gPtWGN6oT1 X-Received: by 2002:a17:907:1742:b0:a36:84f5:5186 with SMTP id lf2-20020a170907174200b00a3684f55186mr1611458ejc.77.1706750928863; Wed, 31 Jan 2024 17:28:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706750928; cv=pass; d=google.com; s=arc-20160816; b=hc0uvd3c3CqBzK4GZaKlX5eDbRbwgg8u9eykiBdiR+0C+ZBHvc2BSsK/YYrMCDfHHa gataAa22sx1HCpopwg2KD820ipx0sRJKGFnME1KRCjMxJ80LO9bDSRhWw/pufQRsGBpa ZTg22qwRzmRU8MCLOUSsR0KB3aaMC6cY7rLSAhijr/xnxWlQWMS7uJTNpu0rgU3fZJI/ 1Dhba14z21pf1dc71hkbjnHBhFBgI2PyAqRVfRl/RUxFBhWcHR24x0o2hp1J/edCXwkI gZwBBCfSwMNjbqq4cnRIbkrbizw/aBCEpPaagB8Bz5CLL/TuxdP+9wIM1cEEtaDII0L6 /Iog== 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:cc:to:from:date; bh=PPAWFE9Bpec9jEfmyA4G2telwXR9/4WoySxFZmwvO+w=; fh=VL7/TZssY7lK/UwvP7sbfc61O18fo7Zp6zucSq1O95E=; b=EShAGKmJWWF7yP0p0oEd/LqBGxIB4zkauyN6JNJve7sIepJqofKIojRTcBKRBXxOQQ lssPhbFNBKnfXKLWw0RUyRxo3g2k3yPpt1UqgRZjEirjCHxB10WMRqQ/RUF3e1OHgyhH Rz/vdMdmRIhS9k0GdTs0YKSP7OgUsz+ZeH/GqWk+lSniINyhTWp0I2EUP4BmP7vdZfZx 9Y1dPAjHEn1cacx4d1g/+cAbZK45SL5knwrZvLHnGexZPKKWvTmnH4C6aOWqZeCa84Ph WesEI1qKP6udATvx7MJFY8kqpdHsdTohJYNOvcqJkmpBFOsG++guHQLkLrF0f9+eleld p3jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=XwksY1+h; 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-47497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org X-Forwarded-Encrypted: i=1; AJvYcCVDxMefrlpSDvUZyJKPPKObSwzCNOv3HUHqCPq9Kyaownn6erxtj7chveyEUkljVtTm2n22G/jZTJtdCAI54K5w4YafCFfDGJxMbdX0sQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u26-20020a1709063b9a00b00a35a09a326dsi3983211ejf.961.2024.01.31.17.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 17:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=XwksY1+h; 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-47497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47497-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 701251F2CBD5 for ; Thu, 1 Feb 2024 01:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C1404A32; Thu, 1 Feb 2024 01:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="XwksY1+h" 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 6A061442A; Thu, 1 Feb 2024 01:28:36 +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=1706750918; cv=none; b=HFj2DR9tOd8dNPLUaIU30c3/7LbNPA7GMIxpSmgmZin6LlQys3LEMyD7qiTeGTrH23a4KLj7/FL2VdFBwQTRb/ikndx10EEeI+1EWrajJ2HNdsLYe5UqM2qXkb/gEmC7Oy0S8r33Buf5wbDMbv67xCPIwSI8DNHgwGjzufWopj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706750918; c=relaxed/simple; bh=DKwMhOah1OGnoYC5YOW3jNwpZGhwqN1yjEEOJIn4jyI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tFRxcp+ppP4c1L9STFfFxV+MfH7Z+xOpodoB0w+2OmieCLviA4u5IqRcp2Ux6P2OsHGuzXMGhPI2WrrI3pSkb0601DHMx6FJOAHvhIB5LGT2PKF74vnulme70/5iRrYPQMXJMe2vgjm1wtNDtvlhDG8DUbXw5mZNpvsH1A+SDmw= 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=XwksY1+h; 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 25A3E4661F; Thu, 1 Feb 2024 01:28:28 +0000 (UTC) Date: Wed, 31 Jan 2024 20:28:25 -0500 From: Aren To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: linux-kernel@vger.kernel.org, Miles Alan , Ondrej Jirman , Chen-Yu Tsai , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 3/4] arm64: dts: sun50i-a64-pinephone: add multicolor led node Message-ID: References: <20240128204740.2355092-1-aren@peacevolution.org> <20240128204740.2355092-3-aren@peacevolution.org> <4864457.GXAFRqVoOG@jernej-laptop> 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: <4864457.GXAFRqVoOG@jernej-laptop> 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=1706750909; h=from:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:in-reply-to:references; bh=PPAWFE9Bpec9jEfmyA4G2telwXR9/4WoySxFZmwvO+w=; b=XwksY1+hGkHS+kXrChX85zoriu+GswucV939ztBtj7VLQC0OPz0dwlWKuZvJH1TlQRIi2l 1Gjf3ZwIYWUYBvF8yFdN82tavjLHH4iWy3Wrv0fsTbxLlrhlEHJ1FRod+AHb2bhyqZbSWU MxD0r1vLZQDdd5KWeyzp0kOAs4XVxiQ= On Tue, Jan 30, 2024 at 08:41:14PM +0100, Jernej Škrabec wrote: > Dne nedelja, 28. januar 2024 ob 21:45:09 CET je Aren Moynihan napisal(a): > > 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 > > --- > > > > .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 13 ++++++++++--- > > 1 file changed, 10 insertions(+), 3 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..6eab61a12cd8 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > @@ -39,21 +39,21 @@ chosen { > > leds { > > compatible = "gpio-leds"; > > > > - led-0 { > > + led0: led-0 { > > function = LED_FUNCTION_INDICATOR; > > color = ; > > gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ > > retain-state-suspended; > > }; > > > > - led-1 { > > + led1: led-1 { > > function = LED_FUNCTION_INDICATOR; > > color = ; > > gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ > > retain-state-suspended; > > }; > > > > - led-2 { > > + led2: led-2 { > > function = LED_FUNCTION_INDICATOR; > > color = ; > > gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ > > @@ -61,6 +61,13 @@ led-2 { > > }; > > }; > > > > + multi-led { > > + compatible = "leds-group-multicolor"; > > + color = ; > > + function = LED_FUNCTION_INDICATOR; > > Does it make sense to have function specified here and above? Example > specifies it only in multi-led node. I'm not sure it makes much of a difference, besides perhaps confusing userspace. From what I can tell the only thing it'll change is the name of the directory in sysfs from ":status" to ":". I'll change this in v2 unless anyone has a reason not to. Thanks - Aren > Best regards, > Jernej > > > + leds = <&led0>, <&led1>, <&led2>; > > + }; > > + > > reg_ps: ps-regulator { > > compatible = "regulator-fixed"; > > regulator-name = "ps";