Re: Query on IIO consumer driver and device tree

2014-09-28 Thread sanchayan maity
Hello,

Any pointers?.

Regards,
Sanchayan.

On Sat, Sep 27, 2014 at 12:24 PM, sanchayan maity
 wrote:
> Hello,
>
> There is an ADC driver following the IIO framework. I am using Kernel
> 3.17 rc5 in an embedded device. I am in the process of writing a
> "consumer" IIO touchscreen driver which uses the ADC channels.
>
> http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/iio/iio-bindings.txt
>
> I am following this document and my device tree node is as follows for
> the touchscreen driver.
>
> vf_touchctrl {
> compatible = "vf-touch";
> io-channels = "&adc0 0", &adc0 1",
>  "&adc1 0", "&adc1 2";
> pinctrl-names = "idle", "default";
> pinctrl-0 = "&pinctrl_default";
> pinctrl-1 = "&pinctrl_idle";
> gpio-xp = "&gpio0 8 0"
>  /* Few more gpio entries like this */
> };
>
> In the touchscreen driver, i will be using the IIO consumer functions
> from http://lxr.free-electrons.com/source/include/linux/iio/consumer.h.
> When i call iio_channel_get_all(), i am expecting to get pointers to
> the four channels in order specified in the DT above. Is my
> understanding correct? Then specify these four channel pointers with
> iio_read_channel_raw() to get the ADC readings.
>
> My other question is related to the GPIO entry in the DT above. When
> using of_get_named_gpio(), i do it like below.
>
> int ret = of_get_named_gpio(node, "gpio-xp", 0);
>
> I do not get the correct values, but negative error values. Also, i
> can see a "argument longer than property" error for the device tree
> parsing in dmesg log. Can someone point out what i am doing wrong
> here?
>
> Thanks & Regards,
> Victor aka Sanchayan.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Doubt in USB Drivers

2014-09-28 Thread Valdis . Kletnieks
On Sun, 28 Sep 2014 16:27:06 +0530, me storage said:

> I am new to Linux Kernel Programming .I want to develop usb drivers so i
> read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my

LDD3 is about a 2.6.10 kernel.  Ubuntu 12.04 shipped a 3.2.14 kernel.

% git diff --shortstat v2.6.11 v3.12
 54000 files changed, 15378914 insertions(+), 4279326 deletions(-)

LDD3 is only about 15 million lines out of date.  Have a nice day.

(2.6.11 was the first release in the git world, and my linux-next tree
doesn't have the 3.2.14 tag in it, but I think that made the point)

Now go off and figure out *what* changed on your own, lest you be punted
from the Eucalyptus Challenge


pgphzENLODWO6.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Doubt in USB Drivers

2014-09-28 Thread Jason Conklin
Little will remove you from the challenge if you ask questions in
public. If this hasn't already happened... keep reading, take your
time, and figure it out yourself! Good luck.

On Sun, Sep 28, 2014 at 11:35 AM, me storage  wrote:
> Yes it is a task in Eudyptula Challenge,
>
> I read the chapter which little mentioned ,after searching on  google i
> found some solutions but i don't want to copy those solutions i want to
> solve my self .So that's why i asked for resources not any solution ? Please
> try to understand .
> Thanks to all
>
>
> On 28 September 2014 19:27, Sudip Mukherjee 
> wrote:
>>
>>
>> On Sep 28, 2014 4:28 PM, "me storage"  wrote:
>> >
>> > Hi to all
>> > I am new to Linux Kernel Programming .I want to develop usb drivers so i
>> > read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my
>> > doubt is how kernel handles the usb devices i.e who detects usb events 
>> > ,then
>> > who fires hotplug script to run ,where kernel searches corresponding module
>> > ,who loads the modules etc...
>>
>> is it related to the task of Eudyptula Challenge??
>>
>> looks like 
>>
>> > Any resources are helpful to me
>> > Thanks to all
>> >
>> > ___
>> > Kernelnewbies mailing list
>> > Kernelnewbies@kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >
>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Doubt in USB Drivers

2014-09-28 Thread me storage
Yes it is a task in Eudyptula Challenge,

I read the chapter which little mentioned ,after searching on  google i
found some solutions but i don't want to copy those solutions i want to
solve my self .So that's why i asked for resources not any solution ?
Please try to understand .
Thanks to all

On 28 September 2014 19:27, Sudip Mukherjee 
wrote:

>
> On Sep 28, 2014 4:28 PM, "me storage"  wrote:
> >
> > Hi to all
> > I am new to Linux Kernel Programming .I want to develop usb drivers so i
> read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my
> doubt is how kernel handles the usb devices i.e who detects usb events
> ,then who fires hotplug script to run ,where kernel searches corresponding
> module ,who loads the modules etc...
>
> is it related to the task of Eudyptula Challenge??
>
> looks like 
>
> > Any resources are helpful to me
> > Thanks to all
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Doubt in USB Drivers

2014-09-28 Thread Sudip Mukherjee
On Sep 28, 2014 4:28 PM, "me storage"  wrote:
>
> Hi to all
> I am new to Linux Kernel Programming .I want to develop usb drivers so i
read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my
doubt is how kernel handles the usb devices i.e who detects usb events
,then who fires hotplug script to run ,where kernel searches corresponding
module ,who loads the modules etc...

is it related to the task of Eudyptula Challenge??

looks like 

> Any resources are helpful to me
> Thanks to all
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Doubt in USB Drivers

2014-09-28 Thread me storage
Hi to all
I am new to Linux Kernel Programming .I want to develop usb drivers so i
read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my
doubt is how kernel handles the usb devices i.e who detects usb events
,then who fires hotplug script to run ,where kernel searches corresponding
module ,who loads the modules etc...
Any resources are helpful to me
Thanks to all
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies