Skip to contentSkip to conversation

ARM: am335x: Support chiliSOM and chiliBoard

PATCH Superseded Marcin Niestroj 2 participants 5 messages Jan 24, 2017

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: am335x: Support chiliSOM and chiliBoard

These patches add support for chiliSOM (http://grinn-global.com/chilisom/),
and chiliBoard (which uses chiliSOM as it's base).

chiliSOM consists of processor (TI AM335x), RAM memory (up to 512M DDR3) and flash (NAND). The idea is that every board vendor can use chiliSOM as it's base for designed board. Hence, we need a way to reuse common code between those board.

chiliBoard is a development kit (and reference platform for chiliSOM), that mainly shows possibilities and use cases of chiliSOM.

This is a second approach and we are moving chiliSOM sources to arch/arm/mach-omap2/am33xx/ directory. The same will happen with liteSOM support (which is already merged) after successful chiliSOM code review.

Patches were developed and tested on 2017.01.

Changes v1 -> v2:
* chiliSOM was moved from arch/arm/mach-chilisom/chilisom.c to arch/arm/mach-omap2/chilisom.c (suggested by Tom)
* CONFIG_CHILISOM -> CONFIG_AM33XX_CHILISOM (suggested by Tom)
* converted include/configs/chiliboard.h header to SPDX license identifier (suggested by Tom)
* removed USB gadget, CMD_DFU options from chiliboard_defconfig

Marcin Niestroj (2):
ARM: am335x: Add support for chiliSOM
board/chiliboard: Add support for chiliBoard

 arch/arm/Kconfig                            |   1 +
 arch/arm/include/asm/arch-am33xx/chilisom.h |  15 ++
 arch/arm/mach-omap2/am33xx/Kconfig          |  10 ++
 arch/arm/mach-omap2/am33xx/Makefile         |   2 +
 arch/arm/mach-omap2/am33xx/chilisom.c       | 185 +++++++++++++++++++
 board/grinn/chiliboard/Kconfig              |  15 ++
 board/grinn/chiliboard/MAINTAINERS          |   6 +
 board/grinn/chiliboard/Makefile             |   6 +
 board/grinn/chiliboard/README               |  31 ++++
 board/grinn/chiliboard/board.c              | 264 ++++++++++++++++++++++++++++
 configs/chiliboard_defconfig                |  48 +++++
 include/configs/chiliboard.h                | 220 +++++++++++++++++++++++
 12 files changed, 803 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/chilisom.h
 create mode 100644 arch/arm/mach-omap2/am33xx/chilisom.c
 create mode 100644 board/grinn/chiliboard/Kconfig
 create mode 100644 board/grinn/chiliboard/MAINTAINERS
 create mode 100644 board/grinn/chiliboard/Makefile
 create mode 100644 board/grinn/chiliboard/README
 create mode 100644 board/grinn/chiliboard/board.c
 create mode 100644 configs/chiliboard_defconfig
 create mode 100644 include/configs/chiliboard.h
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/2 ARM: am335x: Add support for chiliSOM

chiliSOM is a System On Module (http://http://grinn-global.com/chilisom/).
It can't exists on its own, but will be used as part of other boards.

Hardware specification:
* TI AM335x processor
* 128M, 256M or 512M DDR3 memory
* up to 256M NAND

We place source inside arch/arm/mach-omap2/ directory and make it possible to reuse initialization code (i.e. DDR, NAND init) for all boards that use it.

---
Changes v1 -> v2 (suggested by Tom):
* chiliSOM was moved from arch/arm/mach-chilisom/chilisom.c to arch/arm/mach-omap2/chilisom.c
* CONFIG_CHILISOM -> CONFIG_AM33XX_CHILISOM

 arch/arm/include/asm/arch-am33xx/chilisom.h |  15 +++
 arch/arm/mach-omap2/am33xx/Kconfig          |   4 +
 arch/arm/mach-omap2/am33xx/Makefile         |   2 +
 arch/arm/mach-omap2/am33xx/chilisom.c       | 185 ++++++++++++++++++++++++++++
 4 files changed, 206 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/chilisom.h
 create mode 100644 arch/arm/mach-omap2/am33xx/chilisom.c
arch/arm/include/asm/arch-am33xx/chilisom.h new file +15 -0
new file mode 100644
index 0000000000..bd0016e441
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2017 Grinn
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef __ARCH_ARM_MACH_CHILISOM_SOM_H__
+#define __ARCH_ARM_MACH_CHILISOM_SOM_H__
+
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
+void chilisom_enable_pin_mux(void);
+void chilisom_spl_board_init(void);
+#endif
+
+#endif
arch/arm/mach-omap2/am33xx/Kconfig +4 -0
index 56c44062c4..b1a0f0f356 100644
@@ -1,5 +1,9 @@
 if AM33XX
 
+config AM33XX_CHILISOM
+	bool
+	select SUPPORT_SPL
+
 choice
 	prompt "AM33xx board select"
 	optional
arch/arm/mach-omap2/am33xx/Makefile +2 -0
index 6fda4825fc..05cc8a11c5 100644
@@ -20,3 +20,5 @@ obj-y	+= board.o
 obj-y	+= mux.o
 
 obj-$(CONFIG_CLOCK_SYNTHESIZER)	+= clk_synthesizer.o
+
+obj-$(CONFIG_AM33XX_CHILISOM) += chilisom.o
arch/arm/mach-omap2/am33xx/chilisom.c new file +185 -0

185 lines not on this page · raw message

Signature · 1 line
2.11.0
#2 lore raw

PATCH v2 1/2 ARM: am335x: Add support for chiliSOM

Quoted 8 lines · Marcin Niestroj

chiliSOM is a System On Module (http://http://grinn-global.com/chilisom/).
It can't exists on its own, but will be used as part of other boards.

Hardware specification:
* TI AM335x processor
* 128M, 256M or 512M DDR3 memory
* up to 256M NAND

Quoted 5 lines

We place source inside arch/arm/mach-omap2/ directory and make it possible to reuse initialization code (i.e. DDR, NAND init) for all boards that use it.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170124/771e95d2/attachment.sig>
#3 lore raw

PATCH v2 2/2 board/chiliboard: Add support for chiliBoard

In reply to Marcin Niestroj

chiliBoard is a development board which uses chiliSOM as its base.

Hardware specification:
* chiliSOM (TI AM335x, DRAM, NAND)
* Ethernet PHY (id 0)
* USB host (usb1)
* MicroSD slot (mmc0)

---
Changes v1 -> v2:
* converted include/configs/chiliboard.h header to SPDX license identifier (suggested by Tom)
* removed USB gadget, CMD_DFU options from chiliboard_defconfig

 arch/arm/Kconfig                   |   1 +
 arch/arm/mach-omap2/am33xx/Kconfig |   6 +
 board/grinn/chiliboard/Kconfig     |  15 +++
 board/grinn/chiliboard/MAINTAINERS |   6 +
 board/grinn/chiliboard/Makefile    |   6 +
 board/grinn/chiliboard/README      |  31 +++++
 board/grinn/chiliboard/board.c     | 264 +++++++++++++++++++++++++++++++++++++
 configs/chiliboard_defconfig       |  48 +++++++
 include/configs/chiliboard.h       | 220 +++++++++++++++++++++++++++++++
 9 files changed, 597 insertions(+)
 create mode 100644 board/grinn/chiliboard/Kconfig
 create mode 100644 board/grinn/chiliboard/MAINTAINERS
 create mode 100644 board/grinn/chiliboard/Makefile
 create mode 100644 board/grinn/chiliboard/README
 create mode 100644 board/grinn/chiliboard/board.c
 create mode 100644 configs/chiliboard_defconfig
 create mode 100644 include/configs/chiliboard.h
arch/arm/Kconfig +1 -0
index 2554a2cd14..3421f273b5 100644
@@ -1046,6 +1046,7 @@ source "board/freescale/mx53loco/Kconfig"
 source "board/freescale/mx53smd/Kconfig"
 source "board/freescale/s32v234evb/Kconfig"
 source "board/freescale/vf610twr/Kconfig"
+source "board/grinn/chiliboard/Kconfig"
 source "board/gumstix/pepper/Kconfig"
 source "board/h2200/Kconfig"
 source "board/hisilicon/hikey/Kconfig"
arch/arm/mach-omap2/am33xx/Kconfig +6 -0
index b1a0f0f356..57e1a93211 100644
@@ -59,6 +59,12 @@ config TARGET_BAV335X
 
 	  For more information, visit: http://birdland.com/oem
 
+config TARGET_CHILIBOARD
+	bool "Grinn chiliBoard"
+	select AM33XX_CHILISOM
+	select DM
+	select DM_SERIAL
+
 config TARGET_CM_T335
 	bool "Support cm_t335"
 	select DM
board/grinn/chiliboard/Kconfig new file +15 -0
new file mode 100644
index 0000000000..20056e81a1
@@ -0,0 +1,15 @@
+if TARGET_CHILIBOARD
+
+config SYS_BOARD
+	default "chiliboard"
+
+config SYS_VENDOR
+	default "grinn"
+
+config SYS_CONFIG_NAME
+	default "chiliboard"
+
+config SYS_SOC
+	default "am33xx"
+
+endif
board/grinn/chiliboard/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..56b306f84c
@@ -0,0 +1,6 @@
+CHILIBOARD
+M:	Marcin Niestroj <[email protected]>
+S:	Maintained
+F:	board/grinn/chiliboard/
+F:	include/configs/chiliboard.h
+F:	configs/chiliboard_defconfig
board/grinn/chiliboard/Makefile new file +6 -0
new file mode 100644
index 0000000000..865968d1a7
@@ -0,0 +1,6 @@
+# (C) Copyright 2017 Grinn
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y  := board.o
board/grinn/chiliboard/README new file +31 -0
new file mode 100644
index 0000000000..cea4c1d42e
@@ -0,0 +1,31 @@
+How to use U-Boot on Grinn's chiliBoard
+--------------------------------------
+
+- Build U-Boot for chiliBoard:
+
+$ make mrproper
+$ make chiliboard_defconfig
+$ make
+
+This will generate the SPL image called MLO and the u-boot.img.
+
+- Flash the SPL image into the micro SD card:
+
+sudo dd if=MLO of=/dev/mmcblk0 bs=128k; sync
+
+- Flash the u-boot.img image into the micro SD card:
+
+sudo dd if=u-boot.img of=/dev/mmcblk0 bs=128k seek=3; sync
+
+- Jumper settings:
+
+S2: 1 1 1 0 1 0
+
+where 0 means bottom position and 1 means top position (from the
+switch label numbers reference).
+
+- Insert the micro SD card in the board.
+
+- Connect USB cable between chiliBoard and the PC for the power and console.
+
+- U-Boot messages should come up.
board/grinn/chiliboard/board.c new file +264 -0

264 lines not on this page · raw message

configs/chiliboard_defconfig new file +48 -0

48 lines not on this page · raw message

include/configs/chiliboard.h new file +220 -0

220 lines not on this page · raw message

Signature · 1 line
2.11.0
#4 lore raw

PATCH v2 2/2 board/chiliboard: Add support for chiliBoard

Quoted 8 lines · Marcin Niestroj

chiliBoard is a development board which uses chiliSOM as its base.

Hardware specification:
* chiliSOM (TI AM335x, DRAM, NAND)
* Ethernet PHY (id 0)
* USB host (usb1)
* MicroSD slot (mmc0)

Quoted 6 lines

---
Changes v1 -> v2:
* converted include/configs/chiliboard.h header to SPDX license identifier (suggested by Tom)
* removed USB gadget, CMD_DFU options from chiliboard_defconfig

Based on these points:

board/grinn/chiliboard/MAINTAINERS line 6

Quoted 8 lines

+++ b/board/grinn/chiliboard/MAINTAINERS

board/grinn/chiliboard/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@
+CHILIBOARD
+M:	Marcin Niestroj <[email protected]>
+S:	Maintained
+F:	board/grinn/chiliboard/
+F:	include/configs/chiliboard.h
+F:	configs/chiliboard_defconfig

Add 'arch/arm/mach-omap2/am33xx/chilisom.c' here too.

[snip]

board/grinn/chiliboard/board.c line 198

Quoted 5 lines
board/grinn/chiliboard/board.c new file +5 -0
+#if ((defined(CONFIG_SPL_ETH_SUPPORT) || defined(CONFIG_SPL_USBETH_SUPPORT)) &&\
+	defined(CONFIG_SPL_BUILD)) || \
+	((defined(CONFIG_DRIVER_TI_CPSW) || \
+	  defined(CONFIG_USB_ETHER) && defined(CONFIG_MUSB_GADGET)) && \
+	 !defined(CONFIG_SPL_BUILD))

There's still some gadget references here. And are you supporting cpsw eth in SPL on the SOM? If not, CONFIG_SPL_ETH_SUPPORT can go too. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170124/f7c2fafc/attachment.sig>