mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
ARM: dts: imx6qdl-sabresd: Add power key support
This patch adds support for imx6qdl-sabresd board's power key, the key is named "SW1" on board, press it can wake up system from suspend. Add a new pinctrl entry for gpio keys and move all gpio keys pin to this entry. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
parent
b0d300d3a2
commit
8e4422ae6b
1 changed files with 21 additions and 4 deletions
|
@ -10,6 +10,8 @@
|
||||||
* http://www.gnu.org/copyleft/gpl.html
|
* http://www.gnu.org/copyleft/gpl.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
memory {
|
memory {
|
||||||
reg = <0x10000000 0x40000000>;
|
reg = <0x10000000 0x40000000>;
|
||||||
|
@ -51,19 +53,28 @@ reg_audio: regulator@2 {
|
||||||
|
|
||||||
gpio-keys {
|
gpio-keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_gpio_keys>;
|
||||||
|
|
||||||
|
power {
|
||||||
|
label = "Power Button";
|
||||||
|
gpios = <&gpio3 29 0>;
|
||||||
|
gpio-key,wakeup;
|
||||||
|
linux,code = <KEY_POWER>;
|
||||||
|
};
|
||||||
|
|
||||||
volume-up {
|
volume-up {
|
||||||
label = "Volume Up";
|
label = "Volume Up";
|
||||||
gpios = <&gpio1 4 0>;
|
gpios = <&gpio1 4 0>;
|
||||||
gpio-key,wakeup;
|
gpio-key,wakeup;
|
||||||
linux,code = <115>; /* KEY_VOLUMEUP */
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-down {
|
volume-down {
|
||||||
label = "Volume Down";
|
label = "Volume Down";
|
||||||
gpios = <&gpio1 5 0>;
|
gpios = <&gpio1 5 0>;
|
||||||
gpio-key,wakeup;
|
gpio-key,wakeup;
|
||||||
linux,code = <114>; /* KEY_VOLUMEDOWN */
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -176,8 +187,6 @@ &iomuxc {
|
||||||
imx6qdl-sabresd {
|
imx6qdl-sabresd {
|
||||||
pinctrl_hog: hoggrp {
|
pinctrl_hog: hoggrp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000
|
|
||||||
MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000
|
|
||||||
MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000
|
MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000
|
||||||
MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000
|
MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000
|
||||||
MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000
|
MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000
|
||||||
|
@ -228,6 +237,14 @@ MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pinctrl_gpio_keys: gpio_keysgrp {
|
||||||
|
fsl,pins = <
|
||||||
|
MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x80000000
|
||||||
|
MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000
|
||||||
|
MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl_i2c1: i2c1grp {
|
pinctrl_i2c1: i2c1grp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
|
MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
|
||||||
|
|
Loading…
Reference in a new issue