we are using OrinNano production SOM with custom carrier board with 36.3 L4T.
setup: we are having requirement of two displays, so we are using two PWMs GP_PWM7(GPIO07) and GP_PWM5(GPIO13) for each display, in pinmux we made GPIO07 and GPIO13 as pwm.
Issue: we have done the pinmux changes from GPIO to PWM, but its not helping us to enabling backlight, display backlight brightness is not coming up until we make the period and duty cycle settings upon each boot, using below commands
#!/bin/bash
# display1 brightness control
echo 0 | sudo tee /sys/class/pwm/pwmchip3/export
echo 2000 | sudo tee /sys/class/pwm/pwmchip3/pwm0/period
echo 1000 | sudo tee /sys/class/pwm/pwmchip3/pwm0/duty_cycle
echo 1 | sudo tee /sys/class/pwm/pwmchip3/pwm0/enable
# display2 brightness control
echo 0 | sudo tee /sys/class/pwm/pwmchip2/export
echo 5000000 | sudo tee /sys/class/pwm/pwmchip2/pwm0/period
echo 2500000 | sudo tee /sys/class/pwm/pwmchip2/pwm0/duty_cycle
echo 1 | sudo tee /sys/class/pwm/pwmchip2/pwm0/enable
FYI: Displays are coming up and backlight is on, if we not made the changes in pinmux for the pin GPIO07 and GPIO13 to act as PWMs.
kindly suggest us how these PWM’s can be used/modified in UEFI for display backlight control. weather we have to do something else apart we done already.
only display backlight works as expected if pins used as gpio instead of PWM, and we a issue here- if pins used as gpio instead of pwm, brightness control wont be able to with the same commands, since pwmchips wont be able to export.
can we expect any help here, if we use gpio13 as pwm for dispaly brightness, its not effecting or showing display unitil we issue theese commands in user level.