AM623: How to modify device tree to start pwm while linux kernel loads

Part Number: AM623

Tool/software:

I am running my own AM6234 board.  I need a PWM signal for a screen backlight starting at power-up.  I have added code to evm.c that starts PWM0_A.  PWM0_A also runs in my application.  However, the PWM signal gets disabled during linux kernel load.

How can I set the period, duty cycle and restart the PWM in the device tree while the kernel is loading?

  • Hello Gene,

    To make sure I understand your usecase:

    1) Do you want the PWM signal to be continuous from uboot initialization, all the way through Linux boot? Or are you ok with the PWM signal potentially going away during Linux driver initialization?

    2) I assume this is not a set PWM signal that can be "set and forget" in uboot, but something that your application is able to modify during runtime, right?

    Regards,

    Nick