Hi Thierry, Many thanks for your continued help. We really appreciate it. We use Linux PWM Framework for our PWM driver. And probably add our PDM driver to drivers/misc.
Thanks again. Regards, Naidu. On Tue, Sep 23, 2014 at 12:57 PM, Thierry Reding <[email protected]> wrote: > On Mon, Sep 22, 2014 at 07:28:43PM +0530, Naidu Tellapati wrote: >> Hi Thierry, >> >> Many thanks for your continued help in this regard. >> >> Each bit in my 12-bit input value to the PDM block does not in anyway >> corresponds to fixed interval. My hardware PDM block works with the >> following simple logic >> >> counter [12:0] = counter [11:0] + pluse_in [11:0] /* pulse_in is a >> 12-bit input value to PDM block */ >> pdm_out = counter [12] >> >> The above logic runs for every pdm_clk cycle. > > I don't see how this could reasonably fake a PWM. The best you can > probably get is a 0%, 50% and 100% duty-cycles. > >> And hence I am of the opinion that I need to have a Linux PDM >> Framework which is similar to PWM Framework and which provides >> pulse_in as device attribute to the Linux User Space. > > Given the peculiarity of the device I don't think adding a framework is > necessary. But you could perhaps add a driver to drivers/misc that > exposes the pulse_in parameter in sysfs. > > Thierry -- To unsubscribe from this list: send the line "unsubscribe linux-pwm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
