Skip to contentSkip to conversation

ARM: dts: imx6qdl-sabresd: add regulator control for isl29023 sensor

PATCH Applied Anson Huang 2 participants 5 messages Feb 7, 2019 – Feb 11, 2019

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

PATCH 1/4 ARM: dts: imx6qdl-sabresd: add regulator control for isl29023 sensor

The isl29023 light sensor driver has supported regulator control, assign the power supply for isl29023 to enable the control.

---
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +1 -0
index 8930aec..21e03b1 100644
@@ -449,6 +449,7 @@
 		pinctrl-0 = <&pinctrl_i2c3_isl29023_int>;
 		interrupt-parent = <&gpio3>;
 		interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
+		vcc-supply = <&reg_sensors>;
 	};
 };
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/4 ARM: dts: imx6qdl-sabresd: add regulators control for mag3110 sensor

The mag3110 sensor driver has supported regulators control, assign the power supplies for mag3110 to enable the control.

---
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +2 -0
index 21e03b1..618f186a 100644
@@ -440,6 +440,8 @@
 		pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
 		interrupt-parent = <&gpio3>;
 		interrupts = <16 IRQ_TYPE_EDGE_RISING>;
+		vdd-supply = <&reg_sensors>;
+		vddio-supply = <&reg_sensors>;
 	};
 
 	light-sensor@44 {
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/4 ARM: dts: imx6qdl-sabresd: add regulators control for mma8451 sensor

In reply to Anson Huang

The mma8451 sensor driver has supported regulators control, assign the power supplies for mma8451 to enable the control.

---
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +2 -0
index 618f186a..80b9901 100644
@@ -250,6 +250,8 @@
 		pinctrl-0 = <&pinctrl_i2c1_mma8451_int>;
 		interrupt-parent = <&gpio1>;
 		interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
+		vdd-supply = <&reg_sensors>;
+		vddio-supply = <&reg_sensors>;
 	};
 
 	ov5642: camera@3c {
Signature · 1 line
2.7.4
#3 lore raw

PATCH 4/4 ARM: dts: imx6qdl-sabresd: remove reg_sensors' regulator-always-on

In reply to Anson Huang

Now that all sensors supplied by reg_sensors have supported regulator control, reg_sensors does NOT need to be always ON, remove "regulator-always-on" to save power.

---
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +0 -1
index 80b9901..a070506 100644
@@ -64,7 +64,6 @@
 		regulator-max-microvolt = <3300000>;
 		gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
-		regulator-always-on;
 	};
 
 	gpio-keys {
Signature · 1 line
2.7.4