From patchwork Tue May 30 12:56:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13259997 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 8952FC77B73 for ; Tue, 30 May 2023 12:57:10 +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=TpcMG3GK4OVNcHlobDVqlsw6bWqmygWywI7omAF2/Rs=; b=KRfL/T1JSel/YN j6yRJ9LalaYhzR87yERRLdQQputbrGJnjQs0sK9ZFg5Fezvlfn39iAzBHFzMg0MzJD+Fa92b1JSRC l+5nmq2gHIZQyvbJFf/btydzscdvqnxxNRbi6DirVq2puZ9+z2QRrueBk45KvLl1o6xvVq+TXJ6Rd EAaRVq/5ils0LxEILAnlGGaxpKUI104cwCwvnNH8lJZSmFYYCDzJdL2Br57sAMYzHKP8AEBTUFBpm t0L3wWC59sXTahpW/WpVADjSr/pipCx993PNsbaABaJ4/m/r1C6Zr8sSAtoQ4QrBfyU1iJDT4yK5B fI20UWG7N2x9xtU5lzVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q3yu6-00DxBa-1p; Tue, 30 May 2023 12:56:46 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q3yu4-00DxAp-0P for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2023 12:56:45 +0000 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6ab0d407a8fso152503a34.0 for ; Tue, 30 May 2023 05:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685451403; x=1688043403; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WGGC4JCS2jSytCJ6ll+7qmegsD1Hgq8EtY9Hc/bnaPw=; b=Yjs6KzwcLscOpLsRQaznupwccx3yFEM1lWKUzJYaw4oBVwtEFcfE+sRrVoBU7JMhQL rv7o8AydT2xafgtg9ID2XQDrNFyfT7Cuy9arinfaxJPmG/N2Sbed62nx107SAw+1u2rG X2r3i1xkUPjmR+a9XwODbQhvDKdwPQ+XvKigjmCwh2Xqcg7x+4uzz3E/nB1Y1JvWwXno sdETvmSVIze0fl4LNN4jfBwKvvy/RjysuU/UMRZTkJdy5Gw4VxrHAZGj3EFxpDqQWagC sm2Q0kfghezTW1De+y5jLpNKMuBSahatyJTUQcEuCANAlXHdSUPHxdUJx3hSR1WwZhCL nEVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685451403; x=1688043403; 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=WGGC4JCS2jSytCJ6ll+7qmegsD1Hgq8EtY9Hc/bnaPw=; b=SEbAdJbAovE6hLgS6kyXQNII/ZmtOooasAEwkI/dvtGYAG3UJYeTzcMx2b5+t1/pXh rGd+N/2iquweryt9ZQoMJCc/ISpnyJ0I3wHPIrPRBWks9ujOyagANndsJidiVx1ypEzA KEEibvVTgCE6lSYI3VUaJ4VVbhmSX7LQDlxhxdY1D167EFzszd6kHrCf7db7JYwmTj8E bDR+Y42S2eNRoAxJsb7KLlvd93FW4eewl1RFL5S9NWCqFJPl4MU4G2ClO9fkvcU5Z/wz R1N589r2bFMCnulmMIO4+MFhJAk3jV0ZK1Nf58sn4p1fZGw/pEdqcIuUUboPFh3SQDxc jYWA== X-Gm-Message-State: AC+VfDxB2lGfJQ13nR+P5yHGLvtCItJvhwP8FmV+UNfzMYjOj5+VRotM ViPZb5PoHgwhjQbfpHh5sl0= X-Google-Smtp-Source: ACHHUZ6zLB2WjIphHSS38/6BGUC65mt5Qp44WSq+QS7mHxF4V+aihy35jR2Ajs9+BNILo2O6eGRv8A== X-Received: by 2002:a05:6830:2b08:b0:6af:78e9:4d88 with SMTP id l8-20020a0568302b0800b006af78e94d88mr1155006otv.3.1685451402667; Tue, 30 May 2023 05:56:42 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:1a25:d7da:dd18:c5ee]) by smtp.gmail.com with ESMTPSA id t8-20020a0568301e2800b006ab241d8c42sm5487779otr.17.2023.05.30.05.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 05:56:42 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/2] arm64: dts: imx8mm-evk: Add HDMI support Date: Tue, 30 May 2023 09:56:32 -0300 Message-Id: <20230530125633.1022899-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_055644_162949_9FD0FEFE X-CRM114-Status: GOOD ( 11.91 ) 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 --- 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>;