From patchwork Thu Jan 19 14:42:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13108243 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 8C1FDC00A5A for ; Thu, 19 Jan 2023 14:58:33 +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=XYvjnTl/99k0MrFdvfp7GLOXHUsX0LoOK2xLn4nognE=; b=sZIIKZeGtEhxRk rGnZ12h8WF5hYQJFEr30ZY1KoEeHtMnqASZHBp4TOeSinnPEYoNfCZtusQM5xPCTT5IMBoWFgllAW 9gg8o28ACp4fT3oGHN0obGm3W0kgYSub7oq4dOgSnOMTjP2uGnplm3VKnpILlMcsVf/xShZb4zigL 9MwI9398hVPgFdf5+3BeQGcNf73XGECR6nvwV2xkloh5O35rjv5WhMeBB0x71QvDNcRKyJDiQR0cz avYH+fmmSbXj0uGDQF+RAM+F+A7B80yVIo2bKb9PQh9m2tFXBatzurYKtW9KM3NKse7QnaItci85p w91n9VaOchrPi5HVGPHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIWLx-005UdL-FQ; Thu, 19 Jan 2023 14:57:22 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIW82-005Oge-2K for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 14:43:00 +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=1674139378; x=1705675378; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WaHO6dQkECqg1BoxffsPr2SMwQT9honmJ2MccBw3l4E=; b=luS/yHA+c/yT92u9ip3TOEcVf1rsutFIGgvjqvCcb5uDEENN7WUU7Pbz ij8v013qihtZF13Og4zb1UMEik6VsgB483gmp2lOZQBl8g6JLyFCX+Z3C uxDmKh+vxMkc6+kgBAPzdcyEQwnczwcthgHAFyoNr+uqTA4vMuhG0r2WE ZhptukPWgSfVPcsx6RRMsURoRYc+MSm5IN1GqpFJJ328oSOuu1nyyKXLE LWdC5hM2TsrHCQoetgQ2pjyGj4K62bnWAHP+sK29yZ82YO39Qiqe9XEZK aIvGa2vuYLPxPqV8FI1J1qRW92K376EYZdMKiEmc2RE/I2ILyAyOmYBRT Q==; X-IronPort-AV: E=Sophos;i="5.97,229,1669071600"; d="scan'208";a="28537315" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 19 Jan 2023 15:42:44 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 19 Jan 2023 15:42:45 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 19 Jan 2023 15:42:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1674139365; x=1705675365; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WaHO6dQkECqg1BoxffsPr2SMwQT9honmJ2MccBw3l4E=; b=Hcnc/LWr81aWSnj4TilaDeJab/9cY07YMzX3s0rlTGE+pM/of1/eo/bD 1ISNRRK9H2al+dcD93Ad9sKCXm8JeExWUVG3sOOrIxUSJWoiA/+kEypzH 8rprJtxZP3fvJKxfilkzfmd4X4AyImfvgZQTEYELUeWAD77fOfiInVJK3 fSpJ/8icY4UEaJpI82rck7tq+vWIzgFNIJYsVzt858jMeLiGFLt4aCYkG zDPErzKVKZsFZfflMpms7nkE2uwX5oHLDqUyQB+mQqeMMIeAvgfHIEJtX TGo08/yqx/85qiaQSH2wqjXgorjRTmD1Mu8yIM93in9iyT/97R9s2DCiI Q==; X-IronPort-AV: E=Sophos;i="5.97,229,1669071600"; d="scan'208";a="28537313" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Jan 2023 15:42:44 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 7F30A280056; Thu, 19 Jan 2023 15:42:44 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , Shawn Guo , Li Yang , Russell King , Marek Vasut , Marcel Ziswiler Cc: Alexander Stein , soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/9] ARM: dts: ls1021a: add TQMLS1021A/MBLS102xA LVDS CDTECH FC21 overlay Date: Thu, 19 Jan 2023 15:42:34 +0100 Message-Id: <20230119144236.3541751-8-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230119144236.3541751-1-alexander.stein@ew.tq-group.com> References: <20230119144236.3541751-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-20230119_064258_611616_09AC0C83 X-CRM114-Status: GOOD ( 16.10 ) 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 Add device tree overlay for LVDS display usage. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/Makefile | 2 + ...1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 arch/arm/boot/dts/ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 774cc57274e20..bc51a5b868c10 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -806,10 +806,12 @@ dtb-$(CONFIG_SOC_LS1021A) += \ ls1021a-tsn.dtb \ ls1021a-twr.dtb +ls1021a-tqmls1021a-mbls1021a-cdtech-fc21-dtbs := ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dtbo ls1021a-tqmls1021a-mbls1021a-cdtech-dc44-dtbs := ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-cdtech-dc44.dtbo ls1021a-tqmls1021a-mbls1021a-hdmi-dtbs := ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-hdmi.dtbo ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33-dtbs := ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtbo +dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dtb dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-cdtech-dc44.dtb dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-hdmi.dtb dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtb diff --git a/arch/arm/boot/dts/ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts b/arch/arm/boot/dts/ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts new file mode 100644 index 0000000000000..4bd10d0e17b90 --- /dev/null +++ b/arch/arm/boot/dts/ls1021a-tqmls1021a-mbls1021a-cdtech-fc21.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR X11) +/* + * Copyright 2018-2023 TQ-Systems GmbH , + * D-82229 Seefeld, Germany. + * Author: Alexander Stein + + */ + +/dts-v1/; +/plugin/; + +#include +#include + +&backlight_dcu { + status = "okay"; +}; + +&dcu { + status = "okay"; + + port { + dcu_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; +}; + +&display { + compatible = "cdtech,s070pws19hp-fc21"; + status = "okay"; + + port { + panel_in: endpoint { + remote-endpoint = <&dcu_out>; + }; + }; +}; + +&i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + polytouch: touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + interrupt-parent = <&pca9554_0>; + interrupts = <6 IRQ_TYPE_EDGE_FALLING>; + /* LCD_PWR_EN -> TSC_WAKE */ + wake-gpios = <&pca9554_1 4 GPIO_ACTIVE_HIGH>; + gain = <20>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; + }; +};