Hello.
We'd like to use gpio_1 as wake up source in our device based on Variscite OM4460 module. We connect gpio_1 line to high level and short it to gnd via button.
TRM said that gpio_1 has 2 channels: gpio_1 and gpio_wk1 and only one of them can be used.
In platform setup file i try to configure GPIOs as following:
omap_mux_init_signal("kpd_col2.kpd_col5", OMAP_MUX_MODE1 | OMAP_PIN_INPUT); /* gpio_1 */
omap_mux_init_signal("sim_clk.gpio_wk1",
OMAP_MUX_MODE3 | OMAP_PIN_INPUT | OMAP_WAKEUP_EN |
OMAP_WAKEUP_EVENT); /* gpio_wk1 */
and get following debug output:
[ 0.535797] omap_mux_init_signal: Setting signal kpd_col2.kpd_col5 0x4103 -> 0x0101
[ 0.535827] _omap_mux_get_by_name: Could not find signal sim_clk.gpio_wk1
[ 0.535827] omap_mux_init_signal: Setting signal sim_clk.gpio_wk1 0x0103 -> 0xc103
i made driver which request gpio_1 IRQ as mentioned in TRM that wakeup gpio has to configure interrupt line.
In result:
when i try to read line level with gpio_get_value i get low level but there is high level on accordind module pin, resume from powedown mode doesn't work.
Can someone explain how to use wakeup lines and how to configure them in right way to make resume working.
WBR,