Enable display support for STM32MP257F-DK and STM32MP235F-DK
Subsystems (2)
v2 cover Enable display support for STM32MP257F-DK and STM32MP235F-DK
This series aims to add and enable sufficient LVDS display support for STM32MP257F-DK and STM32MP235F-DK boards.
---
Changes in v2:
- Added support for STM32MP235F-DK. A second series would have dependant to the v1 of this series due to the pinctrl. Better send it though one push to reduce dependencies.
- Link to v1:
https://lore.kernel.org/r/[email protected]/
---
Raphael Gallais-Pou (9):
arm64: dts: st: add i2c2 pins for stm32mp25
arm64: dts: st: add ltdc support on stm32mp231
arm64: dts: st: add ltdc support on stm32mp235
arm64: dts: st: add lvds support on stm32mp235
arm64: dts: st: add clock-cells to syscfg node on stm32mp231
arm64: dts: st: describe power supplies for stm32mp235f-dk board
arm64: dts: st: enable display support on stm32mp235f-dk board
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/stm32mp231.dtsi | 19 +++++ arch/arm64/boot/dts/st/stm32mp235.dtsi | 18 ++++ arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 117 +++++++++++++++++++++++++ arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 ++++ arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 118 ++++++++++++++++++++++++++ 5 files changed, 289 insertions(+)
---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260209-display-516c2cedc734
Best regards,
Signature · 1 line
Raphael Gallais-Pou <[email protected]>
PATCH v2 1/9 arm64: dts: st: add i2c2 pins for stm32mp25
Add the i2c2 pins used on several boards.
--- arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi +17 -0
@@ -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 */
Signature · 1 line
2.43.0
PATCH v2 2/9 arm64: dts: st: add ltdc support on stm32mp231
In reply to Raphael Gallais-PouThe LCD-TFT Display Controller (LTDC) handles display composition, scaling and rotation. It provides a parallel digital RGB flow to be used by display interfaces.
Add the LTDC node.
--- arch/arm64/boot/dts/st/stm32mp231.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/st/stm32mp231.dtsi +12 -0
@@ -1178,6 +1178,18 @@ exti2: interrupt-controller@46230000 { <&intc GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>; /* EXTI_70 */ }; + ltdc: display-controller@48010000 { + compatible = "st,stm32mp251-ltdc"; + reg = <0x48010000 0x400>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&rcc CK_KER_LTDC>, <&rcc CK_BUS_LTDC>; + clock-names = "lcd", "bus"; + resets = <&rcc LTDC_R>; + access-controllers = <&rifsc 80>; + status = "disabled"; + }; + intc: interrupt-controller@4ac10000 { compatible = "arm,gic-400"; reg = <0x4ac10000 0x1000>,
Signature · 1 line
2.43.0
PATCH v2 3/9 arm64: dts: st: add ltdc support on stm32mp235
In reply to Raphael Gallais-PouAdd the LTDC node for stm32mp235 SoC and handle its loopback clocks.
ck_ker_ltdc has the CLK_SET_RATE_PARENT flag. While having this flag is semantically correct, it for now leads to an improper setting of the clock rate. The ck_ker_ltdc parent clock is the flexgen 27, which does not support changing rates yet. To overcome this issue, a fixed clock can be used for the kernel clock.
--- arch/arm64/boot/dts/st/stm32mp231.dtsi | 6 ++++++ arch/arm64/boot/dts/st/stm32mp235.dtsi | 6 ++++++ 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/st/stm32mp231.dtsi +6 -0
@@ -45,6 +45,12 @@ clk_dsi_txbyte: clock-0 { clock-frequency = <0>; }; + clk_flexgen_27_fixed: clk-54000000 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <54000000>; + }; + clk_rcbsec: clk-64000000 { compatible = "fixed-clock"; #clock-cells = <0>;
arch/arm64/boot/dts/st/stm32mp235.dtsi +6 -0
@@ -5,6 +5,12 @@ */ #include "stm32mp233.dtsi" +<dc { + compatible = "st,stm32mp255-ltdc"; + clocks = <&clk_flexgen_27_fixed>, <&rcc CK_BUS_LTDC>, <&syscfg>, <&lvds>; + clock-names = "lcd", "bus", "ref", "lvds"; +}; + &rifsc { vdec: vdec@480d0000 { compatible = "st,stm32mp25-vdec";
Signature · 1 line
2.43.0
PATCH v2 4/9 arm64: dts: st: add lvds support on stm32mp235
In reply to Raphael Gallais-PouThe LVDS is used on STM32MP2 as a display interface.
Add the LVDS node.
--- arch/arm64/boot/dts/st/stm32mp235.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/st/stm32mp235.dtsi +12 -0
@@ -12,6 +12,18 @@ <dc { }; &rifsc { + lvds: lvds@48060000 { + compatible = "st,stm32mp255-lvds", "st,stm32mp25-lvds"; + reg = <0x48060000 0x2000>; + #clock-cells = <0>; + clocks = <&rcc CK_BUS_LVDS>, <&rcc CK_KER_LVDSPHY>; + clock-names = "pclk", "ref"; + resets = <&rcc LVDS_R>; + access-controllers = <&rifsc 84>; + power-domains = <&cluster_pd>; + status = "disabled"; + }; + vdec: vdec@480d0000 { compatible = "st,stm32mp25-vdec"; reg = <0x480d0000 0x3c8>;
Signature · 1 line
2.43.0
PATCH v2 5/9 arm64: dts: st: add clock-cells to syscfg node on stm32mp231
In reply to Raphael Gallais-PouMake the syscfg node a clock provider so clock consumers can reach child clocks through device-tree.
--- arch/arm64/boot/dts/st/stm32mp231.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/st/stm32mp231.dtsi +1 -0
@@ -961,6 +961,7 @@ exti1: interrupt-controller@44220000 { syscfg: syscon@44230000 { compatible = "st,stm32mp23-syscfg", "syscon"; reg = <0x44230000 0x10000>; + #clock-cells = <0>; }; pinctrl: pinctrl@44240000 {
Signature · 1 line
2.43.0
PATCH v2 6/9 arm64: dts: st: describe power supplies for stm32mp235f-dk board
In reply to Raphael Gallais-PouDescribe power supplies for stm32mp235f-dk board.
--- arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
arch/arm64/boot/dts/st/stm32mp235f-dk.dts +28 -0
@@ -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";
Signature · 1 line
2.43.0
PATCH v2 7/9 arm64: dts: st: enable display support on stm32mp235f-dk board
In reply to Raphael Gallais-PouEnable the following IPs on stm32mp235f-dk in order to get display:
* LTDC
* LVDS
* WSVGA LVDS panel (1024x600)
* Panel LVDS backlight as GPIO backlight
* ILI2511 i2c touchscreen
--- arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+)
arch/arm64/boot/dts/st/stm32mp235f-dk.dts +89 -0
@@ -60,6 +60,42 @@ memory@80000000 { reg = <0x0 0x80000000 0x0 0x80000000>; }; + 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"; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>;
@@ -100,6 +136,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>;
Signature · 1 line
2.43.0
PATCH v2 8/9 arm64: dts: st: describe power supplies for stm32mp257f-dk board
In reply to Raphael Gallais-PouDescribe power supplies for stm32mp257f-dk board.
--- arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
arch/arm64/boot/dts/st/stm32mp257f-dk.dts +28 -0
@@ -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";
Signature · 1 line
2.43.0
PATCH v2 9/9 arm64: dts: st: enable display support on stm32mp257f-dk board
In reply to Raphael Gallais-PouEnable 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
--- arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+)
arch/arm64/boot/dts/st/stm32mp257f-dk.dts +90 -0
@@ -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>;
Signature · 1 line
2.43.0
Quoted 5 lines · Raphael Gallais-Pou
This series aims to add and enable sufficient LVDS display support for STM32MP257F-DK and STM32MP235F-DK boards.
Signed-off-by Raphael Gallais-Pou <[email protected]>---
Hi,
Gentle ping regarding this series. I have not received any feedbacks from it in a month.
Thanks for your time,
Best regards,
Raphaël
Quoted 30 lines
Changes in v2:
- Added support for STM32MP235F-DK. A second series would have dependant to the v1 of this series due to the pinctrl. Better send it though one push to reduce dependencies.
- Link to v1:
https://lore.kernel.org/r/[email protected]/---
Raphael Gallais-Pou (9):
arm64: dts: st: add i2c2 pins for stm32mp25
arm64: dts: st: add ltdc support on stm32mp231
arm64: dts: st: add ltdc support on stm32mp235
arm64: dts: st: add lvds support on stm32mp235
arm64: dts: st: add clock-cells to syscfg node on stm32mp231
arm64: dts: st: describe power supplies for stm32mp235f-dk board
arm64: dts: st: enable display support on stm32mp235f-dk board
arm64: dts: st: describe power supplies for stm32mp257f-dk board
arm64: dts: st: enable display support on stm32mp257f-dk boardarch/arm64/boot/dts/st/stm32mp231.dtsi | 19 +++++ arch/arm64/boot/dts/st/stm32mp235.dtsi | 18 ++++ arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 117 +++++++++++++++++++++++++ arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 ++++ arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 118 ++++++++++++++++++++++++++ 5 files changed, 289 insertions(+)---
base-commit:05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260209-display-516c2cedc734Best regards,
Alexandre TORGUE
maintainerHello Raph
Quoted 30 lines · Raphael Gallais-Pou
This series aims to add and enable sufficient LVDS display support for STM32MP257F-DK and STM32MP235F-DK boards.
Signed-off-by Raphael Gallais-Pou <[email protected]>---
Changes in v2:
- Added support for STM32MP235F-DK. A second series would have dependant to the v1 of this series due to the pinctrl. Better send it though one push to reduce dependencies.
- Link to v1:
https://lore.kernel.org/r/[email protected]/---
Raphael Gallais-Pou (9):
arm64: dts: st: add i2c2 pins for stm32mp25
arm64: dts: st: add ltdc support on stm32mp231
arm64: dts: st: add ltdc support on stm32mp235
arm64: dts: st: add lvds support on stm32mp235
arm64: dts: st: add clock-cells to syscfg node on stm32mp231
arm64: dts: st: describe power supplies for stm32mp235f-dk board
arm64: dts: st: enable display support on stm32mp235f-dk board
arm64: dts: st: describe power supplies for stm32mp257f-dk board
arm64: dts: st: enable display support on stm32mp257f-dk boardarch/arm64/boot/dts/st/stm32mp231.dtsi | 19 +++++ arch/arm64/boot/dts/st/stm32mp235.dtsi | 18 ++++ arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 117 +++++++++++++++++++++++++ arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 17 ++++ arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 118 ++++++++++++++++++++++++++ 5 files changed, 289 insertions(+)
Quoted 5 lines
---
base-commit:05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260209-display-516c2cedc734Best regards,
Series applied on stm32-next.
Thanks
Alex