Re: [V3,3/7] ARM: dts: Add gpio-button entries for Arndale board

From: MJ embd
Date: Tue Sep 17 2013 - 06:43:51 EST


PS:Adding linux kernel for a larger forum comments

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 ?
Also what is the significance of gpx1 and 4 1 ?

As per my understanding if 139 the GPIO number then it should be
mapped to a GPIO register where the state Input/ouput/Interrupt has to
be set.

I am not able to find that register in the
"Exynos_5_Dual_User_Manaul_Public_REV100-0", All I could find a set of
GPXXXX registers but no mapping between <139> and those registers.

Can anyone explain the steps, on how to associate the push button to INT (IRQ)

Thanks in Advance..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/