All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ARM: dts: imx23-sansa: Remove 'enable-active-low' property
@ 2017-05-23 15:32 Fabio Estevam
  2017-05-23 15:32 ` [PATCH v2 2/2] ARM: dts: tx6: " Fabio Estevam
  2017-05-25  7:56 ` [PATCH v2 1/2] ARM: dts: imx23-sansa: " Shawn Guo
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2017-05-23 15:32 UTC (permalink / raw)
  To: linux-arm-kernel

Property 'enable-active-low' does not exist. Only 'enable-active-high' is
valid, and when this property is absent the gpio regulator will act as
active low by default.

So remove the unexisting 'enable-active-low' property. 

Currently the GPIO flag is 0, which means active-high. In order to make
the dts description accurate, pass the GPIO_ACTIVE_LOW flag instead.

This change is safe because the gpio regulator driver does not take the
GPIO flag polarity into account.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- Improve commit log and explain why this change is safe (Stefan).

 arch/arm/boot/dts/imx23-sansa.dts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/imx23-sansa.dts b/arch/arm/boot/dts/imx23-sansa.dts
index 4ec32f4..221fd55 100644
--- a/arch/arm/boot/dts/imx23-sansa.dts
+++ b/arch/arm/boot/dts/imx23-sansa.dts
@@ -42,6 +42,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
 #include "imx23.dtsi"
 
 / {
@@ -149,9 +150,8 @@
 		regulator-name = "vdd-touchpad0";
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
-		gpio = <&gpio0 26 0>;
+		gpio = <&gpio0 26 GPIO_ACTIVE_LOW>;
 		regulator-always-on;
-		enable-active-low;
 	};
 
 	reg_vdd_tuner: regulator-vdd-tuner0 {
@@ -159,9 +159,8 @@
 		regulator-name = "vdd-tuner0";
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
-		gpio = <&gpio0 29 0>;
+		gpio = <&gpio0 29 GPIO_ACTIVE_LOW>;
 		regulator-always-on;
-		enable-active-low;
 	};
 
 	backlight {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: dts: tx6: Remove 'enable-active-low' property
  2017-05-23 15:32 [PATCH v2 1/2] ARM: dts: imx23-sansa: Remove 'enable-active-low' property Fabio Estevam
@ 2017-05-23 15:32 ` Fabio Estevam
  2017-05-24  9:07   ` Lothar Waßmann
  2017-05-25  7:56 ` [PATCH v2 1/2] ARM: dts: imx23-sansa: " Shawn Guo
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2017-05-23 15:32 UTC (permalink / raw)
  To: linux-arm-kernel

Property 'enable-active-low' does not exist. Only 'enable-active-high' is
valid, and when this property is absent the gpio regulator will act as
active low by default.

So remove the unexisting 'enable-active-low' property. 

Currently the GPIO flag is GPIO_ACTIVE_HIGH. In order to make
the dts description accurate, pass the GPIO_ACTIVE_LOW flag instead.

This change is safe because the gpio regulator driver does not take the
GPIO flag polarity into account.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- Improve commit log and explain why this change is safe (Stefan).

 arch/arm/boot/dts/imx6qdl-tx6.dtsi  | 3 +--
 arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
index 1691714..a146fe7 100644
--- a/arch/arm/boot/dts/imx6qdl-tx6.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
@@ -133,8 +133,7 @@
 		regulator-max-microvolt = <3300000>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_flexcan_xcvr>;
-		gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
-		enable-active-low;
+		gpio = <&gpio4 21 GPIO_ACTIVE_LOW>;
 	};
 
 	reg_lcd0_pwr: regulator-lcd0-pwr {
diff --git a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
index c784a0b..4ccc9e9 100644
--- a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
+++ b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
@@ -173,8 +173,7 @@
 		regulator-max-microvolt = <3300000>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_flexcan_xcvr>;
-		gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
-		enable-active-low;
+		gpio = <&gpio3 5 GPIO_ACTIVE_LOW>;
 	};
 
 	reg_lcd_pwr: regulator-lcdpwr {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: dts: tx6: Remove 'enable-active-low' property
  2017-05-23 15:32 ` [PATCH v2 2/2] ARM: dts: tx6: " Fabio Estevam
@ 2017-05-24  9:07   ` Lothar Waßmann
  0 siblings, 0 replies; 4+ messages in thread
From: Lothar Waßmann @ 2017-05-24  9:07 UTC (permalink / raw)
  To: linux-arm-kernel

Fabio Estevam <fabio.estevam@nxp.com> wrote:

> Property 'enable-active-low' does not exist. Only 'enable-active-high' is
> valid, and when this property is absent the gpio regulator will act as
> active low by default.
> 
> So remove the unexisting 'enable-active-low' property. 
> 
> Currently the GPIO flag is GPIO_ACTIVE_HIGH. In order to make
> the dts description accurate, pass the GPIO_ACTIVE_LOW flag instead.
> 
> This change is safe because the gpio regulator driver does not take the
> GPIO flag polarity into account.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - Improve commit log and explain why this change is safe (Stefan).
> 
>  arch/arm/boot/dts/imx6qdl-tx6.dtsi  | 3 +--
>  arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 3 +--
>  2 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> index 1691714..a146fe7 100644
> --- a/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> @@ -133,8 +133,7 @@
>  		regulator-max-microvolt = <3300000>;
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&pinctrl_flexcan_xcvr>;
> -		gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
> -		enable-active-low;
> +		gpio = <&gpio4 21 GPIO_ACTIVE_LOW>;
>  	};
>  
>  	reg_lcd0_pwr: regulator-lcd0-pwr {
> diff --git a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> index c784a0b..4ccc9e9 100644
> --- a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> +++ b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> @@ -173,8 +173,7 @@
>  		regulator-max-microvolt = <3300000>;
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&pinctrl_flexcan_xcvr>;
> -		gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
> -		enable-active-low;
> +		gpio = <&gpio3 5 GPIO_ACTIVE_LOW>;
>  	};
>  
>  	reg_lcd_pwr: regulator-lcdpwr {

Acked-by: Lothar Wa?mann <LW@KARO-electronics.de>

Thanks for the cleanup,
Lothar Wa?mann
-- 
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Gesch?ftsf?hrer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] ARM: dts: imx23-sansa: Remove 'enable-active-low' property
  2017-05-23 15:32 [PATCH v2 1/2] ARM: dts: imx23-sansa: Remove 'enable-active-low' property Fabio Estevam
  2017-05-23 15:32 ` [PATCH v2 2/2] ARM: dts: tx6: " Fabio Estevam
@ 2017-05-25  7:56 ` Shawn Guo
  1 sibling, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2017-05-25  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, May 23, 2017 at 12:32:43PM -0300, Fabio Estevam wrote:
> Property 'enable-active-low' does not exist. Only 'enable-active-high' is
> valid, and when this property is absent the gpio regulator will act as
> active low by default.
> 
> So remove the unexisting 'enable-active-low' property. 
> 
> Currently the GPIO flag is 0, which means active-high. In order to make
> the dts description accurate, pass the GPIO_ACTIVE_LOW flag instead.
> 
> This change is safe because the gpio regulator driver does not take the
> GPIO flag polarity into account.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Applied both, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-25  7:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 15:32 [PATCH v2 1/2] ARM: dts: imx23-sansa: Remove 'enable-active-low' property Fabio Estevam
2017-05-23 15:32 ` [PATCH v2 2/2] ARM: dts: tx6: " Fabio Estevam
2017-05-24  9:07   ` Lothar Waßmann
2017-05-25  7:56 ` [PATCH v2 1/2] ARM: dts: imx23-sansa: " Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.