From patchwork Mon Oct 31 14:45:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9405595 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 B0A40601C0 for ; Mon, 31 Oct 2016 14:50:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BC9029168 for ; Mon, 31 Oct 2016 14:50:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 904AD291E0; Mon, 31 Oct 2016 14:50:51 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EC9A29168 for ; Mon, 31 Oct 2016 14:50:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1DtJ-0006e4-85; Mon, 31 Oct 2016 14:48:49 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1Ds4-0006JY-AB for linux-arm-kernel@lists.infradead.org; Mon, 31 Oct 2016 14:47:33 +0000 Received: by mail-wm0-x230.google.com with SMTP id p190so151826152wmp.1 for ; Mon, 31 Oct 2016 07:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UYZFMkHtCr8vjfOk1B4YrY5fFjT9dx/mwskJX3bOQ3s=; b=JKmUMWdMf/GKfUHoDol1j2sieo2FWkFn9lmMkEPrzPBIJXhkJvBVlVKg6P6fxBzfYM N1D8VekR+NRgTZPy4Vc0rwNPKtwttHLGGTFlPA2qHGPf9koPBd5v+pxbWfifNHLSriMX 7jIni4V6onvJWFrXejBjgnCtpiLU4Fmi9MeyVtRWXrhPLrpuv1vxxK16ptMDW4qzuPO7 85pzlG1gCYGa2DTHywmBkLHAglVAtPVK5aAncU/HSH5AVOFTqscacC31UoixD7WdNdSw Y/Bny08X3SWxlYRssMdtYTAYjbUpcIhS6l3f5SYNSsW5ABj5vffRUc+lSHwsYgs+nFtD gimQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UYZFMkHtCr8vjfOk1B4YrY5fFjT9dx/mwskJX3bOQ3s=; b=nJy5nCclc4okYDjatq4pHb9r6qXS97fKryiq4si3wIzvm1Vf883FCxg/14qQi+I3xD 7YrHArDwi0FPyAGWr9P7XRK42+l2bA/WxKU2jBQ4synbFOdoSERi+sBmBPMbgV6S+a4c Fa9uEmtO4oNPU3ND7SiE7evkqlSbB8mLjWSIOr9Llmt4hRAuDZMHthvL9gT04iWIFKhz PCSNBnUvohxBGYmweJGVo1gqxdFAFuzeVz5DiieOkvrUPcpRXri+4mP21df11SFSwGKP 1MYV8C1+X0U7YQ1o8NwFXhJUkicnRZXn59+Eqze31U7J4sdOxpCJB0SjJfJFnlTSD6Tj w2SQ== X-Gm-Message-State: ABUngvd/ujcc99JLNOMUtMPq9SXmob3iYNitdXQnppz/6xHI0njMsU7hj99T8X3szfbkdbH4 X-Received: by 10.194.111.229 with SMTP id il5mr21364493wjb.135.1477925230300; Mon, 31 Oct 2016 07:47:10 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 1sm25129100wmk.22.2016.10.31.07.47.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Oct 2016 07:47:09 -0700 (PDT) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH v2 5/5] ARM: dts: da850-lcdk: add tilcdc panel node Date: Mon, 31 Oct 2016 15:45:38 +0100 Message-Id: <1477925138-23457-6-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1477925138-23457-1-git-send-email-bgolaszewski@baylibre.com> References: <1477925138-23457-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161031_074732_621270_25508A34 X-CRM114-Status: GOOD ( 13.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-devicetree , David Airlie , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , arm-soc , Laurent Pinchart 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 The tilcdc driver is not yet ready for working together with the dumb-vga-dac drm bridge. While the work on enabling drm_bridge support in tilcdc continues, enable the VGA connector on da850-lcdk with the following workaround: use the tilcdc-panel driver with a set of common (and tested) resolutions. Once the drm bridge support is complete, we'll remove the node added by this patch and use the correct solution. This change will be transparent for the user. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index b39796e..df582c6 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -62,6 +62,65 @@ regulator-max-microvolt = <5000000>; }; + /* + * Remove this node once the tilcdc driver gets support for + * drm bridge modules. + */ + panel { + compatible = "ti,tilcdc,panel"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + status = "okay"; + + panel-info { + ac-bias = <0>; + ac-bias-intrpt = <0>; + dma-burst-sz = <16>; + bpp = <16>; + fdd = <255>; + sync-edge = <0>; + sync-ctrl = <0>; + raster-order = <0>; + fifo-th = <5>; + }; + + display-timings { + native-mode = <&svga_timings>; + vga_timings: 640x480@60 { + clock-frequency = <27500000>; + hactive = <640>; + hback-porch = <90>; + hfront-porch = <40>; + hsync-len = <128>; + vactive = <480>; + vback-porch = <23>; + vfront-porch = <1>; + vsync-len = <4>; + }; + vga_timings_hf: 640x480@75 { + clock-frequency = <34000000>; + hactive = <640>; + hback-porch = <90>; + hfront-porch = <40>; + hsync-len = <128>; + vactive = <480>; + vback-porch = <23>; + vfront-porch = <1>; + vsync-len = <4>; + }; + svga_timings: 800x600@56 { + clock-frequency = <37500000>; + hactive = <800>; + hback-porch = <140>; + hfront-porch = <40>; + hsync-len = <128>; + vactive = <600>; + vback-porch = <23>; + vfront-porch = <1>; + vsync-len = <4>; + }; + }; + }; }; &pmx_core { @@ -251,3 +310,7 @@ &ddrctl { status = "okay"; }; + +&display { + status = "okay"; +};