Skip to contentSkip to conversation

sunxi: add support for Banana Pi M2 Zero board

PATCH New Jun Nie 2 participants 2 messages Jun 6, 2018 – Jun 7, 2018

Subsystems (2)
lore
Share & tools
lore

Jun Nie

author
#0 lore raw

PATCH v3 1/1 sunxi: add support for Banana Pi M2 Zero board

Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one powering-only) and a miniHDMI port.

---
 arch/arm/dts/Makefile                           |   1 +
 arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 122 ++++++++++++++++++++++++
 board/sunxi/MAINTAINERS                         |   5 +
 configs/bananapi_m2_zero_defconfig              |  15 +++
 4 files changed, 143 insertions(+)
 create mode 100644 arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts
 create mode 100644 configs/bananapi_m2_zero_defconfig
arch/arm/dts/Makefile +1 -0
index 790571b..5d392e8 100644
@@ -354,6 +354,7 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \
 	sun8i-a83t-cubietruck-plus.dtb \
 	sun8i-a83t-tbs-a711.dts
 dtb-$(CONFIG_MACH_SUN8I_H3) += \
+	sun8i-h2-plus-bananapi-m2-zero.dtb \
 	sun8i-h2-plus-libretech-all-h3-cc.dtb \
 	sun8i-h2-plus-orangepi-zero.dtb \
 	sun8i-h3-bananapi-m2-plus.dtb \
arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts new file +122 -0

122 lines not on this page · raw message

board/sunxi/MAINTAINERS +5 -0
index e90c87b..e199ec9 100644
@@ -382,6 +382,11 @@ M:	Icenowy Zheng <[email protected]>
 S:	Maintained
 F:	configs/Sinovoip_BPI_M2_Plus_defconfig
 
+SINOVOIP BPI M2 ZERO BOARD
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+F:	configs/Sinovoip_BPI_M2_Zero_defconfig
+
 SINOVOIP BPI M3 A83T BOARD
 M:	VishnuPatekar <[email protected]>
 S:	Maintained
configs/bananapi_m2_zero_defconfig new file +15 -0
new file mode 100644
index 0000000..668ade5
@@ -0,0 +1,15 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SYS_TEXT_BASE=0x4a000000
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=408
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+CONFIG_MMC0_CD_PIN="PF6"
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-bananapi-m2-zero"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_ISO_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
Signature · 1 line
2.7.4
#1 lore raw

PATCH v3 1/1 sunxi: add support for Banana Pi M2 Zero board

configs/bananapi_m2_zero_defconfig line 3

Quoted 9 lines · Jun Nie
configs/bananapi_m2_zero_defconfig new file +3 -0
new file mode 100644
index 0000000..668ade5
@@ -0,0 +1,15 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SYS_TEXT_BASE=0x4a000000

This should be the default already in 2018.07-rc1. If it isn't we'll need to figure out why, this doesn't really belong in a defconfig.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com