[4/4] ARM: dts: am335x-evm: Use drm simple-panel instead of tilcdc-panel

Message ID 2da605558ef2e8a1ed0bc48662eefe9d79ef28b6.1519318304.git.jsarha@ti.com
State New
Headers show
Series
  • drm/tilcdc: Add DRM panel support and use it for am335x-evm
Related show

Commit Message

Jyri Sarha Feb. 22, 2018, 5:07 p.m.
Move to use the new drm panel support in tilcdc together with added
"tvc,s9700rtwv43tr-01b"-panel support in drm panel-simple.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts | 44 ++++++++++++++++------------------------
 1 file changed, 18 insertions(+), 26 deletions(-)

Patch

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index fee6b3e..5a442b5 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -98,7 +98,7 @@ 
 		};
 	};
 
-	backlight {
+	backlight: backlight {
 		compatible = "pwm-backlight";
 		pwms = <&ecap0 0 50000 0>;
 		brightness-levels = <0 51 53 56 62 75 101 152 255>;
@@ -106,35 +106,19 @@ 
 	};
 
 	panel {
-		compatible = "ti,tilcdc,panel";
+		compatible = "tvc,s9700rtwv43tr-01b";
+
 		status = "okay";
+
 		pinctrl-names = "default";
 		pinctrl-0 = <&lcd_pins_s0>;
-		panel-info {
-			ac-bias           = <255>;
-			ac-bias-intrpt    = <0>;
-			dma-burst-sz      = <16>;
-			bpp               = <32>;
-			fdd               = <0x80>;
-			sync-edge         = <0>;
-			sync-ctrl         = <1>;
-			raster-order      = <0>;
-			fifo-th           = <0>;
-		};
 
-		display-timings {
-			800x480p62 {
-				clock-frequency = <30000000>;
-				hactive = <800>;
-				vactive = <480>;
-				hfront-porch = <39>;
-				hback-porch = <39>;
-				hsync-len = <47>;
-				vback-porch = <29>;
-				vfront-porch = <13>;
-				vsync-len = <2>;
-				hsync-active = <1>;
-				vsync-active = <1>;
+		backlight = <&backlight>;
+		ports {
+			port {
+				panel_0: endpoint@0 {
+					remote-endpoint = <&lcdc_0>;
+				};
 			};
 		};
 	};
@@ -503,6 +487,14 @@ 
 	status = "okay";
 
 	blue-and-red-wiring = "crossed";
+
+	ports {
+		port {
+			lcdc_0: endpoint@0 {
+				remote-endpoint = <&panel_0>;
+			};
+		};
+	};
 };
 
 &elm {