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>; From patchwork Tue May 30 13:11:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13260013 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 8BB9BC7EE23 for ; Tue, 30 May 2023 13:11:57 +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:References:In-Reply-To: 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: List-Owner; bh=mcUpbhXCU79spUfvof627rDICiYEwcXftMVKN1FKoHo=; b=NM2P8wc4cmdj3V tYj6QkVw/Qt+FpU/NvClkDsbDoW1Qhp33g2KwYsx/KVtUZwZPPLpqIaWvTEFC6pk3tiW2SVPc/z6+ bD1S0XFkawy0oXEdSTrqG9Jt/BKwIJPW/eMJS+oWJWMsFexGmKLu5KJetmlAnF4imdR68lsOnBfXm T7ZgpcpcRNa2I/XHK2mBKJSDnbFN+j/pEYk4iHyJTzGLWkZjXPDdGVeiZnzZeSk19oT4POGgwssJb 1obPR7EtmjC203HvhtBLXHdvWFPivGztUmvRDi65wnzrjyGqEJIKGXyX/QHggB9NcVl/T46aohaPw Lb5rReT5gnc4uKvDMPbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q3z8P-00E03f-1A; Tue, 30 May 2023 13:11:33 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q3z8F-00E01K-2j for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2023 13:11:24 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-19f84b396b4so244737fac.0 for ; Tue, 30 May 2023 06:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685452283; x=1688044283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FmXwf7g5z5wgx6hI+bRAqtNGwni/YuYE69RRW2gMOyM=; b=ZJDjCkTpZ3mA1SfsJvnrLHhJ0VKr0TLtVJSFKATyND2KZDXbB06Y6GIO9H6TNuTfZR sN6PJgq3D+OxfIK54vPoUJl/hUexCN2oFJVMYJZyNFaZ5VdLdgMej/5tIkX5a86uXzoc zHAKkP1fsZ6flRptOcmvM4cfIwuDh1tqhI2vTpABJjBHPu2LdrY7DErGBSEITHQEbijb wI9vzKaaS9HZu1ya6qFiQ2763x6kdDcxsGsWwK8fYeO+VLPg1F0fmFRdcp6Srhtbhl4W YgnrN1ijftWjXpNLYLLqRqv/Bf/PNcJQRaxNa1dBeSML4vLhUqXiGS3xE5ofIF19zJa2 dZaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685452283; x=1688044283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FmXwf7g5z5wgx6hI+bRAqtNGwni/YuYE69RRW2gMOyM=; b=dDvuh1P4LnvCV1fc93QPZ8ONvGQPDtYxOY5SCzEdf9icW3zhpFdmzMtd2OsGpXezCV GgEq7/VqBhEMRPkzWxNa7XH+bq7vmGjvD4wvql2SpM8NgBrpRw3H+Jae/NTmEJ5xMFHA 90FPSJxu0MgY/E0d4DmkBkeSJZVBHueyIifHBpHUTBsVmiGkOQiZ9OHtZ++/ZPQ/TMSD ZUgcYHXsQX/SFGVNQ2mVCbD0YXDtKeGpW1pIObV+6Eno7wdm8O3CF39z4pPKaTSbsz+E aoL9cs6svWUgf1D0Y6Cd0nailrDXeHKEnXh+d0TAny0YIBURInAqcetGq4Pvovl0jGi5 8Jlw== X-Gm-Message-State: AC+VfDySuuCs1Duqk9j68JKt7e5PJQP7yGU1gqQc73RL14Ye7/JHvqEh N9fw0vT8grVIGts11PQAsjg= X-Google-Smtp-Source: ACHHUZ7pA8sVDWkfeWkcm0hupcJGDyZBy+UVCoUuJI/c9QpPXqLVKcaJMNLSuwH19hfM0ZSAUop65g== X-Received: by 2002:a05:6870:9a25:b0:18e:f0fe:3638 with SMTP id fo37-20020a0568709a2500b0018ef0fe3638mr1246046oab.1.1685452282759; Tue, 30 May 2023 06:11:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 06:11:22 -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 2/2] arm64: defconfig: Enable the TI SN65DSI83 driver Date: Tue, 30 May 2023 10:11:13 -0300 Message-Id: <20230530131113.1024426-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230530131113.1024426-1-festevam@gmail.com> References: <20230530131113.1024426-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230530_061123_880765_01194A29 X-CRM114-Status: GOOD ( 11.08 ) 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 There are some imx8mm-based boards that contain an SN65DSI83 MIPI DSI to LVDS bridge chip. Add support for it so that the LVDS output can be functional by default. Signed-off-by: Fabio Estevam Reviewed-by: Frieder Schrempf --- Changes since v1: - Fixed the commit log HDMI-->LVDS (Frieder). arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 53fb665078db..479556b3d6be 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -819,6 +819,7 @@ CONFIG_DRM_SII902X=m CONFIG_DRM_SIMPLE_BRIDGE=m CONFIG_DRM_THINE_THC63LVD1024=m CONFIG_DRM_TI_TFP410=m +CONFIG_DRM_TI_SN65DSI83=m CONFIG_DRM_TI_SN65DSI86=m CONFIG_DRM_ANALOGIX_ANX7625=m CONFIG_DRM_I2C_ADV7511=m