diff mbox

[RFC,7/7] ARM: at91/dt: define sama5d3xek panel as a DPI device

Message ID 1412609873-1894-8-git-send-email-boris.brezillon@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Boris BREZILLON Oct. 6, 2014, 3:37 p.m. UTC
Replace old panel node with a new one relying on DPI bus support.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 arch/arm/boot/dts/sama5d36ek.dts   | 12 ++++++++----
 arch/arm/boot/dts/sama5d3_lcd.dtsi |  6 +++---
 arch/arm/boot/dts/sama5d3xdm.dtsi  | 28 ++++++----------------------
 3 files changed, 17 insertions(+), 29 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sama5d36ek.dts b/arch/arm/boot/dts/sama5d36ek.dts
index 1c65741..c83b846 100644
--- a/arch/arm/boot/dts/sama5d36ek.dts
+++ b/arch/arm/boot/dts/sama5d36ek.dts
@@ -43,6 +43,14 @@ 
 
 			hlcdc: hlcdc@f0030000 {
 				status = "okay";
+
+                                hlcdc-display-controller {
+                                        dpi {
+						panel@0 {
+							status = "okay";
+						};
+                                        };
+                                };
 			};
 
 			macb1: ethernet@f802c000 {
@@ -63,10 +71,6 @@ 
 		status = "okay";
 	};
 
-	panel: panel {
-		status = "okay";
-	};
-
 	sound {
 		status = "okay";
 	};
diff --git a/arch/arm/boot/dts/sama5d3_lcd.dtsi b/arch/arm/boot/dts/sama5d3_lcd.dtsi
index 611ff8a..7c516c3 100644
--- a/arch/arm/boot/dts/sama5d3_lcd.dtsi
+++ b/arch/arm/boot/dts/sama5d3_lcd.dtsi
@@ -179,10 +179,10 @@ 
 					#address-cells = <1>;
 					#size-cells = <0>;
 
-					port@0 {
-						#address-cells = <1>;
+					dpi {
+						compatible = "atmel,hlcdc-dpi-host";
 						#size-cells = <0>;
-						reg = <0>;
+						#address-cells = <1>;
 					};
 				};
 
diff --git a/arch/arm/boot/dts/sama5d3xdm.dtsi b/arch/arm/boot/dts/sama5d3xdm.dtsi
index 91975eb..39aba49 100644
--- a/arch/arm/boot/dts/sama5d3xdm.dtsi
+++ b/arch/arm/boot/dts/sama5d3xdm.dtsi
@@ -42,10 +42,13 @@ 
 					pinctrl-names = "default";
 					pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb888_alt>;
 
-					port@0 {
-						hlcdc_panel_output: endpoint@0 {
+					dpi {
+						panel@0 {
+							compatible = "foxlink,fl500wvr00-a0t";
 							reg = <0>;
-							remote-endpoint = <&panel_input>;
+							backlight = <&backlight>;
+							power-supply = <&panel_reg>;
+							status = "disabled";
 						};
 					};
 				};
@@ -77,23 +80,4 @@ 
 		power-supply = <&bl_reg>;
 		status = "disabled";
 	};
-
-	panel: panel {
-		compatible = "foxlink,fl500wvr00-a0t", "simple-panel";
-		backlight = <&backlight>;
-		power-supply = <&panel_reg>;
-		#address-cells = <1>;
-		#size-cells = <0>;
-		status = "disabled";
-
-		port@0 {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			panel_input: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&hlcdc_panel_output>;
-			};
-		};
-	};
 };