Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp937523pxb; Fri, 15 Apr 2022 16:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFY+wM9mR8zuqY07R2hBg4hNPa2bAmwppfs61WhY8wHhwh0Up2JaD8MRFS2kik86JWgegC X-Received: by 2002:a17:906:eb05:b0:6e8:d608:bdf3 with SMTP id mb5-20020a170906eb0500b006e8d608bdf3mr878683ejb.49.1650063614002; Fri, 15 Apr 2022 16:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650063613; cv=none; d=google.com; s=arc-20160816; b=ktLfpKFHXAW4xVgiE9xQAOBai8rcThjIl5aSzll6MQyrE/STsqmq5vcr04Sm46Xe0X Aj9t0rg0yal0B2w33Xll1P/lUx0Yml0sGE/yRMFdGWnAlQ53EkeyW/0sbfw8i40LM3bZ UNLqSjHnBHlYcNrLfVF0qZwLo7u65dytQT+tU5k416BmaJq7TSt9nvwreSs1zrcLPLLz QQSV67MvKVhGNB9VnZ7ijtMXsL/XTn4aJbV6IO7rvcxkowaY7fj9byL3BNoBIaM1x6Xo WPhf4hcDhdwRSfuzfh1n1gu1WNQc4oOK6/ZCsPX66WMNbE5sAUZhe0Nl5uko09RJ8qpE 8k2A== 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=EfS3jKIwLp29zZlvu4fVwRynR3vB8ssrbT4HolQ45cU=; b=IKxznYBOcjCX56a6yemP5og8c6ilT2EqWyfM25We9uNlwgbBXhz9d6OHRkhM7NUSM5 y0YC2l+7sGsKP7d3DBbnYXp78TDc/+ULgFX7adJZvQ7iSXU77I3KWMAn+21hHQNUa6w/ 6+GQkH7YS1kPELeLP2U8iJmaehiHzApj3c5E39Valtbnvf4bCWV2k1bzSR8a8kEvfTbE KUg92r9RUnxQADAPlYyAFLnHtsa77hyAWimZs5DVKVC6rEvcayv7t4juQ5tzwa7fvc1L yQ/ClOdC122wt0e6UAU58svy9yTbCcMK6igwDO7Zucb0hGSACi7m3j3su0EkH6LwmnGA 5V9g== 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 rh1-20020a17090720e100b006e8cf792dd7si1688512ejb.372.2022.04.15.15.59.48; Fri, 15 Apr 2022 16:00:13 -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 S241158AbiDNIyP (ORCPT + 99 others); Thu, 14 Apr 2022 04:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234846AbiDNIyG (ORCPT ); Thu, 14 Apr 2022 04:54:06 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 159E23EA94; Thu, 14 Apr 2022 01:51:41 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: 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 */ -- 2.35.1