Skip to main content
Yli.8
Associate III
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

Olivier GALLIEN
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

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Yli.8
Yli.8Author
Associate III
August 21, 2019

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