Skip to contentSkip to conversation

Support for HTKW mcx

PATCH New Ilya Yanok 2 participants 6 messages Dec 21, 2011 – Mar 5, 2012

Subsystems (4)
lore
Share & tools
lore

Ilya Yanok

author
#0 lore raw

v3 cover Support for HTKW mcx

Split into two parts:
1. Device tree only to be used with board-generic (only serial works)
2. Full board support via custom machine file for board-testing

Sorry for double-posting: I've put wrong linux-arm-kernel address in the first post.

Ilya Yanok (2):
mcx: very basic support for HTKW mcx board
mcx: support for HTKW mcx board

 arch/arm/boot/dts/mcx.dts                    |   27 ++
 arch/arm/mach-omap2/Kconfig                  |    6 +
 arch/arm/mach-omap2/Makefile                 |    1 +
 arch/arm/mach-omap2/board-mcx.c              |  500 ++++++++++++++++++++++++++
 arch/arm/plat-omap/include/plat/uncompress.h |    1 +
 5 files changed, 535 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/mcx.dts
 create mode 100644 arch/arm/mach-omap2/board-mcx.c
Signature · 1 line
1.7.6.4
author
#1 lore raw

PATCH v3 1/2 mcx: very basic support for HTKW mcx board

Very basic support for HTKW mcx board. Able to boot via board-generic and ramdisk/initramfs, however most of peripherals is unsupported. Produces tons of twl4030 related errors as this board doesn't have twl4030 installed.

---
Changes from V2:

- None

Changes from V1:

- device tree move to the separate patch
- iva node is disabled instead of using custom includes
- removed bootargs entry

 arch/arm/boot/dts/mcx.dts |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/mcx.dts
arch/arm/boot/dts/mcx.dts new file +27 -0
new file mode 100644
index 0000000..66b81bd
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2011 Ilya Yanok, EmCraft Systems
+ *
+ * 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"
+
+/ {
+	model = "HTKW mcx";
+	compatible = "htkw,mcx", "ti,omap3";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x10000000>; /* 256 MB */
+	};
+
+	/* AM35xx doesn't have IVA */
+	soc {
+		iva {
+			status = "disabled";
+		};
+	};
+};
Signature · 1 line
1.7.6.4
maintainer
#2 lore raw

PATCH v3 1/2 mcx: very basic support for HTKW mcx board

Quoted 6 lines · Ilya Yanok

Very basic support for HTKW mcx board. Able to boot via board-generic and ramdisk/initramfs, however most of peripherals is unsupported. Produces tons of twl4030 related errors as this board doesn't have twl4030 installed.

Grant, care to ack this one?

Regards,

Tony

Quoted 56 lines

---
Changes from V2:

- None

Changes from V1:

- device tree move to the separate patch
- iva node is disabled instead of using custom includes
- removed bootargs entry

 arch/arm/boot/dts/mcx.dts |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/mcx.dts
arch/arm/boot/dts/mcx.dts new file +27 -0
new file mode 100644
index 0000000..66b81bd
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2011 Ilya Yanok, EmCraft Systems
+ *
+ * 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"
+
+/ {
+	model = "HTKW mcx";
+	compatible = "htkw,mcx", "ti,omap3";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x10000000>; /* 256 MB */
+	};
+
+	/* AM35xx doesn't have IVA */
+	soc {
+		iva {
+			status = "disabled";
+		};
+	};
+};
Signature · 6 lines
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#3 lore raw

PATCH v3 1/2 mcx: very basic support for HTKW mcx board

Quoted 9 lines · Tony Lindgren
Quoted 6 lines · Ilya Yanok

Very basic support for HTKW mcx board. Able to boot via board-generic and ramdisk/initramfs, however most of peripherals is unsupported. Produces tons of twl4030 related errors as this board doesn't have twl4030 installed.

Grant, care to ack this one?

Actually a version of this you already acked as
"[PATCH 1/2] mt_ventoux: very basic support for TeeJet Mt.Ventoux board" so using that instead

Regards,

Tony

Quoted 59 lines
Quoted 55 lines

---
Changes from V2:

- None

Changes from V1:

- device tree move to the separate patch
- iva node is disabled instead of using custom includes
- removed bootargs entry

 arch/arm/boot/dts/mcx.dts |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/mcx.dts
