Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1203616imu; Tue, 11 Dec 2018 14:46:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/X601hOEQHTJlQco98aOMyvuwLaNIthBTvV4hpYKFya7na0z4izYWv001CbC3uUHAnSs0W+ X-Received: by 2002:a62:1e87:: with SMTP id e129mr17886312pfe.221.1544568368934; Tue, 11 Dec 2018 14:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544568368; cv=none; d=google.com; s=arc-20160816; b=zX6IAOWHEINh1THNoztMIxvBccL8Mlo+ntXblsMAl7gPBSbMWjtjNGztAaTLIALKcf mjlutCqcpKoyMpZbGYT2ie/G88fUuUAwLqHyVaizId3uUkfchVUmd1my4juFPnamADUD /Ir8zhMIaVZSdAkoY3OjoXVdKSgI3SC1zXB77fFJPr0SWZUerArSTvYnUB2/xBEtyjfb QreWmlX7JPm3DUGZjw8Ypa9UCedD8aqw1qxAXisEmKMgWk8kn1dRF5+KppbyaZHY7//x J4Ri7ymvdckFigroQbo/qtAJgxZ87m4OIidNe5X0QskQKZS0m4ayLTNhXmnGaclGL2pg 4UMw== 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=iW72XLa7rYeF4sGxC+PxtiIIJ6WeoqWIxnb+/wbcMYo=; b=hXsVoP62q1j7mPu2PBBz9Wes+KauJc03Ln6ZByH0hmIsvdJk9PH2Jtcl/bqpmV9p8l jJ4HLQap4FtXD70/J2fq8hlZitFQzgynNcVmqfseCNbPYCrowNPBuOrUeQ1C0YTW6kIi LCMymZIJ1fBxkoNy0Gz4M+eT8e0wbbGUCNc51Z10MzvBj7kHem8HeFBAPilE3sMWgjOp I5S21lFoVLzO+Na4EssRlDE0XkJhZy5VXRNMIze+oiaCJkLexlqt96I9jiovaFNwOzb8 RBVHWxZaxrj5Pw4h69TfB/KZ2tKuklF1FtuibslgGFClFBTklb+zD74tMvbzApfR22T0 NUYw== 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 l4si13203953pgr.346.2018.12.11.14.45.54; Tue, 11 Dec 2018 14:46:08 -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 S1726778AbeLKWol (ORCPT + 99 others); Tue, 11 Dec 2018 17:44:41 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57291 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbeLKWok (ORCPT ); Tue, 11 Dec 2018 17:44:40 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C7F1580818; Tue, 11 Dec 2018 23:44:33 +0100 (CET) Date: Tue, 11 Dec 2018 23:44:37 +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: <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" 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! > > >> 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--