From patchwork Tue May 30 19:19:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13261038 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 91CC3C7EE23 for ; Tue, 30 May 2023 19:19:58 +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=q+sCCpN6xl9Qroip5hU35B1QaYXvVMfcDoTxcSLnGC0=; b=kIqgUFIsS27E+i ghbvP3k5pH8TT25//J1H3CtfOd8m16g4DBFj/0MZdbmhDUf9f9MpHTXzVJ5x40X4ApdMz11mGMfBP 8FAjd7P8haey7y9JPMc0Q5OwZGthcQ3HKJxxhhUpyYLpSZXoN8w01CHjXYHUk/ro2k82BxBGTP2/q zhgb9k3e7wx9R1oCsQ29dRMO1yznXaN9naBjRMcjilyIdswbhnMS/paHCNBBZaIrXztSHdHtd42bc R5By7E1DLn8Ec21QYLqkndcf5gCaihilFbCpKrGYfmtTMzTcLW9vRFajPphPz/5ErQgIUXB3i0EDV Mgn9HakIppJvoKFOPagw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q44sY-00Exxn-0O; Tue, 30 May 2023 19:19:34 +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 1q44sV-00ExxI-0B for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2023 19:19:32 +0000 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-397f989f5d3so157184b6e.0 for ; Tue, 30 May 2023 12:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685474369; x=1688066369; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X5dE+dBz6KpaMNa92b1SuGzsB10zXyRP2XThwvgQnM0=; b=YVwlzqa+Du3poWNq6Za7UOiiK1I6uY0Co+5f0d09L0h5ya0khM0NmXXQstyTgc23zo bakEM8RzbTjC52nleqOeHsekg9DWMFvObsTIbdyHdf4OMe2L43046FIhFCdMzi7Sql9D lQByaRCw35cH+6YPiZaDujOtziCNAv9b0tLivXGU2FzXl5RzZZ+Zj/sO1u1b+g2Zf/uh uyk4W5LRV82MTuoYLe2xGdy4zPTt5vsXlNVzugBid4AEOpAfWZ2ZFAlQIGimGsRjLlcr u80s9PAGl3KgHTWRIrU2LqUpNIBLkoPNridVN7G5KO2z2R+F4tGy9EksUbP3HnPS12nz +EgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685474369; x=1688066369; 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=X5dE+dBz6KpaMNa92b1SuGzsB10zXyRP2XThwvgQnM0=; b=SOMBDMb7l6/GEDxmE2lJvZ1wVSb4nOMm98pcogRqE9rcD7CqURLyfCCLTfcITs6IPU r4fajUfMFVDCv0NWRwUyqqyzidDv7RnKPl7O4alJvhYQ48hFmJvt19gcEbWeDrpgy6vj LVxFFdOyc20DmX8GqeKCFXmU/4bSg1/ofaIxH7I6l4xE4vSWSI2ZXI6a2QZhnFJq2Ptg YUGfSZ3aQ52I9gSAz/7A0rjYyzgkh8RrhB8cvsMu47EnifvNlbrrQqECni4yKVebj7Bs cSd11NC+qqlL8utHFz5hsCYqiiB1VenwngvJHLHrjCt7HCoeBu7cLrB/jZdnn/Laf/ZU CpUw== X-Gm-Message-State: AC+VfDzDasHlCawk+prSOO9xI27WLg08fF2oMkD1xPYbmctf2gV0isIh OxaOSvckxsLwPpt6cceYjto= X-Google-Smtp-Source: ACHHUZ68qoKzr3yGQZdH/mBKPbvQLE2tAawFKpWy5MunxB/cPtrIe5Tj2+AhotduSHOICGzHrUAI7A== X-Received: by 2002:aca:62c5:0:b0:394:25b9:db19 with SMTP id w188-20020aca62c5000000b0039425b9db19mr146094oib.2.1685474366971; Tue, 30 May 2023 12:19:26 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:c694:9254:2d8e:be7e]) by smtp.gmail.com with ESMTPSA id p11-20020acabf0b000000b0039638fc47f9sm6249440oif.32.2023.05.30.12.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 12:19:26 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH] arm64: dts: imx8mm-phg: Add display support Date: Tue, 30 May 2023 16:19:21 -0300 Message-Id: <20230530191921.1136349-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_121931_096351_0B32537D X-CRM114-Status: GOOD ( 11.66 ) 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 The imx8mm-phg has a SN65DSI83 MIPI-DSI to LVDS bridge. Add suppor for it. Signed-off-by: Fabio Estevam --- arch/arm64/boot/dts/freescale/imx8mm-phg.dts | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phg.dts b/arch/arm64/boot/dts/freescale/imx8mm-phg.dts index e9447738b104..aa94bf9d40f4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-phg.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-phg.dts @@ -80,6 +80,35 @@ reg_usdhc2_vmmc: regulator-vmmc { startup-delay-us = <100>; off-on-delay-us = <12000>; }; + + panel { + compatible = "panel-lvds"; + width-mm = <170>; + height-mm = <28>; + data-mapping = "jeida-18"; + + panel-timing { + clock-frequency = <49500000>; + hactive = <800>; + hback-porch = <48>; + hfront-porch = <312>; + hsync-len = <40>; + vactive = <600>; + vback-porch = <19>; + vfront-porch = <61>; + vsync-len = <20>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; }; &ecspi1 { @@ -113,8 +142,58 @@ &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi83"; + reg = <0x2c>; + enable-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dsi_bridge>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + data-lanes = <1 2 3 4>; + }; + }; + + port@2 { + reg = <2>; + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + +&lcdif { + status = "okay"; }; +&mipi_dsi { + samsung,esc-clock-frequency = <10000000>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + dsi_out_bridge: endpoint { + data-lanes = <1 2>; + lane-polarities = <1 0 0 0 0>; + remote-endpoint = <&bridge_in_dsi>; + }; + }; + }; +}; + + &uart2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>; @@ -166,6 +245,12 @@ MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x19 >; }; + pinctrl_dsi_bridge: dsibridgeggrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_DATA1_GPIO2_IO3 0x19 + >; + }; + pinctrl_ecspi1: ecspi1grp { fsl,pins = < MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82