提交 3631c597 编写于 作者: S Sascha Hauer 提交者: Shawn Guo

ARM: dts: imx53-qsb: Fix gpio button polarity

The polarity of the gpio buttons is defined to '0' which is
active high. The buttons are active low though which has been verified by
testing it and by looking into the schematics. While at it use
defines rathers than numbers for the key codes.
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 18e75ad2
...@@ -59,21 +59,21 @@ ...@@ -59,21 +59,21 @@
power { power {
label = "Power Button"; label = "Power Button";
gpios = <&gpio1 8 0>; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
linux,code = <116>; /* KEY_POWER */ linux,code = <KEY_POWER>;
}; };
volume-up { volume-up {
label = "Volume Up"; label = "Volume Up";
gpios = <&gpio2 14 0>; gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
linux,code = <115>; /* KEY_VOLUMEUP */ linux,code = <KEY_VOLUMEUP>;
wakeup-source; wakeup-source;
}; };
volume-down { volume-down {
label = "Volume Down"; label = "Volume Down";
gpios = <&gpio2 15 0>; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
linux,code = <114>; /* KEY_VOLUMEDOWN */ linux,code = <KEY_VOLUMEDOWN>;
wakeup-source; wakeup-source;
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册