Skip to contentSkip to conversation

ARM: tegra: Add support for TK1-SOM board from Colorado Engineering

PATCH New Peter.Chubb at data61.csiro.au 1 participant 1 message Aug 30, 2016

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

PATCH v2 1/1 ARM: tegra: Add support for TK1-SOM board from Colorado Engineering

The Colorado TK1 SOM is a small form factor board similar to the Jetson TK1. The main differences lie in the pinmux, and in that the PCIe controller is set to use in 4lanes+1lane, rather than 2+2.

The pinmux header here was generated from a spreadsheet provided by Colorado Engineering using the tegra-pinmux scripts. The spreadsheet was converted from v09 to v11 by me.

---
 arch/arm/dts/Makefile                             |   1 +
 arch/arm/dts/tegra124-cei-tk1-som.dts             | 477 ++++++++++++++++++++++
 arch/arm/mach-tegra/tegra124/Kconfig              |  12 +
 board/cei/cei-tk1-som/Kconfig                     |  12 +
 board/cei/cei-tk1-som/MAINTAINERS                 |   6 +
 board/cei/cei-tk1-som/Makefile                    |   9 +
 board/cei/cei-tk1-som/cei-tk1-som.c               |  65 +++
 board/cei/cei-tk1-som/pinmux-config-cei-tk1-som.h | 301 ++++++++++++++
 board/nvidia/venice2/as3722_init.h                |   8 +-
 configs/cei-tk1-som_defconfig                     |  47 +++
 include/configs/cei-tk1-som.h                     |  73 ++++
 11 files changed, 1007 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/dts/tegra124-cei-tk1-som.dts
 create mode 100644 board/cei/cei-tk1-som/Kconfig
 create mode 100644 board/cei/cei-tk1-som/MAINTAINERS
 create mode 100644 board/cei/cei-tk1-som/Makefile
 create mode 100644 board/cei/cei-tk1-som/cei-tk1-som.c
 create mode 100644 board/cei/cei-tk1-som/pinmux-config-cei-tk1-som.h
 create mode 100644 configs/cei-tk1-som_defconfig
 create mode 100644 include/configs/cei-tk1-som.h
arch/arm/dts/Makefile +1 -0
index 7d1944f..25fc22f 100644
@@ -57,6 +57,7 @@ dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \
 	tegra114-dalmore.dtb \
 	tegra124-jetson-tk1.dtb \
 	tegra124-nyan-big.dtb \
+	tegra124-cei-tk1-som.dtb \
 	tegra124-venice2.dtb \
 	tegra186-p2771-0000-a02.dtb \
 	tegra186-p2771-0000-b00.dtb \
arch/arm/dts/tegra124-cei-tk1-som.dts new file +477 -0

477 lines not on this page · raw message

arch/arm/mach-tegra/tegra124/Kconfig +12 -0
index f3324ff..9e21e30 100644
@@ -9,6 +9,17 @@ config TARGET_JETSON_TK1
 	select CPU_V7_HAS_NONSEC if !SPL_BUILD
 	select CPU_V7_HAS_VIRT if !SPL_BUILD
 
+config TARGET_CEI_TK1_SOM
+	bool "Colorado Engineering Inc Tegra124 TK1-som board"
+	select CPU_V7_HAS_NONSEC if !SPL_BUILD
+	select CPU_V7_HAS_VIRT if !SPL_BUILD
+	help
+	  The Colorado Engineering Tegra TK1-SOM is a very compact
+	  (51mmx58mm) board that is functionally almost the same as
+	  the Jetson TK1.  The main differences are in which balls on
+	  the SoC are assigned to which functions, and the PCIEe
+	  configuration.
+
 config TARGET_NYAN_BIG
 	bool "Google/NVIDIA Nyan-big Chromebook"
 	help
@@ -26,6 +37,7 @@ endchoice
 config SYS_SOC
 	default "tegra124"
 
+source "board/cei/cei-tk1-som/Kconfig"
 source "board/nvidia/jetson-tk1/Kconfig"
 source "board/nvidia/nyan-big/Kconfig"
 source "board/nvidia/venice2/Kconfig"
board/cei/cei-tk1-som/Kconfig new file +12 -0
new file mode 100644
index 0000000..5fcb51f
@@ -0,0 +1,12 @@
+if TARGET_CEI_TK1_SOM
+
+config SYS_BOARD
+	default "cei-tk1-som"
+
+config SYS_VENDOR
+	default "cei"
+
+config SYS_CONFIG_NAME
+	default "cei-tk1-som"
+
+endif
board/cei/cei-tk1-som/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..192e1a3
@@ -0,0 +1,6 @@
+TK1-SOM BOARD
+M:	Peter.Chubb at data61.csiro.au
+S:	Maintained
+F:	board/cei/tk1-som/
+F:	include/configs/cei-tk1-som.h
+F:	configs/cei-tk1-som_defconfig
board/cei/cei-tk1-som/Makefile new file +9 -0
new file mode 100644
index 0000000..127b104
@@ -0,0 +1,9 @@
+#
+# (C) Copyright 2014
+# NVIDIA Corporation <www.nvidia.com>
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= ../../nvidia/venice2/as3722_init.o
+obj-y	+= cei-tk1-som.o
board/cei/cei-tk1-som/cei-tk1-som.c new file +65 -0

65 lines not on this page · raw message

board/cei/cei-tk1-som/pinmux-config-cei-tk1-som.h new file +301 -0

301 lines not on this page · raw message

board/nvidia/venice2/as3722_init.h +4 -4
index c6b1247..30fb132 100644
@@ -18,14 +18,14 @@
 #define AS3722_LDO6VOLTAGE_REG	0x16	/* VDD_SDMMC */
 #define AS3722_LDCONTROL_REG	0x4E
 
-#if defined(CONFIG_TARGET_JETSON_TK1) || defined(CONFIG_TARGET_NYAN_BIG)
-#define AS3722_SD0VOLTAGE_DATA	(0x3C00 | AS3722_SD0VOLTAGE_REG)
-#else
+#if defined(CONFIG_TARGET_VENICE2)
 #define AS3722_SD0VOLTAGE_DATA	(0x2800 | AS3722_SD0VOLTAGE_REG)
+#else /* TK1 or Nyan-Big */
+#define AS3722_SD0VOLTAGE_DATA	(0x3C00 | AS3722_SD0VOLTAGE_REG)
 #endif
 #define AS3722_SD0CONTROL_DATA	(0x0100 | AS3722_SDCONTROL_REG)
 
-#ifdef CONFIG_TARGET_JETSON_TK1
+#if defined(CONFIG_TARGET_JETSON_TK1) || defined(CONFIG_TARGET_CEI_TK1_SOM)
 #define AS3722_SD1VOLTAGE_DATA	(0x2800 | AS3722_SD1VOLTAGE_REG)
 #define AS3722_SD1CONTROL_DATA	(0x0200 | AS3722_SDCONTROL_REG)
 #endif
configs/cei-tk1-som_defconfig new file +47 -0

47 lines not on this page · raw message

include/configs/cei-tk1-som.h new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
2.9.3