ARM: dts: stm32: Add push button to stm32f769 Discovery board
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 27 Feb 2018 13:47:10 +0000 (14:47 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 27 Feb 2018 14:01:44 +0000 (15:01 +0100)
Add node for user push button.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f769-disco.dts

index ecaeb60..afbd769 100644 (file)
                        gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               autorepeat;
+               button@0 {
+                       label = "User";
+                       linux,code = <KEY_HOME>;
+                       gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &cec {