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.

AM5728 Linux PWM Driver

Other Parts Discussed in Thread: AM5728

Hello,

I am using the Processor SDK for AM57x Sitara™ Processors - Linux on a am5728 custom SBC, and being new to Linux kernel development I am struggling with getting the PWM driver up and running.
I believe the drivers in question pwm-tipwmss.c and pwm-tiehrpwm.c are being included in the kernel and the following information is included in the device tree:

        epwmss0: epwmss@4843e000 {
            compatible = "ti,dra7xx-pwmss", "ti,am33xx-pwmss";
            reg = <0x4843e000 0x30>;
            ti,hwmods = "epwmss0";
            #address-cells = <1>;
            #size-cells = <1>;
            status = "disabled";
            ranges = <0x4843e100  0x4843e100 0x80  /* ECAP */
                  0x4843e180  0x4843e180 0x80  /* EQEP */
                  0x4843e200  0x4843e200 0x80>;/* EHRPWM */

            ehrpwm0: ehrpwm@4843e200 {
                compatible = "ti,dra7xx-ehrpwm",
                         "ti,am33xx-ehrpwm";
                #pwm-cells = <3>;
                reg = <0x4843e200 0x80>;
                ti,hwmods = "ehrpwm0";
                status = "disabled";
            };
        };

        epwmss1: epwmss@48440000 {
            compatible = "ti,dra7xx-pwmss", "ti,am33xx-pwmss";
            reg = <0x48440000 0x30>;
            ti,hwmods = "epwmss1";
            #address-cells = <1>;
            #size-cells = <1>;
            status = "disabled";
            ranges = <0x48440100  0x48440100  0x80   /* ECAP */
                  0x48440180  0x48440180  0x80   /* EQEP */
                  0x48440200  0x48440200  0x80>; /* EHRPWM */

            ehrpwm1: ehrpwm@48440200 {
                compatible = "ti,dra7xx-ehrpwm",
                         "ti,am33xx-ehrpwm";
                #pwm-cells = <3>;
                reg = <0x48440200 0x80>;
                ti,hwmods = "ehrpwm1";
                status = "disabled";
            };
        };

        epwmss2: epwmss@48442000 {
            compatible = "ti,dra7xx-pwmss", "ti,am33xx-pwmss";
            reg = <0x48442000 0x30>;
            ti,hwmods = "epwmss2";
            #address-cells = <1>;
            #size-cells = <1>;
            status = "disabled";

            ranges = <0x48442100  0x48442100  0x80   /* ECAP */
                  0x48442180  0x48442180  0x80   /* EQEP */
                  0x48442200  0x48442200  0x80>; /* EHRPWM */

            ehrpwm2: ehrpwm@48442200 {
                compatible = "ti,dra7xx-ehrpwm",
                         "ti,am33xx-ehrpwm";
                #pwm-cells = <3>;
                reg = <0x48442200 0x80>;
                ti,hwmods = "ehrpwm2";
                status = "disabled";

            };
        };

can anyone point out what I am missing from the device tree or is there another problem ?