linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: p.zabel@pengutronix.de (Philipp Zabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] ARM: dts: imx28-evk: Use the standard gpio reset binding
Date: Thu, 04 Apr 2013 09:58:49 +0200	[thread overview]
Message-ID: <1365062329.4089.12.camel@pizza.hi.pengutronix.de> (raw)
In-Reply-To: <1365026474-3446-1-git-send-email-festevam@gmail.com>

Hi Fabio,

Am Mittwoch, den 03.04.2013, 19:01 -0300 schrieb Fabio Estevam:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Instead of using a custom binding for turning on a GPIO that activates the 
> panel, use the standard one.

While this might fit well code wise, is a reset GPIO the right
abstraction for those panel enable GPIOs?

I guess the distinction between a GPIO that only holds the panel
controller in reset and one that also enables power supplies internally
can't be always made easily.

regards
Philipp

> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  Documentation/devicetree/bindings/fb/mxsfb.txt |    5 +----
>  arch/arm/boot/dts/imx23-evk.dts                |    8 +++++++-
>  arch/arm/boot/dts/imx28-evk.dts                |    8 +++++++-
>  3 files changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/fb/mxsfb.txt b/Documentation/devicetree/bindings/fb/mxsfb.txt
> index 7ba3b76..b15230c 100644
> --- a/Documentation/devicetree/bindings/fb/mxsfb.txt
> +++ b/Documentation/devicetree/bindings/fb/mxsfb.txt
> @@ -8,9 +8,7 @@ Required properties:
>  - display : phandle to display node (see below for details)
>  
>  Optional properties:
> -- panel-enable-gpios : Should specify the gpio for panel enable
> -
> -* display node
> +- display node
>  
>  Required properties:
>  - bits-per-pixel : <16> for RGB565, <32> for RGB888/666.
> @@ -25,7 +23,6 @@ lcdif at 80030000 {
>  	compatible = "fsl,imx28-lcdif";
>  	reg = <0x80030000 2000>;
>  	interrupts = <38 86>;
> -	panel-enable-gpios = <&gpio3 30 0>;
>  
>  	display: display {
>  		bits-per-pixel = <32>;
> diff --git a/arch/arm/boot/dts/imx23-evk.dts b/arch/arm/boot/dts/imx23-evk.dts
> index 7880e17..28f9766 100644
> --- a/arch/arm/boot/dts/imx23-evk.dts
> +++ b/arch/arm/boot/dts/imx23-evk.dts
> @@ -59,7 +59,7 @@
>  			lcdif at 80030000 {
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&lcdif_24bit_pins_a>;
> -				panel-enable-gpios = <&gpio1 18 0>;
> +				resets = <&gpio_reset 0>;
>  				display = <&display>;
>  				status = "okay";
>  
> @@ -89,6 +89,12 @@
>  			};
>  		};
>  
> +		gpio_reset: gpio-reset {
> +			compatible = "gpio-reset";
> +			reset-gpios = <&gpio1 18 1>;
> +			#reset-cells = <1>;
> +		};
> +
>  		apbx at 80040000 {
>  			pwm: pwm at 80064000 {
>  				pinctrl-names = "default";
> diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts
> index 2d4ea3b..e373dd6 100644
> --- a/arch/arm/boot/dts/imx28-evk.dts
> +++ b/arch/arm/boot/dts/imx28-evk.dts
> @@ -123,7 +123,7 @@
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&lcdif_24bit_pins_a
>  					     &lcdif_pins_evk>;
> -				panel-enable-gpios = <&gpio3 30 0>;
> +				resets = <&gpio_reset 0>;
>  				display = <&display>;
>  				status = "okay";
>  
> @@ -152,6 +152,12 @@
>  				};
>  			};
>  
> +			gpio_reset: gpio-reset {
> +				compatible = "gpio-reset";
> +				reset-gpios = <&gpio3 30 1>;
> +				#reset-cells = <1>;
> +			};
> +
>  			can0: can at 80032000 {
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&can0_pins_a>;

  parent reply	other threads:[~2013-04-04  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 22:01 [PATCH 1/3] ARM: dts: imx28-evk: Use the standard gpio reset binding Fabio Estevam
2013-04-03 22:01 ` [PATCH 2/3] video: mxsfb: Remove custom method for retrieving GPIO Fabio Estevam
2013-04-03 22:01 ` [PATCH 3/3] ARM: mxs_defconfig: Enable CONFIG_RESET_GPIO Fabio Estevam
2013-04-04  7:58 ` Philipp Zabel [this message]
2013-04-04 11:33   ` [PATCH 1/3] ARM: dts: imx28-evk: Use the standard gpio reset binding Fabio Estevam
2013-04-04 11:50     ` Fabio Estevam

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=1365062329.4089.12.camel@pizza.hi.pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).