All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2] Introduce the CFA-10049 expansion board
@ 2012-08-31 14:00 Maxime Ripard
  2012-08-31 14:00 ` [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28 Maxime Ripard
  2012-08-31 14:00 ` [PATCH 2/2] ARM: dts: mxs: Add the second I2C adapter to the CFA10049 expansion board Maxime Ripard
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Ripard @ 2012-08-31 14:00 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28
  2012-08-31 14:00 [PATCHv2] Introduce the CFA-10049 expansion board Maxime Ripard
@ 2012-08-31 14:00 ` Maxime Ripard
  2012-09-03  2:27   ` Shawn Guo
  2012-08-31 14:00 ` [PATCH 2/2] ARM: dts: mxs: Add the second I2C adapter to the CFA10049 expansion board Maxime Ripard
  1 sibling, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2012-08-31 14:00 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: mxs: Add the second I2C adapter to the CFA10049 expansion board
  2012-08-31 14:00 [PATCHv2] Introduce the CFA-10049 expansion board Maxime Ripard
  2012-08-31 14:00 ` [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28 Maxime Ripard
@ 2012-08-31 14:00 ` Maxime Ripard
  1 sibling, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2012-08-31 14:00 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28
  2012-08-31 14:00 ` [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28 Maxime Ripard
@ 2012-09-03  2:27   ` Shawn Guo
  0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2012-09-03  2:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Aug 31, 2012 at 04:00:40PM +0200, Maxime Ripard wrote:
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Applied both, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-03  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-31 14:00 [PATCHv2] Introduce the CFA-10049 expansion board Maxime Ripard
2012-08-31 14:00 ` [PATCH 1/2] ARM: dts: mxs: Add alternative I2C muxing options for imx28 Maxime Ripard
2012-09-03  2:27   ` Shawn Guo
2012-08-31 14:00 ` [PATCH 2/2] ARM: dts: mxs: Add the second I2C adapter to the CFA10049 expansion board Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.