Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4222502imu; Fri, 30 Nov 2018 13:10:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UFbZUZi4bVcX9Km3eZD8HlhuOmpu4na2mI0C7RvF60c05negoiZF12OpagecDfA5Ss+QLV X-Received: by 2002:aa7:85d7:: with SMTP id z23mr7395601pfn.205.1543612224267; Fri, 30 Nov 2018 13:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543612224; cv=none; d=google.com; s=arc-20160816; b=liWFoqP22332BJQHM5hWgBgf2ppPqiWwypocCambI89bTb60XtFvY2ArBOH4M0Of/V eFwQKbYt6BWSX5jTHNHxj4CAGineAYuXW9A9aJ+T8k6KzC8YxRgNcZD/70SLKWWKAiGA v7sF9W0ooh/wyobjgIIpuQF0U+PJjsmBo/OhDNBMnpQKhRhhc4plMz3sKMZ4ya60oHXq FH2tSlLRGUMF7+qIrEKX5Dv0VmkI9buB3Tz3DwHabIILJc/xG2n918ZcQWtH5xD1lwZH yDmiM9DgfF6iiaosiYNzm2lMNo8AIaeqB3hSZmGQpA+c6KET1w3VY2GBlU0fwRBgPnzy pi1A== 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=P8fgZ71pMR6uT2C/2qwyuHj03/mGO108tKnJyfwRxaA=; b=b9QfaWZe+SSAbQ4UTkrV46ZNqDjaLqYwDJLDRyL5oKGe27NZ6KyiLhKbGG/xvt0V9h oxGijET6zw6m2DzM7e/89M9LDW9YGpF6GB0nfkvvycjDpbC9+S4grJHvQq2fv+q6EQS6 V8K+j4k2so4J851Jz6R1Mt59tPYv/xn5RXRGTjhmamGwxxYIWIZA0R0crqDo+1DvA6u6 04bnhudvKR+LI78z52C1txkislQPxZ6eRCxOsZg4e50xmIYCrmrMQuJvPQd1BnfFO0Vp iVi49+E5oLHG2yD45ruMLXhgMkb+DHgsCLtUbUiUcN0iBO0vcyAsniSwH75085CltCXr mKfQ== 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 f16si5962725pgb.140.2018.11.30.13.10.08; Fri, 30 Nov 2018 13:10:24 -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 S1726728AbeLAISx (ORCPT + 99 others); Sat, 1 Dec 2018 03:18:53 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57522 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbeLAISx (ORCPT ); Sat, 1 Dec 2018 03:18:53 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E91668098B; Fri, 30 Nov 2018 22:08:11 +0100 (CET) Date: Fri, 30 Nov 2018 22:08:14 +0100 From: Pavel Machek To: Rob Herring Cc: Jacek Anaszewski , Linux LED Subsystem , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Baolin Wang , Daniel Mack , Dan Murphy , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields Subject: Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties Message-ID: <20181130210814.GA5756@amd> References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> <1541542052-10081-5-git-send-email-jacek.anaszewski@gmail.com> <5bea0eb8.1c69fb81.6b921.80e6@mx.google.com> <0a0b176c-4eb4-4b0e-6c3c-b3c6c8f5fff5@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" 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 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Pavel gave following examples: > > > > eth0:green:link > > adsl0:green:link > > adsl0:red:error > > > > So we would have e.g.: > > > > associated-vl42-device =3D <&camera1>; > > associated-network-device =3D <&phy1>; > > associated-block-device =3D <&phy1>; >=20 > Variable property names are kind of a pain to parse. Ok, would it be enough to have associated-device =3D <&whatever>? > Perhaps when LEDs are associated with a device, we shouldn't care > within the context of the LED subsystem what the name is. The > association is more important and if you have that exposed, then you > don't really need to care what the name is. You still have to deal > with a device with more than 1 LED, but that becomes a problem local > to that device. >=20 > What I'm getting at is following a more standard binding pattern of > providers and consumers like we have for gpios, clocks, etc. So we'd > have something like this: >=20 > ethernet { > ... > leds =3D <&green_led>, <&red_led>; > led-names =3D "link", "err"; > }; Basically every single device could have a LED associated with it ("activity"). Would doing it like this mean we'd have to modify every single driver to parse leds / led-names properties? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwBpr4ACgkQMOfwapXb+vL96QCfdY7k6J8earpw9VTU/PFyLHAg 0TcAn35xQjH4+gVL97ylZhidUy84B5+h =5ag6 -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--