lkml.org 
[lkml]   [2016]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/7] [media] ir-rx51: add DT support to driver
On Sat, May 07, 2016 at 06:21:45PM +0300, Ivaylo Dimitrov wrote:
> With the upcoming removal of legacy boot, lets add support to one of the
> last N900 drivers remaining without it. As the driver still uses omap
> dmtimer, add auxdata as well.
>
> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
> ---
> .../devicetree/bindings/media/nokia,lirc-rx51 | 19 +++++++++++++++++++
> arch/arm/mach-omap2/pdata-quirks.c | 6 +-----
> drivers/media/rc/ir-rx51.c | 11 ++++++++++-
> 3 files changed, 30 insertions(+), 6 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/media/nokia,lirc-rx51
>
> diff --git a/Documentation/devicetree/bindings/media/nokia,lirc-rx51 b/Documentation/devicetree/bindings/media/nokia,lirc-rx51
> new file mode 100644
> index 0000000..5b3081e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/nokia,lirc-rx51
> @@ -0,0 +1,19 @@
> +Device-Tree bindings for LIRC TX driver for Nokia N900(RX51)
> +
> +Required properties:
> + - compatible: should be "nokia,lirc-rx51".

lirc is a Linux term. Also, nokia,rx51-... would be conventional
ordering.

Is this anything more than a PWM LED?

> + - pwms: specifies PWM used for IR signal transmission.
> +
> +Example node:
> +
> + pwm9: dmtimer-pwm@9 {
> + compatible = "ti,omap-dmtimer-pwm";
> + ti,timers = <&timer9>;
> + #pwm-cells = <3>;
> + };
> +
> + ir: lirc-rx51 {
> + compatible = "nokia,lirc-rx51";
> +
> + pwms = <&pwm9 0 26316 0>; /* 38000 Hz */
> + };

\
 
 \ /
  Last update: 2016-05-09 22:21    [W:0.187 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site