lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 30 Nov 2020 15:35:48 +0100
From:   Gregory CLEMENT <gregory.clement@...tlin.com>
To:     Tomasz Maciej Nowak <tmn505@...il.com>,
        Jason Cooper <jason@...edaemon.net>,
        Andrew Lunn <andrew@...n.ch>,
        Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
        Rob Herring <robh+dt@...nel.org>,
        linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org
Cc:     Russell King <rmk+kernel@...linux.org.uk>,
        Alexandra Alth <alexandra@...h.de>
Subject: Re: [PATCH] arm64: dts: mcbin-singleshot: add heartbeat LED

Hi,

> With board revision 1.3, SolidRun moved the power LED to the middle of
> the board. In old place of power LED a GPIO controllable heartbeat LED
> was added. This commit only touches Single Shot variant, since only this
> variant is all revision 1.3.
>
> Reported-by: Alexandra Alth <alexandra@...h.de>
> Signed-off-by: Tomasz Maciej Nowak <tmn505@...il.com>

Applied on mvebu/dt64

Thanks,

Gregory

> ---
>  .../marvell/armada-8040-mcbin-singleshot.dts  | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts
> index 2e6832d02a59..411d20064271 100644
> --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dts
> @@ -5,6 +5,8 @@
>   * Device Tree file for MACCHIATOBin Armada 8040 community board platform
>   */
>  
> +#include <dt-bindings/leds/common.h>
> +
>  #include "armada-8040-mcbin.dtsi"
>  
>  / {
> @@ -12,6 +14,19 @@ / {
>  	compatible = "marvell,armada8040-mcbin-singleshot",
>  			"marvell,armada8040-mcbin", "marvell,armada8040",
>  			"marvell,armada-ap806-quad", "marvell,armada-ap806";
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		pinctrl-0 = <&cp0_led18_pins>;
> +		pinctrl-names = "default";
> +
> +		led18 {
> +			gpios = <&cp0_gpio2 1 GPIO_ACTIVE_LOW>;
> +			function = LED_FUNCTION_HEARTBEAT;
> +			color = <LED_COLOR_ID_GREEN>;
> +			linux,default-trigger = "heartbeat";
> +		};
> +	};
>  };
>  
>  &cp0_eth0 {
> @@ -27,3 +42,10 @@ &cp1_eth0 {
>  	managed = "in-band-status";
>  	sfp = <&sfp_eth1>;
>  };
> +
> +&cp0_pinctrl {
> +	cp0_led18_pins: led18-pins {
> +		marvell,pins = "mpp33";
> +		marvell,function = "gpio";
> +	};
> +};
> -- 
> 2.29.2
>

-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