From patchwork Fri Mar 8 20:09:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 159996 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp9138467jad; Fri, 8 Mar 2019 12:09:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwcr/6YlJ0/hL/y70eeGCz8DCV02kqaLCKH3vnVITe1PygBJxWK7l1qpf8T4fGk+APS6MLZ X-Received: by 2002:a63:ce07:: with SMTP id y7mr3239938pgf.44.1552075778144; Fri, 08 Mar 2019 12:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552075778; cv=none; d=google.com; s=arc-20160816; b=EANo8kkziWcKPNyvzbIorPHDO01f+ZK+XV5mtMnWPlnnXaW/Zz8ixf2YjN4GWN/I9i QGwAaDVH/tYXPAro0BgaAl8XKfr84gxuywfjnFy22sPZfG1AzvESW/oqwm8FEMlzFfNH 1Q32pwYDOc/NlQZxTQswqqvb9yMYTp+CACwCq2/vMVdYf+tOCo0eloQdE3Q8xS88k9WP qZfNL7UGwIFGBRoo1+4jlUfYnkRI0vFf0AmIiwdPxZzlBTvHK4QUwF+0QUxySyD8h3DZ sj4lQFfKPoVug2WGjuGkk9yxmwUjPdOoDkaPMHkcRrWgBS2s2VVA3g91uxuqCI1rL/o2 fQsg== 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=AN6+ejbwcQETgTKPgrWP3Y8paUoBG35IB+5PUy+YjAA=; b=ifeX8KC9OmOSz0NfrwM7btOfzWh3xiie6cYtytY/TrjPp9Lazq5PtPB4rzu867rl5M KC+1tbr9HqK3ZnB3YhCYjXmhHgGrsrQoYeyMZ1KIQUjCAOIH+GYtp5qeqlyDXdX9ERvh Az3nLDjOvtwTUYpBiMI+88vuLc460XEEeQh4R+JQ6WXzZHrMbW9Ocy+HEzcTNh5AW0if /IW87JYbCZHjlTlowPWfVApyslXVPkiDwdUvdehU/RfS7puG209uFXgX9skTGJdRG8du 3zkKdC1Hms2fYnESicElIGm+y+x5JG2Lo4evSO4n0KP/XWz6kwA1KhXI779DGa1vFuC5 XDMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jlAWMYZs; 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 o24si7291502pgh.114.2019.03.08.12.09.37; Fri, 08 Mar 2019 12:09:38 -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=jlAWMYZs; 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 S1726808AbfCHUJg (ORCPT + 1 other); Fri, 8 Mar 2019 15:09:36 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54552 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfCHUJg (ORCPT ); Fri, 8 Mar 2019 15:09:36 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x28K9SJi088299; Fri, 8 Mar 2019 14:09:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552075768; bh=AN6+ejbwcQETgTKPgrWP3Y8paUoBG35IB+5PUy+YjAA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jlAWMYZsqV3wN0nBpNCDdonL01mQhAFEZG2E2yxoY7YqNNpCNYifkzHJrFQ1kzT19 AKHE2mnQGn4r6AuHlzyz2atPh7MNCGkMXcBeeNv5wMLBNIelfCijF2pyAB7ukNFYIh IM2aJxhbRhQCTt9n2HtGDrZDXpoYK9gTfi5fKhPI= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x28K9SmW076140 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 Mar 2019 14:09:28 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 8 Mar 2019 14:09:28 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 8 Mar 2019 14:09:28 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x28K9S0v017926; Fri, 8 Mar 2019 14:09:28 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.114.154]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x28K9RU27885; Fri, 8 Mar 2019 14:09:28 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v2 2/4] ARM: dts: omap4-droid4: Update backlight dt properties Date: Fri, 8 Mar 2019 14:09:10 -0600 Message-ID: <20190308200912.28163-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190308200912.28163-1-dmurphy@ti.com> References: <20190308200912.28163-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 --- 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.20.1.390.gb5101f9297 diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index e21ec929f096..71e1a90dfe4d 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 = "keypad"; }; }; };