Hello,
i am wondering if it is possible to configure a normal gpio in dts to expose '"wakup"-Field in Sysfs (/sys/class/gpio/gpioX/power/wakeup).
i have tried as follow:
#include "am33xx.dtsi"
/ {
run_suspend {
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&run_suspend_key>;
pinctrl-names = "default";
};
};
&am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&clkout2_pin>;
run_suspend_key: run_suspend_key {
pinctrl-single,pins =
<0x150 (PIN_INPUT_PULLDOWN | WAKEUP_EN | MUX_MODE7)>;
};
};
but still the gpio (GPIO0_2) is not expossed, and if i export it manually the wakeup-flag is not there??
how can i enable Wakeup-flag through DTS???
thanks