Skip to contentSkip to conversation

sunxi: Add support for Olimex A64-Teres-I board

PATCH Superseded Jonas Smedegaard 1 participant 1 message Apr 16, 2019

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sunxi: Add support for Olimex A64-Teres-I board

Olimex Teres-I is a laptop DIY kit, and A64-Teres-I is its mainboard.
https://linux-sunxi.org/Olimex_Teres-A64

This patch enables support for the A64-Teres-I board to u-boot, including enabling screen backlight (lacking from Linux device-tree).

sun50i-a64-teres-i.dts is copied verbatim from linux v5.0 (d91ebb9).

Cosmetic warnings regarding whitespace and placement of SPDX notice for above file was ignored.

config and .dtsi file are adapted from pinebook files.

---

Changes for v2:
* List Icenowy and Jonas as MAINTAINERS
* Add commit hash in linux tree for sun50i-a64-teres-i.dts
* Drop superfluous and unsupported Author: tag

---
 MAINTAINERS                                 |   8 +
 arch/arm/dts/Makefile                       |   3 +-
 arch/arm/dts/sun50i-a64-teres-i-u-boot.dtsi |  41 +++
 arch/arm/dts/sun50i-a64-teres-i.dts         | 270 ++++++++++++++++++++
 configs/teres_i_defconfig                   |  21 ++
 5 files changed, 342 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/sun50i-a64-teres-i-u-boot.dtsi
 create mode 100644 arch/arm/dts/sun50i-a64-teres-i.dts
 create mode 100644 configs/teres_i_defconfig
MAINTAINERS +8 -0
index c77abba1e5..d6ba87a0ba 100644
@@ -319,6 +319,14 @@ F:	arch/arm/include/asm/arch-sunxi/
 F:	arch/arm/mach-sunxi/
 F:	board/sunxi/
 
+ARM SUNXI OLIMEX TERES-I
+M:	Jonas Smedegaard <[email protected]>
+M:	Icenowy Zheng <[email protected]>
+S:	Maintained
+T:	git https://salsa.debian.org/js/u-boot
+F:	arch/arm/dts/sun50i-a64-teres-i*
+F:	configs/teres_i_defconfig
+
 ARM TEGRA
 M:	Tom Warren <[email protected]>
 S:	Maintained
arch/arm/dts/Makefile +2 -1
index 8167cdb4e8..a12ed81f49 100644
@@ -483,7 +483,8 @@ dtb-$(CONFIG_MACH_SUN50I) += \
 	sun50i-a64-pine64-plus.dtb \
 	sun50i-a64-pine64.dtb \
 	sun50i-a64-pinebook.dtb \
-	sun50i-a64-sopine-baseboard.dtb
+	sun50i-a64-sopine-baseboard.dtb \
+	sun50i-a64-teres-i.dtb
 dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb \
 	sun9i-a80-cubieboard4.dtb \
arch/arm/dts/sun50i-a64-teres-i-u-boot.dtsi new file +41 -0

41 lines not on this page · raw message

arch/arm/dts/sun50i-a64-teres-i.dts new file +270 -0

270 lines not on this page · raw message

configs/teres_i_defconfig new file +21 -0
new file mode 100644
index 0000000000..939dc24408
@@ -0,0 +1,21 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SPL=y
+CONFIG_MACH_SUN50I=y
+CONFIG_DRAM_CLK=552
+CONFIG_DRAM_ZQ=3881949
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
+CONFIG_I2C0_ENABLE=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-teres-i"
+CONFIG_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_PWM=y
+CONFIG_PWM_SUNXI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
+# CONFIG_USB_GADGET is not set
+CONFIG_VIDEO_BRIDGE=y
+CONFIG_VIDEO_BRIDGE_ANALOGIX_ANX6345=y
Signature · 1 line
2.20.1