Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5670501c authored by Maxime Coquelin's avatar Maxime Coquelin Committed by Alexandre TORGUE
Browse files

ARM: dts: Declare push button as GPIO key on stm32f429 boards

parent ed01154f
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@

/dts-v1/;
#include "stm32f429.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "STMicroelectronics STM32429i-EVAL board";
@@ -82,6 +83,23 @@
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		autorepeat;
		button@0 {
			label = "Wake up";
			linux,code = <KEY_WAKEUP>;
			gpios = <&gpioa 0 0>;
		};
		button@1 {
			label = "Tamper";
			linux,code = <KEY_RESTART>;
			gpios = <&gpioc 13 0>;
		};
	};

	usbotg_hs_phy: usbphy {
		#phy-cells = <0>;
		compatible = "usb-nop-xceiv";
+13 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@

/dts-v1/;
#include "stm32f429.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "STMicroelectronics STM32F429i-DISCO board";
@@ -75,6 +76,18 @@
			linux,default-trigger = "heartbeat";
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		autorepeat;
		button@0 {
			label = "User";
			linux,code = <KEY_HOME>;
			gpios = <&gpioa 0 0>;
		};
	};
};

&clk_hse {