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

IGEP technology devices are TI OMAP3 SoC based industrial embedded
and computer-on-module boards. This patchset 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.

The patchset is composed of the following patches:

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

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

* [PATCH 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-11-28 23:14 [PATCH 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
@ 2012-11-28 23:14 ` Javier Martinez Canillas
  2012-11-30  9:48   ` Matthias Brugger
  2012-11-28 23:14 ` [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
  2012-11-28 23:14 ` [PATCH 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
  2 siblings, 1 reply; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-11-28 23:14 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Enrico Butera, Matthias Brugger, linux-omap,
	linux-arm-kernel, devicetree-discuss, linux-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>
---
 arch/arm/boot/dts/omap3-igep.dtsi |   93 +++++++++++++++++++++++++++++++++++++
 1 files changed, 93 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..a093bff
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-igep.dtsi
@@ -0,0 +1,93 @@
+/*
+ * 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 {
+	pinctrl-names = "default";
+	pinctrl-0 = <
+		  &mcbsp2_pins
+	>;
+
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			0x16e 0x100	/* uart3_rx.uart3_rx INPUT | MODE0 */
+			0x170 0		/* uart3_tx.uart3_tx OUTPUT | MODE0 */
+		>;
+	};
+
+	mcbsp2_pins: pinmux_mcbsp2_pins {
+		pinctrl-single,pins = <
+			0x1a2 0x0104	/* mcspi1_cs2.gpio_176 INPUT | MODE4 */
+		>;
+	};
+};
+
+&i2c1 {
+	clock-frequency = <2600000>;
+
+	twl: twl@48 {
+		reg = <0x48>;
+		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
+		interrupt-parent = <&intc>;
+
+		vsim: regulator@10 {
+			compatible = "ti,twl4030-vsim";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3000000>;
+		};
+
+		twl_audio: audio {
+			compatible = "ti,twl4030-audio";
+			codec {
+			      };
+		};
+	};
+};
+
+/include/ "twl4030.dtsi"
+
+&i2c2 {
+	clock-frequency = <400000>;
+};
+
+&mmc1 {
+	vmmc-supply = <&vmmc1>;
+	vmmc_aux-supply = <&vsim>;
+	bus-width = <8>;
+};
+
+&mmc2 {
+	status = "disabled";
+};
+
+&mmc3 {
+	status = "disabled";
+};
+
+&twl_gpio {
+	ti,use-leds;
+};
-- 
1.7.7.6


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

* [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board
  2012-11-28 23:14 [PATCH 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-11-28 23:14 ` [PATCH 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
@ 2012-11-28 23:14 ` Javier Martinez Canillas
  2012-11-30  9:48   ` Matthias Brugger
  2012-11-28 23:14 ` [PATCH 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
  2 siblings, 1 reply; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-11-28 23:14 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Enrico Butera, Matthias Brugger, linux-omap,
	linux-arm-kernel, devicetree-discuss, linux-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>
---
 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 f37cf9f..1dc0f39 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -66,6 +66,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-pandaES.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..9dd4d22
--- /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>;
+			 linux,default-trigger = "default-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 3/3] ARM/dts: omap3: Add support for IGEP COM Module
  2012-11-28 23:14 [PATCH 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-11-28 23:14 ` [PATCH 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
  2012-11-28 23:14 ` [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
@ 2012-11-28 23:14 ` Javier Martinez Canillas
  2 siblings, 0 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2012-11-28 23:14 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Enrico Butera, Matthias Brugger, linux-omap,
	linux-arm-kernel, devicetree-discuss, linux-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>
---
 arch/arm/boot/dts/Makefile           |    1 +
 arch/arm/boot/dts/omap3-igep0030.dts |   43 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 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 1dc0f39..78c99bc 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -67,6 +67,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap3-evm.dtb \
 	omap3-tobi.dtb \
 	omap3-igep0020.dtb \
+	omap3-igep0030.dtb \
 	omap4-panda.dtb \
 	omap4-pandaES.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..5ed7033
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-igep0030.dts
@@ -0,0 +1,43 @@
+/*
+ * 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 = <&gpio1 54 0>;
+			 linux,default-trigger = "default-on";
+		};
+
+		user0 {
+			 label = "omap3:red:user0";
+			 gpios = <&gpio1 53 0>;
+			 default-state = "off";
+		};
+
+		user1 {
+			 label = "omap3:red:user1";
+			 gpios = <&gpio1 16 0>;
+			 default-state = "off";
+		};
+
+		user2 {
+			label = "omap3:green:user1";
+			gpios = <&twl_gpio 19 1>;
+		};
+	};
+};
-- 
1.7.7.6


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

* Re: [PATCH 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-11-28 23:14 ` [PATCH 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
@ 2012-11-30  9:48   ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2012-11-30  9:48 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Benoit Cousson, Tony Lindgren, grant.likely,
	Enric Balletbo i Serra, Ezequiel Garcia, Enrico Butera,
	Matthias Brugger, linux-omap, linux-arm-kernel,
	devicetree-discuss, linux-kernel

On 11/29/2012 12:14 AM, Javier Martinez Canillas wrote:
> 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>

>   arch/arm/boot/dts/omap3-igep.dtsi |   93 +++++++++++++++++++++++++++++++++++++
>   1 files changed, 93 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..a093bff
> --- /dev/null
> +++ b/arch/arm/boot/dts/omap3-igep.dtsi
> @@ -0,0 +1,93 @@
> +/*
> + * 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 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <
> +		  &mcbsp2_pins
> +	>;
> +
> +	uart3_pins: pinmux_uart3_pins {
> +		pinctrl-single,pins = <
> +			0x16e 0x100	/* uart3_rx.uart3_rx INPUT | MODE0 */
> +			0x170 0		/* uart3_tx.uart3_tx OUTPUT | MODE0 */
> +		>;
> +	};
> +
> +	mcbsp2_pins: pinmux_mcbsp2_pins {
> +		pinctrl-single,pins = <
> +			0x1a2 0x0104	/* mcspi1_cs2.gpio_176 INPUT | MODE4 */
> +		>;
> +	};
> +};
> +
> +&i2c1 {
> +	clock-frequency = <2600000>;
> +
> +	twl: twl@48 {
> +		reg = <0x48>;
> +		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
> +		interrupt-parent = <&intc>;
> +
> +		vsim: regulator@10 {
> +			compatible = "ti,twl4030-vsim";
> +			regulator-min-microvolt = <1800000>;
> +			regulator-max-microvolt = <3000000>;
> +		};
> +
> +		twl_audio: audio {
> +			compatible = "ti,twl4030-audio";
> +			codec {
> +			      };
> +		};
> +	};
> +};
> +
> +/include/ "twl4030.dtsi"
> +
> +&i2c2 {
> +	clock-frequency = <400000>;
> +};
> +
> +&mmc1 {
> +	vmmc-supply = <&vmmc1>;
> +	vmmc_aux-supply = <&vsim>;
> +	bus-width = <8>;
> +};
> +
> +&mmc2 {
> +	status = "disabled";
> +};
> +
> +&mmc3 {
> +	status = "disabled";
> +};
> +
> +&twl_gpio {
> +	ti,use-leds;
> +};
>


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

* Re: [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board
  2012-11-28 23:14 ` [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
@ 2012-11-30  9:48   ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2012-11-30  9:48 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Benoit Cousson, Tony Lindgren, grant.likely,
	Enric Balletbo i Serra, Ezequiel Garcia, Enrico Butera,
	Matthias Brugger, linux-omap, linux-arm-kernel,
	devicetree-discuss, linux-kernel

On 11/29/2012 12:14 AM, Javier Martinez Canillas wrote:
> 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>
> ---
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>

>   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 f37cf9f..1dc0f39 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -66,6 +66,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-pandaES.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..9dd4d22
> --- /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>;
> +			 linux,default-trigger = "default-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>;
> +	};
> +};
>


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

end of thread, other threads:[~2012-11-30  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-28 23:14 [PATCH 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
2012-11-28 23:14 ` [PATCH 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
2012-11-30  9:48   ` Matthias Brugger
2012-11-28 23:14 ` [PATCH 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
2012-11-30  9:48   ` Matthias Brugger
2012-11-28 23:14 ` [PATCH 3/3] ARM/dts: omap3: Add support for IGEP COM Module 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).