From patchwork Sun Mar 11 13:53:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131351 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3113251lja; Sun, 11 Mar 2018 06:53:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELuU0nRQGp8pa2PuI4QzBAnmTuLrdquEwLYNrxY7oW9VzrK4zo6wtXFQI27Y6dhcM5zvTD/t X-Received: by 2002:a17:902:6717:: with SMTP id f23-v6mr5031000plk.188.1520776419344; Sun, 11 Mar 2018 06:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520776419; cv=none; d=google.com; s=arc-20160816; b=cI6/TFnFkS/QBPrMRcMXAfio2/R3eKgOrR0D61hBEf1h6JEFfW3OBrFoEtsv7ryf2u TBsOCJSMpgV0o+q2kG7kusf+Hx8NSw5RI0R01P3+zGFB+tC9yUJJKPhuGbmnH5HfOfKl SbDk/Rvqm/yWzhbEKz1GSIFck4hlV1xF1wR4Tpo67lYcMr7Ou4m1wThuH83wJa3yaMw4 OzQKg6dUvT0GRrDXerARKE9AE0CYMwngnhd6h4Wc9Ydma3f5bcOLsu7SwKBSHN4FecgR q4Bm8jaOL24QOwHwKh104oBbdO/zej0iitjuO+qsLaZgoC8sOt7Uns4wVTE34dkw5Ayz PmAA== 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=rIRZxf69+3NjMFA0f77WjqWVtiSrYulLQnr/GqJNpH0=; b=ocpUeSN1M+NALWTSpUwfIhkVQ2LtZDxMqj0J1rvCW7bqGNKUHXiV149RNOs++KNICp leY7y6jJ1bIJR/+xzIl5ADJiXZGqlNx0vf9jpq2CDh8YhpfDAcQ5DLrN4CxKg4Z6HfzW Mugsv3W3vPiFiZ0Q7tf+USDtGvF4h2o2PzM2+JygCv1ek5RmTzFqVpxOjyElK75sf6jK 64nx3rvKsz+pjscJvDpWSCTvk6JarepYffoOviSzVVY6BHTxS2eGioXe6/qJIcNH+0lo Ecys63SGTlAaCsn5XT9jCjhPW+L7VmHQrKp9w3zgEnvs5KFkQ2X+7OeXN1vKi40SKU73 NwHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FVcqHdro; 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 f2si3666359pgp.474.2018.03.11.06.53.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:39 -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=FVcqHdro; 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 34FA96E3E8; Sun, 11 Mar 2018 13:53:38 +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 6F2866E3E8 for ; Sun, 11 Mar 2018 13:53:37 +0000 (UTC) Received: by mail-pl0-x243.google.com with SMTP id 9-v6so7855686ple.11 for ; Sun, 11 Mar 2018 06:53:37 -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=UJvtrEbYkseTWJFpX3RcDIa/B2vLrnAJnFCoNL0pZm8=; b=FVcqHdro/U4M4FudywUqxFGURbCmM1Y5mK9yfWOCz4duSmgaEOp6FVrD4rTr9zUl4t h8m3JJVNWxJeHsg2zGjLVbfyocsgWnxHd3h8fI1ZQ4Iam52j2tPbpg38DvtY4a+8xlhW Hq1gX9HmAApwsQzt2jySb4jpaP9OFMA3BH+qc= 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=UJvtrEbYkseTWJFpX3RcDIa/B2vLrnAJnFCoNL0pZm8=; b=j6L729xCClu+d17yLiJrbVyr9XXFEl9eKsguAxlJ6Ia9I7tvbpcsV/dI+h3F6xHYxm L7fGxbdQw6N91LwkdH8dr2CIOGuZA32ozVEPMYa6lweSeCJ1XuyYFC0uRWFUvp0T5fI9 XoN+Kj1cLpaKsDb24dQoEyjysOxSElSJ5xwtscsrf7tL9PpteErKiFTXX9JHiFMj8xub ncsQq7IRRHLJ7lh8CVwuN2QyvrkfJOKrWDOYsnl7NvRPoZ4INdu97oek+r8bHPEYpJLT AG/woQYQyEad/Kxf+o/NSONuLJrpRpKIp29wSr2O9myR6vxtD9CXHknQqalCaA6rKFUb Wc8Q== X-Gm-Message-State: AElRT7FoNkR/4QNV546WsqKRTR+ZrzeAZKGgLs5i8hvOzFrdjbBeGKLY rnp72yj4Orvaq7lcV4sSPT4q+w== X-Received: by 2002:a17:902:63:: with SMTP id 90-v6mr5030877pla.125.1520776417131; Sun, 11 Mar 2018 06:53:37 -0700 (PDT) Received: from localhost.localdomain ([183.78.63.160]) by smtp.gmail.com with ESMTPSA id t16sm12318721pfm.69.2018.03.11.06.53.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:36 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 03/10] ARM: dts: Augment VGA connector bridge on Realview EB Date: Sun, 11 Mar 2018 14:53:00 +0100 Message-Id: <20180311135307.6271-4-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-eb.dtsi | 64 +++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/arm-realview-eb.dtsi b/arch/arm/boot/dts/arm-realview-eb.dtsi index e2e9599596e2..a917cf8825ca 100644 --- a/arch/arm/boot/dts/arm-realview-eb.dtsi +++ b/arch/arm/boot/dts/arm-realview-eb.dtsi @@ -143,6 +143,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>; + }; + }; + }; + /* These peripherals are inside the FPGA */ fpga { #address-cells = <1>; @@ -409,36 +446,15 @@ interrupt-names = "combined"; 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>; - }; - }; }; }; };