projects
/
linux-gpio-pinout
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e507445
)
reorder pins to be one below another on one side of connector
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Dec 2017 12:34:38 +0000
(13:34 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Dec 2017 12:34:38 +0000
(13:34 +0100)
device-tree/gpio-3-buttons.dts
patch
|
blob
|
history
diff --git
a/device-tree/gpio-3-buttons.dts
b/device-tree/gpio-3-buttons.dts
index
450325d
..
e086c2a
100644
(file)
--- a/
device-tree/gpio-3-buttons.dts
+++ b/
device-tree/gpio-3-buttons.dts
@@
-13,7
+13,7
@@
target = <&pio>;
__overlay__ {
gpio_button_0: gpio_button_0 {
target = <&pio>;
__overlay__ {
gpio_button_0: gpio_button_0 {
- pins = "PG
9","PG10","PG11
";
+ pins = "PG
3","PG1","PG5
";
function = "gpio_in";
bias-pull-up;
};
function = "gpio_in";
bias-pull-up;
};
@@
-41,19
+41,19
@@
up {
label = "button-up";
linux,code = <103>; /* KEY_UP, see include/uapi/linux/input-event-codes.h */
up {
label = "button-up";
linux,code = <103>; /* KEY_UP, see include/uapi/linux/input-event-codes.h */
- gpios = <&pio 6
9 1>; /* PG9
GPIO_ACTIVE_LOW */
+ gpios = <&pio 6
3 1>; /* PG3
GPIO_ACTIVE_LOW */
};
down {
label = "button-down";
linux,code = <108>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
};
down {
label = "button-down";
linux,code = <108>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
- gpios = <&pio 6 1
0 1>; /* PG10
GPIO_ACTIVE_LOW */
+ gpios = <&pio 6 1
1>; /* PG1
GPIO_ACTIVE_LOW */
};
enter {
label = "button-enter";
linux,code = <28>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
};
enter {
label = "button-enter";
linux,code = <28>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
- gpios = <&pio 6
11 1>; /* PG11
GPIO_ACTIVE_LOW */
+ gpios = <&pio 6
5 1>; /* PG5
GPIO_ACTIVE_LOW */
};
};
};
};
};
};