This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/66AK2G12: eHRPWM Driver question

Part Number: 66AK2G12

Tool/software: Linux

Hello,

I am using Linux SDK 04.02.00.09 and am attempting to use the eHRPWM peripheral on the 66AK2G12 processor to control a PWM fan in Linux.  According to the wiki (http://processors.wiki.ti.com/index.php/Linux_Core_PWM_User%27s_Guide) I should be able to find a configuration option for this peripheral under Device Drivers -> Pulse Width Modulation (PWM) in menuconfig.  I am only able to find the eCAP driver under this section.  

Is the eHRPWM driver not supported for 66AK2G12?  Is there a list of drivers not supported by this platform on Linux?  

Thank you,

Jeff

  • Hi Jeff,

    It seems that the high resolution PWM module driver does not support K2G devices, see drivers/pwm/pwm-tiehrpwm.c & drivers/pwm/pwm-tipwmss.c :

    static const struct of_device_id ehrpwm_of_match[] = {
    { .compatible = "ti,am3352-ehrpwm" },
    { .compatible = "ti,am33xx-ehrpwm" },
    {},


    static const struct of_device_id pwmss_of_match[] = {
    { .compatible = "ti,am33xx-pwmss" },
    {},
    };
    As you can see it supports only the Sitara (AM3x, AM4x & AM5x) devices.

    If you wish to use the ehrpwm module you will have to modify the dts nodes (see how this is done for AM57x devices, refer to arch/arm/boot/dts/dra7.dtsi ===> epwmss1/2 dts nodes and their respective ehrpwm1/2 child nodes) and possibly the pwm-tipwmss.c & pwm-tiehrpwm.c drivers' code to match the K2G architecture.

    Best Regards,
    Yordan
  • Excellent. Thank you for the information. If I decide to pursue driver modifications, I will be sure to share them with the community.