Skip to contentSkip to conversation

arm64: meson: add libretech cc v2 support

PATCH RESEND New Jerome Brunet 2 participants 4 messages Nov 6, 2020 – Nov 12, 2020

Subsystems (2)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

v2 cover arm64: meson: add libretech cc v2 support

This patchset adds support for the Amlogic based libretech cc v2. Like the v1, this revised platform used the s905x SoC.

Changes since v1:
- Move Makefile change to patch #1
- Amend documentation for libretech cc v2

Jerome Brunet (2):
arm64: dts: import libretech-cc-v2 from linux v5.10-rc1
arm64: meson: add support for libretech-cc v2

 arch/arm/dts/Makefile                         |   1 +
 ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi |   7 +
 .../dts/meson-gxl-s905x-libretech-cc-v2.dts   | 318 ++++++++++++++++++
 board/amlogic/p212/MAINTAINERS                |   1 +
 configs/libretech-cc_v2_defconfig             |  82 +++++
 doc/board/amlogic/index.rst                   | 117 +++----
 doc/board/amlogic/libretech-cc.rst            |  15 +-
 7 files changed, 480 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2.dts
 create mode 100644 configs/libretech-cc_v2_defconfig
Signature · 1 line
2.28.0
author reviewer
#1 lore raw

PATCH RESEND v2 1/2 arm64: dts: import libretech-cc-v2 from linux v5.10-rc1

Sync the libretech cc v2 device tree from Linux v5.10-rc1 commit 3650b228f83a ("Linux 5.10-rc1")

---
 arch/arm/dts/Makefile                         |   1 +
 .../dts/meson-gxl-s905x-libretech-cc-v2.dts   | 318 ++++++++++++++++++
 2 files changed, 319 insertions(+)
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2.dts
arch/arm/dts/Makefile +1 -0
index b195723f1645..e957820e8e62 100644
@@ -159,6 +159,7 @@ dtb-$(CONFIG_ARCH_MESON) += \
 	meson-gxl-s905x-p212.dtb \
 	meson-gxl-s805x-libretech-ac.dtb \
 	meson-gxl-s905x-libretech-cc.dtb \
+	meson-gxl-s905x-libretech-cc-v2.dtb \
 	meson-gxl-s905x-khadas-vim.dtb \
 	meson-gxl-s905d-libretech-pc.dtb \
 	meson-gxm-khadas-vim2.dtb \
arch/arm/dts/meson-gxl-s905x-libretech-cc-v2.dts new file +318 -0

318 lines not on this page · raw message

Signature · 1 line
2.28.0
author reviewer
#2 lore raw

PATCH RESEND v2 2/2 arm64: meson: add support for libretech-cc v2

In reply to Jerome Brunet

Add support for the Amlogic based libretech cc version 2. As version 1, it is based on the s905x SoC.

---
 ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi |   7 ++
 board/amlogic/p212/MAINTAINERS                |   1 +
 configs/libretech-cc_v2_defconfig             |  82 ++++++++++++
 doc/board/amlogic/index.rst                   | 117 +++++++++---------
 doc/board/amlogic/libretech-cc.rst            |  15 ++-
 5 files changed, 161 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi
 create mode 100644 configs/libretech-cc_v2_defconfig
arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi new file +7 -0
new file mode 100644
index 000000000000..8ff5a0ef2ba5
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 BayLibre, SAS.
+ * Author: Jerome Brunet <[email protected]>
+ */
+
+#include "meson-gxl-u-boot.dtsi"
board/amlogic/p212/MAINTAINERS +1 -0
index cae6994393d7..3d622af29ba9 100644
@@ -7,6 +7,7 @@ F:	include/configs/p212.h
 F:	configs/khadas-vim_defconfig
 F:	configs/libretech-ac_defconfig
 F:	configs/libretech-cc_defconfig
+F:	configs/libretech-cc_v2_defconfig
 F:	configs/p212_defconfig
 F:	doc/board/amlogic/p212.rst
 F:	doc/board/amlogic/libretech-ac.rst
configs/libretech-cc_v2_defconfig new file +82 -0

82 lines not on this page · raw message

doc/board/amlogic/index.rst +59 -58

123 lines not on this page · raw message

doc/board/amlogic/libretech-cc.rst +12 -3
index f2e26cabf908..3e510c756201 100644
@@ -1,11 +1,12 @@
 .. SPDX-License-Identifier: GPL-2.0+
 
-U-Boot for LibreTech CC
-=======================
+U-Boot for LibreTech CCs
+========================
 
 LibreTech CC is a single board computer manufactured by Libre Technology
 with the following specifications:
 
+ V1:
  - Amlogic S905X ARM Cortex-A53 quad-core SoC @ 1.5GHz
  - ARM Mali 450 GPU
  - 2GB DDR3 SDRAM
@@ -15,6 +16,11 @@ with the following specifications:
  - 4 x USB 2.0 Host
  - eMMC, microSD
  - Infrared receiver
+ - Jack for CVBS and Audio
+
+ V2:
+ - Added SPI NOR
+ - Removed Jack
 
 Schematics are available on the manufacturer website.
 
@@ -27,6 +33,8 @@ U-Boot compilation
     $ make libretech-cc_defconfig
     $ make
 
+Use libretech-cc_v2_defconfig for v2.
+
 Image creation
 --------------
 
@@ -41,7 +49,8 @@ bootloaders:
 * acs.bin: built from vendor u-boot source
 
 These binaries and the tools required below have been collected and prebuilt
-for convenience at <https://github.com/BayLibre/u-boot/releases/>
+for convenience at <https://github.com/BayLibre/u-boot/releases/>. These
+apply to both v1 and v2.
 
 Download and extract the libretech-cc release from there, and set FIPDIR to
 point to the `fip` subdirectory.
Signature · 1 line
2.28.0
#3 lore raw

v2 cover arm64: meson: add libretech cc v2 support

In reply to Jerome Brunet
Quoted 11 lines · Jerome Brunet

This patchset adds support for the Amlogic based libretech cc v2. Like the v1, this revised platform used the s905x SoC.

Changes since v1:
- Move Makefile change to patch #1
- Amend documentation for libretech cc v2

Jerome Brunet (2):
arm64: dts: import libretech-cc-v2 from linux v5.10-rc1
arm64: meson: add support for libretech-cc v2

Quoted 12 lines
 arch/arm/dts/Makefile                         |   1 +
 ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi |   7 +
 .../dts/meson-gxl-s905x-libretech-cc-v2.dts   | 318 ++++++++++++++++++
 board/amlogic/p212/MAINTAINERS                |   1 +
 configs/libretech-cc_v2_defconfig             |  82 +++++
 doc/board/amlogic/index.rst                   | 117 +++----
 doc/board/amlogic/libretech-cc.rst            |  15 +-
 7 files changed, 480 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2.dts
 create mode 100644 configs/libretech-cc_v2_defconfig

Thanks,
Applied to u-boot-amlogic-next