Skip to contentSkip to conversation

ARM/dts: omap3: Add DT support for IGEP devices

PATCH New Javier Martinez Canillas 3 participants 6 messages Dec 19, 2012 – Jan 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v4 cover ARM/dts: omap3: Add DT support for IGEP devices

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

#1 lore raw

PATCH v4 1/3 ARM/dts: omap3: Add generic DT support for IGEP devices

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

---

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
arch/arm/boot/dts/omap3-igep.dtsi new file +98 -0
new file mode 100644
index 0000000..100eb41
@@ -0,0 +1,98 @@
+/*
+ * Device Tree Source for IGEP Technology devices
+ *
+ * Copyright (C) 2012 Javier Martinez Canillas <[email protected]>
+ * Copyright (C) 2012 Enric Balletbo i Serra <[email protected]>
+ *
+ * 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 at 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;
+};
Signature · 1 line
1.7.7.6
#2 lore raw

PATCH v4 2/3 ARM/dts: omap3: Add support for IGEPv2 board

In reply to 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).

---

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
arch/arm/boot/dts/Makefile +1 -0
index 0f44174..24b28ba 100644
@@ -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 \
arch/arm/boot/dts/omap3-igep0020.dts new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
1.7.7.6
#3 lore raw

PATCH v4 3/3 ARM/dts: omap3: Add support for IGEP COM Module

In reply to 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.

---

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
arch/arm/boot/dts/Makefile +1 -0
index 24b28ba..8880c55 100644
@@ -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 \
arch/arm/boot/dts/omap3-igep0030.dts new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
1.7.7.6
#4 lore raw

v4 cover ARM/dts: omap3: Add DT support for IGEP devices

In reply to Javier Martinez Canillas

Hi Javier,

Quoted 17 lines · Javier Martinez Canillas

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.

Quoted 8 lines

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

#5 lore raw

v4 cover ARM/dts: omap3: Add DT support for IGEP devices

Quoted 31 lines · Benoit Cousson

Hi Javier,

Quoted 17 lines · Javier Martinez Canillas

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.

Quoted 8 lines

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

Quoted 8 lines

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