Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp520537pxb; Mon, 25 Apr 2022 15:28:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNjKPdZmQPGhvdAG14jQynCDSHUNvH1KxxeI63+fLctUy0SGx2R0GR7MIN1byMHG5ZDpfy X-Received: by 2002:a17:902:ce0a:b0:15d:917:fad4 with SMTP id k10-20020a170902ce0a00b0015d0917fad4mr8639392plg.3.1650925687308; Mon, 25 Apr 2022 15:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650925687; cv=none; d=google.com; s=arc-20160816; b=xTTe5E1eTFI8tTW6X1zdbdE5wYarTJU2TONmaEH5+52PwmT2xqdcQ6GOMDG/YhsBLp Xmf68DvBjNU0ClP7OjlJLMY+Ex0i6VZdQtfuuhzFd7WZZxsY4FI+Kj3Me+OrBG8+FPgL JI24OhfZIylNEj/5WCnHnLVtot/cjgOSSH0NlP4GyYK7nxKfV1zVX7vSjU60yj7nHFMT mnun+/IFrfFqFTCMlFfLt5UwnJ1KmdvUiYhcLO8mnVPmMkMqyAtHc1Xx5A0qbeb6ayZj bFkjpGfPOp0adpYjrhYKus4tSSrgjkmM65mJv+y4tCIP5KVL4Uxzr7VvTv8UDeP55yoB +8EQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Wq5JFf5jhyneixpfK/cpHGxhh56i8FIE0neysAYg/4A=; b=KMSroSP9GKxxOnIIev8PQ/27Jam92dnC/OO7SSugDjF6HjB+sNMeKaR5XLgGUq5Psg P++z+/NJ9lfVf1tvIuCuE8/E/Zlivk5cYLenUkehRjQvCYmqmFgMxTuGml6S7vvKYeZP YwXbIkyFYE0VqZ5u8beFAm0Qq33MqNqLUmXsJl4eyZOEEcAjttcqt85OQP+oFOXv1HKJ NAIa9UsfZQLIMMoQljTehw3uEQx0EUfX1LBOhQogGpAcaNPe9QNlF2MLkuW1HPJxfwlB 4s1ZfrtcsG8F+5LBgZQ9aDP2uHDKp4OEEbhkvEukefklzJWekq798ytopzCXgVuF/qB7 17qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a655a04000000b003816043ef25si18182320pgs.282.2022.04.25.15.27.51; Mon, 25 Apr 2022 15:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243481AbiDYQ2O (ORCPT + 99 others); Mon, 25 Apr 2022 12:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243462AbiDYQ1g (ORCPT ); Mon, 25 Apr 2022 12:27:36 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E4D11F95E; Mon, 25 Apr 2022 09:24:30 -0700 (PDT) Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LiS78-1oJBD41mWK-00chkK; Mon, 25 Apr 2022 18:24:18 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Denys Drozdov , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/14] ARM: dts: imx6ull-colibri: add touchscreen device nodes Date: Mon, 25 Apr 2022 18:23:46 +0200 Message-Id: <20220425162356.176665-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220425162356.176665-1-marcel@ziswiler.com> References: <20220425162356.176665-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:gzDQNJsaCrXEpudjP3OD3AQPAFoq3gVY87QyfXMotZQJskSh0ha gztANYOWJU63l8V0ItUQ0hvFqNeg4qycidYcv1I1DI1o39WGatQaZTO4pBMoAM8ZWPPPMw/ hsOh85kQJTQKS7o2bVrmOVDve3OCmLzbIwV6epiSPTmvbwC9gZ2yBIf8jPNu+wcvvCfIDi+ xx9P2sJiU9GF/5oJxRR4w== X-UI-Out-Filterresults: notjunk:1;V03:K0:NpRMPhujVh4=:Mepb9jV5LXuLBQTjHIqJm/ 9eJo4nfNv9kxUshE2gUlHL9ogNY2s7CStoqFmSNxEp9kazUiMPVnnXR2JA88K8YhHoO2TAhrG gU1JeptdcA3l3IYmw3/gx01NWxJBqLEeBFE2OjnplMxk9nw6eghGXzuz3Y4w0f2CgB/T+OJFn I78qnFmg02r/tdG6KfmgCfW8f1TXuax6WkHz+v2UXClpnF0TeCi/4OyRXVK2pjBiCvRakR57h 4QE7THud/xhQmEV90v5WKJAyKpNi8m51JgiPyX/1kOjwpDzfJFBj9pZOBqnyZT1hIawhL/GIU hNGXvuEsAPmeLS5muft4s9d5F1a8vTzniYiKMPQfMY06naqIbI7cKMukR2DdJj61lh1gz849t omJDt7VUPL6/n07vKHBVErFHeMXoGCZr990+nL2hlkBjHv33M6vkVvyJEjYSA3bAWBR/CKfx/ dm1eweRPWhwVB5VH/k/0NW61O2nZT83l4bSKoobztzfOu+3+taZagyVW3BHlvVNAT4Sr5evmG wB+30HBJY8Hk0GkhnG4Cj35xW0DVEpOQnrYfociM3HwjjxZTOjw/G0AEhiVbI8ncPRs0tV4Zz GUozNYQq5fgadYJ//61bZ0dLyJNrvHqAV9u7wM7f7utI/qgVnv03haxdFnA/4I8tCb/fFhWB5 iLOttBZOIxKq3no/nfMy48oLi8Ob2wfIj3rH1PuCpFzR6j6r+9ClCidVQsrCJEOHkllc= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Denys Drozdov Move all Atmel nodes from the board-level into the main module-level device tree and prepare the device trees for use with Atmel MXT device tree overlays. Also, add required pinmux groups. The common scheme for pin groups in touch screen overlays is as follows: - pinctrl_atmel_conn - SODIMM 106/107 pins for INT/RST signals (default) - pinctrl_atmel_adap - SODIMM 28/30 pins for INT/RST signals. Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- Changes in v2: - Fixed pinctrl node names as suggested by Shawn. .../arm/boot/dts/imx6ull-colibri-nonwifi.dtsi | 4 +- arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi | 4 +- arch/arm/boot/dts/imx6ull-colibri.dtsi | 39 +++++++++++++------ 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi b/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi index 95a11b8bcbdb..5e55a6c820bc 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-nonwifi.dtsi @@ -15,10 +15,10 @@ memory@80000000 { &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio6 &pinctrl_gpio7>; + &pinctrl_gpio4 &pinctrl_gpio6 &pinctrl_gpio7>; }; &iomuxc_snvs { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_snvs_gpio1 &pinctrl_snvs_gpio2 &pinctrl_snvs_gpio3>; + pinctrl-0 = <&pinctrl_snvs_gpio1 &pinctrl_snvs_gpio3>; }; diff --git a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi index 9f1e38282bee..6e8ddb07e11d 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-wifi.dtsi @@ -26,13 +26,13 @@ &cpu0 { &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 - &pinctrl_gpio4 &pinctrl_gpio5 &pinctrl_gpio7>; + &pinctrl_gpio4 &pinctrl_gpio7>; }; &iomuxc_snvs { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_snvs_gpio1 &pinctrl_snvs_gpio2>; + pinctrl-0 = <&pinctrl_snvs_gpio1>; }; &usdhc2 { diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index e619da3b00b3..8b5cbe9132a2 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -124,6 +124,19 @@ &i2c1 { pinctrl-1 = <&pinctrl_i2c1_gpio>; sda-gpios = <&gpio1 29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; scl-gpios = <&gpio1 28 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + status = "okay"; + + /* Atmel maxtouch controller */ + atmel_mxt_ts: touchscreen@4a { + compatible = "atmel,maxtouch"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_atmel_conn>; + reg = <0x4a>; + interrupt-parent = <&gpio5>; + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; /* SODIMM_107, INT */ + reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; /* SODIMM_106, RST */ + status = "disabled"; + }; }; &i2c2 { @@ -241,6 +254,20 @@ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x3000 /* SODIMM 2 */ >; }; + pinctrl_atmel_adap: atmeladapgrp { + fsl,pins = < + MX6UL_PAD_NAND_DQS__GPIO4_IO16 0xb0a0 /* SODIMM 28 */ + MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0xb0a0 /* SODIMM 30 */ + >; + }; + + pinctrl_atmel_conn: atmelconngrp { + fsl,pins = < + MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0xb0a0 /* SODIMM 106 */ + MX6ULL_PAD_SNVS_TAMPER4__GPIO5_IO04 0xb0a0 /* SODIMM 107 */ + >; + }; + pinctrl_can_int: canint-grp { fsl,pins = < MX6UL_PAD_ENET1_TX_DATA1__GPIO2_IO04 0x13010 /* SODIMM 73 */ @@ -347,12 +374,6 @@ MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x10b0 /* SODIMM 65 */ >; }; - pinctrl_gpio5: gpio5-grp { /* ATMEL MXT TOUCH */ - fsl,pins = < - MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0xb0a0 /* SODIMM 106 */ - >; - }; - pinctrl_gpio6: gpio6-grp { /* Wifi pins */ fsl,pins = < MX6UL_PAD_GPIO1_IO03__GPIO1_IO03 0x10b0 /* SODIMM 89 */ @@ -606,12 +627,6 @@ MX6ULL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x110a0 /* SODIMM 138 */ >; }; - pinctrl_snvs_gpio2: snvs-gpio2-grp { /* ATMEL MXT TOUCH */ - fsl,pins = < - MX6ULL_PAD_SNVS_TAMPER4__GPIO5_IO04 0xb0a0 /* SODIMM 107 */ - >; - }; - pinctrl_snvs_gpio3: snvs-gpio3-grp { /* Wifi pins */ fsl,pins = < MX6ULL_PAD_BOOT_MODE1__GPIO5_IO11 0x130a0 /* SODIMM 127 */ -- 2.35.1