Skip to content

Commit

Permalink
ARM: dts: omap4-droid4: Add isl29030 ALS/proximity sensor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Reichel authored and Tony Lindgren committed Jun 12, 2017
1 parent de09eb5 commit 6f0b0c0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm/boot/dts/omap4-droid4-xt894.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6f0b0c0

Please sign in to comment.