diff mbox

ARM: dts: omap4-droid4: Add isl29030 ALS/proximity sensor

Message ID 20170502080301.18111-1-sebastian.reichel@collabora.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Sebastian Reichel May 2, 2017, 8:03 a.m. UTC
The Droid 4 has a isl29030 to measure ambient light (e.g. for
automatically adapting display brightness) and proximity.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
Hi,

The (trivial) driver changes have already been queued to iio-testing:

https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=e530cc8408770e6451e4d5c5e8a2a45132689cc1

-- Sebastian
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Sebastian Reichel June 8, 2017, 9:20 p.m. UTC | #1
Hi,

I think this fell through the cracks?

-- Sebastian

On Tue, May 02, 2017 at 10:03:01AM +0200, Sebastian Reichel wrote:
> The Droid 4 has a isl29030 to measure ambient light (e.g. for
> automatically adapting display brightness) and proximity.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> ---
> Hi,
> 
> The (trivial) driver changes have already been queued to iio-testing:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=e530cc8408770e6451e4d5c5e8a2a45132689cc1
> 
> -- Sebastian
> ---
>  arch/arm/boot/dts/omap4-droid4-xt894.dts | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> index 89eb607f4a9e..1ad442ee6f30 100644
> --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
> +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> @@ -348,6 +348,17 @@
>  		interrupt-names = "irq", "wakeup";
>  		wakeup-source;
>  	};
> +
> +	isl29030@44 {
> +		compatible = "isil,isl29030";
> +		reg = <0x44>;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&als_proximity_pins>;
> +
> +		interrupt-parent = <&gpio6>;
> +		interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
> +	};
>  };
>  
>  &omap4_pmx_core {
> @@ -395,6 +406,12 @@
>  		>;
>  	};
>  
> +	als_proximity_pins: pinmux_als_proximity_pins {
> +		pinctrl-single,pins = <
> +		OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
> +		>;
> +	};
> +
>  	usb_ulpi_pins: pinmux_usb_ulpi_pins {
>  		pinctrl-single,pins = <
>  		OMAP4_IOPAD(0x196, MUX_MODE7)
> -- 
> 2.11.0
>
Tony Lindgren June 12, 2017, 7:09 a.m. UTC | #2
* Sebastian Reichel <sre@kernel.org> [170608 14:23]:
> Hi,
> 
> I think this fell through the cracks?

Yes so it seems, sorry about that. Applying into omap-for-v4.13/dt.

Thanks,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index 89eb607f4a9e..1ad442ee6f30 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -348,6 +348,17 @@ 
 		interrupt-names = "irq", "wakeup";
 		wakeup-source;
 	};
+
+	isl29030@44 {
+		compatible = "isil,isl29030";
+		reg = <0x44>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&als_proximity_pins>;
+
+		interrupt-parent = <&gpio6>;
+		interrupts = <17 IRQ_TYPE_LEVEL_LOW>; /* gpio177 */
+	};
 };
 
 &omap4_pmx_core {
@@ -395,6 +406,12 @@ 
 		>;
 	};
 
+	als_proximity_pins: pinmux_als_proximity_pins {
+		pinctrl-single,pins = <
+		OMAP4_IOPAD(0x18c, PIN_INPUT_PULLUP | MUX_MODE3)
+		>;
+	};
+
 	usb_ulpi_pins: pinmux_usb_ulpi_pins {
 		pinctrl-single,pins = <
 		OMAP4_IOPAD(0x196, MUX_MODE7)