提交 e94233c2 编写于 作者: F Florian Vaussard 提交者: Benoit Cousson

ARM: dts: AM33XX: Use existing constants for GPIOs

Use standard GPIO constants to enhance the readability of DT GPIOs.
Signed-off-by: NFlorian Vaussard <florian.vaussard@epfl.ch>
Tested-by: NAfzal Mohammed <afzal@ti.com>
Signed-off-by: NBenoit Cousson <benoit.cousson@linaro.org>
上级 eb33ef66
...@@ -88,27 +88,27 @@ ...@@ -88,27 +88,27 @@
led@2 { led@2 {
label = "beaglebone:green:heartbeat"; label = "beaglebone:green:heartbeat";
gpios = <&gpio1 21 0>; gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
default-state = "off"; default-state = "off";
}; };
led@3 { led@3 {
label = "beaglebone:green:mmc0"; label = "beaglebone:green:mmc0";
gpios = <&gpio1 22 0>; gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
default-state = "off"; default-state = "off";
}; };
led@4 { led@4 {
label = "beaglebone:green:usr2"; label = "beaglebone:green:usr2";
gpios = <&gpio1 23 0>; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
led@5 { led@5 {
label = "beaglebone:green:usr3"; label = "beaglebone:green:usr3";
gpios = <&gpio1 24 0>; gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
}; };
......
...@@ -264,12 +264,12 @@ ...@@ -264,12 +264,12 @@
debounce-delay-ms = <5>; debounce-delay-ms = <5>;
col-scan-delay-us = <2>; col-scan-delay-us = <2>;
row-gpios = <&gpio1 25 0 /* Bank1, pin25 */ row-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH /* Bank1, pin25 */
&gpio1 26 0 /* Bank1, pin26 */ &gpio1 26 GPIO_ACTIVE_HIGH /* Bank1, pin26 */
&gpio1 27 0>; /* Bank1, pin27 */ &gpio1 27 GPIO_ACTIVE_HIGH>; /* Bank1, pin27 */
col-gpios = <&gpio1 21 0 /* Bank1, pin21 */ col-gpios = <&gpio1 21 GPIO_ACTIVE_HIGH /* Bank1, pin21 */
&gpio1 22 0>; /* Bank1, pin22 */ &gpio1 22 GPIO_ACTIVE_HIGH>; /* Bank1, pin22 */
linux,keymap = <0x0000008b /* MENU */ linux,keymap = <0x0000008b /* MENU */
0x0100009e /* BACK */ 0x0100009e /* BACK */
...@@ -288,14 +288,14 @@ ...@@ -288,14 +288,14 @@
switch@9 { switch@9 {
label = "volume-up"; label = "volume-up";
linux,code = <115>; linux,code = <115>;
gpios = <&gpio0 2 1>; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
switch@10 { switch@10 {
label = "volume-down"; label = "volume-down";
linux,code = <114>; linux,code = <114>;
gpios = <&gpio0 3 1>; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
}; };
......
...@@ -144,26 +144,26 @@ ...@@ -144,26 +144,26 @@
led@1 { led@1 {
label = "evmsk:green:usr0"; label = "evmsk:green:usr0";
gpios = <&gpio1 4 0>; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
led@2 { led@2 {
label = "evmsk:green:usr1"; label = "evmsk:green:usr1";
gpios = <&gpio1 5 0>; gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
led@3 { led@3 {
label = "evmsk:green:mmc0"; label = "evmsk:green:mmc0";
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
default-state = "off"; default-state = "off";
}; };
led@4 { led@4 {
label = "evmsk:green:heartbeat"; label = "evmsk:green:heartbeat";
gpios = <&gpio1 7 0>; gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
default-state = "off"; default-state = "off";
}; };
...@@ -177,26 +177,26 @@ ...@@ -177,26 +177,26 @@
switch@1 { switch@1 {
label = "button0"; label = "button0";
linux,code = <0x100>; linux,code = <0x100>;
gpios = <&gpio2 3 0>; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
}; };
switch@2 { switch@2 {
label = "button1"; label = "button1";
linux,code = <0x101>; linux,code = <0x101>;
gpios = <&gpio2 2 0>; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
}; };
switch@3 { switch@3 {
label = "button2"; label = "button2";
linux,code = <0x102>; linux,code = <0x102>;
gpios = <&gpio0 30 0>; gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
gpio-key,wakeup; gpio-key,wakeup;
}; };
switch@4 { switch@4 {
label = "button3"; label = "button3";
linux,code = <0x103>; linux,code = <0x103>;
gpios = <&gpio2 5 0>; gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
* kind, whether express or implied. * kind, whether express or implied.
*/ */
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi" #include "skeleton.dtsi"
/ { / {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册