Skip to contentSkip to conversation

Add support for Digi ConnectCore ccxmx53 board.

PATCH Applied Jason Cobham 2 participants 2 messages Nov 20, 2015 – Nov 23, 2015

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

PATCH v2 1/1 Add support for Digi ConnectCore ccxmx53 board.

Based on the i.MX53 SoC. Tested with a 512M and 1GB module on a JSK dev board.

This v2 patch addresses the suggested v1 comments:
- device tree mmc bus width is configured correctly
- ARCH_TEXT_BASE define is not necessary
- fec phy reset pin configured in device tree
- simplify board_init
- single patch

---
 arch/arm/boards/Makefile                           |   1 +
 arch/arm/boards/ccxmx53/Makefile                   |   2 +
 arch/arm/boards/ccxmx53/board.c                    | 160 +++++++++++++++
 .../ccxmx53/flash-header-imx53-ccxmx53_1gib.imxcfg |  67 +++++++
 .../flash-header-imx53-ccxmx53_512mb.imxcfg        |  67 +++++++
 arch/arm/boards/ccxmx53/lowlevel.c                 |  53 +++++
 arch/arm/configs/imx_v7_defconfig                  |   1 +
 arch/arm/dts/Makefile                              |   1 +
 arch/arm/dts/imx53-ccxmx53.dts                     |  15 ++
 arch/arm/dts/imx53-ccxmx53.dtsi                    |  35 ++++
 arch/arm/mach-imx/Kconfig                          |   7 +
 dts/src/arm/imx53-ccxmx53.dts                      | 104 ++++++++++
 dts/src/arm/imx53-ccxmx53.dtsi                     | 223 +++++++++++++++++++++
 images/Makefile.imx                                |  10 +
 14 files changed, 746 insertions(+)
 create mode 100644 arch/arm/boards/ccxmx53/Makefile
 create mode 100644 arch/arm/boards/ccxmx53/board.c
 create mode 100644 arch/arm/boards/ccxmx53/flash-header-imx53-ccxmx53_1gib.imxcfg
 create mode 100644 arch/arm/boards/ccxmx53/flash-header-imx53-ccxmx53_512mb.imxcfg
 create mode 100644 arch/arm/boards/ccxmx53/lowlevel.c
 create mode 100644 arch/arm/dts/imx53-ccxmx53.dts
 create mode 100644 arch/arm/dts/imx53-ccxmx53.dtsi
 create mode 100644 dts/src/arm/imx53-ccxmx53.dts
 create mode 100644 dts/src/arm/imx53-ccxmx53.dtsi
arch/arm/boards/Makefile +1 -0
index 2229817..7da8992 100644
@@ -17,6 +17,7 @@ obj-$(CONFIG_MACH_CANON_A1100)			+= canon-a1100/
 obj-$(CONFIG_MACH_CM_FX6)			+= cm-fx6/
 obj-$(CONFIG_MACH_NITROGEN6X)			+= boundarydevices-nitrogen6x/
 obj-$(CONFIG_MACH_CCMX51)			+= ccxmx51/
+obj-$(CONFIG_MACH_CCMX53)			+= ccxmx53/
 obj-$(CONFIG_MACH_CFA10036)			+= crystalfontz-cfa10036/
 obj-$(CONFIG_MACH_CHUMBY)			+= chumby_falconwing/
 obj-$(CONFIG_MACH_CLEP7212)			+= clep7212/
arch/arm/boards/ccxmx53/Makefile new file +2 -0
new file mode 100644
index 0000000..01c7a25
@@ -0,0 +1,2 @@
+obj-y += board.o
+lwl-y += lowlevel.o
arch/arm/boards/ccxmx53/board.c new file +160 -0

160 lines not on this page · raw message

arch/arm/boards/ccxmx53/flash-header-imx53-ccxmx53_1gib.imxcfg new file +67 -0

67 lines not on this page · raw message

arch/arm/boards/ccxmx53/flash-header-imx53-ccxmx53_512mb.imxcfg new file +67 -0

67 lines not on this page · raw message

arch/arm/boards/ccxmx53/lowlevel.c new file +53 -0

53 lines not on this page · raw message

arch/arm/configs/imx_v7_defconfig +1 -0
index 0f38125..9c7a471 100644
@@ -4,6 +4,7 @@ CONFIG_MACH_EFIKA_MX_SMARTBOOK=y
 CONFIG_MACH_EMBEDSKY_E9=y
 CONFIG_MACH_FREESCALE_MX51_PDK=y
 CONFIG_MACH_FREESCALE_MX53_LOCO=y
+CONFIG_MACH_CCMX53=y
 CONFIG_MACH_TQMA53=y
 CONFIG_MACH_FREESCALE_MX53_VMX53=y
 CONFIG_MACH_PCAAXL3=y
arch/arm/dts/Makefile +1 -0
index c87bd93..a03e490 100644
@@ -18,6 +18,7 @@ pbl-dtb-$(CONFIG_MACH_EMBEST_RIOTBOARD) += imx6s-riotboard.dtb.o
 pbl-dtb-$(CONFIG_MACH_EMBEDSKY_E9) += imx6q-embedsky-e9.dtb.o
 pbl-dtb-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o
 pbl-dtb-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += imx53-qsb.dtb.o imx53-qsrb.dtb.o
