From patchwork Thu Feb 4 14:04:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 8222121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A515A9F37A for ; Thu, 4 Feb 2016 14:05:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0123200E0 for ; Thu, 4 Feb 2016 14:05:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF679200F2 for ; Thu, 4 Feb 2016 14:05:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757971AbcBDOFg (ORCPT ); Thu, 4 Feb 2016 09:05:36 -0500 Received: from mail-lf0-f42.google.com ([209.85.215.42]:32976 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757735AbcBDOFe (ORCPT ); Thu, 4 Feb 2016 09:05:34 -0500 Received: by mail-lf0-f42.google.com with SMTP id m1so37371748lfg.0 for ; Thu, 04 Feb 2016 06:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PVZnaV+aNvCE6RsEN/7s7qr+wNU05kkxf2n6SXUZQMM=; b=OWebJIxfx5A4JSwav+brxf00tjh9LPzl0om4pTl7fmg4ZLiz/jXAYvcqJQopOqv+77 NQxK0eqvB4Lm/0dGe8OwaWfllg/a2OE6MiVtBiKJg7aXWBKdDuMrnsJsuURri5/lU863 mH2BE3mRZ0+ugTGzDidQJwhqD3SJvG9o/uc3Y= 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=PVZnaV+aNvCE6RsEN/7s7qr+wNU05kkxf2n6SXUZQMM=; b=QCGRkCd0ETyyGP2MiKZSR0XfuhmYT3RuL2+3gpGbubrkjlFLWZ6O1YdkhdXPMNiRop 5dsadtAMdeDPWF6RQGuJLMpfycWm+dKhE51/o156XrxJurLpzbNowF+4PW4QRqb2k4dt DB+PikGvTmfgP+fewjl+mQSZaCWb+1h2l+5hzmN+n30ys/dXKV/QBgsWdPxXF5dM8Hxk p3/sOVBpvQlemKpNIEmbqgoVAuhA9GoiJ6VbnV40B2orY8hbLdO8WXMmXLdGm7Nb8blA Y++SSMCCA5xOyna75dDFpR882CwwagFoo1u+crTgv1CfWsTm/pTiQteUwRhxibZpg/i6 XGCw== X-Gm-Message-State: AG10YOQ1alqdHILJAEg0R1j0N6V0q+Z2Q61E5J85RTPOU0MwB4YGL7tR/qq7a4djnYfGofQa X-Received: by 10.25.137.194 with SMTP id l185mr3537536lfd.41.1454594732810; Thu, 04 Feb 2016 06:05:32 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id m21sm1576066lfe.29.2016.02.04.06.05.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Feb 2016 06:05:31 -0800 (PST) From: Linus Walleij To: linux-fbdev@vger.kernel.org, Tomi Valkeinen , Jean-Christophe Plagniol-Villard , Pawel Moll , Rob Herring , Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Linus Walleij Subject: [PATCH 10/11] ARM: PB1176: define a standard VGA panel Date: Thu, 4 Feb 2016 15:04:19 +0100 Message-Id: <1454594660-7532-11-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1454594660-7532-1-git-send-email-linus.walleij@linaro.org> References: <1454594660-7532-1-git-send-email-linus.walleij@linaro.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This defines the CLCD block in the PB1176 and adds a standard 640x480 VGA panel to the device tree. Cc: Pawel Moll Cc: Rob Herring Cc: Russell King Signed-off-by: Linus Walleij --- arch/arm/boot/dts/arm-realview-pb1176.dts | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/arm-realview-pb1176.dts b/arch/arm/boot/dts/arm-realview-pb1176.dts index d012ecf25127..af10d888545b 100644 --- a/arch/arm/boot/dts/arm-realview-pb1176.dts +++ b/arch/arm/boot/dts/arm-realview-pb1176.dts @@ -362,6 +362,46 @@ clocks = <&uartclk>, <&pclk>; clock-names = "uartclk", "apb_pclk"; }; + + clcd@10112000 { + compatible = "arm,pl111", "arm,primecell"; + reg = <0x10112000 0x1000>; + interrupt-parent = <&intc_dc1176>; + interrupt-names = "combined"; + interrupts = <0 47 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&oscclk0>, <&pclk>; + clock-names = "clcdclk", "apb_pclk"; + + port { + clcd_pads: endpoint { + remote-endpoint = <&clcd_panel>; + arm,pl11x,tft-r0g0b0-pads = <0 8 16>; + }; + }; + + panel { + compatible = "panel-dpi"; + + port { + clcd_panel: endpoint { + remote-endpoint = <&clcd_pads>; + }; + }; + + /* Standard 640x480 VGA timings */ + panel-timing { + clock-frequency = <25175000>; + hactive = <640>; + hback-porch = <48>; + hfront-porch = <16>; + hsync-len = <96>; + vactive = <480>; + vback-porch = <33>; + vfront-porch = <10>; + vsync-len = <2>; + }; + }; + }; }; /* These peripherals are inside the FPGA rather than the DevChip */