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: 80201 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp154257qge; Mon, 31 Oct 2016 07:47:19 -0700 (PDT) X-Received: by 10.99.188.1 with SMTP id q1mr41527220pge.145.1477925239301; Mon, 31 Oct 2016 07:47:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si15701697pav.43.2016.10.31.07.47.19; Mon, 31 Oct 2016 07:47:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964955AbcJaOrR (ORCPT + 7 others); Mon, 31 Oct 2016 10:47:17 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36396 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964999AbcJaOrM (ORCPT ); Mon, 31 Oct 2016 10:47:12 -0400 Received: by mail-wm0-f54.google.com with SMTP id p190so151826054wmp.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=H761lgfRs8hkPdWy1JVAcOzohCxc7NQZjNg90o0PbaOv4uzYgw93dBvd0YOJMFDkKY pNQci86LBwLA5/e1K/VQNZA7xgBvFT2Fdbh6v190YUbrkygvM2WZ+Pc0MD36M6BAmDsU v5YkFdn2vL4drfTFxllH2B6OcuCqWyeoyxyQ58uWW5eWRo0f4sutq2i0I996Pno+4Jsn nxe6Nop/OpaGg6zr7plC6zNq1s7x3HVjQkLpC4BqR19O27A1FSACW3DeG2Es3E0sVzNC hJlhpwqF9Fw+JpJUBqKiz5MbwNynIf84JKSIa9NmaLUDwAjZR+upuihXR3mQKU+9V5pL D8ng== X-Gm-Message-State: ABUngvetAMY758HlEeoPXdA00zNDaPSKf9WBPSQX1JK0e0Ohj3z/XUDZcGAJEiGMW4ab9eUf 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 Cc: LKML , arm-soc , linux-drm , linux-devicetree , Jyri Sarha , Tomi Valkeinen , David Airlie , Laurent Pinchart , Bartosz Golaszewski 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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"; +};