projects
/
openwrt
/
staging
/
florian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/florian.git]
/
target
/
linux
/
lantiq
/
dts
/
WBMR.dts
diff --git
a/target/linux/lantiq/dts/WBMR.dts
b/target/linux/lantiq/dts/WBMR.dts
index 067ca87d46bb15a8dd566575c70093d0888ddcdf..3dbc641e66873b05cfc8426c817b667ccf2db09d 100644
(file)
--- a/
target/linux/lantiq/dts/WBMR.dts
+++ b/
target/linux/lantiq/dts/WBMR.dts
@@
-1,6
+1,8
@@
/dts-v1/;
/dts-v1/;
-/include/ "ar9.dtsi"
+#include "ar9.dtsi"
+
+#include <dt-bindings/input/input.h>
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
/ {
model = "WBMR - Buffalo WBMR-HP-G300H";
@@
-101,7
+103,7
@@
ifxhcd@E101000 {
status = "okay";
ifxhcd@E101000 {
status = "okay";
- gpios = <&gpio 36
0
>;
+ gpios = <&gpio 36
GPIO_ACTIVE_HIGH
>;
};
pci@E105400 {
};
pci@E105400 {
@@
-117,23
+119,23
@@
wps {
label = "wps";
wps {
label = "wps";
- gpios = <&gpio 0
1
>;
- linux,code = <
0x211
>;
+ gpios = <&gpio 0
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_WPS_BUTTON
>;
};
reset {
label = "reset";
};
reset {
label = "reset";
- gpios = <&gpio 37
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio 37
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
eject {
label = "eject";
};
eject {
label = "eject";
- gpios = <&gpio 34
1
>;
- linux,code = <
0xf7
>;
+ gpios = <&gpio 34
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RFKILL
>;
};
movie {
label = "movie";
};
movie {
label = "movie";
- gpios = <&gpio 22
1
>;
- linux,code = <
0x10
9>;
+ gpios = <&gpio 22
GPIO_ACTIVE_LOW
>;
+ linux,code = <
BTN_
9>;
};
};
};
};
@@
-142,40
+144,40
@@
power_green: power {
label = "wbmr:green:power";
power_green: power {
label = "wbmr:green:power";
- gpios = <&gpio 1
1
>;
+ gpios = <&gpio 1
GPIO_ACTIVE_LOW
>;
default-state = "keep";
};
power_red: power2 {
label = "wbmr:red:power";
default-state = "keep";
};
power_red: power2 {
label = "wbmr:red:power";
- gpios = <&gpio 5
1
>;
+ gpios = <&gpio 5
GPIO_ACTIVE_LOW
>;
};
security {
label = "wbmr:yellow:security";
};
security {
label = "wbmr:yellow:security";
- gpios = <&gpio 14
1
>;
+ gpios = <&gpio 14
GPIO_ACTIVE_LOW
>;
};
wifi: wifi {
label = "wbmr:green:wireless";
};
wifi: wifi {
label = "wbmr:green:wireless";
- gpios = <&gpio 15
1
>;
+ gpios = <&gpio 15
GPIO_ACTIVE_LOW
>;
};
dsl: dsl {
label = "wbmr:green:dsl";
};
dsl: dsl {
label = "wbmr:green:dsl";
- gpios = <&gpio 16
1
>;
+ gpios = <&gpio 16
GPIO_ACTIVE_LOW
>;
};
online_green: online {
label = "wbmr:green:internet";
};
online_green: online {
label = "wbmr:green:internet";
- gpios = <&gpio 17
1
>;
+ gpios = <&gpio 17
GPIO_ACTIVE_LOW
>;
};
online2 {
label = "wbmr:red:internet";
};
online2 {
label = "wbmr:red:internet";
- gpios = <&gpio 18
1
>;
+ gpios = <&gpio 18
GPIO_ACTIVE_LOW
>;
};
movie {
label = "wbmr:blue:movie";
};
movie {
label = "wbmr:blue:movie";
- gpios = <&gpio 20
1
>;
+ gpios = <&gpio 20
GPIO_ACTIVE_LOW
>;
};
usb: usb {
label = "wbmr:green:usb";
};
usb: usb {
label = "wbmr:green:usb";
- gpios = <&gpio 28
1
>;
+ gpios = <&gpio 28
GPIO_ACTIVE_LOW
>;
default-state = "on";
};
};
default-state = "on";
};
};