Skip to contentSkip to conversation

ARM: dts: imx6qdl-zii-rdu2: Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb

PATCH Applied Andrey Smirnov 3 participants 8 messages Oct 22, 2019 – Oct 28, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: dts: imx6qdl-zii-rdu2: Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb

Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb since it is ignored by the gpiolib and results in a warning.

---
 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +1 -1
index 93be00a60c88..8d46f7b2722b 100644
@@ -68,7 +68,7 @@
 		regulator-name = "5V_USER_USB";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
-		gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
+		gpio = <&gpio3 22 0>;
 		startup-delay-us = <1000>;
 	};
 
Signature · 1 line
2.21.0
#1 lore raw

PATCH 2/3 ARM: dts: imx6qdl-zii-rdu2: Fix accelerometer interrupt-names

According to Documentation/devicetree/bindings/iio/accel/mma8452.txt, the correct interrupt-names are "INT1" and "INT2", so fix them accordingly.

While at it, modify the node to only specify "INT2" since providing two interrupts is not necessary or useful (the driver will only use one).

[[email protected] modified the patch to drop INT1]
Cc Fabio Estevam <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Shawn Guo <[email protected]>

---

Original patch from Fabio can be seen here:

https://lore.kernel.org/linux-arm-kernel/[email protected]/

 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +2 -3
index 8d46f7b2722b..a8c86e621b49 100644
@@ -358,8 +358,8 @@
 		compatible = "fsl,mma8451";
 		reg = <0x1c>;
 		interrupt-parent = <&gpio1>;
-		interrupt-names = "int1", "int2";
-		interrupts = <18 IRQ_TYPE_LEVEL_LOW>, <20 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "INT2";
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
 	};
 
 	hpa2: amp@60 {
@@ -849,7 +849,6 @@
 &iomuxc {
 	pinctrl_accel: accelgrp {
 		fsl,pins = <
-			MX6QDL_PAD_SD1_CMD__GPIO1_IO18		0x4001b000
 			MX6QDL_PAD_SD1_CLK__GPIO1_IO20		0x4001b000
 		>;
 	};
Signature · 1 line
2.21.0
Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] ARM: dts: imx6qdl-zii-rdu2: Fix accelerometer interrupt-names

Am Montag, den 21.10.2019, 21:04 -0700 schrieb Andrey Smirnov:

Quoted 11 lines

According to Documentation/devicetree/bindings/iio/accel/mma8452.txt, the correct interrupt-names are "INT1" and "INT2", so fix them accordingly.

While at it, modify the node to only specify "INT2" since providing two interrupts is not necessary or useful (the driver will only use one).

[[email protected] modified the patch to drop INT1]
Quoted 31 lines
Cc Fabio Estevam <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Shawn Guo <[email protected]>

---

Original patch from Fabio can be seen here:

https://lore.kernel.org/linux-arm-kernel/[email protected]/

 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +2 -2
index 8d46f7b2722b..a8c86e621b49 100644
@@ -358,8 +358,8 @@
 		compatible = "fsl,mma8451";
 		reg = <0x1c>;
 		interrupt-parent = <&gpio1>;
-		interrupt-names = "int1", "int2";
-		interrupts = <18 IRQ_TYPE_LEVEL_LOW>, <20 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "INT2";
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
 	};
 
 	hpa2: amp@60 {

arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi line 854

Quoted 7 lines
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +0 -1
@@ -849,7 +849,6 @@
 &iomuxc {
 	pinctrl_accel: accelgrp {
 		fsl,pins = <
-			MX6QDL_PAD_SD1_CMD__GPIO1_IO18		0x4001b000
 			MX6QDL_PAD_SD1_CLK__GPIO1_IO20		0x4001b000
 		>;
 	};

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Applied
#3 lore raw

Re: [PATCH 2/3] ARM: dts: imx6qdl-zii-rdu2: Fix accelerometer interrupt-names

In reply to Andrey Smirnov
Quoted 8 lines · Andrey Smirnov

According to Documentation/devicetree/bindings/iio/accel/mma8452.txt, the correct interrupt-names are "INT1" and "INT2", so fix them accordingly.

While at it, modify the node to only specify "INT2" since providing two interrupts is not necessary or useful (the driver will only use one).

Quoted 9 lines
[[email protected] modified the patch to drop INT1]
Cc Fabio Estevam <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Shawn Guo <[email protected]>

Applied, thanks.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

PATCH 3/3 ARM: dts: imx6qdl-zii-rdu2: Specify supplies for accelerometer

In reply to Andrey Smirnov

Specify 'vdd' and 'vddio' supplies for accelerometer to avoid warnings during boot.

---
 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +2 -0
index a8c86e621b49..42c0a728216d 100644
@@ -360,6 +360,8 @@
 		interrupt-parent = <&gpio1>;
 		interrupt-names = "INT2";
 		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		vdd-supply = <&reg_3p3v>;
+		vddio-supply = <&reg_3p3v>;
 	};
 
 	hpa2: amp@60 {
Signature · 1 line
2.21.0
Reviewed-by on v1 3/3
#5 lore raw

Re: [PATCH 3/3] ARM: dts: imx6qdl-zii-rdu2: Specify supplies for accelerometer

Am Montag, den 21.10.2019, 21:05 -0700 schrieb Andrey Smirnov:

Quoted 4 lines

Specify 'vdd' and 'vddio' supplies for accelerometer to avoid warnings during boot.

Quoted 15 lines
Cc Fabio Estevam <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +0 -0
index a8c86e621b49..42c0a728216d 100644

arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi line 367

Quoted 8 lines
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +2 -0
@@ -360,6 +360,8 @@
 		interrupt-parent = <&gpio1>;
 		interrupt-names = "INT2";
 		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		vdd-supply = <&reg_3p3v>;
+		vddio-supply = <&reg_3p3v>;
 	};
 
 	hpa2: amp@60 {

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Applied
#6 lore raw

Re: [PATCH 3/3] ARM: dts: imx6qdl-zii-rdu2: Specify supplies for accelerometer

In reply to Andrey Smirnov
Quoted 10 lines · Andrey Smirnov

Specify 'vdd' and 'vddio' supplies for accelerometer to avoid warnings during boot.

Applied, thanks.

#7 lore raw
In reply to Andrey Smirnov

Am Montag, den 21.10.2019, 21:04 -0700 schrieb Andrey Smirnov:

Quoted 2 lines

Drop GPIO_ACTIVE_LOW form reg_5p0v_user_usb since it is ignored by the gpiolib and results in a warning.

NACK. This is consistent with the regulator binding behavior and a fix to gpiolib has been accepted to not print a warning in this case.

Regards,
Lucas

Quoted 24 lines
---
 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +1 -1
index 93be00a60c88..8d46f7b2722b 100644
@@ -68,7 +68,7 @@
 		regulator-name = "5V_USER_USB";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
-		gpio = <&gpio3 22 GPIO_ACTIVE_LOW>;
+		gpio = <&gpio3 22 0>;
 		startup-delay-us = <1000>;
 	};