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

ARM: dts: OMAP2+: 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>
Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NBenoit Cousson <benoit.cousson@linaro.org>
上级 98ef7957
...@@ -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"
/ { / {
......
...@@ -29,13 +29,13 @@ ...@@ -29,13 +29,13 @@
heartbeat { heartbeat {
label = "beagleboard::usr0"; label = "beagleboard::usr0";
gpios = <&gpio5 22 0>; /* 150 -> D6 LED */ gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
mmc { mmc {
label = "beagleboard::usr1"; label = "beagleboard::usr1";
gpios = <&gpio5 21 0>; /* 149 -> D7 LED */ gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
}; };
......
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
pmu_stat { pmu_stat {
label = "beagleboard::pmu_stat"; label = "beagleboard::pmu_stat";
gpios = <&twl_gpio 19 0>; /* LEDB */ gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
}; };
heartbeat { heartbeat {
label = "beagleboard::usr0"; label = "beagleboard::usr0";
gpios = <&gpio5 22 0>; /* 150 -> D6 LED */ gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
mmc { mmc {
label = "beagleboard::usr1"; label = "beagleboard::usr1";
gpios = <&gpio5 21 0>; /* 149 -> D7 LED */ gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
}; };
......
...@@ -22,21 +22,21 @@ ...@@ -22,21 +22,21 @@
heartbeat { heartbeat {
label = "devkit8000::led1"; label = "devkit8000::led1";
gpios = <&gpio6 26 0>; /* 186 -> LED1 */ gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* 186 -> LED1 */
default-state = "on"; default-state = "on";
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
mmc { mmc {
label = "devkit8000::led2"; label = "devkit8000::led2";
gpios = <&gpio6 3 0>; /* 163 -> LED2 */ gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 -> LED2 */
default-state = "on"; default-state = "on";
linux,default-trigger = "none"; linux,default-trigger = "none";
}; };
usr { usr {
label = "devkit8000::led3"; label = "devkit8000::led3";
gpios = <&gpio6 4 0>; /* 164 -> LED3 */ gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* 164 -> LED3 */
default-state = "on"; default-state = "on";
linux,default-trigger = "usr"; linux,default-trigger = "usr";
}; };
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
ledb { ledb {
label = "omap3evm::ledb"; label = "omap3evm::ledb";
gpios = <&twl_gpio 19 0>; /* LEDB */ gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
}; };
......
...@@ -19,25 +19,25 @@ ...@@ -19,25 +19,25 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
boot { boot {
label = "omap3:green:boot"; label = "omap3:green:boot";
gpios = <&gpio1 26 0>; gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
user0 { user0 {
label = "omap3:red:user0"; label = "omap3:red:user0";
gpios = <&gpio1 27 0>; gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
user1 { user1 {
label = "omap3:red:user1"; label = "omap3:red:user1";
gpios = <&gpio1 28 0>; gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
user2 { user2 {
label = "omap3:green:user1"; label = "omap3:green:user1";
gpios = <&twl_gpio 19 1>; gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>;
}; };
}; };
......
...@@ -19,25 +19,25 @@ ...@@ -19,25 +19,25 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
boot { boot {
label = "omap3:green:boot"; label = "omap3:green:boot";
gpios = <&twl_gpio 13 1>; gpios = <&twl_gpio 13 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
user0 { user0 {
label = "omap3:red:user0"; label = "omap3:red:user0";
gpios = <&twl_gpio 18 1>; /* LEDA */ gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */
default-state = "off"; default-state = "off";
}; };
user1 { user1 {
label = "omap3:green:user1"; label = "omap3:green:user1";
gpios = <&twl_gpio 19 1>; /* LEDB */ gpios = <&twl_gpio 19 GPIO_ACTIVE_LOW>; /* LEDB */
default-state = "off"; default-state = "off";
}; };
user2 { user2 {
label = "omap3:red:user1"; label = "omap3:red:user1";
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
}; };
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
heartbeat { heartbeat {
label = "overo:red:gpio21"; label = "overo:red:gpio21";
gpios = <&gpio1 21 0>; gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
}; };
......
...@@ -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"
/ { / {
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
heartbeat { heartbeat {
label = "pandaboard::status1"; label = "pandaboard::status1";
gpios = <&gpio1 7 0>; gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
mmc { mmc {
label = "pandaboard::status2"; label = "pandaboard::status2";
gpios = <&gpio1 8 0>; gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
}; };
......
...@@ -41,42 +41,42 @@ ...@@ -41,42 +41,42 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
debug0 { debug0 {
label = "omap4:green:debug0"; label = "omap4:green:debug0";
gpios = <&gpio2 29 0>; /* 61 */ gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; /* 61 */
}; };
debug1 { debug1 {
label = "omap4:green:debug1"; label = "omap4:green:debug1";
gpios = <&gpio1 30 0>; /* 30 */ gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; /* 30 */
}; };
debug2 { debug2 {
label = "omap4:green:debug2"; label = "omap4:green:debug2";
gpios = <&gpio1 7 0>; /* 7 */ gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; /* 7 */
}; };
debug3 { debug3 {
label = "omap4:green:debug3"; label = "omap4:green:debug3";
gpios = <&gpio1 8 0>; /* 8 */ gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* 8 */
}; };
debug4 { debug4 {
label = "omap4:green:debug4"; label = "omap4:green:debug4";
gpios = <&gpio2 18 0>; /* 50 */ gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>; /* 50 */
}; };
user1 { user1 {
label = "omap4:blue:user"; label = "omap4:blue:user";
gpios = <&gpio6 9 0>; /* 169 */ gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* 169 */
}; };
user2 { user2 {
label = "omap4:red:user"; label = "omap4:red:user";
gpios = <&gpio6 10 0>; /* 170 */ gpios = <&gpio6 10 GPIO_ACTIVE_HIGH>; /* 170 */
}; };
user3 { user3 {
label = "omap4:green:user"; label = "omap4:green:user";
gpios = <&gpio5 11 0>; /* 139 */ gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* 139 */
}; };
}; };
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <dt-bindings/gpio/gpio.h>
#include "skeleton.dtsi" #include "skeleton.dtsi"
/ { / {
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* Based on "omap4.dtsi" * Based on "omap4.dtsi"
*/ */
#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.
先完成此消息的编辑!
想要评论请 注册