From patchwork Tue Aug 22 12:08:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13360557 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 A0E33EE4993 for ; Tue, 22 Aug 2023 12:08:52 +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=NwbCPd20X6IQxQIEPWZwQsfs2xqWf9mzaR0EDQhWdlY=; b=M9Zl7hc5YNxLjV I4fQgHyeLZudWqbSVKMIA94QkxtZU9bAcpAr8tvHWpvZ3peb/0/LN2V/bknChjp2+99+F+b6jvFGm kaBMu4s1qrA2C5bKNXHlJsJOdbSF0/vBzZza76N/R+WKz9AA6V5ExUIvTHviOMqI/QVtoAmF6NN7Y ajz04vEACJx9DbRgRtTzJ8GLrLadJUhHcmQAK2WI2qhI4yV7dUmXyaY6OQeiBEuN79sW/h9zv0PXY rWGx3QUHf5FWNLFVZxBv38opsVkj4jvY7sPjUUGTXJLhTMORpsQ/r6/qEAqlbEzpn6JC1K/Pr6FlL r9Hw7Gt4TA2PVY33lang==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYQBO-00Fs9W-1f; Tue, 22 Aug 2023 12:08:26 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYQBF-00Fs5K-2C for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 12:08:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1692706097; x=1724242097; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pw62WBSNONgfwtUpzWssQYmAYfMnndHeEiaVsXsvjjA=; b=ZrY+t6ABm1/QiiVLcTLeEjPMRdruNl1KyzvZGuF/HLGCopBqXmJ0u2YC kT0uPZkgwn4wOXfk3vLKf8zMCGcC0ndonU5Kj0BcRTXzQk7S0iDDjUkzv BpmMrmrdCtM8RJQafb4klV/2KBkdh6RPEMltbOnfW68ZR+9tppEuEJXd4 IJgj9CAuVaM4ZIyJbUnYGzIbwrbK6fKJjldrdu1yG2kkDp6kE6aT9jjX3 VjskU6ZJnvvoeDKaLhRrgLQY3w1Yx9yEJsdUtbnHUlNNaJm6WfEQPRalU Do+0pu+2CkpmZqTad2IhGlyh7UKu1U5lXXSV/NF57OlJRafZC4CPE2h1n w==; X-IronPort-AV: E=Sophos;i="6.01,193,1684792800"; d="scan'208";a="32562949" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 22 Aug 2023 14:08:09 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 929BC280084; Tue, 22 Aug 2023 14:08:09 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Catalin Marinas , Will Deacon Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux@ew.tq-group.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/5] arm64: dts: imx8mn-tqma8mqnl-mba8mx: Add LVDS overlay Date: Tue, 22 Aug 2023 14:08:02 +0200 Message-Id: <20230822120804.717592-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230822120804.717592-1-alexander.stein@ew.tq-group.com> References: <20230822120804.717592-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_050818_020501_CE08FA0C X-CRM114-Status: GOOD ( 14.96 ) 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 This overlay enables the DSI-LVDS display chain and configures the actual panel compatible. Also add the DSIM supply voltages. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/Makefile | 4 ++ ...8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtso | 45 +++++++++++++++++++ .../boot/dts/freescale/imx8mn-tqma8mqnl.dtsi | 5 +++ 3 files changed, 54 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index ad86cc60da7ca..72a21aa32855e 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -95,6 +95,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-venice-gw7902.dtb + +imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33-dtbs += imx8mn-tqma8mqnl-mba8mx.dtb imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtb + dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-data-modul-edm-sbc.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-debix-model-a.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtso b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtso new file mode 100644 index 0000000000000..29235e390a5d7 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx-lvds-tm070jvhg33.dtso @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Copyright (c) 2022-2023 TQ-Systems GmbH , + * D-82229 Seefeld, Germany. + * Author: Alexander Stein + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + compatible = "tq,imx8mn-tqma8mqnl-mba8mx", "tq,imx8mn-tqma8mqnl", "fsl,imx8mn"; +}; + +&backlight_lvds { + status = "okay"; +}; + +&dsi_lvds_bridge { + status = "okay"; +}; + +&expander0 { + dsi-mux-oe-hog { + gpio-hog; + gpios = <10 GPIO_ACTIVE_LOW>; + output-high; + line-name = "DSI_MUX_OE#"; + }; +}; + +&lcdif { + status = "okay"; +}; + +&mipi_dsi { + status = "okay"; +}; + +&panel { + compatible = "tianma,tm070jvhg33"; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi index 391ca5516e4c5..fb24b9aa1b938 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi @@ -219,6 +219,11 @@ eeprom0: eeprom@57 { }; }; +&mipi_dsi { + vddcore-supply = <&ldo4_reg>; + vddio-supply = <&ldo3_reg>; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>;