From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-dm6nam10on2093.outbound.protection.outlook.com ([40.107.93.93] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLxNG-0007gT-AA for barebox@lists.infradead.org; Fri, 25 Sep 2020 23:43:35 +0000 From: Trent Piepho Date: Fri, 25 Sep 2020 16:43:15 -0700 Message-Id: <20200925234315.453448-4-trent.piepho@synapse.com> In-Reply-To: <20200925234315.453448-1-trent.piepho@synapse.com> References: <20200925234315.453448-1-trent.piepho@synapse.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 4/4] ARM: beaglebone: Enable ADC To: barebox@lists.infradead.org Cc: Trent Piepho On the BeagleBone Black, enable the dts node for the TSC/ADC. Add a simple configuration that maps all eight channels in order. AIN[0:6] are exposed on connector P9, while AIN7 measures the 3.3V rail divided by 2. Signed-off-by: Trent Piepho --- arch/arm/dts/am335x-boneblack.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/am335x-boneblack.dts b/arch/arm/dts/am335x-boneblack.dts index 80d710b92..c06a532e4 100644 --- a/arch/arm/dts/am335x-boneblack.dts +++ b/arch/arm/dts/am335x-boneblack.dts @@ -85,3 +85,13 @@ status = "okay"; }; }; + +&tscadc { + status = "okay"; + adc { + /* Ch 0-6 are on connector P9. Ch 7 measures the 3.3V rail + * divided by 2 (e.g., it should read 1650). + */ + ti,adc-channels = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>; + }; +}; -- 2.26.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox