Skip to content

Commit 731daaa

Browse files
elkablogclement
authored andcommitted
ARM: dts: turris-omnia: Add GPIO key node for front button
Now that we have the MCU device-tree node, which acts as a GPIO controller, add GPIO key node for the front button. Signed-off-by: Marek Behún <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent cfa65ef commit 731daaa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,19 @@
112112
status = "disabled";
113113
};
114114

115+
gpio-keys {
116+
compatible = "gpio-keys";
117+
118+
front-button {
119+
label = "Front Button";
120+
linux,code = <KEY_VENDOR>;
121+
linux,can-disable;
122+
gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>;
123+
/* debouncing is done by the microcontroller */
124+
debounce-interval = <0>;
125+
};
126+
};
127+
115128
sound {
116129
compatible = "simple-audio-card";
117130
simple-audio-card,name = "SPDIF";

0 commit comments

Comments
 (0)