From patchwork Sun Mar 11 13:52:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131350 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3113158lja; Sun, 11 Mar 2018 06:53:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELsGxrq1qzpGBIE1QBah6hosZe3CSmBkVx02MApENGa+0cTK9o+ZTso9D7rZ9t+tnGPw7V6r X-Received: by 2002:a17:902:7d94:: with SMTP id a20-v6mr5042410plm.184.1520776410610; Sun, 11 Mar 2018 06:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520776410; cv=none; d=google.com; s=arc-20160816; b=GvAYx8cNEIPOOIvSaNEe0f4s2273U4y0bqmgmtiFPzigJk57DiZbWR1Tdy2Ux/MY46 ODidIikK3JZOqjiQrjps3LRKNq19Vz9PAhsIazFDdAxKjkb374OIbzyFTM7l2NA7nvTR gInjab5vyieT4uiNhaJvk2GE5wCPU/7izmjWllDgPXTWvoM3UrclXS9nvmGsRRNxvOUd Fxl2wAu8Zj60d6Cneiyq0xL7cugHG91sXk3l9LPbIgX3D0BQQUnD+WTr3ec2WpDW2pAK SZtFSUdaRTiyYdURv5woSOfVjUHrS3YKIleOQy+EL8ELOhw6i3l6Olo4MluHev3Q3UMp qg3g== 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=0uZoiuGl4PkOp7c/Kiz8DouuBKLe5IwIaNUW6D9ay6Q=; b=BRq9OdRZLArvcHzkzxT/jkym/75w5wK2q4GIAVCp3naZCnfSg4KDyia+moSQbKPirx a0hnYUD4zx7u/wlyOeqNcbgnjgoQ5qfBSeYYsNkFp65vt1/gqEBh3eLxfi7fPizwiTAZ IC8YokPEsDulyU/X4c3iytr6fuu6xPmMJc1yqQrCF5fVSlcNajfSWwrx1y5EBRT1mEPY HyeHyxFID5n5YaitSnR7tZFr3mXrkRkdcF7mjpLcIR9CjChYTdT+v3p4U2sOngibx8x+ VDPQXdKu8A4jVYQLCVNu0X6veuanqE9jDiws4v3B9efn/HzJsbRRfMacTpemYA5IRLYH W1Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UGOvX2NX; 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 d7-v6si4529876plm.539.2018.03.11.06.53.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:30 -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=UGOvX2NX; 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 779E96E3C9; Sun, 11 Mar 2018 13:53:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 21F2D6E3C9 for ; Sun, 11 Mar 2018 13:53:28 +0000 (UTC) Received: by mail-pl0-x241.google.com with SMTP id s13-v6so7859619plq.6 for ; Sun, 11 Mar 2018 06:53:28 -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=z24KjnsDuHRlVSFa6NYaLuthEVZLDhSFGCLCsqXi104=; b=UGOvX2NXq5bLzSLfyUCtTrxvRwaYU4pQurbEPWGk0itnQ1m4fYBuHwu0jbQ1m/RPwL 69jRnwLwi14DBZYGvhWBZ3Vm2DPxsejA8pJfIsWT+nyeCY2d3H0Bmtt54HDgTjHaun6j Nq5Ydiqs0XiVEHk9TkjW30C9ZFUEU8NocOo1M= 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=z24KjnsDuHRlVSFa6NYaLuthEVZLDhSFGCLCsqXi104=; b=EuHPR3JmXsz3v694CMhK6UQY48sPmsr5GzuYrhDp/Wd3as5RyechhMvWsjstu3Av1L x0zDQDEDNc22RlE8B6ET8L98hLOZLr0wPT6dKRn598IajtPmpeV4M8xEHpy3VmnRLSzZ SIbs4aCi7bgv0h9KfGVOouFf1FMve38sQIuKyKcCJfcZz+IONMcgqDWkHPv3VMK9EDNY v9vsWLHaYVOhZSUuBgDfJH6tbDF6qFKbaH0IsgAC2UArVnjm/7eh8J9cyqg0Unt2CGUd d2NTVf/ciRHF2dMw+tvlP6QXPjHcy0akIEW4W6hGMe3dgFO4Pj2Xvu5oxDMnoZ89wap/ KrQg== X-Gm-Message-State: AElRT7HOg5+a+z/Tgf82+VaSVs7073vdAxhExKLncvk78Jfep2cCsNjI lfp0BND7uEyc35ILf8B6A7/mIw== X-Received: by 2002:a17:902:c5:: with SMTP id a63-v6mr4973036pla.391.1520776407740; Sun, 11 Mar 2018 06:53:27 -0700 (PDT) Received: from localhost.localdomain ([183.78.63.160]) by smtp.gmail.com with ESMTPSA id t16sm12318721pfm.69.2018.03.11.06.53.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:27 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 01/10] ARM: dts: Augment VGA connector bridge on PB11MPcore Date: Sun, 11 Mar 2018 14:52:58 +0100 Message-Id: <20180311135307.6271-2-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 Reviewed-by: Liviu Dudau --- arch/arm/boot/dts/arm-realview-pb11mp.dts | 78 +++++++++++++++++++++---------- 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/arm-realview-pb11mp.dts b/arch/arm/boot/dts/arm-realview-pb11mp.dts index 3944765ac4b0..36203288de42 100644 --- a/arch/arm/boot/dts/arm-realview-pb11mp.dts +++ b/arch/arm/boot/dts/arm-realview-pb11mp.dts @@ -242,6 +242,49 @@ bank-width = <4>; }; + 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 { + /* + * This DDC I2C is connected directly to the DVI portions + * of the connector, so it's not really working when the + * monitor is connected to the VGA connector. + */ + compatible = "vga-connector"; + ddc-i2c-bus = <&i2c1>; + + port { + vga_con_in: endpoint { + remote-endpoint = <&vga_bridge_out>; + }; + }; + }; + soc { #address-cells = <1>; #size-cells = <1>; @@ -575,6 +618,13 @@ clock-names = "apb_pclk"; }; + i2c1: i2c@10016000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "arm,versatile-i2c"; + reg = <0x10016000 0x1000>; + }; + rtc: rtc@10017000 { compatible = "arm,pl031", "arm,primecell"; reg = <0x10017000 0x1000>; @@ -609,37 +659,15 @@ interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>; clocks = <&oscclk4>, <&pclk>; clock-names = "clcdclk", "apb_pclk"; - max-memory-bandwidth = <130000000>; /* 16bpp @ 63.5MHz */ + /* 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>; - }; - }; }; /*