Unable to enable PWM driver in uboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-12 7:45 AM
We have custom SOM which has been designed with STM32MP157C and we want to enable the backlight of a display panel using a PWM driver in uboot.
For this, we tried enabling the pwm_backlight.c driver available in /drivers/video/ in uboot.
Following configuration was done to enable the driver:
Changes in the dts file
Updated the Kconfig in /driver/video/
Updated to Makefile in /driver/video/
obj-$(CONFIG_BACKLIGHT_PWM) += pwm_backlight.o
Added the config in defconfig
CONFIG_BACKLIGHT_PWM=y
CONFIG_DM_PWM=y
The image builds successfully, however looking at the log of lists.c during boot, it is unable to find the driver and hence fails to bind.
Another observation is that there is no stm32 core driver file for PWM in uboot. Is this the reason why any of the pwm-based drivers fails to be enabled or is something missing in the configuration mentioned above?
TIA.
- Labels:
-
LCD-LTDC
-
OpenSTLinux
-
STM32MP15 Lines
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-07-17 9:10 AM
Hi, @DKapu.2 .
I am having the same problem, I want to configure a pwm with the led_pwm driver, but it's not working. Did you manage to make it work?
Regards.
