Skip to contentSkip to conversation

ARM: dts: stm32f769-disco: rework ltdc node

PATCH In review Dario Binacchi 2 participants 4 messages Nov 11, 2023 – Dec 15, 2023

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

PATCH 1/1 ARM: dts: stm32f769-disco: rework ltdc node

With commit f479f5dbb7ac ("ARM: dts: stm32: add ltdc support on stm32f746 MCU"), which adds the 'ltdc' node in stm32f746.dtsi, we can simplify stm32f769-disco-uboot.dtsi and align stm32f769-disco.dtsi with the kernel version.

---

 arch/arm/dts/stm32f769-disco-u-boot.dtsi | 23 +++++++++--------------
 arch/arm/dts/stm32f769-disco.dts         |  4 ++++
 2 files changed, 13 insertions(+), 14 deletions(-)
arch/arm/dts/stm32f769-disco-u-boot.dtsi +9 -14
index 2c823cce98b4..add55c96e21f 100644
@@ -70,22 +70,17 @@
 				};
 			};
 		};
+	};
+};
 
-		ltdc: display-controller@40016800 {
-			compatible = "st,stm32-ltdc";
-			reg = <0x40016800 0x200>;
-			resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
-			clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
-
-			status = "okay";
-			bootph-all;
+&ltdc {
+	clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
+	bootph-all;
 
-			ports {
-				port@0 {
-					dp_out: endpoint {
-						remote-endpoint = <&dsi_in>;
-					};
-				};
+	ports {
+		port@0 {
+			dp_out: endpoint {
+				remote-endpoint = <&dsi_in>;
 			};
 		};
 	};
arch/arm/dts/stm32f769-disco.dts +4 -0
index 6f93fc7bcfcd..d63cd2ba7eb4 100644
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ltdc {
+	status = "okay";
+};
+
 &rtc {
 	status = "okay";
 };
Signature · 1 line
2.42.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 54 lines · Dario Binacchi

With commit f479f5dbb7ac ("ARM: dts: stm32: add ltdc support on stm32f746 MCU"), which adds the 'ltdc' node in stm32f746.dtsi, we can simplify stm32f769-disco-uboot.dtsi and align stm32f769-disco.dtsi with the kernel version.

---

 arch/arm/dts/stm32f769-disco-u-boot.dtsi | 23 +++++++++--------------
 arch/arm/dts/stm32f769-disco.dts         |  4 ++++
 2 files changed, 13 insertions(+), 14 deletions(-)
arch/arm/dts/stm32f769-disco-u-boot.dtsi +9 -14
index 2c823cce98b4..add55c96e21f 100644
@@ -70,22 +70,17 @@
 				};
 			};
 		};
+	};
+};
 
-		ltdc: display-controller@40016800 {
-			compatible = "st,stm32-ltdc";
-			reg = <0x40016800 0x200>;
-			resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
-			clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
-
-			status = "okay";
-			bootph-all;
+&ltdc {
+	clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
+	bootph-all;
 
-			ports {
-				port@0 {
-					dp_out: endpoint {
-						remote-endpoint = <&dsi_in>;
-					};
-				};
+	ports {
+		port@0 {
+			dp_out: endpoint {
+				remote-endpoint = <&dsi_in>;
 			};
 		};
 	};
arch/arm/dts/stm32f769-disco.dts +0 -0
index 6f93fc7bcfcd..d63cd2ba7eb4 100644

arch/arm/dts/stm32f769-disco.dts line 95

Quoted 10 lines
arch/arm/dts/stm32f769-disco.dts +4 -0
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ltdc {
+	status = "okay";
+};
+
 &rtc {
 	status = "okay";
 };

Thanks
Patrice

Reviewed-by on v1 1/1
#2 lore raw
In reply to Dario Binacchi
Quoted 54 lines · Dario Binacchi

With commit f479f5dbb7ac ("ARM: dts: stm32: add ltdc support on stm32f746 MCU"), which adds the 'ltdc' node in stm32f746.dtsi, we can simplify stm32f769-disco-uboot.dtsi and align stm32f769-disco.dtsi with the kernel version.

---

 arch/arm/dts/stm32f769-disco-u-boot.dtsi | 23 +++++++++--------------
 arch/arm/dts/stm32f769-disco.dts         |  4 ++++
 2 files changed, 13 insertions(+), 14 deletions(-)
arch/arm/dts/stm32f769-disco-u-boot.dtsi +9 -14
index 2c823cce98b4..add55c96e21f 100644
@@ -70,22 +70,17 @@
 				};
 			};
 		};
+	};
+};
 
-		ltdc: display-controller@40016800 {
-			compatible = "st,stm32-ltdc";
-			reg = <0x40016800 0x200>;
-			resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
-			clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
-
-			status = "okay";
-			bootph-all;
+&ltdc {
+	clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
+	bootph-all;
 
-			ports {
-				port@0 {
-					dp_out: endpoint {
-						remote-endpoint = <&dsi_in>;
-					};
-				};
+	ports {
+		port@0 {
+			dp_out: endpoint {
+				remote-endpoint = <&dsi_in>;
 			};
 		};
 	};
arch/arm/dts/stm32f769-disco.dts +0 -0
index 6f93fc7bcfcd..d63cd2ba7eb4 100644

arch/arm/dts/stm32f769-disco.dts line 95

Quoted 10 lines
arch/arm/dts/stm32f769-disco.dts +4 -0
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ltdc {
+	status = "okay";
+};
+
 &rtc {
 	status = "okay";
 };

Thanks
Patrice

#3 lore raw
In reply to Dario Binacchi
Quoted 54 lines · Dario Binacchi

With commit f479f5dbb7ac ("ARM: dts: stm32: add ltdc support on stm32f746 MCU"), which adds the 'ltdc' node in stm32f746.dtsi, we can simplify stm32f769-disco-uboot.dtsi and align stm32f769-disco.dtsi with the kernel version.

---

 arch/arm/dts/stm32f769-disco-u-boot.dtsi | 23 +++++++++--------------
 arch/arm/dts/stm32f769-disco.dts         |  4 ++++
 2 files changed, 13 insertions(+), 14 deletions(-)
arch/arm/dts/stm32f769-disco-u-boot.dtsi +9 -14
index 2c823cce98b4..add55c96e21f 100644
@@ -70,22 +70,17 @@
 				};
 			};
 		};
+	};
+};
 
-		ltdc: display-controller@40016800 {
-			compatible = "st,stm32-ltdc";
-			reg = <0x40016800 0x200>;
-			resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
-			clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
-
-			status = "okay";
-			bootph-all;
+&ltdc {
+	clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
+	bootph-all;
 
-			ports {
-				port@0 {
-					dp_out: endpoint {
-						remote-endpoint = <&dsi_in>;
-					};
-				};
+	ports {
+		port@0 {
+			dp_out: endpoint {
+				remote-endpoint = <&dsi_in>;
 			};
 		};
 	};
arch/arm/dts/stm32f769-disco.dts +0 -0
index 6f93fc7bcfcd..d63cd2ba7eb4 100644

arch/arm/dts/stm32f769-disco.dts line 95

Quoted 10 lines
arch/arm/dts/stm32f769-disco.dts +4 -0
@@ -86,6 +86,10 @@
 	status = "okay";
 };
 
+&ltdc {
+	status = "okay";
+};
+
 &rtc {
 	status = "okay";
 };

Applied to u-boot-stm32/next

Thanks
Patrice