Happy Holidays everyone.

I have a DM3730 that am trying to setup timer 10 to drive a PWM that
controls the LCD backlight.

Using the linux-next git branch, I am trying to use the
pwm-omap-dmtimer function and  I have configured the Device Tree as
follows:

bl: backlight {
compatible = "pwm-backlight";
pinctrl-names = "default";
pinctrl-0 = <&backlight_pins &backlight_pwm_pins>;

pwms = <&pwm10 0 5000000>;

brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <7>;

enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */
default-on;
};

pwm10: dmtimer-pwm@10 {
status = "okay";
compatible = "ti,omap-dmtimer-pwm";
ti,timers = <&timer10>;
#pwm-cells = <3>;
};

The Pinmuxing is configured as follows:
backlight_pwm_pins: pinmux_backlight_pwm_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x20B8, PIN_OUTPUT | MUX_MODE2)       /* gpmc_ncs5.gpio_56 */
>;
};

backlight_pins: pinmux_backlight_pins {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | MUX_MODE4)       /* mcbsp4_dx.gpio_154 */
>;
};


I can certainly combine the backlight pinmuxing, but I can't figure
out the following errors

I get the following error:
[    0.387145] omap-dmtimer-pwm dmtimer-pwm@10: Missing dmtimer platform data
[    0.387176] omap-dmtimer-pwm: probe of dmtimer-pwm@10 failed with error -22
[    0.389495] pwm-backlight backlight: unable to request PWM
[    0.389617] pwm-backlight: probe of backlight failed with error -22

I assume that the backlight fails because the pwm fails, and I was
hoping some of you guys with more experience with this new pwm driver
might have some insight.  I have the pwm driver built into the kernel.
I wasn't sure if I could directly reference timer10 from the backlight
since the examples showed it referencing a pwm.

adam
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to