2019-08-19 01:30 AM
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";
};
2019-08-20 06:38 AM
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
2019-08-21 02:07 AM
Sorry, what I want to explain is how to use PWM to control backlight?