ARM: at91: at91sam9n12: add qt1070 support
authorvoice <voice.shen@atmel.com>
Thu, 11 Jul 2013 03:30:45 +0000 (11:30 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 21 Aug 2013 09:29:30 +0000 (11:29 +0200)
Add qt1070 support on at91sam9n12ek board.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91sam9n12ek.dts

index d59b70c6a6a0dbadafcded2baaba38f12270aff4..7a95a2873fd771fc2aaefeefbfb5f3818ca3c137 100644 (file)
 
                        i2c0: i2c@f8010000 {
                                status = "okay";
+
+                               qt1070: keyboard@1b {
+                                       compatible = "qt1070";
+                                       reg = <0x1b>;
+                                       interrupt-parent = <&pioA>;
+                                       interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
+                                       pinctrl-names = "default";
+                                       pinctrl-0 = <&pinctrl_qt1070_irq>;
+                               };
                        };
 
                        i2c1: i2c@f8014000 {
                                                        <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;   /* PA7 gpio CD pin pull up and deglitch */
                                        };
                                };
+
+                               qt1070 {
+                                       pinctrl_qt1070_irq: qt1070_irq {
+                                               atmel,pins =
+                                                       <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
+                                       };
+                               };
                        };
 
                        spi0: spi@f0000000 {