Thanks tushar for reply.
On 9/17/13, Tushar Behera tushar.behera@linaro.org wrote:
On 17 September 2013 15:52, MJ embd mj.embd@gmail.com wrote:
Hi Linaro,
I am trying to attach interrupt handlers to the push buttons on the arndale board. Your patch adds in dts information on the push buttons
menu {
label = "SW-TACT2";
gpios = <&gpx1 4 1>;
linux,code = <139>;
gpio-key,wakeup;
};
I assume that <139> is the GPU number in base 10. Is this correct ?
No, that is the key code for MENU button, as defined in include/uapi/linux/input.h.
Also what is the significance of gpx1 and 4 1 ?
This tells us that we are using GPX1[4] gpio for this operation.
a) There are 4 GPX1 registers namely GPX1CON, GPX1DAT, GPX1PUD, GPX1DRV. What is the [4] index which you are referring to ?
b) What I understand from your patch is that each SW-TACTn maps to a GPXn, is this correct ?
From the manual if I set 0xf to the GPX1CON [7:4] it will be
configured as interrupt 41, 0xF = EXT_INT41[1] So if I press button TACT2 There would be IRQ 41 interrupt for the core. Is this correct ?
b.2) What does EXT_INT41[1] "[1]" mean ?
c) Is there some app note from samsung/linaro on how to configure the GPIO as interrupt. The public reference manual is not that intuitive
-- Tushar Behera
Thanks and regards, -mj