Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-23 Thread Russell King - ARM Linux
On Thu, Jan 23, 2014 at 11:52:03AM +, Russell King - ARM Linux wrote: > On Thu, Jan 23, 2014 at 08:37:14AM +0100, Lothar Waßmann wrote: > > This wouldn't buy much without a material change to of_pwm_get(). > > The function of_parse_phandle_with_args() called by of_pwm_get() > > requires the num

Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-23 Thread Russell King - ARM Linux
On Thu, Jan 23, 2014 at 11:52:03AM +, Russell King - ARM Linux wrote: > On Thu, Jan 23, 2014 at 08:37:14AM +0100, Lothar Waßmann wrote: > > This wouldn't buy much without a material change to of_pwm_get(). > > The function of_parse_phandle_with_args() called by of_pwm_get() > > requires the num

Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-23 Thread Russell King - ARM Linux
On Thu, Jan 23, 2014 at 08:37:14AM +0100, Lothar Waßmann wrote: > This wouldn't buy much without a material change to of_pwm_get(). > The function of_parse_phandle_with_args() called by of_pwm_get() > requires the number of args in the pwms property be greater or equal to > the #pwm-cells property

Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-23 Thread Sascha Hauer
I thinking more of the following. I haven't tested it, but it has a negative diffstat, so it must be good ;) Sascha Sascha Hauer (2): PWM: let of_xlate handlers check args count PWM: handle additional flags in of_pwm_sim

Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-22 Thread Lothar Waßmann
Hi, Sascha Hauer wrote: > On Thu, Jan 16, 2014 at 09:06:25AM +0100, Lothar Waßmann wrote: > > The i.MX PWM controller supports inverting the polarity of the PWM > > output. Make this feature available in the pxm-imx driver. > > > > Signed-off-by: Lothar Waßmann > > --- > > Documentation/devicet

Re: [PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-16 Thread Sascha Hauer
On Thu, Jan 16, 2014 at 09:06:25AM +0100, Lothar Waßmann wrote: > The i.MX PWM controller supports inverting the polarity of the PWM > output. Make this feature available in the pxm-imx driver. > > Signed-off-by: Lothar Waßmann > --- > Documentation/devicetree/bindings/pwm/imx-pwm.txt |5 +-

[PATCHv2 2/2] pwm: imx: support polarity inversion

2014-01-16 Thread Lothar Waßmann
The i.MX PWM controller supports inverting the polarity of the PWM output. Make this feature available in the pxm-imx driver. Signed-off-by: Lothar Waßmann --- Documentation/devicetree/bindings/pwm/imx-pwm.txt |5 +- drivers/pwm/pwm-imx.c | 42 ++