summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-10-07 15:42:39 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-10-16 12:23:32 +0300
commit799a161bc9411ab011242b186b33a47cab6818a1 (patch)
tree895ae87d0570120298c547a6bf871cd272eb11eb
parentb2b512600558679ce3f61fa1928a212747fd0767 (diff)
overlay: apalis-imx8x: move lcdif and panel linkage to overlay
LCDIF interface, backlight and DPI panel are disabled by default in toradex_5.4-2.1.x-imx kernel. Add an overlay that enables lcdif interface, backlight and panel-dpi. Related-to: ELB-3054, ELB-2943 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/apalis-imx8x_parallel-rgb_overlay.dts49
1 files changed, 49 insertions, 0 deletions
diff --git a/overlays/apalis-imx8x_parallel-rgb_overlay.dts b/overlays/apalis-imx8x_parallel-rgb_overlay.dts
new file mode 100644
index 0000000..3787689
--- /dev/null
+++ b/overlays/apalis-imx8x_parallel-rgb_overlay.dts
@@ -0,0 +1,49 @@
+// Enable the parallel RGB interface on Apalis iMX8X
+
+#include "dt-bindings/gpio/gpio.h"
+#include "dt-bindings/pinctrl/pads-imx8qxp.h"
+#include "dt-bindings/pwm/pwm.h"
+
+/dts-v1/;
+/plugin/;
+/ {
+ 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";
+};
+
+&display_lcdif {
+ status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ lcd_display_out: endpoint {
+ remote-endpoint = <&lcd_panel_in>;
+ };
+ };
+};
+
+&panel_dpi {
+ status = "okay";
+
+ port {
+ lcd_panel_in: endpoint {
+ remote-endpoint = <&lcd_display_out>;
+ };
+ };
+};
+
+/* Apalis BKL1_PWM */
+&pwm_mipi_lvds1 {
+ status = "okay";
+};
+