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>; From patchwork Fri Aug 4 22:13:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13342439 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 968CBC04A6A for ; Fri, 4 Aug 2023 22:13:43 +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=tQmPEja/mf3Ri+8iKBcfzolR438R7p88s9nkxCEnrGY=; b=rZ3qsbncitX72S gYovFSW90tptruNYeWqopUP4cs5ZrLK+D1snq8HBXBe6Pm9nGlsD6rGL9hMBXwQuuR0HcZlfJNXiJ On7r+2dW2m7UKP2wUT8d1L5LGaEy6nU52Oc/VTAcgeCHTF7D+P1V2CXijHlfDwUEwGyVREMoTIxXt qXDEBI0Or94xH3Hz/F34bCF2Af1hviUN4H635JcTNqVXZ8lnK1nXzS08deO5Nw3qjYDToPAxMf/A6 GQ462k7g43zSBt3bPbOU+m8Wt3hvPRocOPBb9uA7L3yxQHRlox66ygiI5OYI6yaSNBaHA13t372R3 +KS08v4iHROLVK58P7Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qS32v-00DLFY-09; Fri, 04 Aug 2023 22:13:21 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qS32p-00DLEU-1p for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2023 22:13:16 +0000 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3a7491aa219so374399b6e.1 for ; Fri, 04 Aug 2023 15:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691187194; x=1691791994; 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=bPdZzdjTDIUSpa+CtKmQigqQ01C9BDP35fg/BiiDvWg=; b=nYAQplDu/BYdSqyiL8Oopy8Xx77HeMORlpi8gmnvPp1i3Us45WLnEnetShU8gvF2HW hE0RmY1NPyu8/RTCwDnTJEb9wFZP4ptOxk2XVzis3swJVM77xDTtMqIqmXvFwRqxk089 8u1zDeRMmmj1SNgWfs3joADnTyKcmOu01adBGb8vbI/tny1eWQdJecq9ofFTQjQm7fBd 47vy7vGs1UWX2OOMqp2xANuZhS5F+3Ru1sfyyYq752ky1qy6TbQbIyq9HPnPQ9xwvYFg ztHV5ya0kk19g64/0NKK5iSjS8jZy6WEBKAuGZOwfhDqBKigyyeDQV2xPsez0BbTSlSf +90Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691187194; x=1691791994; 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=bPdZzdjTDIUSpa+CtKmQigqQ01C9BDP35fg/BiiDvWg=; b=a/3uOprX7ZSkHlQ1XWgv0LDR+vDpFjHegsMB3ezPWh6EeoWmQy68QOG4LTmcqr+/nb kA8Fq45eH/xpiQnhNvQy6fxxi1r9jDc85K91PNk0lX+QdWXFx/89j9viK6STCcfFOAe4 9l806HGDvezdZTqVtgxNuY7ff+HAc1dWzRNyIejcWt+Hojy/kPqUiELeCAZhvTNpXRiU IFVBQJ9Z41SJfjVn41a+XTCn+tBmmmscoKN0UIhqfPX6ic88AFwr7PMjQYjbkSQ2pXYB CU683DGS91HWGgeICMDeAuxnQ+TOLHbgBxQBcOow2R2LF1XYn7oQTdi/ws707ze+GELP VBDw== X-Gm-Message-State: ABy/qLbZe6L1quq6MCP+7RoZtU2UErDdBk1HHLeR6Wjo4wa1kBsHcoaY ExIdDtBQS2H9E81dEA0oLVc= X-Google-Smtp-Source: APBJJlFF6F0ks0fhlUK16nUmXNuGNmC+Sxe70FmyKlAFjmkXnQ9BNG9GibWSJLCr+MQBo1+QEuHa1w== X-Received: by 2002:a05:6808:1289:b0:3a1:a62a:9ed0 with SMTP id a9-20020a056808128900b003a1a62a9ed0mr21408398oiw.1.1691187194259; Fri, 04 Aug 2023 15:13:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 15:13:13 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/2] arm64: defconfig: Enable CONFIG_DRM_IMX_LCDIF Date: Fri, 4 Aug 2023 19:13:07 -0300 Message-Id: <20230804221307.535023-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804221307.535023-1-festevam@gmail.com> References: <20230804221307.535023-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230804_151315_601387_5C9B9A82 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. 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 Enable CONFIG_DRM_IMX_LCDIF so that display output can be functional by default on the imx8mp-evk board. Signed-off-by: Fabio Estevam --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index bf13d5c46578..4337ebdca504 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -865,6 +865,7 @@ CONFIG_DRM_MEDIATEK=m CONFIG_DRM_MEDIATEK_HDMI=m CONFIG_DRM_MXSFB=m CONFIG_DRM_MESON=m +CONFIG_DRM_IMX_LCDIF=m CONFIG_DRM_PL111=m CONFIG_DRM_LIMA=m CONFIG_DRM_PANFROST=m