FunKey-OS/board/funkey/patches/linux/0007-disabled-LicheePi-LEDs.patch
2019-03-22 13:58:51 +01:00

89 lines
2.3 KiB
Diff

From 110d4a501c56aef0986baa5de9e629f11b6ab692 Mon Sep 17 00:00:00 2001
From: Michel Stempin <michel.stempin@wanadoo.fr>
Date: Tue, 19 Mar 2019 22:22:54 +0100
Subject: [PATCH 2/9] disabled LicheePi LEDs
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
---
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 4 ++--
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-with-lcd.dtsi | 5 +++++
arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 11 ++++++-----
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts
index d8b6833..0afd3af 100644
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts
@@ -54,8 +54,8 @@
};*/
leds {
- /* The LEDs use PG0~2 pins, which conflict with MMC1 */
- status = "disbaled";
+ // The LEDs use PG0~2 pins, which conflict with MMC1
+ status = "disabled";
};
};
diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-with-lcd.dtsi b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-with-lcd.dtsi
index f7ed577..b7d8ff4 100644
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-with-lcd.dtsi
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-with-lcd.dtsi
@@ -30,6 +30,11 @@
};
};
};
+
+ leds {
+ // The LEDs use PG0~2 pins, which conflict with MMC1
+ status = "disabled";
+ };
};
&de {
diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
index 18e9503..ded54df 100644
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
@@ -50,31 +50,32 @@
aliases {
serial0 = &uart0;
+ //serial0 = &uart2;
};
chosen {
stdout-path = "serial0:115200n8";
};
- leds {
+ /*leds {
compatible = "gpio-leds";
blue_led {
label = "licheepi:blue:usr";
- gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
+ gpios = <&pio 6 1 GPIO_ACTIVE_LOW 0x1>; // PG1 //
};
green_led {
label = "licheepi:green:usr";
- gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
+ gpios = <&pio 6 0 GPIO_ACTIVE_LOW 0x1>; // PG0 //
default-state = "on";
};
red_led {
label = "licheepi:red:usr";
- gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */
+ gpios = <&pio 6 2 GPIO_ACTIVE_LOW 0x1>; // PG2 //
};
- };
+ };*/
};
&ehci0 {
--
2.7.4