Skip to contentSkip to conversation

board: mediatek: Add pumpkin board support

PATCH New Fabien Parent 2 participants 2 messages Jun 18, 2019 – Jul 17, 2019

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

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

---

V3:
* Remove unused gd.

V2:
* Set MTK_BROM_HEADER_INFO to 'emmc' since we only support eMMC right now.

---
 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   |  11 +++
 configs/pumpkin_defconfig          |  64 +++++++++++++++++
 include/configs/pumpkin.h          |  58 +++++++++++++++
 9 files changed, 268 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 528fb909d5..1f66172530 100644
@@ -766,7 +766,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..34b1c0b09d
@@ -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=emmc"
+
+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 +11 -0
new file mode 100644
index 0000000000..666e4d6a26
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 BayLibre SAS
+ */
+
+#include <common.h>
+
+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
#1 lore raw

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

Quoted 13 lines · Fabien Parent

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.

Quoted 6 lines

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.

Currently this fails with:
+(pumpkin) ../drivers/pinctrl/mediatek/pinctrl-mtk-common.c:35:36: error: 'mtk_drive' defined but not used [-Werror=unused-const-variable=] +(pumpkin) static const struct mtk_drive_desc mtk_drive[] = {
+(pumpkin) ^~~~~~~~~
+(pumpkin) make[4]: *** [../scripts/Makefile.build:279: drivers/pinctrl/mediatek/pinctrl-mtk-common.o] Error 1 +(pumpkin) make[3]: *** [../scripts/Makefile.build:432: drivers/pinctrl/mediatek] Error 2
+(pumpkin) make[2]: *** [../scripts/Makefile.build:432: drivers/pinctrl] Error 2

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