From patchwork Wed Apr 2 07:07:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings | GOcontroll X-Patchwork-Id: 14035607 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 D8968C28B20 for ; Wed, 2 Apr 2025 07:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sN0m2rV3uRRyf6KxlgbN1ZUugLc68cFmgo1Tme07QtA=; b=xWj9+MOpHTqYMG0tAu++TdMKO3 I52ZWXRSBusthXHdxGSdswLO5tEfPzWVYy60pN9/2/j6jsI8IeraSQf4TTdPbhlb1oLHxoB6JRD4X S+lOuBWtdV67n4gQD9eC5nn5IYUSwqxFSsX9G83sKNbqhNWcoM+j/aU9wOuqveiayh2UlKRL5rOnU YXfkQDCWIjvnFAiO3tsInjC4s1ArKYWSpeTukB0qF5ifULZo1Hds6duPcl11nqpSE8JfHOr5Ydod6 zhTJUHVnNi5J1eH/ZdltbOET9535lOJ+Hse0tyVj2xzWI3udZX2mn5cQWFNbM4qQntONQv04S9Yff FlWEYNvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzsOZ-00000005LpZ-3KvG; Wed, 02 Apr 2025 07:20:19 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1tzsC3-00000005JUQ-1km7 for linux-arm-kernel@lists.infradead.org; Wed, 02 Apr 2025 07:07:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 2C1C4445BD; Wed, 2 Apr 2025 07:07:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7E139C4AF0F; Wed, 2 Apr 2025 07:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743577642; bh=XhGh4KWbPw6pg0bsHBmrK4nesThP3rTPxXXdYWM9y/c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jmbG9SoSJ5E3WonlyK8E83gE/NEew9ZPM6pB7j78kAyC/Py+NCTo1uftf8RuehZff rT6s4BwSIjQf/o2nRrSR5s+IJs7HcqwYojdhGEZ7N5blqenPSeeyCU5lFg/K+4LJvS 65rDdNyyiKGgpwKPEylA4edvkA0ESrVtKwQ75868wzsV+ZRLy5yzieVuV5hW4ck7mY VX0dd+/0pyFG/1dbDtcAKKpYbLk5h7ng27+1p10lufiALAK2boLq/fOCoHCFN22fHs hhudnl2Frh2VwIF8eZwyaNa4o3rrVKg3L+KgZHcbvRE/yXjCiHyvEb6fS2WptWyH46 qSJ/fEEd/vwKg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73728C3601B; Wed, 2 Apr 2025 07:07:22 +0000 (UTC) Date: Wed, 02 Apr 2025 09:07:11 +0200 Subject: [PATCH v4 8/9] arm64: dts: freescale: Add the BOE av123z7m-n17 variant of the Moduline Display MIME-Version: 1.0 Message-Id: <20250402-initial_display-v4-8-9f898838a864@gocontroll.com> References: <20250402-initial_display-v4-0-9f898838a864@gocontroll.com> In-Reply-To: <20250402-initial_display-v4-0-9f898838a864@gocontroll.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1743577640; l=3591; i=maudspierings@gocontroll.com; s=20250214; h=from:subject:message-id; bh=SW8C2Ezl9yFyeS4dPDEpBmoVGHoMsH1oLf123qVEKYk=; b=4auH9859vkQxbcTaH9n0JGF5j85iALCSA+Ify5jR5o86LVm1vb1zF7FCUaDOGDJBRiWhPF/H5 /sbGx1GeVe2Co58A5FHlk9E1+D/5ki9K6/ihF5jGYljNSatpT6efLvu X-Developer-Key: i=maudspierings@gocontroll.com; a=ed25519; pk=7chUb8XpaTQDvWhzTdHC0YPMkTDloELEC7q94tOUyPg= X-Endpoint-Received: by B4 Relay for maudspierings@gocontroll.com/20250214 with auth_id=341 X-Original-From: Maud Spierings X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250402_000723_846185_FD1B35F6 X-CRM114-Status: GOOD ( 12.69 ) 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: , Reply-To: maudspierings@gocontroll.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maud Spierings From: Maud Spierings Add the BOE av123z7m-n17 variant of the Moduline Display, this variant comes with a 12.3" 1920x720 display. Signed-off-by: Maud Spierings Reviewed-by: Frank Li --- Currently the backlight driver is not available, this will be upstreamed in a future patch series. It is a Maxim max25014atg. --- ...x8p-ml81-moduline-display-106-av123z7m-n17.dtso | 139 +++++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106-av123z7m-n17.dtso b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106-av123z7m-n17.dtso new file mode 100644 index 0000000000000000000000000000000000000000..dc0f86ca55fb6c21f10fbd333374a89002bb71c0 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-tx8p-ml81-moduline-display-106-av123z7m-n17.dtso @@ -0,0 +1,139 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2025 GOcontroll B.V. + * Author: Maud Spierings + */ + +#include + +#include "imx8mp-pinfunc.h" + +/dts-v1/; +/plugin/; + +/ { + model = "GOcontroll Moduline Display with BOE av123z7m-n17 display"; + + panel { + compatible = "boe,av123z7m-n17"; + enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&pinctrl_panel>; + pinctrl-names = "default"; + power-supply = <®_3v3_per>; + reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + + panel_in0: endpoint { + remote-endpoint = <&lvds1_out>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + + panel_in1: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; + }; +}; + +&i2c4 { + #address-cells = <1>; + #size-cells = <0>; + + /* sn65dsi85 */ + bridge@2d { + compatible = "ti,sn65dsi84"; + reg = <0x2d>; + enable-gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&pinctrl_lvds_bridge>; + pinctrl-names = "default"; + vcc-supply = <®_1v8_per>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dsi_lvds_bridge_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&mipi_dsi_out>; + }; + }; + + port@2 { + reg = <2>; + + lvds0_out: endpoint { + remote-endpoint = <&panel_in1>; + }; + }; + + port@3 { + reg = <3>; + + lvds1_out: endpoint { + remote-endpoint = <&panel_in0>; + }; + }; + }; + }; + + /* max25014 @ 0x6f */ +}; + +&iomuxc { + pinctrl_lvds_bridge: lvdsbridgegrp { + fsl,pins = < + MX8MP_IOMUXC_SAI1_TXD2__GPIO4_IO14 + MX8MP_DSE_X1 + >; + }; + + pinctrl_panel: panelgrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 + MX8MP_DSE_X1 + MX8MP_IOMUXC_GPIO1_IO09__GPIO1_IO09 + MX8MP_DSE_X1 + >; + }; +}; + +&lcdif1 { + status = "okay"; +}; + +&mipi_dsi { + /* + * burst has to be at least 2x dsi clock that the sn65dsi85 expects + * display pixelclock * bpp / lanes / 2 = dsi clock + * 88.000.000 * 24 / 4 / 2 = 264.000.000 + * range gets rounded up to 265.000.000 - 270.000.000 + * 267.500.000 * 2 = 535.000.000 + */ + samsung,burst-clock-frequency = <535000000>; + samsung,esc-clock-frequency = <12000000>; + status = "okay"; + + ports { + port@1 { + mipi_dsi_out: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = < &dsi_lvds_bridge_in>; + }; + }; + }; +};