Skip to main content
Visitor II
August 19, 2019
Question

How to add modified device tree with PWM control backlight

  • August 19, 2019
  • 1 reply
  • 676 views

My circuit board USES PE6 to control the backlight, but it cannot be adjusted. How to modify the device tree of TIM15_CH2.EV1 is not regulated.

EV1:

panel_backlight: panel-backlight {

compatible = "gpio-backlight";

gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;

default-on;

status = "okay";

};

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 20, 2019

    Hi @昌�?� �?�​ 

    It's not clear to me if you need help to write the device tree or to compile/load it to your system.

    Anyway, if not done please refer to following link which might help you.

    For Device tree modification around Timer/PWM :

    https://wiki.st.com/stm32mpu/wiki/PWM_overview

    https://wiki.st.com/stm32mpu/wiki/TIM_device_tree_configuration

    For building and applying Device Tree :

    https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package

    Hope it help

    Olivier

    Yli.8Author
    Visitor II
    August 21, 2019

    Sorry, what I want to explain is how to use PWM to control backlight?