Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9258866imu; Sat, 29 Dec 2018 14:30:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN59YAjOWnDvUkAuTmqCIxcktX1lE7uO2g9aFoYdsnDPXbpPLb+CCbZRMu3TDWKg27HaVTnT X-Received: by 2002:a63:4c04:: with SMTP id z4mr2923675pga.312.1546122602910; Sat, 29 Dec 2018 14:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546122602; cv=none; d=google.com; s=arc-20160816; b=D4IKpYCZL3kLtLI3nLGdXi9soK2RiBD0YPu8LUtgvbzEk/JbYCRNd2Kdd6e+ekuJ1i VxXpX5AKdjOY43nPa8kxRPW/O3JUUI+xNPufizKWFYRGEfPPNbiT20xfvJMAzdVbSw2t riZofztZEMwlXbcJ/4RCJdnCgIE2Q60eXMGJ5/5/GOzdoNe1KT0nLweEAaUo2y3MhUKK Zg06I5qIkiG5gys6iQRIoLN7J2G8y2SSFc/wxZvR3tmTJ5OTrRkiVuHRSADryhY8S6zo TAvkqBQ3KtWjLuIS8P8lF8Vx2Im09trFJi/kGEFsRKGa/W9Oab9lJIYHPw1jyjQTfTVt RkRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CYWGRPTTZ6K8FVrDJ1Blid7RBklHDp7zj8uo1UawnE4=; b=SZrXEtCKx0Z6dpbiusPmHqgLkjHZw44kEZ3rBmRJqwNgoCFp+z7VUQlnBc4JbmT2eM 9BqLkVxbTUMVJeTjVO/AaCuiejoe9HanakZDJdZX+ao2Edn3vUKtev55fFiPPBPPz1Il vUbusreoDrJfCp4on67CDMTxodvKrPGTP80RsPGEdYfhKK4ZC2sCcjD+7+Fv9FOxPqlx FJd3hIi/lWWtm40d3s6iYXA38Zlj4a1Fg/Ph+ji+MLqc1oDvUFPRt84Wrt8CCCGfwZXZ d02OlAvgOUIiYMmRwzBEHtmKjaDKSk+ou3X2ECQL2h3zwxUIj0czRgUnk2GOzhD7M8b6 F7LQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91si43182175pld.395.2018.12.29.14.29.46; Sat, 29 Dec 2018 14:30:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727848AbeL2THa (ORCPT + 99 others); Sat, 29 Dec 2018 14:07:30 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60675 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727619AbeL2THa (ORCPT ); Sat, 29 Dec 2018 14:07:30 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B895680814; Sat, 29 Dec 2018 20:07:22 +0100 (CET) Date: Sat, 29 Dec 2018 20:07:26 +0100 From: Pavel Machek To: Jacek Anaszewski Cc: Dan Murphy , robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver Message-ID: <20181229190726.GA29851@amd> References: <20181219193455.GA21159@amd> <8740cfd6-a6b5-ad27-313b-984a9febf18a@ti.com> <20181219201047.GA23448@amd> <54f28115-0a7d-8e9c-3bec-6e91fb3981ec@gmail.com> <71d3ac12-5beb-0a26-71e1-5eae798e7b9f@gmail.com> <2bca210b-76ad-d5a9-906c-4151695050c3@gmail.com> <45ce01f0-af6e-1cc6-5126-fb557c7d2a82@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>With the "color" sysfs file it will make more sense to allow for user > >>defined color palettes. > >> > > > >I think defining these values in the device tree or acpi severely limits= the devices > >capabilities. Especially in development phases. If the knobs were expo= sed then the user space > >can create new experiences. The color definition should be an absolute = color defined in the dt and > >either the framework or user space needs to mix these appropriately. IM= O user space should set the policy > >of the user experience and the dt/acpi needs to set the capabilities. > > > >I do like Pavels idea on defining the more standard binding pattern to "= group" leds into a single group. > > > >Maybe the framework could take these groups and combine/group them into = a single node with the groups colors. >=20 > There is still HSV approach [0] in store. One problem with proposed > implementation is fixed algorithm of RGB <-> HSV color space conversion. > Maybe allowing for some board specific adjustments in DT would add > more flexibility. >=20 > [0] https://lkml.org/lkml/2017/8/31/255 Yes we could do HSV. Problem is that that we do not really have RGB available. We do have integers for red, green and blue, but they do not correspond to RGB colorspace. Anyway, this should not be driver specific; all drivers should use one interface. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwnxe4ACgkQMOfwapXb+vLLuQCgsyA/q+pXpxpRmzHx11NczCI6 Lg8AnRKIDTsN4WEaM0y3R9pl1m6AeVpJ =BqLo -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--