Skip to contentSkip to conversation

arm64: dts: ls1028a: Add properties for Mali DP500 node

PATCH Superseded Wen He 2 participants 3 messages Apr 15, 2019 – Apr 16, 2019

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Wen He

author
#0 lore raw

PATCH v2 1/1 arm64: dts: ls1028a: Add properties for Mali DP500 node

The LS1028A has a LCD controller and Displayport interface that connects to eDP and Displayport connectors on the LS1028A board.

This patch enables the LCD controller driver on the LS1028A.

---
change in v2:
- renamed node name 'dp0' to be generic name 'display-0'.
- replace clk name 'xxclk' to 'clock-xx'.
- add newline between properties and child node.

 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +38 -0
index 8dd3501b1333..643b1bb435b6 100644
@@ -70,6 +70,27 @@
 		clock-output-names = "sysclk";
 	};
 
+	dpclk: clock-dp {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <27000000>;
+		clock-output-names= "dpclk";
+	};
+
+	aclk: clock-axi {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <650000000>;
+		clock-output-names= "aclk";
+	};
+
+	pclk: clock-apb {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <650000000>;
+		clock-output-names= "pclk";
+	};
+
 	reboot {
 		compatible ="syscon-reboot";
 		regmap = <&dcfg>;
@@ -433,4 +454,21 @@
 			};
 		};
 	};
+
+	display-0: malidp@f080000 {
+		compatible = "arm,mali-dp500";
+		reg = <0x0 0xf080000 0x0 0x10000>;
+		interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 223 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "DE", "SE";
+		clocks = <&dpclk>, <&aclk>, <&aclk>, <&pclk>;
+		clock-names = "pxlclk", "mclk", "aclk", "pclk";
+		arm,malidp-output-port-lines = /bits/ 8 <8 8 8>;
+
+		port {
+			dp0_out: endpoint {
+
+			};
+		};
+	};
 };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 46 lines

-----Original Message-----
From: Wen He
Sent: Monday, April 15, 2019 2:41 AM
To: [email protected]; [email protected]
Cc: Leo Li <[email protected]>; [email protected]; Wen He <[email protected]>
Subject: [v2] arm64: dts: ls1028a: Add properties for Mali DP500 node

The LS1028A has a LCD controller and Displayport interface that connects to eDP and Displayport connectors on the LS1028A board.

This patch enables the LCD controller driver on the LS1028A.

---
change in v2:
- renamed node name 'dp0' to be generic name 'display-0'.
- replace clk name 'xxclk' to 'clock-xx'.
- add newline between properties and child node.

 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +10 -0
index 8dd3501b1333..643b1bb435b6 100644
@@ -70,6 +70,27 @@
 		clock-output-names = "sysclk";
 	};
 
+	dpclk: clock-dp {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <27000000>;
+		clock-output-names= "dpclk";
+	};
+
+	aclk: clock-axi {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 92

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +10 -0
+		clock-frequency = <650000000>;
+		clock-output-names= "aclk";
+	};
+
+	pclk: clock-apb {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <650000000>;
+		clock-output-names= "pclk";
+	};

Are these clocks really fixed at the SoC level? Can it be changing between different boards or different configurations?

Quoted 28 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +18 -1
+
 	reboot {
 		compatible ="syscon-reboot";
 		regmap = <&dcfg>;
@@ -433,4 +454,21 @@
 			};
 		};
 	};
+
+	display-0: malidp@f080000 {
+		compatible = "arm,mali-dp500";
+		reg = <0x0 0xf080000 0x0 0x10000>;
+		interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 223 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "DE", "SE";
+		clocks = <&dpclk>, <&aclk>, <&aclk>, <&pclk>;
+		clock-names = "pxlclk", "mclk", "aclk", "pclk";
+		arm,malidp-output-port-lines = /bits/ 8 <8 8 8>;
+
+		port {
+			dp0_out: endpoint {
+
+			};
+		};
+	};
 };
--

2.17.1

author
#2 lore raw
Quoted 62 lines

-----Original Message-----
From: Leo Li
Sent: 2019年4月16日 1:04
To: Wen He <[email protected]>; [email protected]; [email protected]
Cc: [email protected]
Subject: RE: [v2] arm64: dts: ls1028a: Add properties for Mali DP500 node

Quoted 50 lines

-----Original Message-----
From: Wen He
Sent: Monday, April 15, 2019 2:41 AM
To: [email protected]; [email protected]
Cc: Leo Li <[email protected]>; [email protected]; Wen He <[email protected]>
Subject: [v2] arm64: dts: ls1028a: Add properties for Mali DP500 node

The LS1028A has a LCD controller and Displayport interface that connects to eDP and Displayport connectors on the LS1028A board.

This patch enables the LCD controller driver on the LS1028A.

---
change in v2:
- renamed node name 'dp0' to be generic name 'display-0'.
- replace clk name 'xxclk' to 'clock-xx'.
- add newline between properties and child node.

 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 38
+++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +15 -0
index 8dd3501b1333..643b1bb435b6 100644
@@ -70,6 +70,27 @@
 		clock-output-names = "sysclk";
 	};
 
+	dpclk: clock-dp {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <27000000>;
+		clock-output-names= "dpclk";
+	};
+
+	aclk: clock-axi {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <650000000>;
+		clock-output-names= "aclk";
+	};
+
+	pclk: clock-apb {
Quoted 9 lines

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 92

Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +5 -0
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <650000000>;
+		clock-output-names= "pclk";
+	};

Are these clocks really fixed at the SoC level? Can it be changing between different boards or different configurations?

Yes, it's fixed. and these clock value not have change between different board.

Quoted 10 lines

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 458

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +3 -0
+
 	reboot {
 		compatible ="syscon-reboot";
 		regmap = <&dcfg>;
@@ -433,4 +454,21 @@
 			};
 		};
 	};
+
+	display-0: malidp@f080000 {

Sorry for that, node name display-0 has syntax error, I will using 'display0' to replace it. And will sent next version patch.

Best Regards,
Wen

Quoted 18 lines
Quoted 18 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +15 -1
+		compatible = "arm,mali-dp500";
+		reg = <0x0 0xf080000 0x0 0x10000>;
+		interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
+			     <0 223 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-names = "DE", "SE";
+		clocks = <&dpclk>, <&aclk>, <&aclk>, <&pclk>;
+		clock-names = "pxlclk", "mclk", "aclk", "pclk";
+		arm,malidp-output-port-lines = /bits/ 8 <8 8 8>;
+
+		port {
+			dp0_out: endpoint {
+
+			};
+		};
+	};
 };
--

2.17.1