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: 9362879 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 455ED6077E for ; Wed, 5 Oct 2016 13:05:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36A4923B3D for ; Wed, 5 Oct 2016 13:05:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A984285CB; Wed, 5 Oct 2016 13:05:50 +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 7D90D23B3D for ; Wed, 5 Oct 2016 13:05:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10E856E857; Wed, 5 Oct 2016 13:05:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A93F6E85C for ; Wed, 5 Oct 2016 13:05:39 +0000 (UTC) Received: by mail-wm0-x22a.google.com with SMTP id k125so266579037wma.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=JuDN+MCRj4IPr0C0nIA/S1jnCizgDzU2I5M5WBwj6yPKR9jO6/mcsHuc+Yz3Xo73tn y5icdzdQGrEl6U5fZA7EXG9/RJBElJvG+SrCwdDCm6PMFuNx749abg5LD2A7hNI1SlLS R1yIeciqM9kQyWl+cadrRiLuJPbwUeGNrxwb+my90L3VqLhS8q4weBZwPFVm6YRKXb8F w/bGmvbfswqfEGulUAtNWPJZxDHCWVuZ5wf2HDw/XqY4bLcF9EEiOm2uCn4ulS3Xqwne EAWW3VBafu5NPyd0X8pL5o9HXQuVHwQRU9mgMfnBgMB+AAZ393c8tUtGcW9zinguarhB J1Mg== X-Gm-Message-State: AA6/9Rnz+GTuJDpN40Wh/EjOHmYEcikOgj7AUbfN4MNv+ufoV2IzAcWHI2QiS3ulPVCNxCYb 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> Cc: linux-devicetree , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Karl Beldan , Jyri Sarha , Maxime Ripard , 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 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";