40b59c4c50e3d16c9b76b490617b749a157a15f1
[openwrt/openwrt.git] / target / linux / sunxi / patches-5.4 / 420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
3 Date: Wed, 25 Mar 2020 18:11:16 +0100
4 Subject: [PATCH] arm64: dts: allwinner: a64: olinuxino: add user red LED
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 There is a red LED marked as `GPIO_LED1` on the silkscreen and connected
10 to PE17 by default. So lets add this missing bit in the current hardware
11 description.
12
13 Signed-off-by: Petr Štetiar <ynezz@true.cz>
14
15 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
16 index 6dfafa1c879b..b9f90e19c035 100644
17 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
18 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
19 @@ -32,6 +32,15 @@
20 };
21 };
22
23 + leds {
24 + compatible = "gpio-leds";
25 +
26 + user {
27 + label = "a64-olinuxino:red:user";
28 + gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
29 + };
30 + };
31 +
32 reg_usb1_vbus: usb1-vbus {
33 compatible = "regulator-fixed";
34 regulator-name = "usb1-vbus";