Skip to contentSkip to conversation

ARM: am335x: Support chiliSOM and chiliBoard

PATCH Superseded Marcin Niestroj 1 participant 3 messages Jan 25, 2017

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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

Patches were developed and tested on 2017.01.

Changes v2 -> v3:
* Removed USB gadget and SPL ETH references in chiliBoard code, which removed a lot of unused lines in eth initialization (suggested by Tom)
* Removed SPI FLASH and SPL USB from defconfig

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          |   8 ++
 board/grinn/chiliboard/Makefile             |   6 +
 board/grinn/chiliboard/README               |  31 ++++
 board/grinn/chiliboard/board.c              | 206 ++++++++++++++++++++++++++
 configs/chiliboard_defconfig                |  45 ++++++
 include/configs/chiliboard.h                | 214 ++++++++++++++++++++++++++++
 12 files changed, 738 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 v3 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 v2 -> v3: none

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 v3 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 v2 -> v3:
* Removed USB gadget and SPL ETH references in chiliBoard code, which removed a lot of unused lines in eth initialization (suggested by Tom)
* Removed SPI FLASH and SPL USB from defconfig

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 |   8 ++
 board/grinn/chiliboard/Makefile    |   6 ++
 board/grinn/chiliboard/README      |  31 ++++++
 board/grinn/chiliboard/board.c     | 206 +++++++++++++++++++++++++++++++++++
 configs/chiliboard_defconfig       |  45 ++++++++
 include/configs/chiliboard.h       | 214 +++++++++++++++++++++++++++++++++++++
 9 files changed, 532 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 +8 -0
new file mode 100644
index 0000000000..5eaccb2791
@@ -0,0 +1,8 @@
+CHILIBOARD
+M:	Marcin Niestroj <[email protected]>
+S:	Maintained
+F:	arch/arm/include/asm/arch-am33xx/chilisom.h
+F:	arch/arm/mach-omap2/am33xx/chilisom.c
+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 +206 -0

206 lines not on this page · raw message

configs/chiliboard_defconfig new file +45 -0

45 lines not on this page · raw message

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

214 lines not on this page · raw message

Signature · 1 line
2.11.0