<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Batang;
panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
{font-family:"\@Batang";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Century Gothic";
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:.3in 1.0in .3in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=black face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:black'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Am
trying to get the ADC working on the beagle bone. Have cloned/pulled the latest
kernel from the following branch <a
href="https://github.com/beagleboard/kernel/tree/3.8">https://github.com/beagleboard/kernel/tree/3.8</a>
, applied the patches and built the kernel. <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Have
included the below structure under the am335x-bone-common.dtsi (attached
herewith is the dts file for your reference)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>tscadc@44e0d000
{<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'> status
= "okay";<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'> compatible
= "ti,ti-tscadc";<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'> reg
= <0x44e0d000 0x1000>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
interrupt-parent = <&intc>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
interrupts = <16>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,hwmods = "adc_tsc";<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'> };<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>&tscadc
{<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
tsc {<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,wires = <4>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,x-plate-resistance = <200>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,steps-to-configure = <5>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,wire-config = <0x00 0x11 0x22 0x33>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
};<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
adc {<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
ti,adc-channels = <8>;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>
};<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>The
device is getting registered( [1.578678] input: ti-tsc as
/devices/ocp.2/44e0d000.tscadc/tsc/input/input0<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>[
1.586799] tsc tsc: Initialized OK) as can be seen from the attached kernel
log(3.8_kernel_ts_adc_sys_iio_devices.txt).<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Am
able to view the "tiadc" under the devices in the following path cat
/sys/devices/ocp.2/44e0d000.tscadc/tiadc/iio\:device0/ and cat
/sys/bus/iio/devices/iio\:device0/ , but am not able to list out
"in_voltageX_raw" in either of the paths. <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Can
you please suggest if am missing anything?<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Century Gothic"><span style='font-size:10.0pt;font-family:"Century Gothic"'>Vijay<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:black'><o:p> </o:p></span></font></p>
</div>
</body>
</html>