diff options
author | Denys Drozdov <denys.drozdov@toradex.com> | 2021-09-30 15:45:58 +0300 |
---|---|---|
committer | Denys Drozdov <denys.drozdov@toradex.com> | 2021-10-01 18:53:47 +0300 |
commit | d6f8786143853d327fc8a0d0f3095c74bdd78afd (patch) | |
tree | 2f3fcea3378816f087ae66a1650a68ca52961bc0 /overlays | |
parent | 7d9ea60d5e4d9c2f16642f04a0c4409406aa9f05 (diff) |
apalis-imx8: Fix LVDS overlay for Mezzanine
Currently when booting with mezzanine overlay
backlight of the 10" LVDS display is off.
Fix LVDS_0_BKL1_ON and PWM_BKL1 signals.
LVDS_0_BKL1_ON available on GPIO1.22 set to 1.
PWM_BKL1 available on GPIO3.28 set to 0.
Related-to: ELB-4192
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/apalis-imx8_mezzanine_lvds_overlay.dts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/overlays/apalis-imx8_mezzanine_lvds_overlay.dts b/overlays/apalis-imx8_mezzanine_lvds_overlay.dts index 96fbc6b..7e2de0a 100644 --- a/overlays/apalis-imx8_mezzanine_lvds_overlay.dts +++ b/overlays/apalis-imx8_mezzanine_lvds_overlay.dts @@ -4,6 +4,7 @@ */ // LVDS display overlay for Apalis Evaluation board Mezzanine +#include <dt-bindings/gpio/gpio.h> /dts-v1/; /plugin/; @@ -39,3 +40,30 @@ &panel_lvds { status = "okay"; }; + +/* Enable 10" LVDS backlight LVDS_0_BKL1_ON */ +&lsio_gpio1 { + LVDS_0_BKL1_ON { + gpio-hog; + gpios = <22 GPIO_ACTIVE_HIGH>; + line-name = "LVDS_0_BKL1_ON"; + output-high; + }; +}; + +/* + * Put LVDS_0_PWM_BKL1 (GPIO8) low. GPIO8 is shared with gpio-fan. + * JP20 should be set to 1-2 (automatic) instead of GPIO8 (2-3). + */ +&lsio_gpio3 { + PWM_BKL1 { + gpio-hog; + gpios = <28 GPIO_ACTIVE_HIGH>; + line-name = "LVDS_0_PWM_BKL1"; + output-low; + }; +}; + +&gpio_fan { + status = "disabled"; +}; |