Tool/software:
Dear team,
I want to control the backlight of the display using the backlight driver integrated with the TI AM625 board.
Attaching DTS configuration:
arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
backlight { compatible = "pwm-backlight"; pwms = <&epwm1 0 40000 1>; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <255>; linux,default-trigger = "default-on"; status = "okay"; }; main_pr0_ecap0_pins_default: main-pr0-ecap0-pins-default { pinctrl-single,pins = < AM62X_IOPAD(0x01a0, PIN_OUTPUT_PULLUP, 6) /* E18 //(B20) MCASP0_ACLKX.ECAP2_IN_APWM_OUT */ >; }; &epwm1 { pinctrl-names = "default"; pinctrl-0 = <&main_pr0_ecap0_pins_default>; status = "okay"; };
Device output :
"root@am62xx-evm:/sys/class/backlight/backlight# ls
actual_brightness bl_power brightness device max_brightness power scale subsystem type uevent
root@am62xx-evm:/sys/class/backlight/backlight#
"
Currently I am controlling backlight with below method :
echo 1 > /sys/class/pwm/pwmchip0/export echo 40000 > /sys/class/pwm/pwmchip0/pwm1/period echo 10000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable
I want to control the brightness levels through the backlight driver, which exposes the necessary functionality to adjust the levels.
Thank you