linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices
@ 2012-11-30 10:08 Javier Martinez Canillas
  2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2012-11-30 10:08 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 patch-set adds initial device
tree support for these devices.

The device tree allows to boot from an MMC/SD 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 hit mainline.

This is a v2 of the patch-set that solves issues pointed out by
Enric Balletbo and it is composed of the following patches:

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

Best regards,
Javier

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

* [PATCH v2 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
@ 2012-11-30 10:08 ` Javier Martinez Canillas
  2012-12-03 10:38   ` Enric Balletbo Serra
  2012-12-03 11:01   ` Benoit Cousson
  2012-11-30 10:08 ` [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2012-11-30 10:08 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>
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;
+};
-- 
1.7.7.6


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

* [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board
  2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
@ 2012-11-30 10:08 ` Javier Martinez Canillas
  2012-12-03 10:39   ` Enric Balletbo Serra
  2012-11-30 10:08 ` [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
  2012-12-03 10:49 ` [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
  3 siblings, 1 reply; 10+ messages in thread
From: Javier Martinez Canillas @ 2012-11-30 10:08 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 and pinctrl based mux).

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Matthias Brugger <matthias.bgg@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 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..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] 10+ messages in thread

* [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module
  2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
  2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
  2012-11-30 10:08 ` [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
@ 2012-11-30 10:08 ` Javier Martinez Canillas
  2012-12-03 10:39   ` Enric Balletbo Serra
  2012-12-03 10:49 ` [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson
  3 siblings, 1 reply; 10+ messages in thread
From: Javier Martinez Canillas @ 2012-11-30 10:08 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>
Acked-by: Matthias Brugger <matthias.bgg@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 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..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] 10+ messages in thread

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

2012/11/30 Javier Martinez Canillas <javier.martinez@collabora.co.uk>:
> 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;
> +};
> --
> 1.7.7.6
>

Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>

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

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

2012/11/30 Javier Martinez Canillas <javier.martinez@collabora.co.uk>:
> 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 and pinctrl based mux).
>
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> Acked-by: Matthias Brugger <matthias.bgg@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 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..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
>

Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>

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

* Re: [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module
  2012-11-30 10:08 ` [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
@ 2012-12-03 10:39   ` Enric Balletbo Serra
  0 siblings, 0 replies; 10+ messages in thread
From: Enric Balletbo Serra @ 2012-12-03 10:39 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Benoit Cousson, Tony Lindgren, grant.likely, Ezequiel Garcia,
	Enrico Butera, Matthias Brugger, linux-omap, linux-arm-kernel,
	devicetree-discuss, linux-kernel

2012/11/30 Javier Martinez Canillas <javier.martinez@collabora.co.uk>:
> 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>
> Acked-by: Matthias Brugger <matthias.bgg@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 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..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
>

Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>

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

* Re: [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices
  2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
                   ` (2 preceding siblings ...)
  2012-11-30 10:08 ` [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
@ 2012-12-03 10:49 ` Benoit Cousson
  3 siblings, 0 replies; 10+ messages in thread
From: Benoit Cousson @ 2012-12-03 10:49 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Tony Lindgren, grant.likely, Enric Balletbo i Serra,
	Ezequiel Garcia, Enrico Butera, Matthias Brugger, linux-omap,
	linux-arm-kernel, devicetree-discuss, linux-kernel

Hi Javier,

On 11/30/2012 11:08 AM, 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 tree allows to boot from an MMC/SD and are working all
> the components that already have device tree support on OMAP3 SoCs:

That's cool to have one more board DT converted.

That series looks good to me, I just have a comment on the DT mux stuff.

Regards,
Benoit

> 
> - 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 hit mainline.
> 
> This is a v2 of the patch-set that solves issues pointed out by
> Enric Balletbo and it is composed of the following patches:
> 
> [PATCH v2 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
> [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board
> [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module
> 
> Best regards,
> Javier
> 


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

* Re: [PATCH v2 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
  2012-12-03 10:38   ` Enric Balletbo Serra
@ 2012-12-03 11:01   ` Benoit Cousson
  2012-12-03 12:16     ` Javier Martinez Canillas
  1 sibling, 1 reply; 10+ messages in thread
From: Benoit Cousson @ 2012-12-03 11:01 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: 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/30/2012 11:08 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
> +	>;

Tony made a comment to avoid associating these data inside the pmx_core
and instead do that in the dedicated device part.

> +
> +	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 */
> +		>;
> +	};

BTW, in this case, the UART3 does not seems to have any connection with
the pins settings. Sine your don't have it in the pmx_core you should
have it in side the UART3 node.

&uart3 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart3_pins>;
};

The rational is that, the mux will be done only if the driver is probed
and not unconditionally during pmx_core probe like it will be the case
otherwise.

Regards,
Benoit


> +};
> +
> +&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] 10+ messages in thread

* Re: [PATCH v2 1/3] ARM/dts: omap3: Add generic DT support for IGEP devices
  2012-12-03 11:01   ` Benoit Cousson
@ 2012-12-03 12:16     ` Javier Martinez Canillas
  0 siblings, 0 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2012-12-03 12:16 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

On 12/03/2012 12:01 PM, Benoit Cousson wrote:
> On 11/30/2012 11:08 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
>> +	>;
> 
> Tony made a comment to avoid associating these data inside the pmx_core
> and instead do that in the dedicated device part.
>

Hi Benoit,

Thanks a lot for your feedback.

I didn't know about this convention, the OMAP mcspi1_cs2 pin is configured in
gpio_176 mode (OMAP_MUX_MODE4) because this GPIO line is used as the SMSC9221
LAN Ethernet controller IRQ.

But since the ethernet chip is connected to the OMAP3 processor thourgh its GPMC
and the DT support for GPMC is still not merged in mainline, DT support this
this pheripheral is still missing on this initial DT.

So, I'll just removes mcbsp2_pins for now and this can be added again on the
ethernet device part once support for this pheripheral is added.

>> +
>> +	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 */
>> +		>;
>> +	};
> 
> BTW, in this case, the UART3 does not seems to have any connection with
> the pins settings. Sine your don't have it in the pmx_core you should
> have it in side the UART3 node.
> 
> &uart3 {
> 	pinctrl-names = "default";
> 	pinctrl-0 = <&uart3_pins>;
> };
> 

Yes, I missed that. Thanks for pointing this out.

> The rational is that, the mux will be done only if the driver is probed
> and not unconditionally during pmx_core probe like it will be the case
> otherwise.
> 
> Regards,
> Benoit
> 
> 

I'll post a v3 with your suggestions.

Thanks a lot and best regards,
Javier


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

end of thread, other threads:[~2012-12-03 12:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-30 10:08 [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Javier Martinez Canillas
2012-11-30 10:08 ` [PATCH v2 1/3] ARM/dts: omap3: Add generic " Javier Martinez Canillas
2012-12-03 10:38   ` Enric Balletbo Serra
2012-12-03 11:01   ` Benoit Cousson
2012-12-03 12:16     ` Javier Martinez Canillas
2012-11-30 10:08 ` [PATCH v2 2/3] ARM/dts: omap3: Add support for IGEPv2 board Javier Martinez Canillas
2012-12-03 10:39   ` Enric Balletbo Serra
2012-11-30 10:08 ` [PATCH v2 3/3] ARM/dts: omap3: Add support for IGEP COM Module Javier Martinez Canillas
2012-12-03 10:39   ` Enric Balletbo Serra
2012-12-03 10:49 ` [PATCH v2 0/3] ARM/dts: omap3: Add DT support for IGEP devices Benoit Cousson

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).