From patchwork Mon Apr 25 16:23:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12825915 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 7C6D3C433FE for ; Mon, 25 Apr 2022 16:25:39 +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=ObH8BfdjMJnbiRtNmxeAKv6GQx1l4POj6wrb+dYX+OQ=; b=2RLvu8mPNXH+Gf PXVuQYVseBOmoCme34TIlP0ofWcbcBZRrczye9rXFysV8zjJMScJyp6HXXZ11yw8XRL12Yf0z57ZS Mdu53C1yO0ei/h8F4xQoqZmbRm5FVV1bP+h1g+BJy9OFnb+prpRWZMr1YWQU4fTN90AyjJp69DaT+ r4xEyyGoqTOVc7Ni+p3XASGq47Dyl8vNUQCiZ1sdcLoRTO6lSY1XD/XHv68xkblfFCom/ICDvghOt RjXT7L5R5K94ncALlP4hiOwswlFJnZuFEGr5lEry3ei7Kyk+ysNnAY9S064n6UaUZVRwIRJRTqbcX dL4JyJo0mTpoJN753Q0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nj1Vh-00AKrg-7x; Mon, 25 Apr 2022 16:24:25 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nj1Vd-00AKod-Sk for linux-arm-kernel@lists.infradead.org; Mon, 25 Apr 2022 16:24:23 +0000 Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MItSh-1nlULQ4Brd-002Xyr; Mon, 25 Apr 2022 18:24:10 +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 v2 01/14] ARM: dts: imx6ull-colibri: use pull-down for adc pins Date: Mon, 25 Apr 2022 18:23:43 +0200 Message-Id: <20220425162356.176665-2-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 X-Provags-ID: V03:K1:ioYDyEmp+YzqCsQRQ3ZsrSpMMbKSFnOrfoMcKlNjRnxQYGxwkBf Nc75AcaqESLP9FCxwUfDkOYhSIeL+nGlew5otZ3PyVcPt41TsMgtTnAQ2qnW4xzp0cWQ244 MciDJtjHxM+TLIN1jx8+XTrm+r9HCC+9vpJaQLcCuO0rBiXeDcFPvK0ATkxZzMi1hh9+XK9 Ad1wL/h6CQ2CI5OsuPOPw== X-UI-Out-Filterresults: notjunk:1;V03:K0:CaMUM9+/O8I=:3xhg8ACPhzRPpUOC2+rR1I IKQFiPACAJqH1hAKRxXo4YzsJx+f5scjdZCjAclwfi9ymhN6Iq4XUd1KFbBQEgoquhdk5p8ms GfRWngkq9iX/5X6wQkP3O7+Kp2lfoxn4kpvljp0A00XJWMwMVDH/m81PnM0Opiwu5x8/8/hio TPStyYDW8anZebKX9etVpa1Oodm0nVS7Ja3EtV43tEhoR1A79J8M/8mSYeAcpIKBDnXLL4ByM uCHmB2xodfdHc+eUmU2S6Mb9zNwDEkShC6FTJTTNj5JTg8WSqsWsCS5H+e3PWHSjFKLTrHNwa 78fm0dvTC+/qbJHZLI2Fx2YbM/XjBp5uoEwSpAqGlbqgQrLifsHCrj4r9yM+tb5FbNKXbXk1q cg9AEd9Lm2auw3Yaoe17F3nert8vqBoUMxaAjqN4TjcLFCn14LyGTD28bKgkQmf8OaDFdlaax +ELCZJJkwKB+jvdKDY7I7Z//a3I7sVx+P4JN5PpRBdMCug498IAt1N+eIGKSb5VGFr5ayZJy5 IaLkLNvwRynrti4NqiO+6GTs1Mp47E3S+hUiA2e1UOTD4EWjuRJZoweop8pzcg5NyX6RtKbSv lONSIv8ARwRUUX2qC8YeXBRJmSndnBlNdAyOV6flODYwa2BpJbu7hBkxy7I4HKDl8N6q//JGm aGCNVNSeNm0ORKtfBDcIJ0oYmqiyfRqKxte5bPGmuqC/o8Gy9LQn6iTxhfTmneFsgOm8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_092422_043552_9440BCF4 X-CRM114-Status: UNSURE ( 8.81 ) 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 --- (no changes since v1) 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 951a2a6c5a65..eb13ed60d2e4 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 */