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.

eCAP feature in PWMSS in TI sdk 7

I need to use Enhanced Capture (eCAP) in PWMSS , I builded the eCAP feature as below

         Device Drivers --->
                 <*> PWM Support --->
                    <*> eCAP PWM support   

I configured the pins in dts as below

            ecap1_pins_default: backlight1_pins {
            pinctrl-single,pins = <
                0x18c 0x3    /* ecap1_in_pwm1_out.i2c0_scl MODE3 */
            >;
        };
 
        ecap1_pins_sleep: ecap1_pins_sleep {
            pinctrl-single,pins = <
                0x18c (PIN_INPUT_PULLDOWN | MUX_MODE7)    /* ecap1_in_pwm1_out.i2c0_scl MODE3  */
            >;
        };
 
 
        ecap2_pins_default: backlight2_pins {
            pinctrl-single,pins = <
                0x188 0x3    /* ecap2_in_pwm2_out.i2c0_scl MODE3 */
            >;
        };
 
        ecap2_pins_sleep: ecap2_pins_sleep {
            pinctrl-single,pins = <
                0x188 (PIN_INPUT_PULLDOWN | MUX_MODE7)    /* ecap2_in_pwm2_out.i2c0_sda MODE3 */
            >;
        };

            epwmss1: epwmss@48302000 {
                           status = "okay";
 
                           ecap1: ecap@48302100 {
                                       status = "okay";
                                       pinctrl-names = "default", "sleep";
                                       pinctrl-0 = <&ecap1_pins_default>;
                                       pinctrl-1 = <&ecap1_pins_sleep>;
                           };
            };
 
            epwmss2: epwmss@48304000 {
                             status = "okay";
 
                             ecap2: ecap@48304100 {
                                       status = "okay";
                                       pinctrl-names = "default", "sleep";
                                       pinctrl-0 = <&ecap2_pins_default>;
                                       pinctrl-1 = <&ecap2_pins_sleep>;
                          };
                };

        backlight {
                compatible = "pwm-backlight";
                   pwms = <&ecap2 0 50000 0>;
                brightness-levels = <0 51 53 56 62 75 101 152 255>;
                default-brightness-level = <8>;
            };
 
                backlight {
                compatible = "pwm-backlight";
                pwms = <&ecap1 0 50000 0>;  
                brightness-levels = <0 51 53 56 62 75 101 152 255>;
                default-brightness-level = <8>;
               };



Testing

I got the two entries got created in the SYSFS interface as shown below & verified pwm output,
/sys/class/pwm/pwmchip0
/sys/class/pwm/pwmchip1
 
But now I need to verify the eCAP , could you please let me know how this pwm capture can be verified

As per the link processors.wiki.ti.com/index.php/AM335x_PWM_Driver's_Guide/ it says that eCAP can be controlled from the user space through SYSFS interface. SYSFS interface for eCAP is available at /sys/class/pwm/ecap.i

But I didn't find any such entries (ie., /sys/class/pwm/ecap0 or /sys/class/pwm/ecap1) in the the SYSFS interface, could you please kindly do the needful in getting the entires created in the the sysfs, I feel eCAP feature is not supported in TI SDK & please correct if my understanding is wrong

If it is supported please let me know if any other configurations needs to be done other than this & please provide me the detailed steps of verifying eCAP feature


Kindly do the needful as early as possible

Many Thanks in advance