Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp464240pxb; Wed, 3 Feb 2021 09:26:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGAVINZiB/pP5crPpPtkw3mgO3HH5BpMg76F+R/RP5bbRWSm7oVT7raxtV5ryvPSea5XkE X-Received: by 2002:a17:906:2cd4:: with SMTP id r20mr4249701ejr.291.1612373219240; Wed, 03 Feb 2021 09:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612373219; cv=none; d=google.com; s=arc-20160816; b=W1wMPf/FAG0cb11x91vtC6svE1JO6WbgkPt4dCwdzOTJGGxTe16miVncjUj0i+Komr F+PhP0/iEM3aWjYs3o7Q0qPx/pkW886fg0suTbJYebJNXZg1OHVeYONxwPs3x0etPMQF wpfKK1zvjhMrzgEFoYomAwRowqDsy19Qj/2TbR0vfgjL8LLAKvjJS8o7j59nCUvOj0NX xydAAwjCMRp4+NhALLUQKl9Ch8tIywXvgHckuhRz0Ln9RvG8IMKG1wU9JEKWVtAyMj0e dfxuZcVlIBItRd8DuDV56Yw/N+sPbPW+BzcCjPPuD59EcYz4OKHOzth1u1VijqSt8alG IZ9g== 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=LcOr+wOLBeZ5B0Q9xFSvJuZz3tz2ryquHR1Tz+j22aQ=; b=sVxWRiuHmewGI+C4ZiOc6aL2VZf3VD7B6lMU3pOcD9ZJgbdgVKCI3LF20HwESLml4d vTjRIROe2cJ+xMGPVWWeIuUkvcBE/EWKEvJIpJG1MKbLblQ4CSzbvxhoQdAHRUrRbl9W 5yPEnn1BoRJJEPlYLDLsAX6B6gRlH7qIrqDUxSzv1lipJqjGaY+mqHdrrWOxb5637weE SRBpG2d+LU7MTxAp1rWcFlWQ+tjlEHKVciqDWWHqxZaEbs4V74xxjMxU5O5MHYkQEGWu 5zypowbug7plKw5mszCSg5M+eRYdAaaxMnzotizIGUW8knBgBqv4QLmegvif6bOlKZnt ytLA== 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 k21si1716848edo.563.2021.02.03.09.26.33; Wed, 03 Feb 2021 09:26:59 -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 S231281AbhBCRZK (ORCPT + 99 others); Wed, 3 Feb 2021 12:25:10 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:56186 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbhBCRYC (ORCPT ); Wed, 3 Feb 2021 12:24:02 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 542691C0B9C; Wed, 3 Feb 2021 18:23:02 +0100 (CET) Date: Wed, 3 Feb 2021 18:23:02 +0100 From: Pavel Machek To: Marek Behun Cc: Sven Schuchmann , Dan Murphy , Rob Herring , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1] leds: lp50xx: add setting of default intensity from DT Message-ID: <20210203172302.GB23019@duo.ucw.cz> References: <20210119105312.2636-1-schuchmann@schleissheimer.de> <20210203142940.GB12369@duo.ucw.cz> <20210203163555.GA23019@duo.ucw.cz> <20210203182137.339f8470@nic.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: <20210203182137.339f8470@nic.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > If I would not have the default-intensity I would actually see nothin= g, > > > since the intensity (which goes from 0-255) of each led is initialize= d with 0. > > >=20 > > > I hope I could clarify this a little more? =20 > >=20 > > Yes, sounds reasonable. Could we get default intensity of 100% on all > > channels if nothing else is specified? > >=20 > > Or maybe simply "if intensity is not specified, start with 100%, and > > use explicit =3D0 if other color is expected". > >=20 > > Best regards, > > Pavel >=20 > Is the property default-intensity documented in DT bindings? >=20 > Wouldn't it be better if the property was used in the multi-led node > instead of the channel node? I.e. > multi-led@3 { > color =3D ; > default-intensity =3D <100 0 0>; > }; Yes, this would be better. --=20 http://www.livejournal.com/~pavelmachek --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYBrb9gAKCRAw5/Bqldv6 8lwEAJ97DLDrkxgNNI43oTtWvfSARyO+lACgtaQJ/qjQH5PZCE9JZY03DGw5O/0= =2YLF -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI--