Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1212312yba; Thu, 4 Apr 2019 06:30:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDkkgGp70Zu9d3nTpfLuRtnMYGP/d9HTi8giyzvIyARM878QdLPDNE0gyBZsKdeLIQXhnA X-Received: by 2002:a65:4689:: with SMTP id h9mr5958601pgr.295.1554384633319; Thu, 04 Apr 2019 06:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554384633; cv=none; d=google.com; s=arc-20160816; b=0lX8xOMgRbMA120zy884y3D0PYoEUF7A3lCrtGaoPtwIXMFf+grbd/DNQiXUanbHdI HxIc4zUF3awGPyVOoYAVCJE2SgkApsorRSCFo46kqIAUSdI6IFnPcNwI4xUYXvVYFhXu Va1YVX0txZoUNRWlUQJjGgF8rCbej8NcsopFRtxgTW0HfkgOWNR8+y0ss2x9e3z0T0ia F2nSAztJl24cjT+rhLcAosKUxMXS4/6+9dkq1k0RClkI1Hx2dFDmNIjPR0dqxTf49NEj PPh/xNC6ENLoZ8RCO+1fNShwAus5SmqG3g7iQQ+JCLeXg1yb34EDIETnn3OIAM9G5418 BeKw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cORY3npb74gYBkLLp/YWKZL/sjhXQpztT/Gby1VeG5k=; b=G3F9QCj13xahTDkhzqZ1KAWMBKljfacBS2Z2vkYj2tSiFz6fvss3M0nwGEgOVSwpzJ 8qquS6vdDMXaMXyAkX8XE8IlSfVLvupWBkZV4j7GhtVFaX1wk2IrXe27xrxcHWPFC8CV aydFbUvwFVBJs78Y+4tAYt4RtYg1iNim1vyYu11Qrvjg9MHNGKd//fSJ4nWbkLRA5uSs Ccx3vnCBycixJ/0sFPeF7SRIDx559SGq7tLRGDNkxzy0yztpgN4k0RZGnTzhtpkn1Uc/ PGfybB57WzTLfBGFo0YptrjzxvtDgHjCmNwHaGXe+QfOAzYEiGBZRqn63RpHa/HzNMmi 9iQw== 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 f8si3741449pfd.105.2019.04.04.06.30.17; Thu, 04 Apr 2019 06:30:33 -0700 (PDT) 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 S1729514AbfDDN3j (ORCPT + 99 others); Thu, 4 Apr 2019 09:29:39 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60332 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbfDDN3i (ORCPT ); Thu, 4 Apr 2019 09:29:38 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7AE6F8053F; Thu, 4 Apr 2019 15:29:28 +0200 (CEST) Date: Thu, 4 Apr 2019 15:21:52 +0200 From: Pavel Machek To: Rob Herring Cc: Jacek Anaszewski , Dan Murphy , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Baolin Wang , Daniel Mack , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields Subject: Re: [PATCH 05/25] dt-bindings: leds: Add function and color properties Message-ID: <20190404132152.GA6124@xo-6d-61-c0.localdomain> References: <20190310182836.20841-1-jacek.anaszewski@gmail.com> <20190310182836.20841-6-jacek.anaszewski@gmail.com> <98c1a41e-77bb-5ffd-b5b3-772a28c0f0a6@ti.com> <796a13a7-fb8c-9b5b-6bd5-dfb7458731fe@gmail.com> <232b6154-cccd-c1f9-80c3-438098f3ab08@gmail.com> <20190328002341.GB22901@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190328002341.GB22901@bogus> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > +- function: LED functon. Use one of the LED_FUNCTION_* prefixed > > > > > definitions > > > > > +??????? from the header include/dt-bindings/leds/common.h. > > > > > +??????? If there is no matching LED_FUNCTION available, add a new one. > > > > > +- color : Color of the LED. Use one of the LED_COLOR_NAME_* > > > > > prefixed definitions > > > > > +??????? from the header include/dt-bindings/leds/common.h. > > > > > +??????? If there is no matching LED_COLOR_NAME available, add a > > > > > new one. > > > > > + > > > > > > > > I am assuming multi color can re-use this property as well? > > > > > > I intended it to be a string, but indeed it would be better if we will > > > make it an integer to be consistent with the discussed LED multi color > > > design. > > > > Going further, I wonder if it would make sense to make function also > > an integer. This way we could enforce use of LED functions known > > to kernel. > > I think if we did that, then we'd just need to keep label. I think we > need to allow for populating a string in DT matching a sticker next to > an LED on a device. Well, there's often icon next to the LED... and we already use "label" for something else. New property might make sense, but again, icons will make it tricky. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html