Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5274160rwl; Tue, 11 Apr 2023 03:06:10 -0700 (PDT) X-Google-Smtp-Source: AKy350anpSlDmscvafOlHpzoNAieTLOjgTYE8wJiYMcEPm3bfvOHroowYNmMCg0Y+v5vFE65oBfA X-Received: by 2002:a17:90b:4a10:b0:23d:286:47d3 with SMTP id kk16-20020a17090b4a1000b0023d028647d3mr16631765pjb.40.1681207570659; Tue, 11 Apr 2023 03:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681207570; cv=none; d=google.com; s=arc-20160816; b=dSFIOQEzHbb4EgowJcHbMAFTsPNRKM2qn3Rjnb3lLXnu/lK7PfbeUC2MTa/l5oHAQb F8QqqcTwmX+GCpcVXkXlMBS/al76NGUjm+Y4dsqRAZOOxlD6nM638FFN4/QoyY9i+OFz DO4tX6i2BIURreMVPmihYGQH5mFgQUAhFvV2nuzA3YuojdP9JBma24tKXEW8XeVomThD vggTOnRkM5J3PRJtTzRLJPLWxaVPQbHosFXd438QWlYevAq1a8utFCLFE1FlzPHJ/RD7 64MvovvYcV4Em9AjPMQYxTDu5Mu/RMvm0RL0MiHlpJeb75rIsVaJcBZlnkMTIacBIYqV 6Ogg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fOYRmoDAYOMVhgc13v4Soh1ghJ1cQm98XNb8oCX1aJA=; b=o+DMjgVNNWtU7yDKhNr4vAGPwWfQKI+xtsQ3MFjJRqX0wE8UL4CYJJ0064nRWbyHYZ 4A9NkotPe+kwHx2Qz+dNScagzMEoXR1zjB/5FaZdDD4copmE/2Sfa4AHnFsO8GCPalHF 9N7G7uWu2ZjyWqx9fzffxHawVSKUfBPjlDIUc9OqwcLL4uqE7GOobZ/6+8h6fBnTwra4 IVI60UsErTidQEuz/m4vtkKwUzMxyPp/A+9e164yuoCphOPAe+1VJFFmEfzh9oz94Gkb f5lgyYvffRGnSVZ2821aH64A1aPdz921ASyhSrPEq8WuME0TUIOAQXRzeZGfkDWL+xtq IVYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh6-20020a17090b4ac600b002340e454213si13367935pjb.190.2023.04.11.03.05.55; Tue, 11 Apr 2023 03:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbjDKKFG (ORCPT + 99 others); Tue, 11 Apr 2023 06:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjDKKE3 (ORCPT ); Tue, 11 Apr 2023 06:04:29 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1EE5526B8; Tue, 11 Apr 2023 03:04:28 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.98,336,1673881200"; d="scan'208";a="155587984" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Apr 2023 19:04:27 +0900 Received: from localhost.localdomain (unknown [10.226.93.123]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 1B8E5400F2DA; Tue, 11 Apr 2023 19:04:23 +0900 (JST) From: Biju Das To: Rob Herring , Mauro Carvalho Chehab , Krzysztof Kozlowski Cc: Biju Das , Geert Uytterhoeven , Laurent Pinchart , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Prabhakar Mahadev Lad Subject: [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: Link DSI with ADV7535 Date: Tue, 11 Apr 2023 11:03:46 +0100 Message-Id: <20230411100346.299768-9-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411100346.299768-1-biju.das.jz@bp.renesas.com> References: <20230411100346.299768-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2LC SMARC EVK. Signed-off-by: Biju Das --- v2: * New patch --- arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi index b6bd27196d88..6818fd49b2be 100644 --- a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi @@ -17,6 +17,23 @@ aliases { serial1 = &scif1; i2c2 = &i2c2; }; + + osc1: cec-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12000000>; + }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "d"; + + port { + hdmi_con_out: endpoint { + remote-endpoint = <&adv7535_out>; + }; + }; + }; }; #if (SW_SCIF_CAN || SW_RSPI_CAN) @@ -36,6 +53,68 @@ &cpu_dai { sound-dai = <&ssi0>; }; +&dsi { + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi0_in: endpoint { + }; + }; + + port@1 { + reg = <1>; + dsi0_out: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&adv7535_in>; + }; + }; + }; +}; + +&i2c1 { + adv7535: hdmi@3d { + compatible = "adi,adv7535"; + reg = <0x3d>; + + interrupt-parent = <&pinctrl>; + interrupts = ; + clocks = <&osc1>; + clock-names = "cec"; + avdd-supply = <®_1p8v>; + dvdd-supply = <®_1p8v>; + pvdd-supply = <®_1p8v>; + a2vdd-supply = <®_1p8v>; + v3p3-supply = <®_3p3v>; + v1p2-supply = <®_1p8v>; + + adi,dsi-lanes = <4>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7535_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + adv7535_out: endpoint { + remote-endpoint = <&hdmi_con_out>; + }; + }; + }; + }; +}; + &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default"; -- 2.25.1