Skip to content
Snippets Groups Projects
Commit b048b305 authored by Robin Gong's avatar Robin Gong
Browse files

MLK-25678 arm64: dts: imx8ulp-evk: change ONOFF key to gpio key


Since ONOFF key release status can't be detect on i.mx8ulp which means
long press can't be detect in Android, use another gpio key PTF31(SW4)
to sense ONOFF key. Besides, Vol+/- keys change to rpmsg key SW7/SW8 to
meet the requirement of Android changing volume during low power audio
playback while kernel maybe in suspend, and only PTF7(SW2) in APD side
could wake up from DSM. So move Vol+/- to RTD domain.

Signed-off-by: default avatarRobin Gong <yibin.gong@nxp.com>
Reviewed-by: default avatarJacky Bai <ping.bai@nxp.com>
parent 20fa9822
No related branches found
No related tags found
No related merge requests found
......@@ -22,31 +22,25 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_keys>;
volume-up {
label = "Volume Up";
gpios = <&gpiof 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
};
volume-down {
label = "Volume Down";
gpios = <&gpiof 30 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
};
volume-home {
label = "Volume Home";
power-on {
label = "PowerOn";
gpios = <&gpiof 31 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
linux,code = <KEY_POWER>;
};
};
rpmsg_keys: rpmsg-keys {
compatible = "fsl,rpmsg-keys";
power-on {
label = "PowerOn";
linux,code = <KEY_POWER>;
volume-up {
label = "VolumeUp";
linux,code = <KEY_VOLUMEUP>;
rpmsg-key,wakeup;
};
volume-down {
label = "VolumeDown";
linux,code = <KEY_VOLUMEDOWN>;
rpmsg-key,wakeup;
};
};
......@@ -509,8 +503,6 @@
pinctrl_gpio_keys: gpiokeys {
fsl,pins = <
MX8ULP_PAD_PTF7__PTF7 0x3
MX8ULP_PAD_PTF30__PTF30 0x3
MX8ULP_PAD_PTF31__PTF31 0x3
>;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment