From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties Date: Tue, 11 Dec 2018 23:44:37 +0100 Message-ID: <20181211224436.GA27976@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> <20181130210814.GA5756@amd> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: devicetree@vger.kernel.org --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > >> 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? > > > > > > Normally, that's how properties like this would work. A driver is also > > > what knows how the leds should function. > > > > This is not true in case of associations where LED controller is > > an independent device, as in Pavel's example [0]. >=20 > I'm not really following how the HDD example is different. The parent > of an LED would be the controller. The link to the led node would be > in the disk controller node. Though maybe if things get complicated > enough, we'd want to describe the drives or drive bays in DT. We were talking case where the LED is on GPIO somewhere. And yes, drive bays would be similar. And.. often you have a single LED for multiple harddrives, too. Fun :-). 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 iEYEARECAAYFAlwQPdQACgkQMOfwapXb+vLnGwCgtFgGl73d1rwY7gfpcDZHaRP5 akgAoIRxzgT8UZQvLrRu5ZLyNwN/Q2xH =VpU7 -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--