Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp33736yba; Tue, 23 Apr 2019 18:54:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxymnpqCIOIcwiJ1LZyhNeE4i9Nx61cxB8820QNqhNWRve1XuMFyFzznf7uDCGYxl6iFOPX X-Received: by 2002:a65:558a:: with SMTP id j10mr27809983pgs.85.1556070850931; Tue, 23 Apr 2019 18:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556070850; cv=none; d=google.com; s=arc-20160816; b=epgcPhV8NMUlw4dr7f/COObi5HzLcuAQXatSAZ1XvLMkjGHkRnkD3lGTBHolWrP2u8 IVnQBTvyDbMe4j1G89NTowoUPoa8z4jDvZn9WMdPVeMlku/ncKBjr8X+8MxihK4+4Imj dPyH/IBpeM9cj2N14zsq+IztniAn2DdoWV1X4XQXpSZBKWtdAMLc5LaSSeuv8/n3k0+i pn77fKM6ZO4nxx4aA7ePU6V8R09PUd7y8fodkrBaLvC17rUBkO3Thagwv6WCetuR2tVP jQH4gGvAutkvMukzXqy0ig7HU6WMNw3Pke2O466NgWnXYVXDo20MKb3fxwxJRi8Al7+T jlKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hxN0txfcLxBltUifltTmXSrzprLyTrTeymv2y8qR3Lc=; b=WX7o/q3CtRcGTfWd2aqemfmt57ikbiCNs9vZnGP3MErbV3DrZRe8FlatpBc1T/P5R7 zDiAAb/OGlXtVJMKSyFn1M5IoOlRJwPdhG7z1M+2tfIVB8xHFFxq4s+HD9/oLcgEovH0 BAtFzcZB4aaE/cKNmXAHH1AFDCmrjLec64hBq6ZjjwD0X8/C7dyEJYywpb+3qE28HMyS I5GKCOKK8pWtuYrL1zzDjP17j9ioy56lzcMSSJlSha/KBKlyi91XhSHY7Rpjd8yoYeDj mZsnsrkOhzBwup4RB5hs+oe1isG57DWI3NlG0rxLhE3iCje5EJu3yCa5uaEzVgKSKrMx 9jMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pgw89Y1+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h89si17692428pld.367.2019.04.23.18.53.55; Tue, 23 Apr 2019 18:54:10 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Pgw89Y1+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729300AbfDXBxF (ORCPT + 99 others); Tue, 23 Apr 2019 21:53:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:49056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729009AbfDXBxF (ORCPT ); Tue, 23 Apr 2019 21:53:05 -0400 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFBE121903; Wed, 24 Apr 2019 01:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556070783; bh=x3TVKicgp13gQiB/D6y+092OpLcNHyBRyvRzFXik6N8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Pgw89Y1+BoZW/S8InwiAALyS8gHflLETLjFG/kniB6pE2is4XtX5r0RgEW1TyrqWY SJRx1DN6az5wOiii05mv5i43U/u4OxGW8upCFl+cubojbViej6eTlU2UV6RhgVXz8I oi87cFyrJNsFhQE0Xtc75uKN15J4duyo3n692lhY= Received: by mail-qk1-f170.google.com with SMTP id f125so5076273qke.6; Tue, 23 Apr 2019 18:53:03 -0700 (PDT) X-Gm-Message-State: APjAAAWPcS3xjO6NwF/Ked54c8nLIhlVtyJQNckgGrE+Hrt/ONDkHEUw uacZ2KELExNcx7eYJycBAXVyzKA7e+CnuKc7FA== X-Received: by 2002:a37:4b92:: with SMTP id y140mr22918682qka.79.1556070782893; Tue, 23 Apr 2019 18:53:02 -0700 (PDT) MIME-Version: 1.0 References: <20190418151143.26068-1-masneyb@onstation.org> <20190418151143.26068-3-masneyb@onstation.org> In-Reply-To: <20190418151143.26068-3-masneyb@onstation.org> From: Rob Herring Date: Tue, 23 Apr 2019 20:52:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/3] dt-bindings: backlight: add lm3630a bindings To: Brian Masney Cc: Lee Jones , Daniel Thompson , Jingoo Han , Jacek Anaszewski , Pavel Machek , Mark Rutland , Bartlomiej Zolnierkiewicz , dri-devel , Linux LED Subsystem , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Linux Fbdev development list , Dan Murphy , Jonathan Marek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 10:12 AM Brian Masney wrote: > > Add new backlight bindings for the TI LM3630A dual-string white LED. > > Signed-off-by: Brian Masney > --- > Changes since v4: > - Drop $ref from led-sources > - Drop description from reg of i2c address > - Expand description of reg for the control bank > - Drop status from examples > > Changes since v3: > - Add label. I didn't add a description for it since that'll come from > the common properties once its converted. > > Changes since v2: > - Update description of max-brightness > - Add description for reg > - Correct typo: s/tranisiton/transition > - add reg to control banks > - add additionalProperties > > .../leds/backlight/lm3630a-backlight.yaml | 129 ++++++++++++++++++ > 1 file changed, 129 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml > > diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml > new file mode 100644 > index 000000000000..e754df569365 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml > @@ -0,0 +1,129 @@ > +# 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 exponential > + mapping mode in which the ramp up/down appears to have a more uniform > + transition to the human eye. > + type: boolean > + > +required: > + - compatible > + - reg > + > +patternProperties: > + "^led@[01]$": > + type: object > + description: | > + Properties for a string of connected LEDs. > + > + properties: > + reg: > + description: | > + The control bank that is used to program the two current sinks. The > + LM3630A has two control banks (A and B) and are represented as 0 or 1 > + in this property. The two current sinks can be controlled > + independently with both banks, or bank A can be configured to control > + both sinks with the led-sources property. > + maxItems: 1 > + minimum: 0 > + maximum: 1 > + > + label: > + maxItems: 1 > + > + led-sources: > + allOf: > + - 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 that is allowed during runtime. > + minimum: 0 > + maximum: 255 > + > + required: > + - reg > + > + additionalProperties: false > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + lm3630a_bl@38 { Still needs: led-controller@38 > + compatible = "ti,lm3630a"; > + reg = <0x38>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + led-sources = <0 1>; > + label = "lcd-backlight"; > + default-brightness = <200>; > + max-brightness = <255>; > + }; > + }; > + }; > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + lm3630a_bl@38 { And here. With those fixed: Reviewed-by: Rob Herring