From patchwork Thu Sep 29 16:31:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9356737 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 958226077B for ; Thu, 29 Sep 2016 16:35:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86B4529BC8 for ; Thu, 29 Sep 2016 16:35:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B5B429BCA; Thu, 29 Sep 2016 16:35:16 +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 1684829BCB for ; Thu, 29 Sep 2016 16:35:16 +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 1bpeHR-00018e-Kt; Thu, 29 Sep 2016 16:33:53 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bpeGG-0000JW-Oj for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2016 16:32:42 +0000 Received: by mail-wm0-x236.google.com with SMTP id b130so142844139wmc.0 for ; Thu, 29 Sep 2016 09:32:20 -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=HGWzMeLjl5ROxe1mLcNekY4RAqyeCHNZNNNVnsF/OZY=; b=gYpbC/fcEWHj1VDulzy5rijT0Dinj0BY2FBnNB3K/C4F0VqqP1jqGbgY8Y31yJzYEN 9n15vKz3k3DvvZIWdDjFMmHDjURLmNvKqkKJAZb+5ohYGFWAG0O6FjjLAZxTmfyUN1a4 u/o94mHqrsU7k2OmwYIwx2zoAACbfk9FtTIamAe0D4zfWa0mwdnTFE4cCeEgrzuKoFIf jG5e0QSs3iWW49j/4ghvWFPXLYc8nsvV4IH5T7S0fmcNNyM0WE2QIo0Sb/s1qq/k/Lkq W8EdpgKwf+d9ThbVi8ZYrcVut76n3AnU1sf4dmY/X//D0Suc5DiIANEwnIfHZBXkXkqP ZVSw== 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=HGWzMeLjl5ROxe1mLcNekY4RAqyeCHNZNNNVnsF/OZY=; b=jrlelyQKDe+RZzBiqho9gpfuCHeAKZTwUlvTNLWawcfZeTHP4CTFeJO01oxVivnH16 9Vzkz9QSOcnaVR/b/BWtEvN/ZsREm6HunWV4Bj3daOVZQzUvXDTnE6tqpDjIr7NRy/R1 7WXNHWezljb0Q/a3M7Kag1PdCtDz9REhHqlpmqnmOHV8EweaeQF//gzepHLqHsH591a/ 96FC0gQ2bL3fAgucd2AI9DQDskF/xzrmMNXzlH0zezi7nch4LltemsbOrK7cMqWndakm sXCockUBiikVpH6tI7uSotqRe6KfNM1fWttGRYFqDt270/cBymyM3XYPUzYotRWpcNoQ gNVA== X-Gm-Message-State: AA6/9Rnd2jRQgAaHO10e03Q+FyhYy80mr6O4pXSIWsWYIt2b9gn1IiULbH2eNELlvoLUZUH+ X-Received: by 10.28.216.202 with SMTP id p193mr14886086wmg.82.1475166738924; Thu, 29 Sep 2016 09:32:18 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id q142sm29165898wmd.4.2016.09.29.09.32.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 09:32:18 -0700 (PDT) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Mark Rutland , Russell King Subject: [PATCH 3/6] ARM: dts: da850-lcdk: enable the LCD controller Date: Thu, 29 Sep 2016 18:31:52 +0200 Message-Id: <1475166715-7857-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1475166715-7857-1-git-send-email-bgolaszewski@baylibre.com> References: <1475166715-7857-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160929_093241_030263_351AEB29 X-CRM114-Status: GOOD ( 11.83 ) 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: Bartosz Golaszewski , Karl Beldan , LKML , arm-soc 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 From: Karl Beldan This adds the pins used by the LCD controller, and uses 'tilcdc,panel' with some default timings for 800x600. Tested on an LCDK connected on the VGA port (the LCDC is connected to this port via a THS8135). Signed-off-by: Karl Beldan [Bartosz: - fixed whitespace errors - tweaked the description - fixed the incorrect hback-porch value - other minor tweaks] Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 7b8ab21..6ca5d48 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -50,6 +50,40 @@ system-clock-frequency = <24576000>; }; }; + + 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>; + svga_timings: 800x600 { + 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 { @@ -84,6 +118,28 @@ 0x30 0x01100000 0x0ff00000 >; }; + + lcd_pins: pinmux_lcd_pins { + pinctrl-single,bits = < + /* + * LCD_D[2], LCD_D[3], LCD_D[4], LCD_D[5], + * LCD_D[6], LCD_D[7] + */ + 0x40 0x22222200 0xffffff00 + /* + * LCD_D[10], LCD_D[11], LCD_D[12], LCD_D[13], + * LCD_D[14], LCD_D[15], LCD_D[0], LCD_D[1] + */ + 0x44 0x22222222 0xffffffff + /* LCD_D[8], LCD_D[9] */ + 0x48 0x00000022 0x000000ff + + /* LCD_PCLK */ + 0x48 0x02000000 0x0f000000 + /* LCD_AC_ENB_CS, LCD_VSYNC, LCD_HSYNC */ + 0x4c 0x02000022 0x0f0000ff + >; + }; }; &serial2 { @@ -219,3 +275,7 @@ }; }; }; + +&lcdc { + status = "okay"; +};