devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Jacopo Mondi <jacopo+renesas@jmondi.org>
Cc: devicetree@vger.kernel.org, robh+dt@kernel.org,
	linux-renesas-soc@vger.kernel.org, horms@verge.net.au,
	hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com,
	sakari.ailus@linux.intel.com, geert@glider.be,
	mchehab@kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-media@vger.kernel.org
Subject: Re: [PATCH v3 5/8] media: rcar-vin: Handle data-enable polarity
Date: Mon, 4 Jun 2018 14:13:16 +0200	[thread overview]
Message-ID: <20180604121316.GF19674@bigcity.dyn.berto.se> (raw)
In-Reply-To: <1527606359-19261-6-git-send-email-jacopo+renesas@jmondi.org>

Hi Jacopo,

Thanks for your work.

On 2018-05-29 17:05:56 +0200, Jacopo Mondi wrote:
> Handle data-enable signal polarity. If the polarity is not specifically
> requested to be active low, use the active high default.
> 
> Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>

Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
> v3:
> - use new property to set the CES bit
> ---
>  drivers/media/platform/rcar-vin/rcar-dma.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/platform/rcar-vin/rcar-dma.c
> index d2b7002..9145b56 100644
> --- a/drivers/media/platform/rcar-vin/rcar-dma.c
> +++ b/drivers/media/platform/rcar-vin/rcar-dma.c
> @@ -123,6 +123,7 @@
>  /* Video n Data Mode Register 2 bits */
>  #define VNDMR2_VPS		(1 << 30)
>  #define VNDMR2_HPS		(1 << 29)
> +#define VNDMR2_CES		(1 << 28)
>  #define VNDMR2_FTEV		(1 << 17)
>  #define VNDMR2_VLV(n)		((n & 0xf) << 12)
> 
> @@ -698,6 +699,10 @@ static int rvin_setup(struct rvin_dev *vin)
>  		/* Vsync Signal Polarity Select */
>  		if (!(vin->parallel->mbus_flags & V4L2_MBUS_VSYNC_ACTIVE_LOW))
>  			dmr2 |= VNDMR2_VPS;
> +
> +		/* Data Enable Polarity Select */
> +		if (vin->parallel->mbus_flags & V4L2_MBUS_DATA_ENABLE_LOW)
> +			dmr2 |= VNDMR2_CES;
>  	}
> 
>  	/*
> --
> 2.7.4
> 

-- 
Regards,
Niklas Söderlund

  reply	other threads:[~2018-06-04 12:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-29 15:05 [PATCH v3 0/8] media: rcar-vin: Brush endpoint properties Jacopo Mondi
2018-05-29 15:05 ` [PATCH v3 1/8] dt-bindings: media: rcar-vin: Describe optional ep properties Jacopo Mondi
2018-05-31  3:13   ` Rob Herring
2018-05-29 15:05 ` [PATCH v3 2/8] dt-bindings: media: Document data-enable-active property Jacopo Mondi
2018-05-31  3:14   ` Rob Herring
2018-06-01 10:29   ` Sakari Ailus
2018-06-01 14:58     ` jacopo mondi
2018-06-01 22:35       ` Sakari Ailus
2018-05-29 15:05 ` [PATCH v3 3/8] media: v4l2-fwnode: parse 'data-enable-active' prop Jacopo Mondi
2018-06-04 12:08   ` Niklas Söderlund
2018-05-29 15:05 ` [PATCH v3 4/8] dt-bindings: media: rcar-vin: Add 'data-enable-active' Jacopo Mondi
2018-05-31  3:16   ` Rob Herring
2018-06-04 12:10   ` Niklas Söderlund
2018-05-29 15:05 ` [PATCH v3 5/8] media: rcar-vin: Handle data-enable polarity Jacopo Mondi
2018-06-04 12:13   ` Niklas Söderlund [this message]
2018-05-29 15:05 ` [PATCH v3 6/8] dt-bindings: rcar-vin: Add 'hsync-as-de' custom prop Jacopo Mondi
2018-05-31  3:17   ` Rob Herring
2018-06-04 12:19   ` Niklas Söderlund
2018-06-12 13:29     ` jacopo mondi
2018-05-29 15:05 ` [PATCH v3 7/8] media: rcar-vin: Handle 'hsync-as-de' property Jacopo Mondi
2018-05-29 15:05 ` [PATCH v3 8/8] ARM: dts: rcar-gen2: Remove unused VIN properties Jacopo Mondi
2018-05-31  3:17   ` Rob Herring
2018-06-04 12:23   ` Niklas Söderlund
2018-06-05  7:49     ` Simon Horman
2018-06-05  8:12       ` jacopo mondi
2018-06-05  8:23         ` Geert Uytterhoeven

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=20180604121316.GF19674@bigcity.dyn.berto.se \
    --to=niklas.soderlund@ragnatech.se \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@glider.be \
    --cc=hans.verkuil@cisco.com \
    --cc=horms@verge.net.au \
    --cc=jacopo+renesas@jmondi.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.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;
as well as URLs for NNTP newsgroup(s).