Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3764754pxt; Tue, 10 Aug 2021 10:47:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylrpusqJERfw3/DFznKo90y5nMyjcNKtgMIWp0XVfde7NYfaydur/U9GDPV9ROOfzQVT8X X-Received: by 2002:a17:906:4c89:: with SMTP id q9mr28480827eju.118.1628617630248; Tue, 10 Aug 2021 10:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617630; cv=none; d=google.com; s=arc-20160816; b=K8fVD3ELafyeh0gBQ4KIVFgsiPIr7pcXQGK8Npbzw7UWutq/YCIMzQNXNLHOL3rmwp Fl/yNe2wjSBu3Ky3qabqZtjTQUpoEWwXiGAJLijPaa/k8YeHuQ1RkdKT8g228Fqt1wUj fkw8Gv87Q/FmAMIyTaWGKc5Lf/lWD+5oZl/+rEBuSsPtOHBMgIhnWqXXTG+E3FpiYO3v ce7zqG76h9sJyeFHaR7hMHT4fXSbDbeWIhbi/K/NI9Nas+GlgTMetmTnWnqsZT+MatMo 0ryKPUW726rFBGSiFYaNt6YEmNYlsozgcsJBb0VIqNW9AfQPiO6yoC/DC2pC5NHTts2w dmoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uPbCqN74MH5p9nww98ROOmpmEqAQiEwsryF76RceU1U=; b=wtNryCidvSByxZBxz1M8r3hZTbNN2TzSio5BVo+AC3xQPM9Sq1Vfdf5vmLaS5tn2rT Wg0XKLzfVPF++Wo4QGO3J3OMa6ytP8j2/RIN3bhc3HnO6WUHyqrDvEdC5H5yr9MdGdI8 vxMc4V1wTP2OY1MnjCjL15IdLg2URaFh3+7DdoHfIMFYglrCVaH24azyhEUgaxd2wRah 5KRFGxt38K3KNSrTU5W891UJ0gfcKTPsnqAH7nQTtD27RbgjEtgE+dYy6Vmq3bDfmeXp VdArwtFjW56U3NCGU6DoTunOBWAveKWXCp6g2JGURnsyUF/Sq4KRcOsLClgf0t3XEoLC 9cmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pLQLegMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si22943574ejj.422.2021.08.10.10.46.43; Tue, 10 Aug 2021 10:47:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pLQLegMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234863AbhHJRnZ (ORCPT + 99 others); Tue, 10 Aug 2021 13:43:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:43398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235637AbhHJRkC (ORCPT ); Tue, 10 Aug 2021 13:40:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFD7B611AE; Tue, 10 Aug 2021 17:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617063; bh=IpsOi0DreMnqC6z3BxvfBehVk68QktRo+NLFvipSyRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pLQLegMBY6cVoc83byLrw5baDiZ5PlJon5wq5cXW44Zm2Z1AGtE+JAp/eeb8vzGDm G3G6yf/zuv96F7UikGUZaFBWZ9b9zuwsgoO80vjry0kpr/grgMjELOygmaWeoEiybD UcHW+X+Qf9mRmGLoN/v45DRLqNYz1oJYB3sgN+mc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Alexandre Torgue , Patrice Chotard , Patrick Delaunay , linux-stm32@st-md-mailman.stormreply.com, Sasha Levin Subject: [PATCH 5.10 028/135] ARM: dts: stm32: Fix touchscreen IRQ line assignment on DHCOM Date: Tue, 10 Aug 2021 19:29:22 +0200 Message-Id: <20210810172956.630090823@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Vasut [ Upstream commit 15f68f027ebd961b99a1c420f96ff3838c5e4450 ] While 7e5f3155dcbb4 ("ARM: dts: stm32: Fix LED5 on STM32MP1 DHCOM PDK2") fixed the LED0 assignment on the PDK2 board, the same commit did not update the touchscreen IRQ line assignment, which is the same GPIO line, shared between the LED0 output and touchscreen IRQ input. To make this more convoluted, the same EXTI input (not the same GPIO line) is shared between Button B which is Active-Low IRQ, and touchscreen IRQ which is Edge-Falling IRQ, which cannot be used at the same time. In case the LCD board with touchscreen is in use, which is the case here, LED0 must be disabled, Button B must be polled, so the touchscreen interrupt works as it should. Update the touchscreen IRQ line assignment, disable LED0 and use polled GPIO button driver for Button B, since the DT here describes baseboard with LCD board. Fixes: 7e5f3155dcbb4 ("ARM: dts: stm32: Fix LED5 on STM32MP1 DHCOM PDK2") Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: Patrice Chotard Cc: Patrick Delaunay Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org Signed-off-by: Alexandre Torgue Signed-off-by: Sasha Levin --- arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi index 59b3239bcd76..633079245601 100644 --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-pdk2.dtsi @@ -37,7 +37,7 @@ poll-interval = <20>; /* - * The EXTi IRQ line 3 is shared with touchscreen and ethernet, + * The EXTi IRQ line 3 is shared with ethernet, * so mark this as polled GPIO key. */ button-0 { @@ -46,6 +46,16 @@ gpios = <&gpiof 3 GPIO_ACTIVE_LOW>; }; + /* + * The EXTi IRQ line 6 is shared with touchscreen, + * so mark this as polled GPIO key. + */ + button-1 { + label = "TA2-GPIO-B"; + linux,code = ; + gpios = <&gpiod 6 GPIO_ACTIVE_LOW>; + }; + /* * The EXTi IRQ line 0 is shared with PMIC, * so mark this as polled GPIO key. @@ -60,13 +70,6 @@ gpio-keys { compatible = "gpio-keys"; - button-1 { - label = "TA2-GPIO-B"; - linux,code = ; - gpios = <&gpiod 6 GPIO_ACTIVE_LOW>; - wakeup-source; - }; - button-3 { label = "TA4-GPIO-D"; linux,code = ; @@ -82,6 +85,7 @@ label = "green:led5"; gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>; default-state = "off"; + status = "disabled"; }; led-1 { @@ -185,8 +189,8 @@ touchscreen@38 { compatible = "edt,edt-ft5406"; reg = <0x38>; - interrupt-parent = <&gpiog>; - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */ + interrupt-parent = <&gpioc>; + interrupts = <6 IRQ_TYPE_EDGE_FALLING>; /* GPIO E */ }; }; -- 2.30.2