* [PATCH 0/3] Enable display support for STM32MP257F-DK
@ 2026-02-05 13:39 Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 1/3] arm64: dts: st: add i2c2 pins for stm32mp25 Raphael Gallais-Pou
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Raphael Gallais-Pou @ 2026-02-05 13:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Philippe Cornu, Yannick Fertre, Raphaël Gallais-Pou,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
This series aims to add and enable sufficient LVDS display support for
STM32MP257F-DK board.
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
---
Raphael Gallais-Pou (3):
arm64: dts: st: add i2c2 pins for stm32mp25
arm64: dts: st: describe power supplies for stm32mp257f-dk board
arm64: dts: st: enable display support on stm32mp257f-dk board
arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 ++++
arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 118 ++++++++++++++++++++++++++
2 files changed, 135 insertions(+)
---
base-commit: f14faaf3a1fb3b9e4cf2e56269711fb85fba9458
change-id: 20260205-master-8194059eb646
Best regards,
--
Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] arm64: dts: st: add i2c2 pins for stm32mp25
2026-02-05 13:39 [PATCH 0/3] Enable display support for STM32MP257F-DK Raphael Gallais-Pou
@ 2026-02-05 13:39 ` Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 2/3] arm64: dts: st: describe power supplies for stm32mp257f-dk board Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 3/3] arm64: dts: st: enable display support on " Raphael Gallais-Pou
2 siblings, 0 replies; 4+ messages in thread
From: Raphael Gallais-Pou @ 2026-02-05 13:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Philippe Cornu, Yannick Fertre, Raphaël Gallais-Pou,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Add the i2c2 pins used on STM32MP257F-DK board.
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
index c34cd33cd855fb28b65a39b59b49e089345ce9a6..2f853f3fae6d84756300f19da32d6cb0297d9e20 100644
--- a/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi
@@ -212,6 +212,23 @@ pins {
};
};
+ i2c2_pins_b: i2c2-1 {
+ pins {
+ pinmux = <STM32_PINMUX('F', 2, AF9)>, /* I2C2_SCL */
+ <STM32_PINMUX('F', 0, AF9)>; /* I2C2_SDA */
+ bias-disable;
+ drive-open-drain;
+ slew-rate = <0>;
+ };
+ };
+
+ i2c2_sleep_pins_b: i2c2-sleep-1 {
+ pins {
+ pinmux = <STM32_PINMUX('F', 2, ANALOG)>, /* I2C2_SCL */
+ <STM32_PINMUX('F', 0, ANALOG)>; /* I2C2_SDA */
+ };
+ };
+
ospi_port1_clk_pins_a: ospi-port1-clk-0 {
pins {
pinmux = <STM32_PINMUX('D', 0, AF10)>; /* OSPI1_CLK */
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] arm64: dts: st: describe power supplies for stm32mp257f-dk board
2026-02-05 13:39 [PATCH 0/3] Enable display support for STM32MP257F-DK Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 1/3] arm64: dts: st: add i2c2 pins for stm32mp25 Raphael Gallais-Pou
@ 2026-02-05 13:39 ` Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 3/3] arm64: dts: st: enable display support on " Raphael Gallais-Pou
2 siblings, 0 replies; 4+ messages in thread
From: Raphael Gallais-Pou @ 2026-02-05 13:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Philippe Cornu, Yannick Fertre, Raphaël Gallais-Pou,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Describe power supplies for stm32mp257f-dk board.
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
index e718d888ce21b6f124331543c09c1e66e6304964..4e45562ceb3dabb19eca3340337b364f63508215 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
@@ -105,6 +105,34 @@ scmi_vddio1: regulator@0 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
+ scmi_vddcore: regulator@11 {
+ reg = <VOLTD_SCMI_STPMIC2_BUCK2>;
+ regulator-name = "vddcore";
+ };
+ scmi_v1v8: regulator@14 {
+ reg = <VOLTD_SCMI_STPMIC2_BUCK5>;
+ regulator-name = "v1v8";
+ };
+ scmi_v3v3: regulator@16 {
+ reg = <VOLTD_SCMI_STPMIC2_BUCK7>;
+ regulator-name = "v3v3";
+ };
+ scmi_vdd_emmc: regulator@18 {
+ reg = <VOLTD_SCMI_STPMIC2_LDO2>;
+ regulator-name = "vdd_emmc";
+ };
+ scmi_vdd3v3_usb: regulator@20 {
+ reg = <VOLTD_SCMI_STPMIC2_LDO4>;
+ regulator-name = "vdd3v3_usb";
+ };
+ scmi_v5v_hdmi: regulator@21 {
+ reg = <VOLTD_SCMI_STPMIC2_LDO5>;
+ regulator-name = "v5v_hdmi";
+ };
+ scmi_v5v_vconn: regulator@22 {
+ reg = <VOLTD_SCMI_STPMIC2_LDO6>;
+ regulator-name = "v5v_vconn";
+ };
scmi_vdd_sdcard: regulator@23 {
reg = <VOLTD_SCMI_STPMIC2_LDO7>;
regulator-name = "vdd_sdcard";
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] arm64: dts: st: enable display support on stm32mp257f-dk board
2026-02-05 13:39 [PATCH 0/3] Enable display support for STM32MP257F-DK Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 1/3] arm64: dts: st: add i2c2 pins for stm32mp25 Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 2/3] arm64: dts: st: describe power supplies for stm32mp257f-dk board Raphael Gallais-Pou
@ 2026-02-05 13:39 ` Raphael Gallais-Pou
2 siblings, 0 replies; 4+ messages in thread
From: Raphael Gallais-Pou @ 2026-02-05 13:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue
Cc: Philippe Cornu, Yannick Fertre, Raphaël Gallais-Pou,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Enable the following IPs on stm32mp257f-dk in order to get display:
* LTDC
* LVDS
* WSVGA LVDS panel (1024x600)
* Panel LVDS backlight as GPIO backlight
* ILI2511 i2c touchscreen
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 90 +++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
index 4e45562ceb3dabb19eca3340337b364f63508215..b60c13614cfb9207b8b541ee8bde4ae9aab937a8 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts
@@ -55,6 +55,43 @@ led-blue {
};
};
+ panel_lvds: display {
+ compatible = "edt,etml0700z9ndha", "panel-lvds";
+ enable-gpios = <&gpioi 4 GPIO_ACTIVE_HIGH>;
+ backlight = <&panel_lvds_backlight>;
+ power-supply = <&scmi_v3v3>;
+ width-mm = <156>;
+ height-mm = <92>;
+ data-mapping = "vesa-24";
+ status = "okay";
+
+ panel-timing {
+ clock-frequency = <54000000>;
+ hactive = <1024>;
+ vactive = <600>;
+ hfront-porch = <150>;
+ hback-porch = <150>;
+ hsync-len = <21>;
+ vfront-porch = <24>;
+ vback-porch = <24>;
+ vsync-len = <21>;
+ };
+
+ port {
+ lvds_panel_in: endpoint {
+ remote-endpoint = <&lvds_out0>;
+ };
+ };
+ };
+
+ panel_lvds_backlight: backlight {
+ compatible = "gpio-backlight";
+ gpios = <&gpioi 4 GPIO_ACTIVE_HIGH>;
+ default-on;
+ status = "okay";
+ };
+
+
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x1 0x0>;
@@ -100,6 +137,59 @@ phy1_eth1: ethernet-phy@1 {
};
};
+&i2c2 {
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&i2c2_pins_b>;
+ pinctrl-1 = <&i2c2_sleep_pins_b>;
+ i2c-scl-rising-time-ns = <108>;
+ i2c-scl-falling-time-ns = <12>;
+ clock-frequency = <400000>;
+ status = "okay";
+ /* spare dmas for other usage */
+ /delete-property/dmas;
+ /delete-property/dma-names;
+
+ ili2511: ili2511@41 {
+ compatible = "ilitek,ili251x";
+ reg = <0x41>;
+ interrupt-parent = <&gpioi>;
+ interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
+ reset-gpios = <&gpioi 0 GPIO_ACTIVE_LOW>;
+ status = "okay";
+ };
+};
+
+<dc {
+ status = "okay";
+ port {
+ ltdc_ep0_out: endpoint {
+ remote-endpoint = <&lvds_in>;
+ };
+ };
+};
+
+&lvds {
+ status = "okay";
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ lvds_in: endpoint {
+ remote-endpoint = <<dc_ep0_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ lvds_out0: endpoint {
+ remote-endpoint = <&lvds_panel_in>;
+ };
+ };
+ };
+};
+
&scmi_regu {
scmi_vddio1: regulator@0 {
regulator-min-microvolt = <1800000>;
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-05 13:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-05 13:39 [PATCH 0/3] Enable display support for STM32MP257F-DK Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 1/3] arm64: dts: st: add i2c2 pins for stm32mp25 Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 2/3] arm64: dts: st: describe power supplies for stm32mp257f-dk board Raphael Gallais-Pou
2026-02-05 13:39 ` [PATCH 3/3] arm64: dts: st: enable display support on " Raphael Gallais-Pou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®