From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C8C0C43381 for ; Wed, 13 Mar 2019 12:33:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C64D0214AE for ; Wed, 13 Mar 2019 12:33:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="raZL76au" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbfCMMdY (ORCPT ); Wed, 13 Mar 2019 08:33:24 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54748 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfCMMdX (ORCPT ); Wed, 13 Mar 2019 08:33:23 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2DCXFwf118866; Wed, 13 Mar 2019 07:33:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552480395; bh=uGhrT844WRVLG1HOWRbrmE960LUGPSG+yb66vKihCts=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=raZL76auWKaSl4kbu7+rkZ/Ti1GZTyHfXy3BlcBlI3G7UGoYoNdIMSCcA2LoJaC5n QcOWRbjGlJL9q+Ds68f0LTjzZLo7EW7eARL1ZnqdiDxZBJ0p8r1T0Ex7Zy3W1MCbf0 G9crhVsIkvtDAx96Jw1CeY2tmesAkX9D4fNh+imE= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2DCXFdR054766 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Mar 2019 07:33:15 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 13 Mar 2019 07:33:14 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 13 Mar 2019 07:33:14 -0500 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2DCXE0Z001465; Wed, 13 Mar 2019 07:33:14 -0500 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.122.252]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x2DCXDU13372; Wed, 13 Mar 2019 07:33:14 -0500 (CDT) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v4 2/4] ARM: dts: omap4-droid4: Update backlight dt properties Date: Wed, 13 Mar 2019 07:32:47 -0500 Message-ID: <20190313123249.17258-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190313123249.17258-1-dmurphy@ti.com> References: <20190313123249.17258-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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(-) 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"; }; }; }; -- 2.20.1.390.gb5101f9297