+pbl-dtb-$(CONFIG_MACH_CCMX53) += imx53-ccxmx53.dtb.o
 pbl-dtb-$(CONFIG_MACH_FREESCALE_MX53_VMX53) += imx53-voipac-bsb.dtb.o
 pbl-dtb-$(CONFIG_MACH_GK802) += imx6q-gk802.dtb.o
 pbl-dtb-$(CONFIG_MACH_GLOBALSCALE_GURUPLUG) += kirkwood-guruplug-server-plus-bb.dtb.o
arch/arm/dts/imx53-ccxmx53.dts new file +15 -0
new file mode 100644
index 0000000..ac6103a
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2011 Freescale Semiconductor, Inc.
+ * Copyright 2011 Linaro Ltd.
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#include <arm/imx53-ccxmx53.dts>
+#include "imx53-ccxmx53.dtsi"
+#include "imx53.dtsi"
arch/arm/dts/imx53-ccxmx53.dtsi new file +35 -0
new file mode 100644
index 0000000..6f76d28
@@ -0,0 +1,35 @@
+/ {
+	chosen {
+		linux,stdout-path = &uart1;
+
+		environment@0 {
+			compatible = "barebox,environment";
+			device-path = &nfc, "partname:environment";
+		};
+	};
+};
+
+&nfc {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	partition@0 {
+		label = "barebox";
+		reg = <0x0 0x80000>;
+	};
+
+	partition@1 {
+		label = "environment";
+		reg = <0x80000 0x80000>;
+	};
+
+	partition@2 {
+		label = "kernel";
+		reg = <0x100000 0x400000>;
+	};
+
+	partition@3 {
+		label = "rootfs";
+		reg = <0x500000 0x07B00000>;
+	};
+};
arch/arm/mach-imx/Kconfig +7 -0
index 0a7b517..9eb47df 100644
@@ -246,6 +246,13 @@ config MACH_FREESCALE_MX51_PDK
 	select DRIVER_SPI_IMX
 	select MFD_MC13XXX
 
+config MACH_CCMX53
+	bool "Digi ConnectCore i.MX53"
+	select ARCH_IMX53
+	help
+	  Say Y here if you are using the Digi ConnectCore ccxmx53 
+	  series SoM
+	  
 config MACH_FREESCALE_MX53_LOCO
 	bool "Freescale i.MX53 LOCO"
 	select ARCH_IMX53
dts/src/arm/imx53-ccxmx53.dts new file +104 -0

104 lines not on this page · raw message

dts/src/arm/imx53-ccxmx53.dtsi new file +223 -0

223 lines not on this page · raw message

images/Makefile.imx +10 -0
index a09afd6..ad171d8 100644
@@ -76,6 +76,16 @@ CFG_start_imx53_loco_r.pblx.imximg = $(board)/freescale-mx53-qsb/flash-header-im
 FILE_barebox-freescale-imx53-loco-r.img = start_imx53_loco_r.pblx.imximg
 image-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += barebox-freescale-imx53-loco-r.img
 
+pblx-$(CONFIG_MACH_CCMX53) += start_ccxmx53_512mb
+CFG_start_ccxmx53_512mb.pblx.imximg = $(board)/ccxmx53/flash-header-imx53-ccxmx53_512mb.imxcfg
+FILE_barebox-imx53-ccxmx53_512mb.img = start_ccxmx53_512mb.pblx.imximg
+image-$(CONFIG_MACH_CCMX53) += barebox-imx53-ccxmx53_512mb.img
+
+pblx-$(CONFIG_MACH_CCMX53) += start_ccxmx53_1gib
+CFG_start_ccxmx53_1gib.pblx.imximg = $(board)/ccxmx53/flash-header-imx53-ccxmx53_1gib.imxcfg
+FILE_barebox-imx53-ccxmx53_1gib.img = start_ccxmx53_1gib.pblx.imximg
+image-$(CONFIG_MACH_CCMX53) += barebox-imx53-ccxmx53_1gib.img
+
 pblx-$(CONFIG_MACH_FREESCALE_MX53_VMX53) += start_imx53_vmx53
 CFG_start_imx53_vmx53.pblx.imximg = $(board)/freescale-mx53-vmx53/flash-header-imx53-vmx53.imxcfg
 FILE_barebox-freescale-imx53-vmx53.img = start_imx53_vmx53.pblx.imximg
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#1 lore raw

Hi Jason,

Quoted 10 lines · Jason Cobham

Based on the i.MX53 SoC. Tested with a 512M and 1GB module on a JSK dev board.

This v2 patch addresses the suggested v1 comments:
- device tree mmc bus width is configured correctly
- ARCH_TEXT_BASE define is not necessary
- fec phy reset pin configured in device tree
- simplify board_init
- single patch

Applied, thanks

I cleaned up several whitespace issues. Please run through scripts/checkpatch.pl next time before posting.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox