ARM: dta: omap3-gta04: Define and use hmc5843 irq pin
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 17 May 2016 19:48:50 +0000 (21:48 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Jun 2016 11:58:06 +0000 (04:58 -0700)
Define pinmux and usage if irq pin.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-gta04.dtsi

index 094e5e14fb3db6c14a22cff24fdc941ce3c51aa9..55b6b884dd3be9a0d8fca9ed5dd3f91f1f13f43a 100644 (file)
                        OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
                >;
        };
+
+       hmc5843_pins: pinmux_hmc5843_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
+               >;
+       };
 };
 
 &omap3_pmx_core2 {
        hmc5843@1e {
                compatible = "honeywell,hmc5883l";
                reg = <0x1e>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&hmc5843_pins>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <16 IRQ_TYPE_EDGE_FALLING>;        /* gpio112 */
        };
 
        /* touchscreen */
This page took 0.030159 seconds and 5 git commands to generate.