summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-10-30 19:59:10 +0200
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-10-30 20:27:01 +0200
commit76098439a7b27ecc023abfa9f85080793cedc74f (patch)
tree10a19b5d98e78274268b598853427afe9d1bf7bb
parentaf07a917455c9115e7bbb902d4d9d08f60f4f7c0 (diff)
overlays: apalis-imx8x: lvds solution
The overlay for the main LVDS display connected to ldb1 SoC port. Related-to: ELB-2943 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/Makefile3
-rw-r--r--overlays/apalis-imx8x_display-lt161010_overlay.dts38
-rw-r--r--overlays/apalis-imx8x_display-lt170410_overlay.dts38
-rw-r--r--overlays/apalis-imx8x_lvds_overlay.dts35
4 files changed, 36 insertions, 78 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index 8a56c94..658471c 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -26,8 +26,7 @@ dtb-y += apalis-imx8_atmel-mxt_overlay.dtbo
dtb-y += apalis-imx8_lvds_overlay.dtbo
dtb-y += apalis-imx8x_ad7879_overlay.dtbo
dtb-y += apalis-imx8x_atmel-mxt_overlay.dtbo
-dtb-y += apalis-imx8x_display-lt161010_overlay.dtbo
-dtb-y += apalis-imx8x_display-lt170410_overlay.dtbo
+dtb-y += apalis-imx8x_lvds_overlay.dtbo
dtb-y += apalis-imx8x_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx6-aster_atmel-mxt_overlay.dtbo
dtb-y += colibri-imx6-eval_atmel-mxt_overlay.dtbo
diff --git a/overlays/apalis-imx8x_display-lt161010_overlay.dts b/overlays/apalis-imx8x_display-lt161010_overlay.dts
deleted file mode 100644
index 53e191f..0000000
--- a/overlays/apalis-imx8x_display-lt161010_overlay.dts
+++ /dev/null
@@ -1,38 +0,0 @@
-// LT161010 display (7inch) with a resolution of 800x480 pixel. This display can be ordered at Toradex.
-
-/dts-v1/;
-/plugin/;
-/ {
- compatible = "toradex,apalis-imx8x";
-};
-
-&{/lcdif@5a180000} {
- status = "okay";
-};
-
-&{/panel-1} {
- compatible = "panel-dpi";
-
- width-mm = <217>;
- height-mm = <136>;
-
- data-mapping = "bgr666";
-
- panel-timing {
- clock-frequency = <33260000>;
- hactive = <800>;
- vactive = <480>;
- hback-porch = <88>;
- hfront-porch = <40>;
- vback-porch = <32>;
- vfront-porch = <13>;
- hsync-len = <48>;
- vsync-len = <3>;
-
- de-active = <1>;
- hsync-active = <0>;
- vsync-active = <0>;
- pixelclk-active = <1>;
- };
-};
-
diff --git a/overlays/apalis-imx8x_display-lt170410_overlay.dts b/overlays/apalis-imx8x_display-lt170410_overlay.dts
deleted file mode 100644
index c09d294..0000000
--- a/overlays/apalis-imx8x_display-lt170410_overlay.dts
+++ /dev/null
@@ -1,38 +0,0 @@
-// LT170410 display (10inch) with a resolution of 1280x800 pixel. This display can be ordered at Toradex.
-
-/dts-v1/;
-/plugin/;
-/ {
- compatible = "toradex,apalis-imx8x";
-};
-
-&ldb1 {
- status = "okay";
-};
-
-&panel_2 {
- status = "okay";
- compatible = "panel-lvds";
-
- width-mm = <1280>;
- height-mm = <800>;
-
- data-mapping = "vesa-24";
-
- panel-timing {
- clock-frequency = <68930000>;
- hactive = <1280>;
- vactive = <800>;
- hback-porch = <64>;
- hfront-porch = <64>;
- vback-porch = <5>;
- vfront-porch = <5>;
- hsync-len = <40>;
- vsync-len = <6>;
-
- hsync-active = <0>;
- vsync-active = <0>;
- pixelclk-active = <0>;
- };
-};
-
diff --git a/overlays/apalis-imx8x_lvds_overlay.dts b/overlays/apalis-imx8x_lvds_overlay.dts
new file mode 100644
index 0000000..b3da629
--- /dev/null
+++ b/overlays/apalis-imx8x_lvds_overlay.dts
@@ -0,0 +1,35 @@
+// LT170410 display (10inch) with a resolution of 1280x800 pixel. This display can be ordered at Toradex.
+
+/dts-v1/;
+/plugin/;
+
+#include "dt-bindings/pwm/pwm.h"
+
+/ {
+ compatible = "toradex,apalis-imx8x";
+};
+
+&backlight {
+ brightness-levels = <0 45 63 88 119 158 203 255>;
+ default-brightness-level = <4>;
+ pwms = <&pwm_mipi_lvds1 0 6666667 PWM_POLARITY_INVERTED>;
+ status = "okay";
+};
+
+&ldb1 {
+ status = "okay";
+};
+
+&ldb1_phy {
+ status = "okay";
+};
+
+&panel_lvds {
+ status = "okay";
+};
+
+/* Apalis BKL1_PWM */
+&pwm_mipi_lvds1 {
+ status = "okay";
+};
+