Received: by 10.213.65.68 with SMTP id h4csp3739689imn; Tue, 10 Apr 2018 04:03:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gHvdJG3SP4XFw5pS9MI1q/SOVQ4Q0SdPZzSE+cqvhaNM2qNZxCfDFommKbn6lvjx9abOV X-Received: by 10.101.101.10 with SMTP id x10mr28677685pgv.0.1523358237727; Tue, 10 Apr 2018 04:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523358237; cv=none; d=google.com; s=arc-20160816; b=raUL3TcHcGzALcVoFK0qx8K3kuI5ep0/cxB57WkMJQQNQ6pmSR2+AGSJQoQeUWZiuV G1ApQ7nt2Z4VhGcexsIN+iTvCRR4WfuIXuTjOvfXxxJ7U+ocsLW85K2oi2jFtca7xt3r y+8dZSKajQk2U8F1sjC1KEl1f8OplyT82JVvMgMA4WTFcbt3sdsMo22huJexI2u8Y6XC SxIChd3ET1TGBeJIRB1brqF77+Vg6voNPQ/m2wxD/i20YiSRmHSFZRMDnMHc8SQwZaiO rTZqPgECrPBBQ+ipZDCiW8r051M+L0V2E4jjwWZZxhjpgcUkuSgZMchkQWq4ai8fgSMB aE/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OcTShyk94wQtizxetbklLiI7/xASjwJR7L+nKQnuRuM=; b=FnCB/4MBBrsHEbpUB0xW/8cyNDRPiYXil+kE6qPAXUSe9at7m3onSzgpAvHiMNVCgo 93XiRJhQEsd/+TkEY+pK/Vch+qX9t4hozTz/xTHBOZX7zN2XL75Q6RzMMDgTBE7bBOo6 rjii3Y5yQPEvDEyapw8Ae0h5yVmqmiugAlXLvYDwCBolYx8ErdiDb4v6ndzID6MRLeCq 9LKa8KN9IvljLKSm1YbAY3qJksOE4YouFfg6acOgdseb3DlufOt8lbNmHCUoBpYDLqhw NXXJEh7RZ1JQU2bGQdSnSZpyFyEyAPfWSoGMzrj7ObHJBuPwGuAMDvgaM5qQRvPUGjYu gxcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u59-v6si2382447plb.177.2018.04.10.04.03.20; Tue, 10 Apr 2018 04:03:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbeDJK4j (ORCPT + 99 others); Tue, 10 Apr 2018 06:56:39 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:43029 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbeDJK4h (ORCPT ); Tue, 10 Apr 2018 06:56:37 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (unknown [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 387D4C000A; Tue, 10 Apr 2018 12:56:33 +0200 (CEST) From: Jacopo Mondi To: horms@verge.net.au, magnus.damm@gmail.com, geert@linux-m68k.org, laurent.pinchart@ideasonboard.com, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH v2 4/4] arm64: dts: renesas: eagle: Enable HDMI output Date: Tue, 10 Apr 2018 12:54:06 +0200 Message-Id: <1523357646-3946-5-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523357646-3946-1-git-send-email-jacopo+renesas@jmondi.org> References: <1523357646-3946-1-git-send-email-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable HDMI output on Renesas R-Car V3M Eagle board. The HDMI output is enabled connecting the DU LVDS output to the transparent LVDS converter THC63LVD1024, and successively routing its RGB output to the ADV7511W HDMI encoder. Signed-off-by: Niklas Söderlund Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart [for THC63LVD1024: ] Reviewed-by: Andrzej Hajda --- v1 -> v2: - Squash patches [5/7], [6/7] and [7/7] of v1 in a single patch as suggested by Laurent - Remove DU pinmuxing as it is used for DU parallel RGB output only used by Eagle's display expander board not enabled by this series. --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 93 ++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 3c5f598..1e2191d 100644 --- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -31,6 +31,51 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_out: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; + + d3p3: regulator-fixed { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + thc63lvd1024: lvds-decoder { + compatible = "thine,thc63lvd1024"; + + vcc-supply = <&d3p3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + thc63lvd1024_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + + port@2 { + reg = <2>; + thc63lvd1024_out: endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + }; + }; }; &avb { @@ -68,6 +113,38 @@ gpio-controller; #gpio-cells = <2>; }; + + hdmi@39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + + 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 = <&thc63lvd1024_out>; + }; + }; + + port@1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con_out>; + }; + }; + }; + }; }; &pfc { @@ -93,3 +170,19 @@ status = "okay"; }; + +&du { + status = "okay"; +}; + +&lvds0 { + status = "okay"; + + ports { + port@1 { + lvds0_out: endpoint { + remote-endpoint = <&thc63lvd1024_in>; + }; + }; + }; +}; -- 2.7.4