From patchwork Fri Aug 4 22:13:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13342440 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 094E9C00528 for ; Fri, 4 Aug 2023 22:13:44 +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=kMNe3uRcEQv+6bxjoiv6fkrzHKdgUGUCwcNJzMhkLgc=; b=qjSeM0dD7PXApv aYhAbaupkyRlWYFMe9Wtidp0DUnml+YDYUvoYQ3eLJPiG14taAqfFrwJTxu7x0PHJkW5E5huUnlI8 rbr5SuIzyyn7qEBE/xSP8wnrBTYia3lrLF1C1mtbVg2u+x8ckDiwutG6wEFJtCIrUAFr1i755TBNL ZC5bloJnzMFEpqSBFQwF5XOwEx8p/D1NPSZYiqwbPZNzAFKe7GU0Q0hQg12v9jrP92ENX6+2WsagA 0kmp0Hh7FaZMT66qtvKnJsiVhmWDcf5OyyPqmGKwf9WFKygIPyb7gcAIcPs9jB1IxBzMKrK69vnF+ 09oXs3IOvUAgf5+VkRIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qS32r-00DLFA-1Q; Fri, 04 Aug 2023 22:13:17 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qS32o-00DLEQ-28 for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2023 22:13:15 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a776cf15c8so235880b6e.0 for ; Fri, 04 Aug 2023 15:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691187192; x=1691791992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aW3EA+5s724gL/BZtzIBJhIU8eLrg7PY+7D9KA9TlvU=; b=ktuB9sQ47wzVnfcrYw9O1g+Jk0HUqIfIlJtw4lRrI2ML7/41er0XL5rN8lYq6dxpdm ENx1mSvGAIMg9hBKjawEV5lRCdfTqEV6v2xQw/6aIFxNmg0xJXuBUT7ldujwLkrYxY7S 8heqI7gyy2eH+n+JHQ8sangX3/GWILGJzWAB9dZK1Iu7Sp8JctikJ4159iPP3vTfFpk3 FQ9mdC/rYK3SVYgbtG+fwn/x6FgFkcZVeKJ6898MBzgvZJer6duw3BFhcFcIo+BcF3sN J/Wc1YFtLDJL0avPLQ3yuNl9tgaZFLxv2sOktwGvFbS8yt1IzHd8ZmOa1Jdyrpc83zO1 3Ymg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691187192; x=1691791992; 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=aW3EA+5s724gL/BZtzIBJhIU8eLrg7PY+7D9KA9TlvU=; b=OvXXrBU7pDIVq30xFgOtMh+amXc0lwTvfoZrD9vOHVRxZgMS1LVCatk8pAdAFbVyXv DW8+k4ylChr8XovfoVkx0dn5Z2wSP2WYjj2jc7BcbtGr5joTvNiG4rnc5484klm0SrgD xwnlfbKExsdhHGtxluW3FwlQ6MRvht55BWR3c+pePFj1bxZhIA8F5Ear2xBrBQLzNtl0 HVFoMDIDdgtgH8act9aBpnUiXME+rYh9KMmt79CwKLDRUnImMLC7MuUTDDvhFHsEJlG4 MxqbsdecMA7FeNQDhctdZZ2tRy47ZxrE6tlDS87jL2mNqrJ0UM8Nkk+vhmFU2tY8OZy8 2EAw== X-Gm-Message-State: AOJu0Yw2XjlsYUN2etWPD9whZRW2k6DhYEmpMmXMSh+sf23YGHIgKWvs yUwfZfW1Euv0yygWNiPqXv8= X-Google-Smtp-Source: AGHT+IEyNSaVGAyUDEwUxr3hXooOTngV1F61ls6hV3QF5Pke9JC2I2FmcoaY8BhG0xA27AgUPe5m6w== X-Received: by 2002:a05:6808:1445:b0:3a7:82e8:8fed with SMTP id x5-20020a056808144500b003a782e88fedmr2108821oiv.1.1691187192313; Fri, 04 Aug 2023 15:13:12 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:a0c0:fc58:3eba:a8b3]) by smtp.gmail.com with ESMTPSA id 21-20020a544195000000b003a782e88fd9sm782101oiy.58.2023.08.04.15.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 15:13:11 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/2] arm64: dts: imx8mp-evk: Add HDMI support Date: Fri, 4 Aug 2023 19:13:06 -0300 Message-Id: <20230804221307.535023-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-20230804_151314_741691_EB973845 X-CRM114-Status: GOOD ( 12.07 ) 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 imx8mp-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/imx8mp-evk.dts | 66 ++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index fa37ce89f8d3..cc9d468b43ab 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -16,6 +16,18 @@ chosen { stdout-path = &uart2; }; + hdmi-connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&adv7533_out>; + }; + }; + }; + gpio-leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -378,6 +390,40 @@ &i2c2 { pinctrl-names = "default"; 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>; + }; + }; + + }; + }; }; &i2c3 { @@ -443,6 +489,26 @@ &i2c5 { */ }; +&lcdif1 { + 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 = ; clocks = <&pcie0_refclk>;