]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ARM: mxs: dts: Add rotary encoder to the CFA-10049
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 31 Jan 2013 10:00:24 +0000 (11:00 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 31 Jan 2013 14:31:19 +0000 (22:31 +0800)
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx28-cfa10049.dts

index 5db3789b26be8f449b3b716b1cb5c385f3859245..a0d3e9f1738e097326594f2291283b15ebf1897d 100644 (file)
@@ -45,6 +45,8 @@
                                        reg = <0>;
                                        fsl,pinmux-ids = <
                                                0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
+                                               0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
+                                               0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
                                                0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
                                                0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
                                        >;
                };
        };
 
+       rotary {
+               compatible = "rotary-encoder";
+               gpios = <&gpio3 24 1>, <&gpio3 25 1>;
+               linux,axis = <1>; /* REL_Y */
+               rotary-encoder,relative-axis;
+       };
+
        backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm 3 5000000>;