From patchwork Thu Apr 14 08:50:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12813125 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 1FBF8C433EF for ; Thu, 14 Apr 2022 08:52:51 +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=vFq6+AZ5ABgvanKtOvRFzb4aeb2ZdOTszzsj2e+z/QI=; b=ak/4x33bPA+Gol /8DFNNKcJBxvG7hSswTw8qfPccAQEnHyV/GVlzq0SfTUTQUEJnsioHe+2VUtGNY2eUP8k2N2eS52Y YDqj7fbTFPeb+nrbewuxLZ7+n0/503eMvV5/IXVit6LpK8PYnwgZqG+piDaFqtDzVTnxl/BBPCKsc 1jboGX64HcDs/q1etSTQiqwIOJ36kmrYmLppLtRIEk0djUBfOW2MvXXwek2MCOfnb5vkmN3XwIbX7 E8onx3QUJg0elBKD3gH3xVvLI4C8wUZwtL/jt6AZfwhHfr7FihafJKC3YETsFNsBoNwepu4Q7hmyk +GexIadAiLN2XWQgv84g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevCX-004duu-7K; Thu, 14 Apr 2022 08:51:41 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevCT-004dr8-4l for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 08:51:38 +0000 Received: from toolbox.toradex.int ([31.10.206.124]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N7AIq-1o1oFJ2LiG-017Xqa; Thu, 14 Apr 2022 10:51:22 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Philippe Schenker , 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 v1 01/14] ARM: dts: imx6ull-colibri: use pull-down for adc pins Date: Thu, 14 Apr 2022 10:50:53 +0200 Message-Id: <20220414085106.18621-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414085106.18621-1-marcel@ziswiler.com> References: <20220414085106.18621-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:BhzF50BZrqTaFPK0TpbYgRjwA8MPxd+Lqnmvn5FVujauxewFtUF HIYR6EiL014ufeAi6FnMd7jSE3ANCnQRdmnGKq+uinhcoF7f8toXm3a7Yl5MBXVrmCRqbC4 qGjoImiiAZdwibOei2tdiE8by+QASeY5nBpZluVd4hvudr7KT5JpDLI6s7nAOXJtWLIxmGX F4eA+tZ/McnYoxpO7rY/A== X-UI-Out-Filterresults: notjunk:1;V03:K0:h4t6I8We6k4=:4GFKaWyaB/ahbiT3gHFgFZ Qnd0pkV+bN2I9uH2u4P3PmOKo6HPLP31ToGdVSUnLT0LKUoR6SqF9y6V5OpCaqQzngg7uVk92 oOZiEswCcIhS8XeN3mQsdOdx8Kym/Jw8HyrsN31x0AEFSEHYnZ6DTU3oR2BwU7hafDwJZEnmU g+riishafP+AVs3mkD6SkT2IFmknINJZVmN8Txysi7qVPH0N53WmVdC7FAl0CzMnwargWAG6X EID03O3P5LtUuVBn0yKsQPE10kQExCW9CnccsfCG/rP+BeLLxLxGubwv75skpLID+TGWoXhut Q3wmKOhDgIrzCS8QhsCP1dUR6KBWVSBCy65zK97SCgCev3kmqozmsjv4s94qq3lgYp1Cckaut Z5TYFzHRw8Y8EhKmjCauLHHvGZPru5ZPDvQCYHXdlDw7+pcKvRQOj+uyBlU5yKS/xfRWz7OGw NaO5w0R2RCRWAUh5tDt2pqr3FOWbwxhX1No/OSXPLiJOyVUDVRetNQ8O492AhwH/eCAR732Kn knHYMKuxiVE7SgBQdFw3XnLvvcJD2aD/lyt6pG0b9lx6n64qx2GUxcWlPkCFM1v9b/aQG0lmx +8Ffw02RIR3FEzN5oS7OKqmk6e4XCVUHaEQuevWUo8E779969kR423hzY+fu531fmhOwElLkO AE1QZJvD44qxTgdc/fhbD+JFJOwF2yCOG0uZ6WhqJ/iTc7gF/hsS7Iz1bmY1Sc5S85W4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_015137_303801_08959497 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. 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 From: Philippe Schenker Disable the keeper and enable a 100k pull-down on the ADC pins as per the following note in section 13.2 of the i.MX 6ULL Application Processor Reference Manual, Rev. 1, 11/2017 [1]: The keeper causes an undesired jump behavior in ADC. To avoid the problem, disable keeper before starting ADC. [1] https://www.nxp.com/webapp/Download?colCode=IMX6ULLRM Signed-off-by: Philippe Schenker Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 7f35a06dff95..84bb7574d211 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -52,6 +52,8 @@ reg_sd1_vmmc: regulator-sd1-vmmc { &adc1 { num-channels = <10>; vref-supply = <®_module_3v3_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc1>; }; &can1 { @@ -214,6 +216,16 @@ &wdog1 { }; &iomuxc { + + pinctrl_adc1: adc1grp { + fsl,pins = < + MX6UL_PAD_GPIO1_IO00__GPIO1_IO00 0x3000 /* SODIMM 8 */ + MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x3000 /* SODIMM 6 */ + MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x3000 /* SODIMM 4 */ + MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x3000 /* SODIMM 2 */ + >; + }; + pinctrl_can_int: canint-grp { fsl,pins = < MX6UL_PAD_ENET1_TX_DATA1__GPIO2_IO04 0x13010 /* SODIMM 73 */