From patchwork Sun Mar 17 16:48:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13594767 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 D4CA4C54E60 for ; Sun, 17 Mar 2024 16:49:25 +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=dM7QjcgsYdX5YsbvfIkPn772FIbQjtl/1o8L1y1M7Mc=; b=BiSS6cd3leliaf Ac5XplQMYF0l+Bqw1LG+dNt5EPD+VoeHqkasxBI/JVrPr9v8qQxCtgFkHN2Ah02d3FCGt0d6Lo7RT hZO8zQ4vG226q2bZj9gDl40nil3Li35lHWpuRINl+XYTlQR8Q8oqHY0zkN0SU4kQ/RMXAjdALawDQ vxN94CRhP/6NxjuoqFtv9kr7lirWpwfDeXLwVSfs3NPe5qNlorl2oJV34/1NM5PMnm+qCBYnCZE8w Zb2SLiQ/zmdQpMV6oi94myTp8+EVq6o6WCEQT9Yv8WfEMyp1LMA4xRisnifbeKcivJ4f8cAbmZpDi CoVU2lvC/bsfpvk478DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rlthB-00000005o5B-2R4y; Sun, 17 Mar 2024 16:49:14 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rltgy-00000005nyz-3Hxn for linux-arm-kernel@lists.infradead.org; Sun, 17 Mar 2024 16:49:02 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2E9C31815; Sun, 17 Mar 2024 17:48:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710694114; bh=3vvp4YGroBZPPJL/vGg6IQrn0WY0Oy9stoRafyY1KKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RjoBbxA811EkveEVI/zeqWBiurYJ4eNLs4En5GzaskkXc8cxWsXrXnkq/4mytZ5CF cR2PGgjw518YbIr8idN7h01A6Z3evYoAY0c9ify4h8gbKZV/fngzdqmCVmYWZ87llK qEXn6C4uvDDSsHsNxu4D8BtXdIH+df+dmsTemtQ4= From: Laurent Pinchart To: linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , imx@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: freescale: imx8mp-sb-ucm: Add DSI panel overlay Date: Sun, 17 Mar 2024 18:48:50 +0200 Message-ID: <20240317164850.32708-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240317164850.32708-1-laurent.pinchart@ideasonboard.com> References: <20240317164850.32708-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240317_094901_015670_5C1C1AEE X-CRM114-Status: GOOD ( 12.34 ) 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 The SB-UCM-iMX8MPLUS kit is shipped with an external DSI panel. Add a corresponding DT overlay. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/freescale/Makefile | 4 + .../imx8mp-sb-ucm-panel-kd050hdfia020.dtso | 81 +++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 02efa97fc464..d7432ce6a7bb 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -165,6 +165,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-sb-ucm.dtb + +imx8mp-sb-ucm-panel-kd050hdfia020-dtbs := imx8mp-sb-ucm.dtb imx8mp-sb-ucm-panel-kd050hdfia020-dtbo +dtb-$(CONFIG_ARCH_MXC) += imx8mp-sb-ucm-panel-kd050hdfia020-dtb + dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-lt6.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-mi1010ait-1cp1.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso b/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso new file mode 100644 index 000000000000..fdad943c1554 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021 CompuLab + * + * Device tree overlay for KD050HDFIA020-C020A panel connector to Compulab + * SB-UCM-iMX8PLUS. + */ + +/dts-v1/; +/plugin/; + +#include +#include + +&dsi_backlight { + status = "okay"; +}; + +&i2c5 { + status = "okay"; + + touch@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dsi_touch>; + + interrupt-parent = <&gpio4>; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; + + irq-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>; + }; +}; + +&lcdif1 { + status = "okay"; +}; + +&mipi_dsi { + #address-cells = <1>; + #size-cells = <0>; + samsung,esc-clock-frequency = <20000000>; + status = "okay"; + + panel@0 { + compatible = "startek,kd050hdfia020", "ilitek,ili9881c"; + reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dsi_panel>; + + reset-gpio = <&pca9555 4 GPIO_ACTIVE_LOW>; + power-supply = <®_3v3_per>; + + backlight = <&dsi_backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <&mipi_dsi_out>; + data-lanes = <1 2 3 4>; + }; + }; + }; + + ports { + port@1 { + reg = <1>; + + mipi_dsi_out: endpoint { + remote-endpoint = <&panel_in>; + data-lanes = <1 2 3 4>; + lane-polarities = <0 0 0 0 0>; + }; + }; + }; +}; + +&pwm1 { + status = "okay"; +};