From 799a161bc9411ab011242b186b33a47cab6818a1 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Wed, 7 Oct 2020 15:42:39 +0300 Subject: 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 --- overlays/apalis-imx8x_parallel-rgb_overlay.dts | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 overlays/apalis-imx8x_parallel-rgb_overlay.dts 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"; +}; + -- cgit v1.2.3