[PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board

Alexandre Torgue alexandre.torgue at st.com
Tue Feb 27 07:54:44 PST 2018


Hi

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add node for user push button.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard at st.com>
> ---
>   arch/arm/boot/dts/stm32f769-disco.dts | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
> index 25a4b71f0317..8b3e1b518570 100644
> --- a/arch/arm/boot/dts/stm32f769-disco.dts
> +++ b/arch/arm/boot/dts/stm32f769-disco.dts
> @@ -71,6 +71,18 @@
>   			gpios = <&gpioj 13 0>;
>   		};
>   	};
> +
> +	gpio_keys {
> +		compatible = "gpio-keys";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		autorepeat;
> +		button at 0 {
> +			label = "User";
> +			linux,code = <KEY_HOME>;
> +			gpios = <&gpioa 0 0>;
> +		};
> +	};
>   };
>   
>   &cec {
> 


Applied on stm32-next.

thanks
alex



More information about the linux-arm-kernel mailing list