Linux Media Controller development
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Sean Young <sean@mess.org>
Cc: linux-media@vger.kernel.org, "Rob Herring" <robh@kernel.org>,
	"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
	"Pali Rohár" <pali.rohar@gmail.com>,
	"Timo Kokkonen" <timo.t.kokkonen@iki.fi>,
	"Tony Lindgren" <tony@atomide.com>
Subject: Re: [PATCH v2 1/2] media: dt-bindings: bind nokia,n900-ir to generic pwm-ir-tx driver
Date: Fri, 13 Jul 2018 13:13:20 +0200	[thread overview]
Message-ID: <20180713111320.GB31525@amd> (raw)
In-Reply-To: <20180713095936.17673-1-sean@mess.org>

[-- Attachment #1: Type: text/plain, Size: 2317 bytes --]

Hi!

> Signed-off-by: Sean Young <sean@mess.org>
> ---
>  .../devicetree/bindings/media/nokia,n900-ir   | 20 -------------------
>  arch/arm/boot/dts/omap3-n900.dts              |  2 +-
>  drivers/media/rc/pwm-ir-tx.c                  |  1 +
>  3 files changed, 2 insertions(+), 21 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/media/nokia,n900-ir
> 
> diff --git a/Documentation/devicetree/bindings/media/nokia,n900-ir b/Documentation/devicetree/bindings/media/nokia,n900-ir
> deleted file mode 100644
> index 13a18ce37dd1..000000000000
> --- a/Documentation/devicetree/bindings/media/nokia,n900-ir
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -Device-Tree bindings for LIRC TX driver for Nokia N900(RX51)
> -
> -Required properties:
> -	- compatible: should be "nokia,n900-ir".
> -	- pwms: specifies PWM used for IR signal transmission.
> -
> -Example node:
> -
> -	pwm9: dmtimer-pwm@9 {
> -		compatible = "ti,omap-dmtimer-pwm";
> -		ti,timers = <&timer9>;
> -		ti,clock-source = <0x00>; /* timer_sys_ck */
> -		#pwm-cells = <3>;
> -	};
> -
> -	ir: n900-ir {
> -		compatible = "nokia,n900-ir";
> -
> -		pwms = <&pwm9 0 26316 0>; /* 38000 Hz */
> -	};

Removing documentation is bad idea, I guess. The binding still exists
and new kernels should still support it.


> diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
> index 182a53991c90..fd12dea15799 100644
> --- a/arch/arm/boot/dts/omap3-n900.dts
> +++ b/arch/arm/boot/dts/omap3-n900.dts
> @@ -154,7 +154,7 @@
>  	};
>  
>  	ir: n900-ir {
> -		compatible = "nokia,n900-ir";
> +		compatible = "nokia,n900-ir", "pwm-ir-tx";
>  		pwms = <&pwm9 0 26316 0>; /* 38000 Hz */
>  	};
>  

No problem.

> diff --git a/drivers/media/rc/pwm-ir-tx.c b/drivers/media/rc/pwm-ir-tx.c
> index 27d0f5837a76..272947b430c8 100644
> --- a/drivers/media/rc/pwm-ir-tx.c
> +++ b/drivers/media/rc/pwm-ir-tx.c
> @@ -30,6 +30,7 @@ struct pwm_ir {
>  };
>  
>  static const struct of_device_id pwm_ir_of_match[] = {
> +	{ .compatible = "nokia,n900-ir" },
>  	{ .compatible = "pwm-ir-tx", },
>  	{ },
>  };

Good idea.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2018-07-13 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-13  9:59 [PATCH v2 1/2] media: dt-bindings: bind nokia,n900-ir to generic pwm-ir-tx driver Sean Young
2018-07-13  9:59 ` [PATCH v2 2/2] media: rc: remove ir-rx51 in favour of generic pwm-ir-tx Sean Young
2018-07-13 11:13 ` Pavel Machek [this message]
2018-07-13 12:27   ` [PATCH v2 1/2] media: dt-bindings: bind nokia,n900-ir to generic pwm-ir-tx driver Sean Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180713111320.GB31525@amd \
    --to=pavel@ucw.cz \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=pali.rohar@gmail.com \
    --cc=robh@kernel.org \
    --cc=sean@mess.org \
    --cc=timo.t.kokkonen@iki.fi \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox