From patchwork Wed Oct 5 13:05:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9362889 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 ACDBB6077E for ; Wed, 5 Oct 2016 13:08:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D28228532 for ; Wed, 5 Oct 2016 13:08:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FDBA285A2; Wed, 5 Oct 2016 13:08:04 +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 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 21FCC28532 for ; Wed, 5 Oct 2016 13:08:04 +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 1brlu3-0004zr-V3; Wed, 05 Oct 2016 13:06:31 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brltX-0004t9-Nw for linux-arm-kernel@lists.infradead.org; Wed, 05 Oct 2016 13:06:00 +0000 Received: by mail-wm0-x232.google.com with SMTP id k125so266578718wma.1 for ; Wed, 05 Oct 2016 06:05:39 -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=F9RdPyiIxicULLaJzMtItJw+kbNw34s1to0khfMnJAM=; b=aGbhg2mkmqqcx+eTsDWjK3F79nZVsgG1ivk15wUloCNiurzB2W1O/xpZnM0Gb1SczB F/ibzCxcZRU3KFL9XJKwcmY4OrtkhPOgq0kpHmeSNnxhF3NyN1qo7atDUNilGD/Bz1T5 /zvxm8GTnHboLt34/44vOtqYyNktFGiSPutdHSDaJ53NtFmtNjNKrFcIYytqxe0eOAO/ uPC7bYlumBMxrXyWg29eHTVmp7XxjQg0Y1AZZ4Ze7I9nIZVkAwAmKUT6A8Kbgd0gS1am DHLVB83/0E84D1KuZhsDT1rmHggCTPAUmUnEvOLZpdMkBC8V3AKBqMajVkU0GGQqaz6G eN9Q== 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=F9RdPyiIxicULLaJzMtItJw+kbNw34s1to0khfMnJAM=; b=U+s9RJrSyNULvIEPx0anByoBGodVhRVeXnm6/9mHLz7k2EhCi7S3QFEe7hv3X8u+om GY7st6VmyE/u/rvEWpBkOZqrDTZYBo9wTxGYawzFPueRMRdXVg7WXmKWjqtJHlcPumHF kk7k7y1F8enYxJxmiyeNOfA7pgBG7eSjIhb4N+6zCXxaikuyMTEEu9uOPUmrf6Dn0+nB 9rsYCeIAW8SESFvMMLz9/mPhDMwz0Jgrrh6UaB5KdYdIBN2+kZx2BHNED+EZ7+SYfLyW dM95IGSTIhRXFafNuQlup+gsXurZC17FzzxAMnV6xZlDImf0R8Hg4+4xkxm+dAkuvZXv Z+pw== X-Gm-Message-State: AA6/9RmDni41CUNipqVcCpVOOokTF7DLh2ITb+Ij7Ncbv8zBf8NoxcFltEiGp3LXK2jcB3wk X-Received: by 10.28.163.199 with SMTP id m190mr13542007wme.74.1475672737527; Wed, 05 Oct 2016 06:05:37 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id p13sm9509706wmd.1.2016.10.05.06.05.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 06:05:36 -0700 (PDT) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King , Karl Beldan Subject: [PATCH 2/2] ARM: dts: da850: add a node for the LCD controller Date: Wed, 5 Oct 2016 15:05:32 +0200 Message-Id: <1475672732-17111-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1475672732-17111-1-git-send-email-bgolaszewski@baylibre.com> References: <1475672732-17111-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161005_060600_020276_178E9A28 X-CRM114-Status: GOOD ( 12.65 ) 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 , Karl Beldan , Jyri Sarha , Maxime Ripard , 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 From: Karl Beldan Add pins used by the LCD controller and a disabled LCDC node to be reused in device trees including da850.dtsi. Signed-off-by: Karl Beldan [Bartosz: - added the commit description - changed the dt node name to a generic one - added a da850-specific compatible string - removed the tilcdc,panel node - moved the pins definitions to da850.dtsi as suggested by Sekhar Nori (was in: da850-lcdk.dts)] Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index f79e1b9..32908ae 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -186,6 +186,27 @@ 0xc 0x88888888 0xffffffff >; }; + 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 + >; + }; }; edma0: edma@0 { @@ -399,6 +420,14 @@ <&edma0 0 1>; dma-names = "tx", "rx"; }; + + display: display@213000 { + compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc"; + reg = <0x213000 0x1000>; + interrupt-parent = <&intc>; + interrupts = <52>; + status = "disabled"; + }; }; aemif: aemif@68000000 { compatible = "ti,da850-aemif";