Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp683521yba; Mon, 1 Apr 2019 14:41:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHBWMDqdbyD9l6PNiNSnQNNyjEK4kkTz3my7JQZY7WacGj3i5x7Cr7gooh3x5qnt14B5mb X-Received: by 2002:a17:902:7893:: with SMTP id q19mr5231909pll.154.1554154896910; Mon, 01 Apr 2019 14:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554154896; cv=none; d=google.com; s=arc-20160816; b=amwReXutnX69EOlMp5QBzm2tTPLaBaFXPiYTN7iIrxsxV15GQ1GQ2L1LdwyOoX+OZp Z8LYXwvdkp4EghyGjqGGEozOLalJBV5iOwV4DfBDgFfcK8P+1ryRmtfWFMhTCZzxTDb4 VFNtvXnGt7R/30DQaIxgfWGU7Wr9mXGgOP/g3hq5G+XT1Nfu/3rALBOzyHR5Q/hrwCNe hSqYZXknipTTNfp2B/+an15DKNIA/Kbkr4/p3qPZq11WIm57CLNUXrdf1cJ7kxuMgGho tWJmIumW3N6pW4SogHJW/qfiUfhxdSWkUjrxVS7tOE4FpFQCeFjN5uooqIHO6BmabDBL aODw== 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=versntWyq9FMlkh1zGkwHFBwqsoUSxrTpckXdx/stO4=; b=tm3nhxNIcgFc03QcOJBMpePNvXV7VxPeZ6BV8DJMn5bvraEVb6ZTanS5orEnaQrAHy +xIgW2BmyAcGE66Cb38V9ehbde4I3VqfXGYCqpG+BZY2yrkX09DewGnjlAnwVT8bzboo w1WhVfyxvpYLwHIUDi1UjxPdrpqye+6Td3t9QBdU6QBmCEmgXb/imL5cFQrKVtVp+lrp QvCkHzYe3B+SfygI4ejfFdUa0RaM5VLJfkNuEhuStuNEsmIXpWlZOHlbsrV4lFQB3A4H iwBPqyNMCgMHv9Dr6yhnOPxMNRr/5iSW9ni6bWP5bwgv7YDoYXKXOuxwD5+K0NRipap4 q0hQ== 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 x6si9377225pfa.59.2019.04.01.14.41.21; Mon, 01 Apr 2019 14:41:36 -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 S1728543AbfDAVja (ORCPT + 99 others); Mon, 1 Apr 2019 17:39:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55638 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbfDAVja (ORCPT ); Mon, 1 Apr 2019 17:39:30 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B8F278084C; Mon, 1 Apr 2019 23:39:18 +0200 (CEST) Date: Mon, 1 Apr 2019 23:39:26 +0200 From: Pavel Machek To: Brian Masney Cc: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, robh+dt@kernel.org, jacek.anaszewski@gmail.com, mark.rutland@arm.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dmurphy@ti.com, jonathan@marek.ca Subject: Re: [PATCH v2 2/3] dt-bindings: backlight: add lm3630a bindings Message-ID: <20190401213926.GD14681@amd> References: <20190401103034.21062-1-masneyb@onstation.org> <20190401103034.21062-3-masneyb@onstation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0/kgSOzhNoDC5T3a" Content-Disposition: inline In-Reply-To: <20190401103034.21062-3-masneyb@onstation.org> 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 --0/kgSOzhNoDC5T3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2019-04-01 06:30:33, Brian Masney wrote: > Add new backlight bindings for the TI LM3630A dual-string white LED. >=20 > Signed-off-by: Brian Masney > --- > .../leds/backlight/lm3630a-backlight.yaml | 112 ++++++++++++++++++ What is that? Is it future of all the bindings? Up to device tree people, I guess, but... Pavel > 1 file changed, 112 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/lm36= 30a-backlight.yaml >=20 > diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-bac= klight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-back= light.yaml > new file mode 100644 > index 000000000000..42a8c59d237a > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.= yaml > @@ -0,0 +1,112 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI LM3630A High-Efficiency Dual-String White LED > + > +maintainers: > + - Lee Jones > + - Daniel Thompson > + - Jingoo Han > + > +description: | > + The LM3630A is a current-mode boost converter which supplies the power= and > + controls the current in up to two strings of 10 LEDs per string. > + https://www.ti.com/product/LM3630A > + > +properties: > + compatible: > + const: ti,lm3630a > + > + reg: > + maxItems: 1 > + > + ti,linear-mapping-mode: > + description: | > + Enable linear mapping mode. If disabled, then it will use exponent= ial > + mapping mode in which the ramp up/down appears to have a more unif= orm > + tranisiton to the human eye. > + type: boolean > + > +required: > + - compatible > + - reg > + > +patternProperties: > + "^led*$": > + type: object > + description: | > + Properties for a string of connected LEDs. > + > + properties: > + label: > + description: | > + The label for this LED. If omitted, the label is taken from th= e node > + name (excluding the unit address). It has to uniquely identify= a > + device, i.e. no other LED class device can be assigned the sam= e label. > + > + led-sources: > + description: | > + List of device current outputs the LED is connected to. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32-array > + - minItems: 1 > + maxItems: 2 > + items: > + minimum: 0 > + maximum: 1 > + > + default-brightness: > + description: Default brightness level on boot. > + minimum: 0 > + maximum: 255 > + > + max-brightness: > + description: Maximum brightness level on boot. > + minimum: 0 > + maximum: 255 > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + lm3630a_bl@38 { > + compatible =3D "ti,lm3630a"; > + status =3D "ok"; > + reg =3D <0x38>; > + > + led { > + label =3D "main-lcd"; > + led-sources =3D <0 1>; > + default-brightness =3D <200>; > + max-brightness =3D <255>; > + }; > + }; > + }; > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + lm3630a_bl@38 { > + compatible =3D "ti,lm3630a"; > + status =3D "ok"; > + reg =3D <0x38>; > + > + led-bank-a { > + led-sources =3D <0>; > + default-brightness =3D <150>; > + ti,linear-mapping-mode; > + }; > + > + led-bank-b { > + led-sources =3D <1>; > + default-brightness =3D <225>; > + ti,linear-mapping-mode; > + }; > + }; > + }; --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --0/kgSOzhNoDC5T3a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyihQ4ACgkQMOfwapXb+vIfoQCfcCWyn261+00n1ZKQWmnRY17y TXgAmwTgIztadic89rxpKLptExhxP5If =/ISU -----END PGP SIGNATURE----- --0/kgSOzhNoDC5T3a--