ARM: dts: stm32: enable display support on stm32mp135f-dk board
authorRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Fri, 23 Feb 2024 12:36:50 +0000 (13:36 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 25 Apr 2024 13:00:30 +0000 (15:00 +0200)
Link panel and display controller.
Enable panel, backlight and display controller.

Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp135f-dk.dts

index 52171214a3087d29c275986971a38764a278a98a..567e53ad285fab1a1c508f28a22c1f385bd099da 100644 (file)
                        default-state = "off";
                };
        };
+
+       panel_backlight: panel-backlight {
+               compatible = "gpio-backlight";
+               gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>;
+               default-on;
+               status = "okay";
+       };
+
+       panel_rgb: panel-rgb {
+               compatible = "rocktech,rk043fn48h";
+               enable-gpios = <&gpioi 7 GPIO_ACTIVE_HIGH>;
+               backlight = <&panel_backlight>;
+               power-supply = <&scmi_v3v3_sw>;
+               status = "okay";
+
+               width-mm = <105>;
+               height-mm = <67>;
+
+               panel-timing {
+                       clock-frequency = <10000000>;
+                       hactive = <480>;
+                       hback-porch = <43>;
+                       hfront-porch = <10>;
+                       hsync-len = <1>;
+                       hsync-active = <0>;
+                       vactive = <272>;
+                       vback-porch = <26>;
+                       vfront-porch = <4>;
+                       vsync-len = <10>;
+                       vsync-active = <0>;
+                       de-active = <1>;
+                       pixelclk-active = <1>;
+               };
+
+               port {
+                       panel_in_rgb: endpoint {
+                               remote-endpoint = <&ltdc_out_rgb>;
+                       };
+               };
+       };
 };
 
 &adc_1 {
        status = "okay";
 };
 
+&ltdc {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&ltdc_pins_a>;
+       pinctrl-1 = <&ltdc_sleep_pins_a>;
+       status = "okay";
+
+       port {
+               ltdc_out_rgb: endpoint {
+                       remote-endpoint = <&panel_in_rgb>;
+               };
+       };
+};
+
 &rtc {
        status = "okay";
 };