From patchwork Sun Mar 11 13:53:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10274767 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 5B10560211 for ; Sun, 11 Mar 2018 13:56:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 469E528DE3 for ; Sun, 11 Mar 2018 13:56:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A29828DEB; Sun, 11 Mar 2018 13:56:04 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F8FC28DE3 for ; Sun, 11 Mar 2018 13:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1SgGP1KvIQ2LZT0XUqUxAo0M0PujV3PuoP9K3EwirSs=; b=qwVQRy2hiPyP1ydGcE+sLYUHP7 tfYOFjavOjDupqF9jofGA0vJTIEkuin6GnrSVLeNNrHZOnAjC7qhIZMnPT7QcZxoyfCRDQpI8Fsna LtxmttGfi2TtK9BmGcFTwi0Ouh5k+jhqgN2n3QpAyFFO+p29arJyzPnP70Qf0tjhGjqM5mUJoW/4G 3oleKCY6mKOC/1EssCqvEhdr8G5VLLFwVjtd7sw8vIS0ctTy0Uz4DdnNjYhks7Zdw++mP2XF1mojY WchSU9n/tPtv+fJCt5s97j1gFuCg2FhX0CBfiXicrAWqRbIRc24so25cMkazFLFtjNVxyC+6bAmBc q5DDqYww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ev1S7-0003fG-1l; Sun, 11 Mar 2018 13:55:55 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ev1Pz-0001Ab-MD for linux-arm-kernel@lists.infradead.org; Sun, 11 Mar 2018 13:53:46 +0000 Received: by mail-pl0-x243.google.com with SMTP id f23-v6so7857612plr.10 for ; Sun, 11 Mar 2018 06:53:42 -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=Ky6H6TRSO9DgsYIlGt3EI0X1Jq6Ze0jsvvVMqFz/3Bs=; b=Jb4G5QRXybtuiWutoUIUQLFpiPcZSDjOc1iVsepvB4s6uBGYns5y1Z4C9qa3CCoTXw Nwz6qqgzLzIjjfxsP8UT6TQ7clHQdaXTuED39QsNL8f53xko+BlqSyMr3i1rI7V53LO0 OJRAXaVWlAEcj2LrbhgW+a4tJcVGnYv17nRDs= 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=Ky6H6TRSO9DgsYIlGt3EI0X1Jq6Ze0jsvvVMqFz/3Bs=; b=dySYFAJpVCCC8dnGIbvyOuznWm9F+7ol1oSj00VTiN4B/XD3FXoCuo3o51OWyrzSWE NOF4YbM1YTkNKU51k57rjPEsD/Ac/vJIDR8s5NLxuzg4gCShGzB9ZjGaC8fIA7saNhKs 5O4B47rVdPNQW3PLtlr6d3UODXKAj4qOkvf7wrjNutfEJApuKvCZI0yoV6O5uOe2J8Xn BCsvD+5Tqxz/JZyck5S3MHcNMGk/wCVjFjUiObBLNotpHWg3aUBIoo5M3pO+16m6Bm4L 0XpcBS91NfFFIaXWq3HnApqoz+VxpDIVBXvbz5E4Ztci9M3Wos81xlipY3LYd9mfSCX/ etyQ== X-Gm-Message-State: AElRT7Hj8DDvxsp8JRwkTNKSi2Wt+55X3Hyv9yQiIt6E8kQVd9RpBGjF Uf1S/lovSL6J5qThyJAB7SMHcCOVr8w= X-Google-Smtp-Source: AG47ELtw3+EdO8r/SffYBCjCH5WNzBwzVG7SWifhyIG3ayW3IVi+RC8FNTaYMPq80LuCwtB7jcDqew== X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr4848052plb.115.1520776421591; Sun, 11 Mar 2018 06:53:41 -0700 (PDT) Received: from localhost.localdomain ([183.78.63.160]) by smtp.gmail.com with ESMTPSA id t16sm12318721pfm.69.2018.03.11.06.53.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:40 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/10] ARM: dts: Augment VGA connector bridge on Realview PBX Date: Sun, 11 Mar 2018 14:53:01 +0100 Message-Id: <20180311135307.6271-5-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180311_065343_855792_EF19FC12 X-CRM114-Status: GOOD ( 14.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Anholt , Linus Walleij , Liviu Dudau , dri-devel@lists.freedesktop.org, Mali DP Maintainers MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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-pbx.dtsi | 82 ++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 27 deletions(-) diff --git a/arch/arm/boot/dts/arm-realview-pbx.dtsi b/arch/arm/boot/dts/arm-realview-pbx.dtsi index aeb49c4bd773..10868ba3277f 100644 --- a/arch/arm/boot/dts/arm-realview-pbx.dtsi +++ b/arch/arm/boot/dts/arm-realview-pbx.dtsi @@ -34,7 +34,8 @@ serial1 = &serial1; serial2 = &serial2; serial3 = &serial3; - i2c0 = &i2c; + i2c0 = &i2c0; + i2c1 = &i2c1; }; memory { @@ -158,6 +159,49 @@ 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 { + /* + * 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: soc@0 { compatible = "arm,realview-pbx-soc", "simple-bus"; #address-cells = <1>; @@ -285,7 +329,7 @@ <&timclk>; }; - i2c: i2c@10002000 { + i2c0: i2c@10002000 { #address-cells = <1>; #size-cells = <0>; compatible = "arm,versatile-i2c"; @@ -396,7 +440,12 @@ clock-names = "apb_pclk"; }; - /* DVI serial bus control is at 10016000 */ + i2c1: i2c@10016000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "arm,versatile-i2c"; + reg = <0x10016000 0x1000>; + }; rtc: rtc@10017000 { compatible = "arm,pl031", "arm,primecell"; @@ -506,36 +555,15 @@ interrupt-names = "combined"; clocks = <&oscclk4>, <&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>; - }; - }; }; }; };