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: 9405567 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 DD59A60588 for ; Mon, 31 Oct 2016 14:47:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C454928F64 for ; Mon, 31 Oct 2016 14:47:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8DC028F8F; Mon, 31 Oct 2016 14:47:18 +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=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 757A828F64 for ; Mon, 31 Oct 2016 14:47:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E0CCA6E323; Mon, 31 Oct 2016 14:47:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC2FD6E322 for ; Mon, 31 Oct 2016 14:47:11 +0000 (UTC) Received: by mail-wm0-x230.google.com with SMTP id p190so151826085wmp.1 for ; Mon, 31 Oct 2016 07:47:11 -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=ObD+K5UpWZxdCj+KGhAvfcJEb4E2XVkrN9F0542CtJ2SR6B5UfOHgchO+JIso4Vq1Z /yUNV4180LyRAz+tSdb2pbjBm/uPZlWxG+c9pocz5H200ZPOqr3f052wPORSQ24NKRL3 EjOaoSNbh1I8C6El1RYEQJCBABKCddQMD6sgcswRTL17vD5CBMHWFM8uRhoFgMRyqrJp cZLxrssnrrhz7RoepwdNTeWw76HRIXmT2dGly/L1UrJyi7TsoyVs5ArohqTZ8hrgGgO+ McEPdPjTXqo74biwiL/EGrYfj/8Bu8imeAnyHhVy1iOO0vndCAMR/8R1xOW2f9jepwDz Ff1Q== X-Gm-Message-State: ABUngvd9nSQB7wkLm1u18nOD5dTB8UxlLwsyGgvs5vNr1tJZtaMN3ODo022XefivDNoUU6Uq 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> Cc: linux-devicetree , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , arm-soc , Laurent Pinchart X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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"; +};