[PATCHv2] Introduce the CFA-10049 expansion board

4 messages, 2 authors, 2012-09-03 · open the first message on its own page

[PATCHv2] Introduce the CFA-10049 expansion board

From: Maxime Ripard <hidden>
Date: 2012-08-31 14:00:39

Hi everyone,

Here is a patchset to introduce the CFA-10049 expansion board to the CFA-10036
module.

This expansion board has a number of ADCs and DACs, stepper drivers, GPIO
expanders, a LCD touchscreen and fans. Support for those will come eventually.

We only support the I2C bus for now, that is used for ADCs behind a i2c muxer
and a GPIO expander.


Thanks,
Maxime

[PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28

From: Maxime Ripard <hidden>
Date: 2012-08-31 14:00:40

Signed-off-by: Maxime Ripard <redacted>
---
 arch/arm/boot/dts/imx28.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 60d10d7..7d156ee 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -421,6 +421,17 @@
 					fsl,pull-up = <1>;
 				};
 
+				i2c1_pins_a: i2c1 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <
+						0x3101 /* MX28_PAD_PWM0__I2C1_SCL */
+						0x3111 /* MX28_PAD_PWM1__I2C1_SDA */
+					>;
+					fsl,drive-strength = <1>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
+
 				saif0_pins_a: saif0 at 0 {
 					reg = <0>;
 					fsl,pinmux-ids = <
-- 
1.7.9.5

[PATCH 2/2] ARM: dts: mxs: Add the second I2C adapter to the CFA10049 expansion board

From: Maxime Ripard <hidden>
Date: 2012-08-31 14:00:41

Signed-off-by: Maxime Ripard <redacted>
---
 arch/arm/boot/dts/imx28-cfa10049.dts |   31 +++++++++++++++++++++++++++++++
 arch/arm/mach-mxs/Makefile.boot      |    1 +
 2 files changed, 32 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx28-cfa10049.dts
diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts
new file mode 100644
index 0000000..e0e4b8c
--- /dev/null
+++ b/arch/arm/boot/dts/imx28-cfa10049.dts
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2012 Free Electrons
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/*
+ * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
+ * need to include the CFA-10036 DTS.
+ */
+/include/ "imx28-cfa10036.dts"
+
+/ {
+	model = "Crystalfontz CFA-10049 Board";
+	compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
+
+	apb at 80000000 {
+		apbx at 80040000 {
+			i2c1: i2c at 8005a000 {
+				pinctrl-names = "default";
+				pinctrl-0 = <&i2c1_pins_a>;
+				status = "okay";
+			};
+		};
+	};
+};
diff --git a/arch/arm/mach-mxs/Makefile.boot b/arch/arm/mach-mxs/Makefile.boot
index 4582999..8bd23a8 100644
--- a/arch/arm/mach-mxs/Makefile.boot
+++ b/arch/arm/mach-mxs/Makefile.boot
@@ -5,6 +5,7 @@ dtb-y += imx23-evk.dtb \
 	 imx23-stmp378x_devb.dtb \
 	 imx28-apx4devkit.dtb \
 	 imx28-cfa10036.dtb \
+	 imx28-cfa10049.dtb \
 	 imx28-evk.dtb \
 	 imx28-m28evk.dtb \
 	 imx28-tx28.dtb \
-- 
1.7.9.5

[PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28

From: Shawn Guo <hidden>
Date: 2012-09-03 02:27:55

On Fri, Aug 31, 2012 at 04:00:40PM +0200, Maxime Ripard wrote:
Signed-off-by: Maxime Ripard <redacted>
Applied both, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help