aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-03-26 10:13:57 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-28 13:03:02 +0100
commit8743a9c9b997be9e0f09715b7efa4fffcd5a1c30 (patch)
treeb1134b22393cb2bf9ccd506bf6145e14ec467117 /target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch
parent0784d07c11eb0eadf0d4426cc7dba3642ff5762c (diff)
downloadupstream-8743a9c9b997be9e0f09715b7efa4fffcd5a1c30.tar.gz
upstream-8743a9c9b997be9e0f09715b7efa4fffcd5a1c30.tar.bz2
upstream-8743a9c9b997be9e0f09715b7efa4fffcd5a1c30.zip
sunxi: 5.4: a64-olinuxino: use red LED for status signalization
There is a red LED marked as `GPIO_LED1` on the silkscreen and connected to PE17, so use this LED for status signalization. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch')
-rw-r--r--target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch b/target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch
new file mode 100644
index 0000000000..40b59c4c50
--- /dev/null
+++ b/target/linux/sunxi/patches-5.4/420-v5.7-arm64-dts-allwinner-a64-olinuxino-add-user-red-LED.patch
@@ -0,0 +1,34 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
+Date: Wed, 25 Mar 2020 18:11:16 +0100
+Subject: [PATCH] arm64: dts: allwinner: a64: olinuxino: add user red LED
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+There is a red LED marked as `GPIO_LED1` on the silkscreen and connected
+to PE17 by default. So lets add this missing bit in the current hardware
+description.
+
+Signed-off-by: Petr Štetiar <ynezz@true.cz>
+
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
+index 6dfafa1c879b..b9f90e19c035 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
+@@ -32,6 +32,15 @@
+ };
+ };
+
++ leds {
++ compatible = "gpio-leds";
++
++ user {
++ label = "a64-olinuxino:red:user";
++ gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
++ };
++ };
++
+ reg_usb1_vbus: usb1-vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "usb1-vbus";