From patchwork Thu Mar 21 14:28:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 160793 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp870090jan; Thu, 21 Mar 2019 07:29:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb2Okl0W2ff9JYlGXOKm3rwGVIDOXcEszS/vxBuG1DWXawp1616+1bcpynATlWn6fZy+nu X-Received: by 2002:a63:561f:: with SMTP id k31mr3636899pgb.319.1553178554811; Thu, 21 Mar 2019 07:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553178554; cv=none; d=google.com; s=arc-20160816; b=iQlP+hklHiRcqtdriK+KYJPf5ouriW9h1i5kquXW6crEL9fzHiP2JbXSz08WcoHb7S +jWaCmt7Fjz7/tTmEKaH25hYf8z1MIJpMn1DglsTGvWZkq5EiclAmRGWvYeU+C/dxoau L3fsN9UwW+bWwC/lpXBY/vr9AQlRAOMBSJqijUQgzJXsXPo54DnbPC/0TgTJ72Io/K6G HK/sV9Bgg1nXBbC2/RLzHoe0DHGTjthCsSTsYxTRg6lxA9lWY2CILF5VeauHxdr3xlTY IiDLNFk7xH4pcCY6l+iswWP4fm/A94MaEVCOBfVBTluskgMdtXz0SQ8eAVcUbOWNlCV3 rKzw== 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=DGmYK0qNA6EMnV0LOh22qiWek2uuO8gQ4HNuRRy1iDU=; b=TKT3AJP5QgdIssVZa7HVL566r7939VBZAJPz/Dcmz5/oSusyjvFxmR6KcEcIuWJq36 AQxv5SPFjYOQNU4j/5Z3sNQF0NBxUHbtkGfI6/EObs4u5Qg8I/uU+JZcgs4KdvBJFDlr 1z9O6+tgfe3t0iVLeWTIJzcjGsLrjVP9qzAaf+x1IkPRfw9WjBwNvWu4b5gJ/yms6sRV 6r+y5MeJtEK3RI4PBJZAiJ9WGv8Nj/SlGeprjZAZQ7PbYnp7NqLa1xCOeITktUcWmDfS uHM0+ISL7Z9uLsdJJWGgg65UlROkj2lRWfsZT9+vdgkWRfdJDgJ2AWjsCpw3aQ1kS4Yj n8BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YBgR6512; 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 h35si4838507plb.180.2019.03.21.07.29.14; Thu, 21 Mar 2019 07:29:14 -0700 (PDT) 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=YBgR6512; 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 S1728283AbfCUO3O (ORCPT + 1 other); Thu, 21 Mar 2019 10:29:14 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:55428 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbfCUO3N (ORCPT ); Thu, 21 Mar 2019 10:29:13 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2LET5mg005405; Thu, 21 Mar 2019 09:29:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553178545; bh=DGmYK0qNA6EMnV0LOh22qiWek2uuO8gQ4HNuRRy1iDU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YBgR6512g7ClbzJVwPnqUvvBg3WuyQfi802b8U8HuEomVk/SlrRRPHYrMWgTXi1jH TVY9oXTh1EJ2vspjSmcu9cuLLImc0CfmuzR5DR5G71BwITC2pr1Ko8v9irGiJ06wFT H0cZlBu8AwJSZfqCX7Lmd++wwBibEgatZb3/wT2o= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2LET4lU032692 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Mar 2019 09:29:05 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 21 Mar 2019 09:29:04 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Thu, 21 Mar 2019 09:29:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2LET4Kx028900; Thu, 21 Mar 2019 09:29:04 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH 2/4] ARM: dts: omap4-droid4: Update backlight dt properties Date: Thu, 21 Mar 2019 09:28:36 -0500 Message-ID: <20190321142838.22985-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190321142838.22985-1-dmurphy@ti.com> References: <20190321142838.22985-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 Update the properties for the lm3532 device node for droid4. With this change the backlight LED string and the keypad LED strings will be controlled separately. Signed-off-by: Dan Murphy --- v5 - No change - https://lore.kernel.org/patchwork/patch/1050409/ v4 - No change - https://lore.kernel.org/patchwork/patch/1050125/ v3 - updated keypad label on v1 comment - https://lore.kernel.org/patchwork/patch/1049023/ v2 - Fixed ramp-up and ramp-down properties, removed hard coded property values, I did not change the label as it is undecided what it could be - https://lore.kernel.org/patchwork/patch/1048806/ arch/arm/boot/dts/omap4-droid4-xt894.dts | 26 ++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) -- 2.21.0.5.gaeb582a983 Acked-by: Tony Lindgren Signed-off-by: Tony Lindgren diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index e21ec929f096..aea206f04f76 100644 --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts @@ -383,20 +383,30 @@ }; &i2c1 { - lm3532@38 { + led-controller@38 { compatible = "ti,lm3532"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x38>; enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; - lcd_backlight: backlight { - compatible = "ti,lm3532-backlight"; + ramp-up-us = <1024>; + ramp-down-us = <8193>; - lcd { - led-sources = <0 1 2>; - ramp-up-msec = <1>; - ramp-down-msec = <0>; - }; + lcd_backlight: led@0 { + reg = <0>; + led-sources = <2>; + ti,led-mode = <0>; + label = "backlight"; + linux,default-trigger = "backlight"; + }; + + led@1 { + reg = <1>; + led-sources = <1>; + ti,led-mode = <0>; + label = "platform::kbd_backlight"; }; }; };