Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2019412imm; Wed, 16 May 2018 06:44:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqx36ABSARV1SPhNkyUCFt7qAVqoNpuL1WR52c7kG1EDJidi0utMu+/T6F61nSpIYfkCWNl X-Received: by 2002:a62:3f4e:: with SMTP id m75-v6mr1041300pfa.176.1526478242760; Wed, 16 May 2018 06:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526478242; cv=none; d=google.com; s=arc-20160816; b=IfMIuVsuNFLNvG5eWSp+REYqXnPSDkFBzxQEgINcHtha9GVPSDoCNLVzBzeAaXGgpf ATeDbJzh8OKYWAYh6gt9TQYSs9Omvw7H53k4wsJPwxKp7ZyNt+WV28tVU8SUwud30Ifn EX09J6NIqb2qE9b72HhideK8IThj7OPb0UpFmCwX9VviwrdDMtSLigfJljUfFgL6mQDq +b0shtRYy1kTOed+55Qnf9/d2GrybHX4VpoJXMsUQJA1gTEzufqYVzdAelZ1kF/PRkHH nI6SJmHoB+drZ1kmy1WxpNgG3rli2+KPUALp9nXQoZ4irDCsyTyrYJg4RnxWOGf9SMa0 drog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=YOLPoZoG5a5rQC1tk7GBNIcKloO4mZq6tUCPZGV4gmY=; b=APGgP8Q4IbS5baszj2JmUpyqaRP18hREZxeQ0WKkFGaG6jdJZqitr6x225TAC2eTD3 1zo7j6xF6lbFSLc0r4kwT42+s9OH9PJpCwgJCllwVgpdUajQsLi5C9DZSmqu95Nwmrv2 oyGvb5tmNHKuXb57bPNyb8e6VxyB4dbYLAK534T5C78jB8MaPOVmGD+/MNk6dt/td8Wq rSzs4bnFIJPOq3UIXWDhEwmT9RkhPkue9ZJFHOP5m3wn4bX7Z+aLMhBboYpNiZi8OZ4U wgj0qhVG67U7YrT8utQu+SHzmJahj4o6IFQ8V6YP/d3tCma902APKcIke9VGKC3TWIx4 zMmQ== 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 v61-v6si2583160plb.499.2018.05.16.06.43.48; Wed, 16 May 2018 06:44:02 -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 S1752591AbeEPNm2 (ORCPT + 99 others); Wed, 16 May 2018 09:42:28 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:50447 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751395AbeEPNmZ (ORCPT ); Wed, 16 May 2018 09:42:25 -0400 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id CEEB1240009; Wed, 16 May 2018 15:42:21 +0200 (CEST) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se, laurent.pinchart@ideasonboard.com, horms@verge.net.au, geert@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] arm64: dts: renesas: draak: Describe CVBS input Date: Wed, 16 May 2018 15:42:08 +0200 Message-Id: <1526478129-16465-3-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526478129-16465-1-git-send-email-jacopo+renesas@jmondi.org> References: <1526478129-16465-1-git-send-email-jacopo+renesas@jmondi.org> X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe CVBS video input through analog video decoder ADV7180 connected to video input interface VIN4. The video input signal path is shared with HDMI video input, and selected by on-board switches SW-53 and SW-54 with CVBS input selected by the default switches configuration. --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts index d03f194..9aba28f 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts @@ -142,6 +142,11 @@ groups = "usb0"; function = "usb0"; }; + + vin4_pins_cvbs: vin4 { + groups = "vin4_data8", "vin4_sync", "vin4_clk"; + function = "vin4"; + }; }; &i2c0 { @@ -154,6 +159,17 @@ reg = <0x50>; pagesize = <8>; }; + + analog-video@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + + port { + adv7180_out: endpoint { + remote-endpoint = <&vin4_in>; + }; + }; + }; }; &i2c1 { @@ -246,3 +262,23 @@ timeout-sec = <60>; status = "okay"; }; + +&vin4 { + pinctrl-0 = <&vin4_pins_cvbs>; + pinctrl-names = "default"; + + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + vin4_in: endpoint { + remote-endpoint = <&adv7180_out>; + }; + }; + }; +}; -- 2.7.4