diff options
Diffstat (limited to 'overlays/verdin-am62_mezzanine_backlight.dtsi')
-rw-r--r-- | overlays/verdin-am62_mezzanine_backlight.dtsi | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/overlays/verdin-am62_mezzanine_backlight.dtsi b/overlays/verdin-am62_mezzanine_backlight.dtsi new file mode 100644 index 0000000..6bfbd34 --- /dev/null +++ b/overlays/verdin-am62_mezzanine_backlight.dtsi @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2023 Toradex + */ + +// Verdin AM62 Mezzanine Backlight + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/pwm/pwm.h> + +&{/} { + compatible = "toradex,verdin-am62"; + + backlight_mezzanine: backlight-mezzanine { + compatible = "pwm-backlight"; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; + /* Verdin GPIO_4 (SODIMM 212) */ + enable-gpios = <&mcu_gpio0 4 GPIO_ACTIVE_HIGH>; + /* Verdin PWM_2 (SODIMM 16) */ + pwms = <&epwm0 1 6666667 PWM_POLARITY_INVERTED>; + }; +}; + +/* Verdin PWM_1, PWM_2 */ +&epwm0 { + status = "okay"; +}; |