Skip to contentSkip to conversation

ARM: dts: sun5i: Move display blocks to sun5i.dtsi

PATCH New Hans de Goede 1 participant 1 message Jun 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: sun5i: Move display blocks to sun5i.dtsi

All sun5i models share the same die, so the display-engine is identical, except for which outputs / encoders are available.

All models support parallel / lvds lcd panels, the R8 and A10s also support tv-out and the A10s also supports HDMI out.

This commit prepares for enabling display blocks on A10s boards, but it also is a bug-fix for A10s boards, because before this commit the simplefb nodes for A10s were not listing the recently added pll3 as clock, causing the display to go black when the kernel disables unused clocks at the end of boot.

---
Changes in v2:
-Fix typos in and spelling of commit msg

---
 arch/arm/boot/dts/sun5i-a10s.dtsi |  24 ++---
 arch/arm/boot/dts/sun5i-a13.dtsi  | 182 --------------------------------------
 arch/arm/boot/dts/sun5i.dtsi      | 182 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 189 insertions(+), 199 deletions(-)
arch/arm/boot/dts/sun5i-a10s.dtsi +7 -17
index bddd0de..507ec42 100644
@@ -57,24 +57,13 @@
 	};
 
 	chosen {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges;
-
-		framebuffer at 0 {
-			compatible = "allwinner,simple-framebuffer",
-				     "simple-framebuffer";
-			allwinner,pipeline = "de_be0-lcd0-hdmi";
-			clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
-				 <&ahb_gates 44>;
-			status = "disabled";
-		};
-
 		framebuffer at 1 {
 			compatible = "allwinner,simple-framebuffer",
 				     "simple-framebuffer";
-			allwinner,pipeline = "de_be0-lcd0";
-			clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
+			allwinner,pipeline = "de_be0-lcd0-hdmi";
+			clocks = <&ahb_gates 36>, <&ahb_gates 43>,
+				 <&ahb_gates 44>, <&de_be_clk>,
+				 <&tcon_ch1_clk>, <&dram_gates 26>;
 			status = "disabled";
 		};
 
@@ -82,8 +71,9 @@
 			compatible = "allwinner,simple-framebuffer",
 				     "simple-framebuffer";
 			allwinner,pipeline = "de_be0-lcd0-tve0";
-			clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
-				 <&ahb_gates 44>;
+			clocks = <&ahb_gates 34>, <&ahb_gates 36>,
+				 <&ahb_gates 44>, <&de_be_clk>,
+				 <&tcon_ch1_clk>, <&dram_gates 26>;
 			status = "disabled";
 		};
 	};
arch/arm/boot/dts/sun5i-a13.dtsi +0 -182

203 lines not on this page · raw message

arch/arm/boot/dts/sun5i.dtsi +182 -0

211 lines not on this page · raw message

Signature · 1 line
2.7.4