From patchwork Mon Jan 21 21:56:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 156254 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6848703jaa; Mon, 21 Jan 2019 13:57:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4YsZZL1BHhxo2K869RrxynWoXDTDHkxZymYKRABgqCNTjDmpekDlWfyRL9kzHblV6RaIBO X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr32221501plt.106.1548107829198; Mon, 21 Jan 2019 13:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548107829; cv=none; d=google.com; s=arc-20160816; b=ulWRVZOaawFQWPxrTEUqSAWMqlGrMzscp/W38aP8E4cUD9bBkSyi1G7LTUPjlthRve n5OYZ1vrbUsTwyOR0TWCrMjQWtDcxM4HseW3nvTPGlDPMh72uVj8c21p6IAI0rfuAZ6P Tgoe9pLkuMoZMXYjQY1fSETA1t5e4ydp6Z0Dw2NM98aCN/gTf3VJ2w4w4HI6/jE2LPXk n0/psKHCS6ChTgBcloER4qkc878WMffBKEBFhP3YKetuHGjpj2crp1+tHnzvuWO/Qw+g SJW9thRIpJeL283XbmqTFWHg3nFuwN7bVnWkC1IhVNHlvVse9kwujXFuvQoBbTeJ6lfs vvfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=vZUVgoZnmxxbuVK8nJx5ZZH3vCBG764r6kHxrHVlZzU=; b=rUR3plqxiAzOFz0/B3sQn/xL1iONpfO1sdjq/ou0Ql4IZ9lucMRLidpwBbZSHU1RNx ZJy38mPPbtG8YT0MeckGAnjaXV3GwW2nC5UUqK+Kw2OnpDqbS0Oep5spBvPHoLgKaYga pILNkQAEkxBrW+IiaAW3Mbug5rrVJAEuR/UKg0T9vYCnme33/1nloVS+QAY2NGIB6PTo SWT9av98l95HAe2Xr/IF5QhFLq/7c+mZ6nvzMu+hcI8KvoGlRrY7jKd5W5xUOOesFnNq /7gQT3/zmC7ywCAT89Y7u7JR5SrBcFBnZ0+0bROLf1lDW/SoSXE2Ig2Rf2h9n+FEtyeY KI0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ar/3MbbM"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si14124932plc.40.2019.01.21.13.57.09; Mon, 21 Jan 2019 13:57:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@ti.com header.s=ti-com-17Q1 header.b="ar/3MbbM"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727803AbfAUV5I (ORCPT + 1 other); Mon, 21 Jan 2019 16:57:08 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59158 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbfAUV5I (ORCPT ); Mon, 21 Jan 2019 16:57:08 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0LLv4W0095345; Mon, 21 Jan 2019 15:57:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548107824; bh=vZUVgoZnmxxbuVK8nJx5ZZH3vCBG764r6kHxrHVlZzU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ar/3MbbMl5nOxILTHchBY+KFxPrxK93Hf7TdYPsN1geZ91bAbok3Wl6ZLO6yxQEOm JyLRhE1DfuUNsGgBx0ZBKuDxun/MXMvihIjytIpB1cEUvxVWSxxbGSnx2wb7QVZeFa oaIyanxNscj7LYmOM3gWTp+ZMTfuBdEfrmMxVkVQ= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0LLv4Ib125698 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Jan 2019 15:57:04 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 21 Jan 2019 15:57:04 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 21 Jan 2019 15:57:04 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0LLv4XW002298; Mon, 21 Jan 2019 15:57:04 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.78.123]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0LLv3U20736; Mon, 21 Jan 2019 15:57:03 -0600 (CST) From: Dan Murphy To: CC: , , , Dan Murphy Subject: [RFC PATCH 4/6] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers Date: Mon, 21 Jan 2019 15:56:57 -0600 Message-ID: <20190121215659.31125-5-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190121215659.31125-1-dmurphy@ti.com> References: <20190121215659.31125-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024 and the LP5018 RGB LED device driver. The LP5036/3024/18 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to obtain different colors independent of the overall brightness of the LED grouping. Datasheet: http://www.ti.com/lit/ds/symlink/lp5024.pdf http://www.ti.com/lit/ds/symlink/lp5036.pdf Signed-off-by: Dan Murphy --- .../devicetree/bindings/leds/leds-lp50xx.txt | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lp50xx.txt -- 2.20.1.98.gecbdaf0899 diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.txt b/Documentation/devicetree/bindings/leds/leds-lp50xx.txt new file mode 100644 index 000000000000..7bc6843ddba4 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.txt @@ -0,0 +1,143 @@ +* Texas Instruments - LP5018/24/30/36 RGB LED driver + +The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into +a LED group or control them individually. + +The difference in these RGB LED drivers is the number of supported RGB strings. + +Required properties: + - compatible: + "ti,lp5018" + "ti,lp5024" + "ti,lp5030" + "ti,lp5036" + - reg : I2C slave address + lp5018/24 - 0x28 + lp5030/36 - 0x30 + - #address-cells : 1 + - #size-cells : 0 + +Optional properties: + - enable-gpios : gpio pin to enable/disable the device. + - vled-supply : LED supply + +Required child properties: + - reg : Is the child node iteration. + +Required Child properties but only one should be defined per child: +Either one of these two properties are required for each node. The +property ti,led-bank takes precedence over the ti,led-module within the same +node. + + - ti,led-module : This property denotes the single LED module number + that will be controlled in the LED class instance. + - ti,led-bank : This property denotes the LED module numbers that will + be controlled as a single RGB cluster. Each LED module + number will be controlled by a single LED class instance. + There can only be one instance of the ti,led-bank + property for each device node. + +The LED outpus associated with the LED modules are defined in Table 1 of the +corresponding data sheets. + +LP5018 - 6 Total RGB cluster LED outputs 0-5 +LP5024 - 8 Total RGB cluster LED outputs 0-7 +LP5030 - 10 Total RGB cluster LED outputs 0-9 +LP5036 - 12 Total RGB cluster LED outputs 0-11 + +Optional child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + +Examples: +LP5018 and LP5024 example: +led-controller@29 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5024"; + reg = <0x29>; + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vmmcsd_fixed>; + + led@0 { + reg = <0>; + label = "led1_mod"; + ti,led-module = <1>; + }; + + led@1 { + reg = <1>; + label = "banked_leds"; + ti,led-bank = <0 2 5 3 >; + }; + + led@2 { + reg = <2>; + label = "led4_mod"; + ti,led-module = <4>; + }; + + led@3 { + reg = <3>; + label = "led7_mod"; + ti,led-module = <7>; + }; + + led@4 { + reg = <4>; + label = "led6_mod"; + ti,led-module = <6>; + }; +}; + +LP5030 and LP5036 example: +led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5036"; + reg = <0x30>; + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vmmcsd_fixed>; + + led@0 { + reg = <0>; + label = "led1_mod"; + ti,led-module = <1>; + }; + + led@1 { + reg = <1>; + label = "led_banked"; + ti,led-bank = <0 2 5 3 9 10 >; + }; + + led@2 { + reg = <2>; + label = "led4_mod"; + ti,led-module = <4>; + }; + + led@3 { + reg = <3>; + label = "led7_mod"; + ti,led-module = <7>; + }; + + led@4 { + reg = <4>; + label = "led6_mod"; + ti,led-module = <6>; + }; + + led@5 { + reg = <5>; + label = "led8_mod"; + ti,led-module = <8>; + }; +}; + + +For more product information please see the link below: +http://www.ti.com/lit/ds/symlink/lp5024.pdf +http://www.ti.com/lit/ds/symlink/lp5036.pdf