From patchwork Fri Dec 15 12:09:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 10114857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE89B60231 for ; Fri, 15 Dec 2017 12:10:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBE2629F3C for ; Fri, 15 Dec 2017 12:10:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AADEA29F3E; Fri, 15 Dec 2017 12:10:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DC3A629F3D for ; Fri, 15 Dec 2017 12:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gbc2ui26aebkMMDLHVbgoHUmc57Tx/pZqP60bUikoTI=; b=TF37TIc8xhkrTj AHxbqquC5Z+1jcGAxHHEY+bcqe/E+MI5o6MvlT8qN/aJVNZmQTbH7sYKhh+R7VPa/20vTTgvYGpeA 1pmaaxTTfgr3XEDRoaH46Zch9tPPDSaKfG0JgN6CkZGMD/HOn3Pe4I2yH472F38Jm4ZwkRMVbDU0x FqOJvWSvj7x2v8MkPQisaJDfxMttjJZYMD83BhrYWgcByvOM6mzBUiV9+I+ZOqdD/EFoD+bB6XpVJ F7rpRmdwZ4fqui8788an0tt1onEKHAIXOfW56gUVuszZptuQRomKRT4wOMUPpyeMhijk7CNuu0d1v 9HTjQ6TyrGmaHHtxnH1Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePooZ-0003ib-3c; Fri, 15 Dec 2017 12:10:07 +0000 Received: from lelnx194.ext.ti.com ([198.47.27.80]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePooS-0002mB-70 for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:10:05 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBFC9apr031561; Fri, 15 Dec 2017 06:09:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513339776; bh=7rd3Rifj3o69wh/YsEA3Buh+OX2GXsO5qX5bXq+csBY=; h=From:To:CC:Subject:Date; b=ZhpP4kSuiHvwmN9KiWX8fN5ghPNOcy40jHvrAzYpYNJRTwkKUPYnUR8iwuS3WSco1 fheA0oDfQpO9v0YQYGVkGbWe6l/w24eAdGUC3P4MxH0Q/eaOwy/OlXOM2s1ETm0WUZ CxVSp+vDiUDDOa4GHarapc3glyxqAxmbr85/yCng= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBFC9aYI017911; Fri, 15 Dec 2017 06:09:36 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 15 Dec 2017 06:09:36 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 15 Dec 2017 06:09:36 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBFC9YJ8023269; Fri, 15 Dec 2017 06:09:34 -0600 From: Peter Ujfalusi To: Subject: [PATCH] ARM: dts: am437x-sk-evm: Add phandle for the backlight for the panel Date: Fri, 15 Dec 2017 14:09:41 +0200 Message-ID: <20171215120941.21638-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_041000_442367_39C0B556 X-CRM114-Status: UNSURE ( 5.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-omap@vger.kernel.org, bcousson@baylibre.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With the backlight phandle the driver can manage the backlight on/off in sync with the panel enable/disable. Signed-off-by: Peter Ujfalusi Reviewed-by: Tomi Valkeinen --- arch/arm/boot/dts/am437x-sk-evm.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index 2c6bf0684f50..3fa3b226995d 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts @@ -35,7 +35,7 @@ clock-frequency = <32768>; }; - backlight { + lcd_bl: backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; brightness-levels = <0 51 53 56 62 75 101 152 255>; @@ -132,6 +132,8 @@ pinctrl-names = "default"; pinctrl-0 = <&lcd_pins>; + backlight = <&lcd_bl>; + enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; panel-timing {