[PATCH 2/2] ARM: mxs: dts: Add rotary encoder to the CFA-10049

2013-01-31 Thread Maxime Ripard
Signed-off-by: Maxime Ripard 
---
 arch/arm/boot/dts/imx28-cfa10049.dts |9 +
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts 
b/arch/arm/boot/dts/imx28-cfa10049.dts
index 5db3789..a0d3e9f 100644
--- a/arch/arm/boot/dts/imx28-cfa10049.dts
+++ b/arch/arm/boot/dts/imx28-cfa10049.dts
@@ -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 */
>;
@@ -290,6 +292,13 @@
};
};
 
+   rotary {
+   compatible = "rotary-encoder";
+   gpios = < 24 1>, < 25 1>;
+   linux,axis = <1>; /* REL_Y */
+   rotary-encoder,relative-axis;
+   };
+
backlight {
compatible = "pwm-backlight";
pwms = < 3 500>;
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] ARM: mxs: dts: Add rotary encoder to the CFA-10049

2013-01-31 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com
---
 arch/arm/boot/dts/imx28-cfa10049.dts |9 +
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts 
b/arch/arm/boot/dts/imx28-cfa10049.dts
index 5db3789..a0d3e9f 100644
--- a/arch/arm/boot/dts/imx28-cfa10049.dts
+++ b/arch/arm/boot/dts/imx28-cfa10049.dts
@@ -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 */
;
@@ -290,6 +292,13 @@
};
};
 
+   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 500;
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/