Skip to contentSkip to conversation

board: mediatek: Add pumpkin board support

PATCH Superseded Fabien Parent 1 participant 1 message May 13, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: mediatek: Add pumpkin board support

The pumpkin board is made by Gossamer Engineering and is using a MediaTek SoC. The board currently comes in two available version:
MT8516 SoC and MT8167 SoC.
The board provides the following IOs: eMMC, NAND, SD card, USB type-A, Ethernet, Wi-Fi, Bluetooth, Audio (jack out, 2 PDM port, 1 analog in), serial over USB, and an expansion header.

Additionally there is a HDMI port, DSI port, and camera port only on the MT8167 version of the board.

The board can be powered by battery and/or via a USB Type-C port and is using a PMIC MT6392.

The eMMC and NAND are sharing pins and cannot be used together.

This commit is adding the basic boot support for the Pumpkin MT8516 board on the eMMC.

---
 arch/arm/dts/Makefile              |   3 +-
 arch/arm/dts/mt8516-pumpkin.dts    | 110 +++++++++++++++++++++++++++++
 arch/arm/mach-mediatek/Kconfig     |   1 +
 board/mediatek/pumpkin/Kconfig     |  13 ++++
 board/mediatek/pumpkin/MAINTAINERS |   6 ++
 board/mediatek/pumpkin/Makefile    |   3 +
 board/mediatek/pumpkin/pumpkin.c   |  14 ++++
 configs/pumpkin_defconfig          |  64 +++++++++++++++++
 include/configs/pumpkin.h          |  58 +++++++++++++++
 9 files changed, 271 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/mt8516-pumpkin.dts
 create mode 100644 board/mediatek/pumpkin/Kconfig
 create mode 100644 board/mediatek/pumpkin/MAINTAINERS
 create mode 100644 board/mediatek/pumpkin/Makefile
 create mode 100644 board/mediatek/pumpkin/pumpkin.c
 create mode 100644 configs/pumpkin_defconfig
 create mode 100644 include/configs/pumpkin.h
arch/arm/dts/Makefile +2 -1
index 83058c4452..7b48e5e142 100644
@@ -752,7 +752,8 @@ dtb-$(CONFIG_SOC_K3_AM6) += k3-am654-base-board.dtb k3-am654-r5-base-board.dtb
 
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7623n-bananapi-bpi-r2.dtb \
-	mt7629-rfb.dtb
+	mt7629-rfb.dtb \
+	mt8516-pumpkin.dtb
 
 dtb-$(CONFIG_TARGET_GE_BX50V3) += imx6q-bx50v3.dtb
 dtb-$(CONFIG_TARGET_MX53PPD) += imx53-ppd.dtb
arch/arm/dts/mt8516-pumpkin.dts new file +110 -0

110 lines not on this page · raw message

arch/arm/mach-mediatek/Kconfig +1 -0
index b5e91d4a7d..a7d594f48a 100644
@@ -45,5 +45,6 @@ endchoice
 
 source "board/mediatek/mt7623/Kconfig"
 source "board/mediatek/mt7629/Kconfig"
+source "board/mediatek/pumpkin/Kconfig"
 
 endif
board/mediatek/pumpkin/Kconfig new file +13 -0
new file mode 100644
index 0000000000..fb81fa8906
@@ -0,0 +1,13 @@
+if TARGET_MT8516
+
+config SYS_BOARD
+	default "pumpkin"
+
+config SYS_CONFIG_NAME
+	default "pumpkin"
+
+config MTK_BROM_HEADER_INFO
+	string
+	default "media=nor"
+
+endif
board/mediatek/pumpkin/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..16beadc027
@@ -0,0 +1,6 @@
+Pumpkin
+M:	Fabien Parent <[email protected]>
+S:	Maintained
+F:	board/mediatek/pumpkin
+F:	include/configs/pumpkin.h
+F:	configs/pumpkin_defconfig
board/mediatek/pumpkin/Makefile new file +3 -0
new file mode 100644
index 0000000000..75fce4a393
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier:	GPL-2.0
+
+obj-y += pumpkin.o
board/mediatek/pumpkin/pumpkin.c new file +14 -0
new file mode 100644
index 0000000000..c20e91c9e6
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 BayLibre SAS
+ */
+
+#include <common.h>
+#include <dm.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+	return 0;
+}
configs/pumpkin_defconfig new file +64 -0

64 lines not on this page · raw message

include/configs/pumpkin.h new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.20.1