From patchwork Fri Aug 19 20:42:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9290885 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 AA4E46077B for ; Fri, 19 Aug 2016 20:44:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BED729592 for ; Fri, 19 Aug 2016 20:44:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9098429595; Fri, 19 Aug 2016 20:44:38 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 49A3429592 for ; Fri, 19 Aug 2016 20:44:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1baqdQ-0003hz-TH; Fri, 19 Aug 2016 20:43:24 +0000 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baqdM-0003cX-DB for linux-arm-kernel@lists.infradead.org; Fri, 19 Aug 2016 20:43:22 +0000 Received: by mail-lf0-x234.google.com with SMTP id g62so40709500lfe.3 for ; Fri, 19 Aug 2016 13:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=TeBFuWftbZMmDLBCLTsOH13ru+4JTS7B6oi6ZbIw7to=; b=IcsRtCu8aEWml3BsoNNLR8g/zwHmHV0Ier8cc11m/K2V44cgwDuKlAs77kQBL1zGdt aJG9OImyM8g2Vja9KLsGWkbiz6z0C7JU2+iMOz7tE755oNlsGUwnPfbS24RU3SfVAP5V vHxAQSX/XHu8tiwxolsoGGXkjldZTfM0MbW/uC5lyA6BYTIAwR/J5uL4xg6Vq5i4CDjl ZVcmasU3EhXQp4E11PAg6YwVFduc+0grfFzf4Cv57OgfpJHRmTGI24RaV0kv5TodWVsz hTQNPqCReGZBgxxWT8lZDztf3dsPldRmg52frCKIT4ptF3ueI/YV2MJkOYB3/iAERzKS fYVw== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=TeBFuWftbZMmDLBCLTsOH13ru+4JTS7B6oi6ZbIw7to=; b=Dd4/7STQi/ewAWwDvFSoBJLCuV7zqRx29W+ED0519zqrfwcDOdvPixBz2Y2IoDb7n8 IiqBt1SegPI6WPcyRUAN6DGDH/ErEyG1WpkSkDcWfdQiA9mmO5uUoz/b3uLdCtdCuvZN p3nDV1cqRy07aend3TfoufSygoY2Fh6+kRYF+UGbXprFNAuD63uotIgve6PjOQYnTT80 9DJlFnbG0Yuo4L8QthrTm3lA5/iAVzXLsM77aJbaiVIlqj9jHVQAtr2eeJ0ls8rB4W7w sjc1jh2dl27Cmfkii59XSJDK5i9aYxzg325HN+2GeV65AUe/7cKVba8eFNEgwC0X20JU YZVA== X-Gm-Message-State: AEkooussOCT2wyQstmcGLeh1LDL6rTqJQUXGbRXdQfaBaye+X5gJPwnmJYWCa03VVdARDA== X-Received: by 10.25.165.71 with SMTP id o68mr2103004lfe.95.1471639377782; Fri, 19 Aug 2016 13:42:57 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.170]) by smtp.gmail.com with ESMTPSA id 85sm1517855ljf.6.2016.08.19.13.42.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 13:42:56 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH] ARM: dts: blanche: add DU support Date: Fri, 19 Aug 2016 23:42:54 +0300 Message-ID: <1783132.r9t2y3QUUq@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.5-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> References: <5383928.8UnDsUpmkz@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160819_134320_758267_D2FFC2EB X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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 Define the Blanche board dependent part of the DU device node. Add the device nodes for the Analog Devices ADV7511W HDMI transmitter (connected to DU0) and ADV7123 video DAC (connected to DU1). Add the necessary subnodes to interconnect DU, HDMI/VDAC devices, and HDMI/VGA connectors. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20160817-v4.8-rc2' of Simon Horman's 'renesas.git' repo plus the general purpose switches patch and the SDHI0 patch posted earlier. arch/arm/boot/dts/r8a7792-blanche.dts | 125 ++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts +++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts @@ -57,6 +57,61 @@ pinctrl-names = "default"; }; + vga-encoder { + compatible = "adi,adv7123"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7123_in: endpoint { + remote-endpoint = <&du_out_rgb1>; + }; + }; + port@1 { + reg = <1>; + adv7123_out: endpoint { + remote-endpoint = <&vga_in>; + }; + }; + }; + }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + port { + vga_in: endpoint { + remote-endpoint = <&adv7123_out>; + }; + }; + }; + + x1_clk: x1 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <74250000>; + }; + + x2_clk: x2 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <65000000>; + }; + keyboard { compatible = "gpio-keys"; @@ -155,6 +210,16 @@ groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0"; }; + + du0_pins: du0 { + groups = "du0_rgb888", "du0_sync", "du0_disp"; + function = "du0"; + }; + + du1_pins: du1 { + groups = "du1_rgb666", "du1_sync", "du1_disp"; + function = "du1"; + }; }; &scif0 { @@ -186,3 +251,63 @@ cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&i2c1 { + status = "okay"; + clock-frequency = <400000>; + + hdmi@39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&irqc>; + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&du_out_rgb0>; + }; + }; + + port@1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + +&du { + pinctrl-0 = <&du0_pins &du1_pins>; + pinctrl-names = "default"; + + clocks = <&mstp7_clks R8A7792_CLK_DU0>, <&mstp7_clks R8A7792_CLK_DU1>, + <&x1_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; + status = "okay"; + + ports { + port@0 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + port@1 { + endpoint { + remote-endpoint = <&adv7123_in>; + }; + }; + }; +};