Browse Source

Activate LCD backlight driver & LCD reset on PB2

Michel-FK 4 years ago
parent
commit
17630976e8

+ 2 - 2
FunKey/board/funkey/patches/linux/0003-add-funkey-dts.patch

@@ -61,7 +61,7 @@
 +
 +	backlight: backlight {
 +		compatible = "pwm-backlight";
-+		pwms = <&pwm 0 1000000 0>;
++		pwms = <&pwm 0 1000000 1>;
 +		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
 +		default-brightness-level = <10>;
 +		power-supply = <&reg_vcc5v0>;
@@ -164,7 +164,7 @@
 +               rotate = <0>;
 +               fps = <50>;
 +               buswidth = <8>;
-+               reset-gpios = <&pio 4 1 GPIO_ACTIVE_LOW>;	//PE1
++               reset-gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>;	//PB2
 +               dc-gpios = <&pio 2 0 GPIO_ACTIVE_LOW>;		//PC0 (MISO)
 +               debug = <0>;
 +       };

+ 0 - 32
FunKey/board/funkey/patches/linux/0006-comment-backlight-dts.patch

@@ -1,32 +0,0 @@
-From 2e5317f853f1b1b8ce4fe3e16ac0bc9aed6bc11e Mon Sep 17 00:00:00 2001
-From: vincent <vbusoenseirb@gmail.com>
-Date: Sat, 26 Oct 2019 09:44:25 +0200
-Subject: [PATCH] commented backlight in dts
-
----
- arch/arm/boot/dts/sun8i-v3s-funkey.dts | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/arch/arm/boot/dts/sun8i-v3s-funkey.dts b/arch/arm/boot/dts/sun8i-v3s-funkey.dts
-index 31fddd2..fad43fa 100644
---- a/arch/arm/boot/dts/sun8i-v3s-funkey.dts
-+++ b/arch/arm/boot/dts/sun8i-v3s-funkey.dts
-@@ -56,13 +56,13 @@
- 		stdout-path = "serial0:115200n8";
- 	};
- 
--	backlight: backlight {
-+	/*backlight: backlight {
- 		compatible = "pwm-backlight";
- 		pwms = <&pwm 0 1000000 0>;
- 		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- 		default-brightness-level = <10>;
- 		power-supply = <&reg_vcc5v0>;
--	};
-+	};*/
- };
- 
- &codec {
--- 
-1.9.1
-