cancel
Showing results for 
Search instead for 
Did you mean: 

How to add modified device tree with PWM control backlight

Yli.8
Associate II

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";

};

2 REPLIES 2
Olivier GALLIEN
ST Employee

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.

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