Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp140602yba; Mon, 1 Apr 2019 03:31:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvDABD0VwpIs46yMm+byIRBaEm/pKQSQ8q1U6QfPrERal1kfPrpdfqg77I0iA12DDIGTjm X-Received: by 2002:a65:654d:: with SMTP id a13mr61652962pgw.181.1554114699523; Mon, 01 Apr 2019 03:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554114699; cv=none; d=google.com; s=arc-20160816; b=Z3hl8luOcctQaH6XztrW/022un7RbmkSbOTUzSOoITGhj8O/fZHBjRoPMxLhATE7L9 LBdORwmRz5+vM77tRhH9eqOZWlUjw7MGQ7jBIOKDIe4dUDv6pJyVPOtH/E1nNfY4ln/D DBHEQ5PugvtfSYKOe3zKA7B/YldlQdi4dDUUVDczGN0Tt6gecU+Zl+8K0io26+GLC2pS 3nCj3uH7mTJvTWXF539CJtklIQj484rw+U7rKgG0kNhbJMGHy0BcW1qWEGyvCkGGGx2+ 4ikmd864yjgwGD4TTuj+u6ZcK2W4HWje/rZ8KE3papEvvHkGdOjdVRMYempxDymoWh5V WvmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w8GqDsOORSBmJtpcdpjAMOgpbvFW2YoeQvE8IASh6kQ=; b=UjqiWY1mhuCfM5iMkHkhe4AVbQN6H9AZlIZ6mG3mLM73JmtyDf8iqDIcKNYYd6BjI1 wn2nAik2Cs0+GMSMIYm67TyOlNU2fYmS/it3KpCsyaNprQcsVoYopsNHrg4WYqV3XJ/5 YxwqfFt6+zivVe2vFIKSXMb4z5ieTvSrX6VwJEhJ3414Q3As1SDzl/CfovfQzgaB7maw /hHYGr3mIz1BiNlB6HlpSZT750vEm+dSs+t7h+YQ0U/yRlXwBKuVVR1cuezUCaYyqrDs uznrAj5T8CKDQ9+TClTWG4IIPj5GxunyjVOpLiyUtDXKRHuOei30SayMtZ0N0PIBruAJ 1TOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=frMLJ+LO; 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 d3si8718139pla.399.2019.04.01.03.31.24; Mon, 01 Apr 2019 03:31:39 -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 (test mode) header.i=@onstation.org header.s=default header.b=frMLJ+LO; 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 S1726793AbfDAKan (ORCPT + 99 others); Mon, 1 Apr 2019 06:30:43 -0400 Received: from onstation.org ([52.200.56.107]:36876 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfDAKal (ORCPT ); Mon, 1 Apr 2019 06:30:41 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id D6E334571C; Mon, 1 Apr 2019 10:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1554114640; bh=MaQ72dM4520+ySIKlG5tbgDHj3EHxaDHTUGUZDJs7gQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=frMLJ+LOQ/SwroHGCUpg9OTXbwgFUiGZnos5PezPrXobFvwocjUeB+b23o7W/9faR FEIoUsjCbrJ1dw34VEBEz1521GLZtujVsJtgz5wuuZiwCNoKVDjRIWlscLvsfm2UiP uUrnIvynAMMKlODDwT2QD8w5cGiMwfLdS5LQJDXg= From: Brian Masney To: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, robh+dt@kernel.org Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, 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: [PATCH v2 2/3] dt-bindings: backlight: add lm3630a bindings Date: Mon, 1 Apr 2019 06:30:33 -0400 Message-Id: <20190401103034.21062-3-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190401103034.21062-1-masneyb@onstation.org> References: <20190401103034.21062-1-masneyb@onstation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new backlight bindings for the TI LM3630A dual-string white LED. Signed-off-by: Brian Masney --- .../leds/backlight/lm3630a-backlight.yaml | 112 ++++++++++++++++++ 1 file changed, 112 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..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 exponential + mapping mode in which the ramp up/down appears to have a more uniform + 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 the node + name (excluding the unit address). It has to uniquely identify a + device, i.e. no other LED class device can be assigned the same 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 = <1>; + #size-cells = <0>; + + lm3630a_bl@38 { + compatible = "ti,lm3630a"; + status = "ok"; + reg = <0x38>; + + led { + label = "main-lcd"; + led-sources = <0 1>; + default-brightness = <200>; + max-brightness = <255>; + }; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + lm3630a_bl@38 { + compatible = "ti,lm3630a"; + status = "ok"; + reg = <0x38>; + + led-bank-a { + led-sources = <0>; + default-brightness = <150>; + ti,linear-mapping-mode; + }; + + led-bank-b { + led-sources = <1>; + default-brightness = <225>; + ti,linear-mapping-mode; + }; + }; + }; -- 2.20.1