From patchwork Sun Mar 11 13:52:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131354 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3113529lja; Sun, 11 Mar 2018 06:54:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELuTRzrQ0ubk7gndaVuv2/E9G2QJ2LRZpvZR/W0CzlUXiS1IudGAGA4RtLUQWU5q08FF2zrb X-Received: by 2002:a17:902:467:: with SMTP id 94-v6mr4894407ple.57.1520776444933; Sun, 11 Mar 2018 06:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520776444; cv=none; d=google.com; s=arc-20160816; b=GsxS4NsUj3e9Jmcwlv74ZBApUAacL5ESbSjIKFvQ+1Q+AJD8A5bBgYUx0wVYZhBs3l 5m/fPBxtCjP/3i9OIthfNfB7XHxe2Q51o1UG8TE5Nxb8/q/ea+Nf3J7Acq/qZaafKII2 +C55QkY7K81coHOm4xjH/35iyM2xxZHwY3ssB4QxmKoLxhNiU6XmzJMaOOKOvTx/BIbX Cd5lnAGFzzTvb31JkjXLAwRL6vqVrRQZq0bnV+6YktXHw0edCFIVQqUY7B56An/hZ5s4 4Y0g9vb3QleOLNCdgLgCvJT2n8DpnGRoLTjNdpA2C9rfmb/jbTZzEC00An0ijMQWOG/x FRYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=FQbcOII8xNVYrCdk+5XoSaiWcI24MamHdMj+0pLp2JA=; b=GaW4yZGlh87GG9UQ6PUqmfYtw1QsH5cVcwABUMl8nMjg7IFV/ptzOjAKPmojocl42H 5kdcHH2FcvB9i9XrU3PUzYc6i3P7DGTw+LLuhc4LNKMV7WLbCWjDxdFdTad/QDnYhVk6 nqwaSDgbPtlqgUnCfNREFXwdef2lC8RBssVYzMm0wXyn2A3poHMNRiVjrQpYjwxcKq6i 2TInBSTPN9oRJeVlYtVUJZmUzD2+7l5c2LFfKRrf4kSuVv9qyV+MWZ8N4Qg/wIg3CsKl yvs4I+XbITKaRecczRy3fgmqntwwcp9bswLuqctbWx59azMsyyORHNoFVAE9mYHeK6dL DaIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NLT4zChY; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id w9si4221337pfl.193.2018.03.11.06.54.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:54:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NLT4zChY; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E59116E3E4; Sun, 11 Mar 2018 13:53:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl0-x243.google.com (mail-pl0-x243.google.com [IPv6:2607:f8b0:400e:c01::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 393E96E3E4 for ; Sun, 11 Mar 2018 13:53:33 +0000 (UTC) Received: by mail-pl0-x243.google.com with SMTP id s13-v6so7859690plq.6 for ; Sun, 11 Mar 2018 06:53:33 -0700 (PDT) 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=Dxbvl/+mCyUD5UaB+2LCCwLDRPWcGSdPKXkul2WXkOA=; b=NLT4zChYebKBi0tSz9vEgEiyPADaJ9mkAsjD4boDUhxUioVkUcTia795VytLzPyEtF qgn+5FNw5UzqbUzqlObV2Ffq115VE0UX0hDTC4pJYSnrPt4dzZHZ5R37YmkerCuIRPIJ yhpSEK98T4cRTQEo9qUt5YaVBx+anJdliI5Uk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Dxbvl/+mCyUD5UaB+2LCCwLDRPWcGSdPKXkul2WXkOA=; b=kMLBWAIJNBbfYvA/D7GpIKVkvJQqgwdoltk69HHy0ZRXkAaYBdzP2uoKDtH3yO9rlh tKADM2X3j3DhQoqxOhHW47UnAmW3Ub5bB8TF2wuUHAMTBoMtuURO26byv5a7nwLbviMm 2HZJ+hPc4l7OeHpdpfZIaMZhSPrWh9H+rR8DwC/sKu8G9z6MIKZBfdIPzkv65LyG4Utb iQ/Z9T03JMZeWojMJDi2KSxYSNihe4ZPcx5Vo0dlSZvnUSfURQu+SMKsT/g6q9GWaUtT h2AicR0YmzFvAeLav9Nb8A9EDULmC+Y5u4kKGzEnn28S4IwLCI/0j1Z2E5BUuT7vmNdr MPaw== X-Gm-Message-State: AElRT7E7/V4fFtbhsIU+xIA5fLCVzZ8QfPunc2iBAlKl7h+5iGyiNNSh cyRxfGPPUqpTWX3AcU3p21v4iA== X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr5001683plk.51.1520776412769; Sun, 11 Mar 2018 06:53:32 -0700 (PDT) Received: from localhost.localdomain ([183.78.63.160]) by smtp.gmail.com with ESMTPSA id t16sm12318721pfm.69.2018.03.11.06.53.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:32 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/10] ARM: dts: Augment VGA connector bridge on PB1176 Date: Sun, 11 Mar 2018 14:52:59 +0100 Message-Id: <20180311135307.6271-3-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180311135307.6271-1-linus.walleij@linaro.org> References: <20180311135307.6271-1-linus.walleij@linaro.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liviu Dudau , dri-devel@lists.freedesktop.org, Mali DP Maintainers MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The PL111 in the ARM reference platforms are connected to "panels" that are actually dumb VGA DAC connector bridges. Now that we can support the proper bridges in the DRM driver, fix this up. Cc: Liviu Dudau Cc: Mali DP Maintainers Signed-off-by: Linus Walleij --- arch/arm/boot/dts/arm-realview-pb1176.dts | 66 +++++++++++++++++++------------ 1 file changed, 40 insertions(+), 26 deletions(-) diff --git a/arch/arm/boot/dts/arm-realview-pb1176.dts b/arch/arm/boot/dts/arm-realview-pb1176.dts index c789564f2803..f935b72d3d96 100644 --- a/arch/arm/boot/dts/arm-realview-pb1176.dts +++ b/arch/arm/boot/dts/arm-realview-pb1176.dts @@ -161,6 +161,43 @@ port1-otg; }; + bridge { + compatible = "ti,ths8134a", "ti,ths8134"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + vga_bridge_in: endpoint { + remote-endpoint = <&clcd_pads>; + }; + }; + + port@1 { + reg = <1>; + + vga_bridge_out: endpoint { + remote-endpoint = <&vga_con_in>; + }; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + port { + vga_con_in: endpoint { + remote-endpoint = <&vga_bridge_out>; + }; + }; + }; + soc { #address-cells = <1>; #size-cells = <1>; @@ -403,36 +440,15 @@ interrupts = <0 47 IRQ_TYPE_LEVEL_HIGH>; clocks = <&oscclk0>, <&pclk>; clock-names = "clcdclk", "apb_pclk"; + /* 1024x768 16bpp @65MHz works fine */ + max-memory-bandwidth = <95000000>; port { clcd_pads: endpoint { - remote-endpoint = <&clcd_panel>; + remote-endpoint = <&vga_bridge_in>; 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>; - }; - }; }; }; @@ -564,7 +580,5 @@ clocks = <&pclk>; clock-names = "apb_pclk"; }; - - }; };