Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2538990imm; Thu, 9 Aug 2018 15:01:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxsoVTQEB4gFYmUXSJo4Op+c5AKnmqX0gdFBFD0J+IuomujSIiP/gQ9LUHw5SZZQbPqgrVv X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr3510303plo.213.1533852061326; Thu, 09 Aug 2018 15:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533852061; cv=none; d=google.com; s=arc-20160816; b=aIamyu3Crd6SifBch9+uou0KDnTvawmfbCeq1+Rw9W1mcamXGoqU25rNXO9a8Ck9sb xmfMK4f5NrDVC9SIuK1n03O7FYxdR10pPsgMveUh7FIybFrJZwfZN69NQFN5CN8GcMk3 oOvTNRyzwXnYO+RQla+/MALaOcqObiawWxorqO/tCAOL4vV65xlqYcGTu6K3EJPW61j4 KllsxQPBzXk51dtbIcYEfYbgSUwBZ+Oz/cAo0qnwNKRQ06MZBgHC6Fs9OLQqnVPVj47a 2cHZpRmkKbQW5baI4IHLkuZKHgmn3BU1nmIhmnnO6yYSkxR0o31TLISwZyqxKsFNqegh chzw== 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:arc-authentication-results; bh=BHpn3rffgR9THwcM+4HdtnXoLu+biWzaAdkJzQ1F7i0=; b=ay7FR35/4tHBghOgMl1CqVXb5hbrDzPjukQ5kAWHIZILJ6XPKOLl3qMwvwdF7LTo3U I6ugyORzNF6ud1MVf43wFVA337GhWPzzC609ud58iSHu5m+Q9CAbpgXibPkkmqLWD7Hf 1kxigAYLZjcenOdfyOrK/Rar8/MqkVvNdDOzhoVFzVR3Y15OPxsEcq+KCV+DMcLyCpDh l28bb5X95DBVlKm/69YesfAq7EF8y/HcoQWur3O3U3DMkNW6RmhyB+Qbsk10THcfa90e T51ggUTPLHED+cmY4O7GMad6GKzpTQhzb3VUlSOMRbIybV5wQFp6k7Jb5D91mUeYiBt7 XxFw== 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 n13-v6si9006316pfd.50.2018.08.09.15.00.46; Thu, 09 Aug 2018 15:01:01 -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 S1727396AbeHJA0m (ORCPT + 99 others); Thu, 9 Aug 2018 20:26:42 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47608 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbeHJA0m (ORCPT ); Thu, 9 Aug 2018 20:26:42 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A474F80579; Thu, 9 Aug 2018 23:59:49 +0200 (CEST) Date: Thu, 9 Aug 2018 23:59:49 +0200 From: Pavel Machek To: Dan Murphy Cc: Jacek Anaszewski , robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt: bindings: lm3697: Add bindings for lm3697 driver Message-ID: <20180809215949.GA6949@amd> References: <20180807160442.8937-1-dmurphy@ti.com> <20180808195903.GB20912@amd> <20180808210215.GA15831@amd> <53691469-4554-42a8-c182-762c1a3939b7@gmail.com> <01bbf05a-8e5e-d3ce-857a-ac5c6efb779c@ti.com> <683f9e60-9ad8-93d8-e4ed-dbfdae78c307@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" 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 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Following node would describe strings connected to the outputs > > HVLED1 and HVLED2 controlled by bank A. > >=20 > > led@0 { > > reg =3D <0>; > > led-sources =3D <0>. <1>; > > label =3D "white:first_backlight_cluster"; > > linux,default-trigger =3D "backlight"; > > }; > >=20 > >=20 > > IOW I agree with Pavel, but I propose to use already documented common > > DT LED property. > >=20 >=20 > I agree to use the led-sources but I still believe this approach may be c= onfusing to other sw devs > and will lead to configuration issues by users. >=20 > This implementation requires the sw dev to know which strings are control= led by which bank. > And this method may produce a misconfiguration like something below where= HVLED2 is declared in > both bank A and bank B >=20 > led@0 { > reg =3D <0>; > led-sources =3D <0>. <1>; > label =3D "white:first_backlight_cluster"; > linux,default-trigger =3D "backlight"; > }; >=20 > led@1 { > reg =3D <1>; > led-sources =3D <1>. <2>; > label =3D "white:keypad_cluster"; > linux,default-trigger =3D "backlight"; > }; >=20 > The driver will need to be intelligent and declare a miss > configuration on the above. Yes. But please do it that way, it is still better than being different from all the other drivers. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltsuVUACgkQMOfwapXb+vL6AgCgpdcxeVKqePKdmWiOYRaOUAVE VwEAoLgZIng4U8cSvXmnb8KGob2nKzZ0 =Sv09 -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--