Re: [PATCH] ARM: dts: bcm283x: Add missing properties to the PWR LED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This adds the missing properties to the PWR LED for the RPi 3 & 4 boards,
> which are already set for the other boards. Without them we will lose
> the LED state after suspend.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
Tested-by: Peter Robinson <pbrobinson@xxxxxxxxx>

Tested on a 3B+ and a 4B. On a related note it seems that the original
RPi3B is missing the pwr led entry altogether, is that expected given
that at least the 2, other 3 models have the entry?

Peter

> ---
>  arch/arm/boot/dts/bcm2711-rpi-4-b.dts      | 2 ++
>  arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 2 ++
>  arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts | 2 ++
>  3 files changed, 6 insertions(+)
>
> diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
> index cb33852..f242834 100644
> --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
> +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
> @@ -31,6 +31,8 @@
>                 pwr {
>                         label = "PWR";
>                         gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
> +                       default-state = "keep";
> +                       linux,default-trigger = "default-on";
>                 };
>         };
>
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> index 66ab35e..28be033 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> +++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
> @@ -26,6 +26,8 @@
>                 pwr {
>                         label = "PWR";
>                         gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
> +                       default-state = "keep";
> +                       linux,default-trigger = "default-on";
>                 };
>         };
>  };
> diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> index 74ed6d0..3734314 100644
> --- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
> @@ -27,6 +27,8 @@
>                 pwr {
>                         label = "PWR";
>                         gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
> +                       default-state = "keep";
> +                       linux,default-trigger = "default-on";
>                 };
>         };
>
> --
> 2.7.4
>
>
> _______________________________________________
> linux-rpi-kernel mailing list
> linux-rpi-kernel@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/linux-rpi-kernel



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux