From patchwork Tue Jun 19 15:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10474675 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 CF8696029B for ; Tue, 19 Jun 2018 15:17:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2FE228B53 for ; Tue, 19 Jun 2018 15:17:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B78A928D38; Tue, 19 Jun 2018 15:17:42 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D8DE28B53 for ; Tue, 19 Jun 2018 15:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937703AbeFSPRm (ORCPT ); Tue, 19 Jun 2018 11:17:42 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:39762 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937365AbeFSPRl (ORCPT ); Tue, 19 Jun 2018 11:17:41 -0400 Received: by mail-pf0-f170.google.com with SMTP id r11-v6so21048pfl.6 for ; Tue, 19 Jun 2018 08:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=RVZWUnuyjIp7F7nBqolj3tDSlulg6qvkEDLdGt+XN7o=; b=TVdT+OLs4T9oQ7rg5pNkRuCav49Pa4ls1tQ8qn2YJD5Bipe9ibCZK5rdgfauViDqp2 MWN+pV+13eUMIIVDAmxJtkx0BiDSQhhafDvV1lEFTDXk6qsDyfSGvF4+j+vGN7iSynXZ kyMy9aUZAIS+VruULO4HXfcNtkNQI8vIS6mIkmWUfp2BfdqOkkHbQfkKHD49ct1PHPzq OMSjMPL3hTDGJXg4u3xxPZsTT37PczkwvYuOKTy7AKtaExKZGU8TIttlsCX05MMlK6Ft 1Mw48ELLOyemQT5qls5b9a+S1CqvumOKUBxNgh6IC0IctslZYgdH/YrwPd6Tbcp/SOPg YP4w== 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:date:message-id:in-reply-to :references:subject; bh=RVZWUnuyjIp7F7nBqolj3tDSlulg6qvkEDLdGt+XN7o=; b=OFNBl45t2NGm5iLPafSmuRdSGJ+0LUSpw+ZAOe9lLtEg2AZOBJmRtWUA8D0xo0HskG aQCQs9JaZ9w2KCTTS/bGWoJtLJoj40AJPT3E97aZ5z7eWXwAlxolSApA5sSOQq0Kg9vo a6Wj3iCfEOHZTVw3JicT4ai7kSRKrVxGQ5jLqg3BFv31o1TkfUsVLQPRDspZKkJgU7Ng sQUk9xUvGMu9gamX7HLzqhTGacxyhjkrEM1roLlUD1H33sjYIecSVrGxysvJQH/FWB/V WtaSlb2Fhk4l+Fprp1df6wFHD3BItFmdARLNRUFdM2WohIRbH9BD7PUl2z/Suorx1KaZ H5hQ== X-Gm-Message-State: APt69E2zRAZm4VUa/0k2V3C+7kbTkef1uZllPMSsrhVlSLM8MOSRyRp1 N5MCyPMPgSlr07NIxQPx5wDGc0PB X-Google-Smtp-Source: ADUXVKLDXDHnmxAQK0HuZCS1BRMCzG9dnSjcmBXZOPvC5tF/0on1hs+qP/5X9w75D/M9f6WP8oRXKw== X-Received: by 2002:a62:7db:: with SMTP id 88-v6mr18534918pfh.178.1529421460608; Tue, 19 Jun 2018 08:17:40 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id d23-v6sm2243154pfe.2.2018.06.19.08.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 08:17:39 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Wed, 20 Jun 2018 00:19:19 +0900 Message-Id: <152942155999.28480.10752587080512094478.sendpatchset@little-apple> In-Reply-To: <152942152672.28480.665572564123111170.sendpatchset@little-apple> References: <152942152672.28480.665572564123111170.sendpatchset@little-apple> Subject: [PATCH 03/04] arm64: dts: renesas: ebisu: add adv7482 support Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Add experimental support for ADV7482 on the r8a77990 Ebisu board. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 91 ++++++++++++++++++++++++ 1 file changed, 91 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +++ work/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts 2018-06-19 21:14:13.230607110 +0900 @@ -28,6 +28,30 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + cvbs-in { + compatible = "composite-video-connector"; + label = "CVBS IN"; + + port { + cvbs_con: endpoint { + remote-endpoint = <&adv7482_ain7>; + }; + }; + }; + + hdmi-in { + compatible = "hdmi-connector"; + label = "HDMI IN"; + type = "a"; + + port { + hdmi_in_con: endpoint { + remote-endpoint = <&adv7482_hdmi>; + }; + }; + }; + }; &avb { @@ -47,6 +71,65 @@ }; }; +&csi40 { + status = "okay"; + + ports { + port@0 { + reg = <0>; + + csi40_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&adv7482_txa>; + }; + }; + }; +}; + +&i2c0 { + status = "okay"; + + video-receiver@70 { + compatible = "adi,adv7482"; + reg = <0x70>; + + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&gpio0>; + interrupt-names = "intrq1", "intrq2"; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>, + <17 IRQ_TYPE_LEVEL_LOW>; + + port@7 { + reg = <7>; + + adv7482_ain7: endpoint { + remote-endpoint = <&cvbs_con>; + }; + }; + + port@8 { + reg = <8>; + + adv7482_hdmi: endpoint { + remote-endpoint = <&hdmi_in_con>; + }; + }; + + port@10 { + reg = <10>; + + adv7482_txa: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&csi40_in>; + }; + }; + }; +}; + &extal_clk { clock-frequency = <48000000>; }; @@ -63,3 +146,11 @@ &scif2 { status = "okay"; }; + +&vin4 { + status = "okay"; +}; + +&vin5 { + status = "okay"; +};