Hi,
We are using beaglebone black based custom board,
We are porting linux 3.12 for our board,
We have three leds which are to be controlled using pwm.
those LEDS are connected to following balls,
1. E18 --> Pinmux mode 0 --> eCAP0_in_PWM0_out
2. B19 --> Pinmux mode 3 --> eCAP1_in_PWM1_out
3. C18 --> Pinmux mode 3 --> eCAP2_in_PWM2_out
Now in device tree we have following entries for pin mux,
backlight_pin: pinmux_backlight_pin { pinctrl-single,pins = < 0x164 0x00 /* ecap0_in_pwm0_out.gpio0_7, OUTPUT | MODE0 */ 0x18C 0x03 /* ecap1_in_pwm1_out.gpio3_6, OUTPUT | MODE3 */ 0x188 0x03 /* ecap2_in_pwm2_out.gpio3_5, OUTPUT | MODE3 */ >; };
And now we want to enable ledpwm to control leds by led subsystem,
we referred "omap4-sdp.dts"
pwmleds { compatible = "pwm-leds"; kpad { label = "omap4::keypad"; pwms = <&twl_pwm 0 7812500>; max-brightness = <127>; }; charging { label = "omap4:green:chrg"; pwms = <&twl_pwmled 0 7812500>; max-brightness = <255>; }; };
and similar way we added our led entry as follows,
pwmleds { compatible = "pwm-leds"; led1 { label = "led1"; pwms = <&ehrpwm0 0 1000>; max-brightness = <127>; }; }; &ehrpwm0 { status = "okay"; };
but we have following bootlog
[ 4.470590] /pwmleds/led1: arguments longer than property [ 4.476277] of_pwm_get(): can't parse "pwms" property [ 4.481623] leds_pwm pwmleds.5: unable to request PWM for led1
I think we are not able to enable pwm and because of that led1 node is not able to get the pwm,
I think i am missing something,
Any suggestions for enabling pwmleds ?
Thank you,
Regards,
Ankur