Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a9a45de authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: sensors: interrupt and power enabling pins are optional"

parents 73e675ce 42f41720
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -8,27 +8,22 @@ Required properties:
 - interrupts		: Gyrometer sample interrupt to indicate new data ready.
 - vdd-supply		: Analog power supply needed to power device.
 - vlogic-supply	: Digital IO power supply needed for IO and I2C.
 - invn,gpio-int	: GPIO used for interrupt.
 - invn,gpio-en		: GPIO used for power enabling.

Optional properties:

 - invn,use-interrupt	: use device interrupt to trigger data acquisition
			instead of polling data.
 - invn,gpio-int	: GPIO used for interrupt.
 - invn,gpio-en		: GPIO used for power enabling.

Example:
	i2c@f9925000 {
		mpu6050@68 {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			reg = <0x68>;
			compatible = "invn,mpu3050";
			interrupt-parent = <&msmgpio>;
			compatible = "invn,mpu6050";
			interrupt-parent = <&msm_gpio>;
			interrupts = <84 0x2>;
			vlogic-supply = <&pm8110_l14>;
			vdd-supply = <&pm8110_l19>;
			invn,gpio-int = <&msmgpio 84 0x2>;
			invn,gpio-en = <&pm8110_gpios 2 0x2>;
			vlogic-supply = <&pm8916_l17>;
			vdd-supply = <&pm8916_l6>;
		};
	};
+0 −2
Original line number Diff line number Diff line
@@ -1093,8 +1093,6 @@ static int mpu6050_parse_dt(struct device *dev,

	pdata->gpio_en = of_get_named_gpio_flags(dev->of_node,
				"invn,gpio-en", 0, NULL);
	if (!gpio_is_valid(pdata->gpio_en))
		return -EINVAL;

	pdata->use_int = of_property_read_bool(dev->of_node,
				"invn,use-interrupt");