[PATCH u-boot-marvell v2 1/6] arm: mvebu: dts: turris_mox: add button and LED nodes

Pali Rohár pali at kernel.org
Tue Jun 8 11:47:14 CEST 2021


On Monday 07 June 2021 16:34:46 Marek Behún wrote:
> Add nodes for indicator LED and reset button so that board code can
> implement board factory reset mechanism.
> 
> Signed-off-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Pali Rohár <pali at kernel.org>

> ---
>  arch/arm/dts/armada-3720-turris-mox.dts | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/arch/arm/dts/armada-3720-turris-mox.dts b/arch/arm/dts/armada-3720-turris-mox.dts
> index 8e0ebf508d..741b0eeeee 100644
> --- a/arch/arm/dts/armada-3720-turris-mox.dts
> +++ b/arch/arm/dts/armada-3720-turris-mox.dts
> @@ -11,6 +11,8 @@
>  /dts-v1/;
>  
>  #include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/input.h>
> +#include <dt-bindings/leds/common.h>
>  #include "armada-372x.dtsi"
>  
>  / {
> @@ -34,6 +36,28 @@
>  		reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
>  	};
>  
> +	leds {
> +		compatible = "gpio-leds";
> +
> +		led {
> +			gpios = <&gpiosb 21 GPIO_ACTIVE_LOW>;
> +			color = <LED_COLOR_ID_RED>;
> +			function = LED_FUNCTION_ACTIVITY;
> +		};
> +	};
> +
> +	gpio-keys {
> +		compatible = "gpio-keys";
> +
> +		reset {
> +			compatible = "gpio-keys";
> +			label = "reset";
> +			linux,code = <KEY_RESTART>;
> +			gpios = <&gpiosb 20 GPIO_ACTIVE_LOW>;
> +			debounce-interval = <60>;
> +		};
> +	};
> +
>  	reg_usb3_vbus: usb3_vbus at 0 {
>  		compatible = "regulator-fixed";
>  		regulator-name = "usb3-vbus";
> -- 
> 2.31.1
> 


More information about the U-Boot mailing list