linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices
@ 2012-12-19 13:33 Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-12-19 13:33 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Jon Hunter, Matthias Brugger, linux-omap,
	linux-arm-kernel

IGEP technology devices are TI OMAP3 SoC based industrial embedded
and computer-on-module boards. This patch-set adds initial device
tree support for these devices.

The device trees allows to boot from an MMC and are working all the
components that already have device tree support on OMAP3 SoCs:

- MMC/SD
- UARTs
- GPIO LEDs
- TWL4030 codec audio
- pinmux/pinconf pinctrl

Some peripheral are still not working such as Flash storage and
Ethernet but support for these will also be included once the
OMAP GPMC device tree binding patches land on mainline.

This is a v4 of the patch-set that adds MMC mux pins setup and
fixes a build issue due recent changes on twl4030.dtsi.

The patch-set is composed of the following patches:

[PATCH v4 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
[PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board
[PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module

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

* [PATCH v4 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-12-19 13:33 [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
@ 2012-12-19 13:33 ` Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-12-19 13:33 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Jon Hunter, Matthias Brugger, linux-omap,
	linux-arm-kernel, Javier Martinez Canillas

Add a generic .dtsi device tree source file for the
common characteristics across IGEP Technology devices.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>
---

Changes since v3:
    - Remove VSIM regulator definition since now exists on twl4030.dtsi.
    - Add mux pins configuration for MMC device node.

Changes since v2:
    - Associate uart3_pins in uart3 device node.
    - Remove mcbsp2_ins for now until SMSC9221 Ethernet support is added.

 arch/arm/boot/dts/omap3-igep.dtsi |   98 +++++++++++++++++++++++++++++++++++++
 1 files changed, 98 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-igep.dtsi

diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi
new file mode 100644
index 0000000..100eb41
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-igep.dtsi
@@ -0,0 +1,98 @@
+/*
+ * Device Tree Source for IGEP Technology devices
+ *
+ * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
+ * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+/include/ "omap3.dtsi"
+
+/ {
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x20000000>; /* 512 MB */
+	};
+
+	sound {
+		compatible = "ti,omap-twl4030";
+		ti,model = "igep2";
+		ti,mcbsp = <&mcbsp2>;
+		ti,codec = <&twl_audio>;
+	};
+};
+
+&omap3_pmx_core {
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			0x16e 0x100	/* uart3_rx.uart3_rx INPUT | MODE0 */
+			0x170 0		/* uart3_tx.uart3_tx OUTPUT | MODE0 */
+		>;
+	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			0x114 0x0118    /* sdmmc1_clk.sdmmc1_clk INPUT PULLUP | MODE 0 */
+			0x116 0x0118    /* sdmmc1_cmd.sdmmc1_cmd INPUT PULLUP | MODE 0 */
+			0x118 0x0118 	/* sdmmc1_dat0.sdmmc1_dat0 INPUT PULLUP | MODE 0 */
+			0x11a 0x0118	/* sdmmc1_dat1.sdmmc1_dat1 INPUT PULLUP | MODE 0 */
+			0x11c 0x0118	/* sdmmc1_dat2.sdmmc1_dat2 INPUT PULLUP | MODE 0 */
+			0x11e 0x0118	/* sdmmc1_dat3.sdmmc1_dat3 INPUT PULLUP | MODE 0 */
+			0x120 0x0100	/* sdmmc1_dat4.sdmmc1_dat4 INPUT | MODE 0 */
+			0x122 0x0100	/* sdmmc1_dat5.sdmmc1_dat5 INPUT | MODE 0 */
+			0x124 0x0100	/* sdmmc1_dat6.sdmmc1_dat6 INPUT | MODE 0 */
+			0x126 0x0100	/* sdmmc1_dat7.sdmmc1_dat7 INPUT | MODE 0 */
+		>;
+	};
+};
+
+&i2c1 {
+	clock-frequency = <2600000>;
+
+	twl: twl@48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+
+		twl_audio: audio {
+			compatible = "ti,twl4030-audio";
+			codec {
+			      };
+		};
+	};
+};
+
+/include/ "twl4030.dtsi"
+
+&i2c2 {
+	clock-frequency = <400000>;
+};
+
+&mmc1 {
+      pinctrl-names = "default";
+      pinctrl-0 = <&mmc1_pins>;
+      vmmc-supply = <&vmmc1>;
+      vmmc_aux-supply = <&vsim>;
+      bus-width = <8>;
+};
+
+&mmc2 {
+	status = "disabled";
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+&uart3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart3_pins>;
+};
+
+&twl_gpio {
+	ti,use-leds;
+};
-- 
1.7.7.6


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

* [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board
  2012-12-19 13:33 [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
@ 2012-12-19 13:33 ` Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
  2013-01-08 16:13 ` [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
  3 siblings, 0 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-12-19 13:33 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Jon Hunter, Matthias Brugger, linux-omap,
	linux-arm-kernel, Javier Martinez Canillas

ISEE IGEPv2 is an TI OMAP3 SoC based embedded board.

This patch adds an initial device tree support to boot
an IGEPv2 from the MMC/SD.

Currently is working everything that is supported by DT
on OMAP3 SoCs (MMC/SD, GPIO LEDs, EEPROM, TWL4030 audio).

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>
---

Changes since v1:
    - Use default-state = "on" instead default-trigger = "default-on" for LED

 arch/arm/boot/dts/Makefile           |    1 +
 arch/arm/boot/dts/omap3-igep0020.dts |   56 ++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-igep0020.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 0f44174..24b28ba 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -106,6 +106,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap3-beagle-xm.dtb \
 	omap3-evm.dtb \
 	omap3-tobi.dtb \
+	omap3-igep0020.dtb \
 	omap4-panda.dtb \
 	omap4-panda-es.dtb \
 	omap4-var-som.dtb \
diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
new file mode 100644
index 0000000..e2b9849
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-igep0020.dts
@@ -0,0 +1,56 @@
+/*
+ * Device Tree Source for IGEPv2 board
+ *
+ * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
+ * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/include/ "omap3-igep.dtsi"
+
+/ {
+	model = "IGEPv2";
+	compatible = "isee,omap3-igep0020", "ti,omap3";
+
+	leds {
+		compatible = "gpio-leds";
+		boot {
+			 label = "omap3:green:boot";
+			 gpios = <&gpio1 26 0>;
+			 default-state = "on";
+		};
+
+		user0 {
+			 label = "omap3:red:user0";
+			 gpios = <&gpio1 27 0>;
+			 default-state = "off";
+		};
+
+		user1 {
+			 label = "omap3:red:user1";
+			 gpios = <&gpio1 28 0>;
+			 default-state = "off";
+		};
+
+		user2 {
+			label = "omap3:green:user1";
+			gpios = <&twl_gpio 19 1>;
+		};
+	};
+};
+
+&i2c3 {
+	clock-frequency = <100000>;
+
+	/*
+	 * Display monitor features are burnt in the EEPROM
+	 * as EDID data.
+	 */
+	eeprom@50 {
+		compatible = "ti,eeprom";
+		reg = <0x50>;
+	};
+};
-- 
1.7.7.6


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

* [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module
  2012-12-19 13:33 [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
  2012-12-19 13:33 ` [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
@ 2012-12-19 13:33 ` Javier Martinez Canillas
  2013-01-08 16:13 ` [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
  3 siblings, 0 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-12-19 13:33 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Jon Hunter, Matthias Brugger, linux-omap,
	linux-arm-kernel, Javier Martinez Canillas

ISEE IGEP COM Module is an TI OMAP3 SoC computer on module.

This patch adds an initial device tree support to boot an
IGEP COM Module from the MMC/SD.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>
---

Changes since v1:
    - Use default-state = "on" instead default-trigger = "default-on" for LED
    - Update GPIO mapping according to latest IGEP COM Module rev.E instead D

 arch/arm/boot/dts/Makefile           |    1 +
 arch/arm/boot/dts/omap3-igep0030.dts |   44 ++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-igep0030.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 24b28ba..8880c55 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -107,6 +107,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap3-evm.dtb \
 	omap3-tobi.dtb \
 	omap3-igep0020.dtb \
+	omap3-igep0030.dtb \
 	omap4-panda.dtb \
 	omap4-panda-es.dtb \
 	omap4-var-som.dtb \
diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts
new file mode 100644
index 0000000..9dc48d2
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-igep0030.dts
@@ -0,0 +1,44 @@
+/*
+ * Device Tree Source for IGEP COM Module
+ *
+ * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
+ * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/include/ "omap3-igep.dtsi"
+
+/ {
+	model = "IGEP COM Module";
+	compatible = "isee,omap3-igep0030", "ti,omap3";
+
+	leds {
+		compatible = "gpio-leds";
+		boot {
+			 label = "omap3:green:boot";
+			 gpios = <&twl_gpio 13 1>;
+			 default-state = "on";
+		};
+
+		user0 {
+			 label = "omap3:red:user0";
+			 gpios = <&twl_gpio 18 1>; /* LEDA */
+			 default-state = "off";
+		};
+
+		user1 {
+			 label = "omap3:green:user1";
+			 gpios = <&twl_gpio 19 1>; /* LEDB */
+			 default-state = "off";
+		};
+
+		user2 {
+			 label = "omap3:red:user1";
+			 gpios = <&gpio1 16 1>;
+			 default-state = "off";
+		};
+	};
+};
-- 
1.7.7.6


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

* Re: [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices
  2012-12-19 13:33 [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
                   ` (2 preceding siblings ...)
  2012-12-19 13:33 ` [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
@ 2013-01-08 16:13 ` Benoit Cousson
  2013-01-08 16:19   ` Javier Martinez Canillas
  3 siblings, 1 reply; 6+ messages in thread
From: Benoit Cousson @ 2013-01-08 16:13 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Jon Hunter, Matthias Brugger, linux-omap,
	linux-arm-kernel

Hi Javier,

On 12/19/2012 02:33 PM, Javier Martinez Canillas wrote:
> IGEP technology devices are TI OMAP3 SoC based industrial embedded
> and computer-on-module boards. This patch-set adds initial device
> tree support for these devices.
> 
> The device trees allows to boot from an MMC and are working all the
> components that already have device tree support on OMAP3 SoCs:
> 
> - MMC/SD
> - UARTs
> - GPIO LEDs
> - TWL4030 codec audio
> - pinmux/pinconf pinctrl
> 
> Some peripheral are still not working such as Flash storage and
> Ethernet but support for these will also be included once the
> OMAP GPMC device tree binding patches land on mainline.
> 
> This is a v4 of the patch-set that adds MMC mux pins setup and
> fixes a build issue due recent changes on twl4030.dtsi.
> 
> The patch-set is composed of the following patches:
> 
> [PATCH v4 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
> [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board
> [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module

I've just applied your series for 3.9 on top of 3.8-rc2 and had to update the Makefile that was different in the base you used. At the same time I updated the subjects to use "ARM: dts:" prefix to be compliant with the latest trend :-)

The patches are available here:
git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git for_3.9/dts

Regards,
Benoit



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

* Re: [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices
  2013-01-08 16:13 ` [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
@ 2013-01-08 16:19   ` Javier Martinez Canillas
  0 siblings, 0 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2013-01-08 16:19 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Ezequiel Garcia, Matthias Brugger, Tony Lindgren, grant.likely,
	Enric Balletbo i Serra, Jon Hunter, linux-omap,
	Javier Martinez Canillas, linux-arm-kernel

On Tue, Jan 8, 2013 at 5:13 PM, Benoit Cousson <b-cousson@ti.com> wrote:
> Hi Javier,
>
> On 12/19/2012 02:33 PM, Javier Martinez Canillas wrote:
>> IGEP technology devices are TI OMAP3 SoC based industrial embedded
>> and computer-on-module boards. This patch-set adds initial device
>> tree support for these devices.
>>
>> The device trees allows to boot from an MMC and are working all the
>> components that already have device tree support on OMAP3 SoCs:
>>
>> - MMC/SD
>> - UARTs
>> - GPIO LEDs
>> - TWL4030 codec audio
>> - pinmux/pinconf pinctrl
>>
>> Some peripheral are still not working such as Flash storage and
>> Ethernet but support for these will also be included once the
>> OMAP GPMC device tree binding patches land on mainline.
>>
>> This is a v4 of the patch-set that adds MMC mux pins setup and
>> fixes a build issue due recent changes on twl4030.dtsi.
>>
>> The patch-set is composed of the following patches:
>>
>> [PATCH v4 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
>> [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board
>> [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module
>
> I've just applied your series for 3.9 on top of 3.8-rc2 and had to update the Makefile that was different in the base you used. At the same time I updated the subjects to use "ARM: dts:" prefix to be compliant with the latest trend :-)
>
> The patches are available here:
> git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git for_3.9/dts
>
> Regards,
> Benoit
>
>
> --

Great, thanks a lot Benoit!

Best regards,
Javier

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

end of thread, other threads:[~2013-01-08 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 13:33 [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
2012-12-19 13:33 ` [PATCH v4 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
2012-12-19 13:33 ` [PATCH v4 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
2012-12-19 13:33 ` [PATCH v4 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
2013-01-08 16:13 ` [PATCH v4 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
2013-01-08 16:19   ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).