lkml.org 
[lkml]   [2014]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: rotary encoder linux driver
Date
Johan Hovold <johan@kernel.org> writes:

> On Sun, Oct 12, 2014 at 06:29:03PM -0700, tecfacet wrote:
>> Hello.
>>
>> I am interested in the rotary encoder kernel driver. I am very new to
>> this linux kernel driver thing.
>>
>> How do I pass the gpio and interrupt stuff to the kernel module.. I
>> think it is thru the rotary_encoder.h file.. am I correct?
>
> That should be done through the device tree these days. The binding is
> documented in
>
> Documentation/devicetree/bindings/input/rotary-encoder.txt
>
> in the kernel source tree.
>
You may also be interested in the device tree for a BeagleBone cape that
I recently brought up which includes an encoder,

https://github.com/bgamari/dtb-rebuilder/blob/heaterbone-3.14/src/arm/heater-bone.dtsi#L248

Cheers,

- Ben

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-10-15 01:21    [W:0.041 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site