From patchwork Sat Sep 9 04:58:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 9945187 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 94845602C9 for ; Sat, 9 Sep 2017 05:01:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86E41289FE for ; Sat, 9 Sep 2017 05:01:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BBFD28A00; Sat, 9 Sep 2017 05:01:26 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 DFBD1289FF for ; Sat, 9 Sep 2017 05:01:19 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=7Vcy6CQbwfW0PAv0BUQbVGGkOIoepnJFy8i78sccFuc=; b=hb9lcR7jSvX8fflq8ytWa1V7jv l5pSNIUFBIRjUW4eolcyWBcflWcPHNiUwcA8Bk9cBcvtSp+yWCgHvbRoT/tNNWAbyAz90TZy2+GCE yVyd76Rj3i3cTi0552tf7dM1I8nRWk1IfqP0n9wZV6uBHiEgn3dr/YWslXNo6bEs4sNbw72ptQyg7 CwVRrXKVPv7s40pRWwpCKYfxsKnX9t9OQA4V4WnHmYsKATbd2tQnnZDeilbe54hxZ7orAGmFoQ5UB QdKDnUhizx89slMRbSVm4IpccF5yjaPyzvdfD0AICHXY72+9aW40shjmAmF9VGlApcf7Akh0XdgJo X1o8kbBA==; 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 1dqXsQ-00015c-Jz; Sat, 09 Sep 2017 05:00:18 +0000 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqXrd-0008TS-3a for linux-arm-kernel@lists.infradead.org; Sat, 09 Sep 2017 04:59:31 +0000 Received: by mail-io0-x244.google.com with SMTP id 2so1966384ion.3 for ; Fri, 08 Sep 2017 21:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a8Ihgsd2BM6YjoWlDPnbks7/PDW8ryb4ar7n2ZJrGhE=; b=l7jP6bM6ikt1wqm1L5/R4C4D47v7dZpbosS8Vz5eCEnnWKW9Kswf9pCfLO2eNGtR3G CKF38xJPZjdvuz+c750sCn1JXQHnUZblnnWGeQlRo+n2t1/Wj4OD8omp+ecfd/4nk3i8 RQlUz9cIwS8EiYhuotn4QMBaOXefRo6j9dbCLiu5MHfcrkT4RPqbRDCzKTf2baLHlngG 1dvnWEjxwQoo1kDvRb47CssfNnHfW27vR+G1XWjwkbTWQd7Y/5i5FHrOHtKh6fvtVjco t4jSgsWdsfxQ7Vx4KFqYZ0hlEQCyC5Poeq3RcEq1v/X7HUoVx8YNs/DKVJy+yWNc7ezy SLlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a8Ihgsd2BM6YjoWlDPnbks7/PDW8ryb4ar7n2ZJrGhE=; b=tV0wOI8Cm7wI8clQzWRN3DPkRryUT/MqUoJ7+3rBLgLCITExy5OHubugYjvOX6qBay gJ/CzPrA5JVK80c+s1EtfW+xo5l+HNuSM8WUPtrxAsr2Xg/3skjR6S0ps71oe0EgbOyP k0tzebRb+lzQ42APt+EE7WXbGFEevG2/sLQFOMcvVjplbFs/HeqkyVTHhcb+VS8abldy wbYj+6TiBGlYnX3eSYSlBkjbm/NYATcd60TEdVLYtLJBt0JltyLiMq4b6BEvvj3bUzuZ JHS/Jp2trfekqLlvmTk9HOXtkVYcTsorMvcpgC8uthlCOqdYTWmadVChy5eVf3XU2xaJ 2PUQ== X-Gm-Message-State: AHPjjUjFMwVVpEDHQKWDF/EDcYnmAjiq996KJolJaodHxnsY99vgDNHE FXcNPmFkqMStOF6b X-Google-Smtp-Source: ADKCNb7RYRIstEPkrGz9nrO4aeAP2xZnsHiRoikBRLPLZu/9lG3yJQ7LfR88f+bLNDoO7MIzWZxbbQ== X-Received: by 10.107.84.2 with SMTP id i2mr1116701iob.122.1504933145585; Fri, 08 Sep 2017 21:59:05 -0700 (PDT) Received: from ubuntu16.lan (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id i33sm1874063ioo.7.2017.09.08.21.59.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 21:59:04 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [RFC 2/2] DTS: davinci: da850evm: Enable LCD and Backlight Date: Fri, 8 Sep 2017 23:58:55 -0500 Message-Id: <1504933135-29747-2-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504933135-29747-1-git-send-email-aford173@gmail.com> References: <1504933135-29747-1-git-send-email-aford173@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170908_215929_205884_9897CA83 X-CRM114-Status: GOOD ( 12.31 ) 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: Adam Ford , nsekhar@ti.com, khilman@kernel.org MIME-Version: 1.0 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 When using the board files the LCD works, but not with the DT. This adds enables the original da850-evm to work with the same LCD in device tree mode. RFC: Currently, I cannot get the backlight to do anything other than 100%. I don't get the userspace files to write the brightness. Any suggestions on what I am dowing wrong? RFC: The board-file version enables the LCD, but the only way I can enable the LCD is the disable the VPIF display. Should I use a new name for the this DTS file to maintain compatibility, or is there a better way to enable the LCD without losing VPIF Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 67e72bc..10df630 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "da850.dtsi" #include +#include / { compatible = "ti,da850-evm", "ti,da850"; @@ -30,6 +31,7 @@ 0x04 0x00011000 0x000ff000 >; }; + nand_pins: nand_pins { pinctrl-single,bits = < /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */ @@ -152,6 +154,50 @@ status = "okay"; }; }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 58 61 66 75 90 125 170 255>; + default-brightness-level = <8>; + }; + + panel { + compatible = "ti,tilcdc,panel"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + status = "okay"; + panel-info { + ac-bias = <255>; + ac-bias-intrpt = <0>; + dma-burst-sz = <16>; + bpp = <16>; + fdd = <0x80>; + sync-edge = <0>; + sync-ctrl = <1>; + raster-order = <0>; + fifo-th = <0>; + }; + + display-timings { + 480x272 { + clock-frequency = <9000000>; + hactive = <480>; + vactive = <272>; + hfront-porch = <3>; + hback-porch = <2>; + hsync-len = <42>; + vback-porch = <3>; + vfront-porch = <4>; + vsync-len = <11>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; + vbat: fixedregulator0 { compatible = "regulator-fixed"; regulator-name = "vbat"; @@ -240,6 +286,16 @@ }; }; +&ecap2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&ecap2_pins>; +}; + +&lcdc { + status = "okay"; +}; + &mcasp0 { #sound-dai-cells = <0>; status = "okay"; @@ -299,6 +355,6 @@ &vpif { pinctrl-names = "default"; - pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>; + pinctrl-0 = <&vpif_capture_pins>/*, <&vpif_display_pins>*/; status = "okay"; };