From patchwork Tue May 30 13:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13260012 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 261F3C77B7A for ; Tue, 30 May 2023 13:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Nr4eE4EORwjg4WnPyk//yoqfOt30kZzfegyqXJtpzwM=; b=2OiuANyDNyp/JO 9iV4D3Iia7dvUsXAeTJWqtPY09CsfO0/CN3T8Y3S6hh6otMHxc4zKlepY0dafoJ8m7J3XIWoL5VRm GyFnTSRTLe4G1id21fm1/E9pi87h2WFqd+PN2RlXM7eqwjifNpDAlyaJ2EYqNfDphSuNNqjJqlUW6 rke2wS6MbGdbapjfEIxIrl93w26Rw21HQ+ppWTAi6ohON9eV2AkEDA2+vDBgGjIaJOfAGTx3le1r8 1ugCZSwM03R8rNeLjc0ZD9xspx4sTzbGjyoR2hQCNXPMZ5Ka2ippJH5Bsn2ALFW4rFpSbro5d4cyp 9P49OFJGXP+/n61gqF8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q3z8G-00E01j-1v; Tue, 30 May 2023 13:11:24 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q3z8D-00E00r-38 for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2023 13:11:23 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-19e74f68e5fso497026fac.1 for ; Tue, 30 May 2023 06:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685452280; x=1688044280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uvWbRuLWBZkBNYDTFGiEhf8EeV7Y4dQ5AEzt3yYhhJ4=; b=hgL0UUSGxLlDD3E00vFFOoK5WOp5AhK5B/bvyPabCc1Dbj4UtHsDd/I8zRiuOfX1S4 AuOE3yiM4gaI0FYc6qgCeLAbd6FCOq2jn7UxTuwAKQ8R4TwfnJWhO54wTLz+/idkA1FX 3zVcP+0henBA6qIcKHMlmtKRrJ8m+c0mTKNAhxyfRg8h3rTN0268cc7WB8GSI1Jl/BRN gIbNOnJYQKY26aNYFq4kSsZxUrFdXd5LX9iYeAzGnv/jFNMF/EBK2f6iovBffeMmikai 5yUpK4DfLmbe6Nd2BdbnD8ChaONVp2P6GyiPSG9F40NVjxlsNAr3sA+K+GtqQVKey0AW Vn9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685452280; x=1688044280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uvWbRuLWBZkBNYDTFGiEhf8EeV7Y4dQ5AEzt3yYhhJ4=; b=jXL14Q+QZnRogeoaJPrUzPKh/h1FA1NagstUrOBXk9Du+rxzZpITiSYPHBJfmWoYm3 3pBbD1fpXGWDDtYA+SYIuYDivAShHFOMmN/Ol6f8z5vjp1uJGomgF+mS0PkoRNBeZCHK ca9DXinQ0RXGdRe7oCgdaMIgANCz+ykvfQml4VBQfwQ6T9mKg0QoqfGeuY6J1et7I9ZD nXxvr3p6Ih1ZFuzXzZ3Hf8W6oPzQnq4aA34cxBNrVdVwYW5SLuOqq6doIoz4zCJ0wWG6 lL3BvsPKnnXpE2yrUptDlzQ5ZZ8s+kSBopFoBrURe7zLoobSsPSFFmrzRbLLrRcZeDgg enNw== X-Gm-Message-State: AC+VfDxhnTGlMvS+3/emBvSvPRnnHe6lfOgbFETlngbgn6eNUqdqlDeJ 11K0068WvNNQvLyeUUa87T0= X-Google-Smtp-Source: ACHHUZ5HS9c49z/loIjNvrGfK9ElbW8T4XW/11tPNfYO+WShJL4NQRZh8rx9MGoJDyQVbku0l8tgJg== X-Received: by 2002:a05:6870:8191:b0:19f:21c3:9771 with SMTP id k17-20020a056870819100b0019f21c39771mr1334855oae.3.1685452280483; Tue, 30 May 2023 06:11:20 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:1a25:d7da:dd18:c5ee]) by smtp.gmail.com with ESMTPSA id q1-20020a056870e60100b0019ee7417845sm5612039oag.9.2023.05.30.06.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 06:11:20 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, frieder.schrempf@kontron.de, Fabio Estevam Subject: [PATCH v2 1/2] arm64: dts: imx8mm-evk: Add HDMI support Date: Tue, 30 May 2023 10:11:12 -0300 Message-Id: <20230530131113.1024426-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230530_061122_007996_C566F305 X-CRM114-Status: GOOD ( 11.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam imx8mm-evk has a MIPI DSI port that can be used with a ADV7535 MIPI DSI to HDMI bridge. Add support for it. Signed-off-by: Fabio Estevam --- Changes since v1: - None arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 3f9dfd4d3884..63a6cc509ca6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -19,6 +19,18 @@ memory@40000000 { reg = <0x0 0x40000000 0 0x80000000>; }; + hdmi-connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&adv7533_out>; + }; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -303,6 +315,39 @@ &i2c2 { pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; + hdmi@3d { + compatible = "adi,adv7535"; + reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; + reg-names = "main", "cec", "edid", "packet"; + adi,dsi-lanes = <4>; + + 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>; + adv7533_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + + port@1 { + reg = <1>; + adv7533_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + + }; + }; + ptn5110: tcpc@50 { compatible = "nxp,ptn5110"; pinctrl-names = "default"; @@ -348,6 +393,26 @@ pca6416: gpio@20 { }; }; +&lcdif { + status = "okay"; +}; + +&mipi_dsi { + samsung,esc-clock-frequency = <10000000>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + dsi_out: endpoint { + remote-endpoint = <&adv7533_in>; + data-lanes = <1 2 3 4>; + }; + }; + }; +}; + &pcie_phy { fsl,refclk-pad-mode = ; fsl,tx-deemph-gen1 = <0x2d>;