Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1180863pxb; Thu, 4 Feb 2021 06:59:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzroNo+9D7JuCmG+p0H4wZjUeiImWfyIPilI/nkg0fEp+tIPMmcfFSZo2x8940RZ0H9Szyi X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr5721647edb.280.1612450795297; Thu, 04 Feb 2021 06:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612450795; cv=none; d=google.com; s=arc-20160816; b=OCgxOwjIvbczl5TmJUSBaiE9udeUxHWbN/HMHU2Umt+OFrB96kQUmb5uieKo7uhdtj zoeSIBDX3fKYY9W1Fk4ceEmgDNx8LkCFOlKhIkSZmacJLktEvdTEOHrq7Nr84lIbo8Jb U6Dr03NITvXnPaZMJIi/QboIpbZ/Ll9qrm6htvjYSVRfBnh1JBVJpg6SzBRCB+EX3iVS BEOt9oMbUrTv/irBnHxNqnpDEDUOt+Fvqd/pqKKhqlftWUWgM2TCZVa9TM2e6k8LDwoY V24LPOJRrV4eOcFP9xuDnQV87H1iGCNo6ouJ1l5SOvHAvUW2uRfa3Tm6q7AxPt3n4VLT PIfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=HEdmqjw0cPlE3I5Df5t30g/4kym6MqgYDavfSSne3r4=; b=iH7l4OKOWnO7HAmdRNBNk14YRvOkbFsQAkX19LL5biuSfaS0AjRc2LA/GWhM8NWfjA N6G1a/Geoqc9p+wJZnERNxG8PfWrt7Nau7JnoGpNbwOtKaxiskH+4OiTayAICUs1/YID S1ezoys61pnF3eUD08lbuSBn5vYxTSeKPI1S6PMbFx8f4Nv75kGy9a8IleQ8ARYq2fic ZZsijfuqrJp8U7sGEYhWjQj69JNPUgIrRJyPmQ7nRYIU8Beu9y1TUkXpvj3H19ZwldyD HiF2d1sXfwvHYOz0VptvtfJ0CLcmt6jXapvt1OINlgqfAouNN79XlDpt6AaEatjurZT8 jxTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z24si2780343edl.286.2021.02.04.06.59.30; Thu, 04 Feb 2021 06:59:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236975AbhBDOzS (ORCPT + 99 others); Thu, 4 Feb 2021 09:55:18 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:44224 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236910AbhBDOwp (ORCPT ); Thu, 4 Feb 2021 09:52:45 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 046081C0B77; Thu, 4 Feb 2021 15:52:02 +0100 (CET) Date: Thu, 4 Feb 2021 15:52:01 +0100 From: Pavel Machek To: Sven Schuchmann Cc: Dan Murphy , Rob Herring , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] leds: lp50xx: add setting of default intensity from DT Message-ID: <20210204145201.GB14305@duo.ucw.cz> References: <20210204143726.27977-1-schuchmann@schleissheimer.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <20210204143726.27977-1-schuchmann@schleissheimer.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > In order to use a multicolor-led together with a trigger > the led needs to have an intensity set to see something. > The trigger changes the brightness of the led but if there > is no intensity we actually see nothing. >=20 > This patch adds the ability to set the default intensity > of each multi-led node so that it is turned on from DT. > If no intensity is given the led will be initialized > with full intensity. >=20 > Part 1 updates the documentation. > Part 2 removes an unused variable. > Part 3 sets the initial intensity to full. > Part 4 reads the default intensity from DT >=20 > diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Do= cumentation/devicetree/bindings/leds/leds-lp50xx.yaml > index c192b5feadc7..2bc25b2fc94d 100644 > --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml > +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml > @@ -65,6 +65,11 @@ patternProperties: > This property denotes the LED module number(s) that is used on= the > for the child node. The LED modules can either be used stand = alone > or grouped into a module bank. > + default-intensity: > + minItems: 1 > + maxItems: 3 > + description: Do we need more than three for RGBW and similar? > + The default intensity the multi-led gets initialised with. > =20 > patternProperties: > "(^led-[0-9a-f]$|led)": > @@ -99,6 +104,7 @@ examples: > reg =3D <0x1>; > color =3D ; > function =3D LED_FUNCTION_CHARGING; > + default-intensity =3D <100 0 0>; > =20 > led-0 { > color =3D ; Should this go to leds-class-multicolor.yaml ? Can you make example <255 120 0> or something like that, so make it clear it is not percent? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYBwKEQAKCRAw5/Bqldv6 8qDCAJ9wflBRRZLYVi6BEgHlTAhwQYyZVACfVYEypKKZM7iaduwzItW6tQ1Cgx0= =fnWV -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--