diff mbox series

ARM: dts: sun8i: v3s: Add simple-framebuffer

Message ID 20200916175941.8448-1-m.cerveny@computer.org (mailing list archive)
State New, archived
Headers show
Series ARM: dts: sun8i: v3s: Add simple-framebuffer | expand

Commit Message

Martin Cerveny Sept. 16, 2020, 5:59 p.m. UTC
Add support for "allwinner,simple-framebuffer"
with "mixer0-lcd0" pipeline from boot loader (u-boot).
It depends on boot loader implementation of DE2/TCON0
setup with LCD.

Signed-off-by: Martin Cerveny <m.cerveny@computer.org>
---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Maxime Ripard Sept. 25, 2020, 3:13 p.m. UTC | #1
Hi,

On Wed, Sep 16, 2020 at 07:59:41PM +0200, Martin Cerveny wrote:
> Add support for "allwinner,simple-framebuffer"
> with "mixer0-lcd0" pipeline from boot loader (u-boot).
> It depends on boot loader implementation of DE2/TCON0
> setup with LCD.
> 
> Signed-off-by: Martin Cerveny <m.cerveny@computer.org>

queued for 5.11, thanks!
Maxime
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi
index e5312869c0d2..b93dd69bf309 100644
--- a/arch/arm/boot/dts/sun8i-v3s.dtsi
+++ b/arch/arm/boot/dts/sun8i-v3s.dtsi
@@ -43,12 +43,28 @@ 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/sun8i-v3s-ccu.h>
 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
+#include <dt-bindings/clock/sun8i-de2.h>
 
 / {
 	#address-cells = <1>;
 	#size-cells = <1>;
 	interrupt-parent = <&gic>;
 
+	chosen {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		framebuffer-lcd {
+			compatible = "allwinner,simple-framebuffer",
+				     "simple-framebuffer";
+			allwinner,pipeline = "mixer0-lcd0";
+			clocks = <&display_clocks CLK_MIXER0>,
+				 <&ccu CLK_TCON0>;
+			status = "disabled";
+		};
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;