Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5EC6BE00E88; Fri, 9 Feb 2018 10:39:07 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [69.89.20.122 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 1289 seconds by postgrey-1.32 at yocto-www; Fri, 09 Feb 2018 10:39:06 PST Received: from gproxy9-pub.mail.unifiedlayer.com (gproxy9-pub.mail.unifiedlayer.com [69.89.20.122]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AF6F5E00DC3 for ; Fri, 9 Feb 2018 10:39:06 -0800 (PST) Received: from cmgw4 (unknown [10.0.90.85]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id B45701E0690 for ; Fri, 9 Feb 2018 11:17:32 -0700 (MST) Received: from host288.hostmonster.com ([74.220.215.88]) by cmgw4 with id 8iHV1x00X1v0fLi01iHYpc; Fri, 09 Feb 2018 11:17:32 -0700 X-Authority-Analysis: v=2.2 cv=G85sK5s5 c=1 sm=1 tr=0 a=ELBcn9xbBe8RKOfaP8USrg==:117 a=ELBcn9xbBe8RKOfaP8USrg==:17 a=IkcTkHD0fZMA:10 a=Op4juWPpsa0A:10 a=a3UJmCwjAAAA:8 a=sozttTNsAAAA:8 a=DrJVYn5mX-wlcENE_M0A:9 a=QEXdDO2ut3YA:10 a=epOXxt21BGcA:10 a=MAqy2mrZohUA:10 a=qDBoAv1wOSIDHW_xPohn:22 a=aeg5Gbbo78KNqacMgKqU:22 Received: from 45-17-238-199.lightspeed.rcsntx.sbcglobal.net ([45.17.238.199]:60528 helo=creto.localdomain) by host288.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ekDEn-0048a2-7Y for yocto@yoctoproject.org; Fri, 09 Feb 2018 11:17:29 -0700 To: Yocto-mailing-list From: Chris Kottaridis Message-ID: <83602519-7b6b-e645-fd36-eff502bc5dc1@quietwind.net> Date: Fri, 9 Feb 2018 12:17:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host288.hostmonster.com X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - quietwind.net X-BWhitelist: no X-Source-IP: 45.17.238.199 X-Exim-ID: 1ekDEn-0048a2-7Y X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 45-17-238-199.lightspeed.rcsntx.sbcglobal.net (creto.localdomain) [45.17.238.199]:60528 X-Source-Auth: chriskot@quietwind.net X-Email-Count: 1 X-Source-Cap: cXVpZXR3aW47cXVpZXR3aW47aG9zdDI4OC5ob3N0bW9uc3Rlci5jb20= X-Local-Domain: yes Subject: Accessing BeagleBone Analog inputs X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 18:39:07 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US I followed the steps to create a beaglebone found here: http://www.jumpnowtek.com/beaglebone/BeagleBone-Systems-with-Yocto.html They worked like a charm, thanksyou junponowtek. And then followed this doc to try and get the ADC available: http://processors.wiki.ti.com/index.php/Linux_Core_ADC_Users_Guide I loaded the module and it shows up in lsmod along with other modules it brings in: # lsmod Module                  Size  Used by ti_am335x_adc          16384  0 kfifo_buf              16384  1 ti_am335x_adc industrialio           57344  2 ti_am335x_adc,kfifo_buf ti_am335x_tscadc       16384  1 ti_am335x_adc My arch/arm/boot/dts/am335x-evm.dts file shows &tscadc {         status = "okay";         tsc {                 ti,wires = <4>;                 ti,x-plate-resistance = <200>;                 ti,coordinate-readouts = <5>;                 ti,wire-config = <0x00 0x11 0x22 0x33>;                 ti,charge-delay = <0x400>;         };         adc {                 ti,adc-channels = <4 5 6 7>;         }; }; According to the doc above loading the module should create the following: >On loading the module you would see the IIO device created root@arago-armv7:~# ls -al /sys/bus/iio/devices/iio\:device0/ drwxr-xr-x 5 root root 0 Nov 1 22:06 . drwxr-xr-x 4 root root 0 Nov 1 22:06 .. drwxr-xr-x 2 root root 0 Nov 1 22:06 buffer -r--r--r-- 1 root root 4096 Nov 1 22:06 dev -rw-r--r-- 1 root root 4096 Nov 1 22:06 in_voltage4_raw -rw-r--r-- 1 root root 4096 Nov 1 22:06 in_voltage5_raw -rw-r--r-- 1 root root 4096 Nov 1 22:06 in_voltage6_raw -rw-r--r-- 1 root root 4096 Nov 1 22:06 in_voltage7_raw -r--r--r-- 1 root root 4096 Nov 1 22:06 name lrwxrwxrwx 1 root root 0 Nov 1 22:06 of_node -> ../../../../../../firmware/devicetree/base/ocp/tscadc@44e0d000/adc drwxr-xr-x 2 root root 0 Nov 1 22:06 power drwxr-xr-x 2 root root 0 Nov 1 22:06 scan_elements lrwxrwxrwx 1 root root 0 Nov 1 22:06 subsystem -> ../../../../../../bus/iio -rw-r--r-- 1 root root 4096 Nov 1 22:06 uevent While the /sys/bus/iio directory got created when I loaded the module the device directory is empty # ls /sys/bus/iio/devices # What am I missing that is preventing the ADC interface from being created ? Any pointers would be appreciated. Thanks Chris K