arch/arm/boot/dts/mcx.dts new file +27 -0
new file mode 100644
index 0000000..66b81bd
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2011 Ilya Yanok, EmCraft Systems
+ *
+ * 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"
+
+/ {
+	model = "HTKW mcx";
+	compatible = "htkw,mcx", "ti,omap3";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x10000000>; /* 256 MB */
+	};
+
+	/* AM35xx doesn't have IVA */
+	soc {
+		iva {
+			status = "disabled";
+		};
+	};
+};
Signature · 6 lines
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#4 lore raw

PATCH v3 2/2 mcx: support for HTKW mcx board

In reply to Ilya Yanok

Support for the HTKW mcx board (TI AM3517 based) including serial, Ethernet, I2C, USB host, HSMMC, DSS and RTC.

---
Requires updated machine-type file, recently posted AM35xx-EMAC patch and "Disable PM init on AM35{05,17} patch.

Changes from V2:
- Rebased onto the current linux-omap/master
- Added "common.h" include
- Added .handle_irq field to machine description
- Added omap_sdrc_init() call
- Removed unneeded pullup from output pins
- Moved pin muxing before GPIO accesses
- Removed .ocr_mask field (it's overwritten anyway)
- Moved touchscreen init out of I2C init
- some readability improvements (empty lines, comments)

Changes from V1:
- Kconfig option name fixed
- Makefile entry sanitized
- Unneeded headers removed
- EMAC initialization moved to separate file/patch
- Use gpio_{request,free}_{array,one} where possible
- don't use platform data for touchscreen, we only need to pass irq number, do it via client.irq
- check mcx_ts_init return value
- Moved DEBUG_LL_OMAP3 entry to be in aplhabetical order
- check return value of gpio_request for USB pwr pin
- use pr_err instead of printk for error printing
- added a fixed regulator for vdds_dsi
- added SDcard card-detect pin

 arch/arm/mach-omap2/Kconfig                  |    6 +
 arch/arm/mach-omap2/Makefile                 |    1 +
 arch/arm/mach-omap2/board-mcx.c              |  500 ++++++++++++++++++++++++++
 arch/arm/plat-omap/include/plat/uncompress.h |    1 +
 4 files changed, 508 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-mcx.c
arch/arm/mach-omap2/Kconfig +6 -0
index 0eb27b2..fd9b8c0 100644
@@ -231,6 +231,12 @@ config MACH_OMAP_3430SDP
 	default y
 	select OMAP_PACKAGE_CBB
 
+config MACH_MCX
+	bool "HTKW mcx (AM3517 based) board"
+	depends on ARCH_OMAP3
+	select OMAP_PACKAGE_CBB
+	select REGULATOR_FIXED_VOLTAGE
+
 config MACH_NOKIA_N800
        bool
 
arch/arm/mach-omap2/Makefile +1 -0
index 5d75cb5..9405dfc 100644
@@ -238,6 +238,7 @@ obj-$(CONFIG_MACH_CRANEBOARD)		+= board-am3517crane.o
 obj-$(CONFIG_MACH_SBC3530)		+= board-omap3stalker.o
 obj-$(CONFIG_MACH_TI8168EVM)		+= board-ti8168evm.o
 obj-$(CONFIG_MACH_TI8148EVM)		+= board-ti8168evm.o
+obj-$(CONFIG_MACH_MCX)			+= board-mcx.o
 
 # Platform specific device init code
 
arch/arm/mach-omap2/board-mcx.c new file +500 -0

500 lines not on this page · raw message

arch/arm/plat-omap/include/plat/uncompress.h +1 -0
index 27d9d31..1141364 100644
@@ -160,6 +160,7 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
 		DEBUG_LL_OMAP3(3, encore);
 		DEBUG_LL_OMAP3(3, igep0020);
 		DEBUG_LL_OMAP3(3, igep0030);
+		DEBUG_LL_OMAP3(3, mcx);
 		DEBUG_LL_OMAP3(3, nokia_rm680);
 		DEBUG_LL_OMAP3(3, nokia_rx51);
 		DEBUG_LL_OMAP3(3, omap3517evm);
Signature · 1 line
1.7.6.4
maintainer
#5 lore raw

PATCH v3 2/2 mcx: support for HTKW mcx board

Quoted 2 lines · Ilya Yanok

Support for the HTKW mcx board (TI AM3517 based) including serial, Ethernet, I2C, USB host, HSMMC, DSS and RTC.

This one I can carry in testing-board until device tree works for us in a usable way. But probably some rebasing is needed for this after the hsmmc stuff is cleared out of the way.

Regards,

Tony