]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mp libra: add and update display overlays
authorYashwanth Varakala <y.varakala@phytec.de>
Mon, 17 Nov 2025 12:45:14 +0000 (13:45 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 29 Dec 2025 03:50:54 +0000 (11:50 +0800)
Add imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso
devicetree display overlay for the i.MX8MP Libra RDK platform.
The overlay enable LVDS display configuration.

To keep the consistent style of panel and backlight nodes and labels.
They are updated in imx8mp-libra base board devicetree and
etml1010g3dra display overlay.

Signed-off-by: Yashwanth Varakala <y.varakala@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtso
arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso [new file with mode: 0644]
arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc.dts

index f30d3fd724d0ce6b38f7bef10e3970ac34f70f4a..050f50890fd8959cdc10e57273bbc87ee448aea7 100644 (file)
@@ -225,8 +225,12 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-dl.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-smarc-eval-carrier.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc.dtb
-imx8mp-libra-rdk-fpsc-lvds-dtbs += imx8mp-libra-rdk-fpsc.dtb imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtbo
-dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds.dtb
+imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra-dtbs += imx8mp-libra-rdk-fpsc.dtb \
+       imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtbo
+imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01-dtbs += imx8mp-libra-rdk-fpsc.dtb \
+       imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtbo
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-navqp.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-nitrogen-enc-carrier-board.dtb
index 1dcf249ca90d2b4d9720a55de39e3f8564780dc3..02889d691c017deb3d191fe912994e691ab22361 100644 (file)
@@ -34,7 +34,7 @@
        status = "okay";
 };
 
-&panel0_lvds {
+&panel_lvds0 {
        compatible = "edt,etml1010g3dra";
        status = "okay";
 };
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso b/arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso
new file mode 100644 (file)
index 0000000..418c853
--- /dev/null
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
+/*
+ * Copyright (C) 2025 PHYTEC Messtechnik GmbH
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/clock/imx8mp-clock.h>
+
+/dts-v1/;
+/plugin/;
+
+&backlight_lvds0 {
+       brightness-levels = <0 8 16 32 64 128 255>;
+       default-brightness-level = <8>;
+       enable-gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
+       num-interpolated-steps = <2>;
+       pwms = <&pwm1 0 66667 0>;
+       status = "okay";
+};
+
+&lcdif2 {
+       status = "okay";
+};
+
+&lvds_bridge {
+       assigned-clocks = <&clk IMX8MP_CLK_MEDIA_LDB>, <&clk IMX8MP_VIDEO_PLL1>;
+       assigned-clock-parents = <&clk IMX8MP_VIDEO_PLL1_OUT>;
+       /*
+        * The LVDS panel uses 66.5 MHz pixel clock, set IMX8MP_VIDEO_PLL1 to
+        * 66.5 * 7 = 465.5 MHz so the LDB serializer and LCDIFv3 scanout
+        * engine can reach accurate pixel clock of exactly 66.5 MHz.
+        */
+       assigned-clock-rates = <0>, <465500000>;
+       status = "okay";
+};
+
+&panel_lvds0 {
+       compatible = "powertip,ph128800t006-zhc01";
+       status = "okay";
+};
+
+&pwm1 {
+       status = "okay";
+};
index 6f3a7b863dca1e0f2de174e0fbff80e953c58dc9..ec1f1002224858a154d77c0d80225ef26cb6465c 100644 (file)
@@ -15,7 +15,7 @@
                     "phytec,imx8mp-phycore-fpsc", "fsl,imx8mp";
        model = "PHYTEC i.MX8MP Libra RDK FPSC";
 
-       backlight_lvds0: backlight0 {
+       backlight_lvds0: backlight-lvds0 {
                compatible = "pwm-backlight";
                pinctrl-0 = <&pinctrl_lvds0>;
                pinctrl-names = "default";
@@ -27,7 +27,7 @@
                stdout-path = &uart4;
        };
 
-       panel0_lvds: panel-lvds {
+       panel_lvds0: panel-lvds0 {
                /* compatible panel in overlay */
                backlight = <&backlight_lvds0>;
                power-supply = <&reg_vdd_3v3>;