Hi,
We have a custom am335x based design with a TLC5940 led driver. The design has the gsclk of the TLC5940 being driven by the following PWM pin
ECAP1_IN_PWM1_OUT (C15)
In the kernel we've enabled both the eCAP and the eHRPWM modules. We choose to go with the ecap because all we required was a simple clock out device. Our device tree has been leveraged from am335x-evm.dts and the related entries we attempted are as follows:
pwmleds {
compatible = "pwm-leds";
pmu_stat {
label = "bboard::pmu_stat";
pwms = <&ecap1 1 7812500>;
max-brightness = <127>;
linux,default-trigger = "default-on";
brightness = <127>;
};
};
ecap1_pins: ecap1_pins {
pinctrl-single,pins = <
0x160 ( PIN_OUTPUT | MUX_MODE2 ) /* (C15) spi0_cs1.eCAP1_in_PWM1_out */
>;
};
&ecap1 {
status = "okay";
};
However we see the following boot notifications and we do not see an expected ecap device in /sys/class/pwm/
[ 8.517983] /pwmleds/pmu_stat: arguments longer than property
[ 8.524146] leds_pwm pwmleds: unable to request PWM for bboard::pmu_stat: -22
[ 8.748229] leds_pwm: probe of pwmleds failed with error -22
All we really require is a simple clock out of the PWM, can someone perhaps see what I may be missing here. Thanks in advance.
Tom