]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ARM: dts: omap4-droid4: Add isl29030 ALS/proximity sensor
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Tue, 2 May 2017 08:03:01 +0000 (10:03 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 12 Jun 2017 07:08:22 +0000 (00:08 -0700)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-droid4-xt894.dts

index 13f8d86402083808e8b7c3bfa5f5333de05d2556..935af4e8b33ce8fb881500891e87c433419f715f 100644 (file)
                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 {
                >;
        };
 
+       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)