Skip to contentSkip to conversation

arm: octeontx2: Add base support for Marvell OcteonTX2 CN913x DB

PATCH New Stefan Roese 1 participant 3 messages May 11, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

v3 cover arm: octeontx2: Add base support for Marvell OcteonTX2 CN913x DB

This patchset adds the base support for the Marvell OcteonTX2 CN913x DB board and includes required dts/dtsi files and the defconfig files for this.

Thanks,
Stefan

Changes in v3:
- Changed board MAINTAINERS to reflect the latest changes of added files

Changes in v2:
- Changed commit text from CN9132 to CN913x as it supports all variants
- Merge identical DT nodes from the A & B variants into the common dtsi files
- Change Copyright notice to 2018-2021 as requested by Marvell
- Changed commit text from CN9132 to CN913x as it supports all variants
- Renamed default defconfig to mvebu_db_cn9130_defconfig
- Removed NAND booting defconfig and added small README

Stefan Roese (2):
arm: octeontx2: Add dtsi/dts files for Octeon TX2 CN913x DB
arm: octeontx2: Add Octeon TX2 CN913x DB support

 arch/arm/dts/Makefile                      |   6 +
 arch/arm/dts/cn9130-db-A.dts               |  55 ++++
 arch/arm/dts/cn9130-db-B.dts               |  51 ++++
 arch/arm/dts/cn9130-db-dev-info.dtsi       |  44 +++
 arch/arm/dts/cn9130-db.dtsi                | 316 +++++++++++++++++++++
 arch/arm/dts/cn9131-db-A.dts               |  54 ++++
 arch/arm/dts/cn9131-db-B.dts               |  69 +++++
 arch/arm/dts/cn9131-db.dtsi                | 166 +++++++++++
 arch/arm/dts/cn9132-db-A.dts               |  13 +
 arch/arm/dts/cn9132-db-B.dts               |  13 +
 arch/arm/dts/cn9132-db.dtsi                | 217 ++++++++++++++
 board/Marvell/octeontx2_cn913x/MAINTAINERS |   1 +
 board/Marvell/octeontx2_cn913x/README      |  24 ++
 configs/mvebu_db_cn9130_defconfig          |  89 ++++++
 14 files changed, 1118 insertions(+)
 create mode 100644 arch/arm/dts/cn9130-db-A.dts
 create mode 100644 arch/arm/dts/cn9130-db-B.dts
 create mode 100644 arch/arm/dts/cn9130-db-dev-info.dtsi
 create mode 100644 arch/arm/dts/cn9130-db.dtsi
 create mode 100644 arch/arm/dts/cn9131-db-A.dts
 create mode 100644 arch/arm/dts/cn9131-db-B.dts
 create mode 100644 arch/arm/dts/cn9131-db.dtsi
 create mode 100644 arch/arm/dts/cn9132-db-A.dts
 create mode 100644 arch/arm/dts/cn9132-db-B.dts
 create mode 100644 arch/arm/dts/cn9132-db.dtsi
 create mode 100644 board/Marvell/octeontx2_cn913x/README
 create mode 100644 configs/mvebu_db_cn9130_defconfig
Signature · 1 line
2.31.1
#1 lore raw

PATCH v3 1/2 arm: octeontx2: Add dtsi/dts files for Octeon TX2 CN913x DB

From: Konstantin Porotchkin <[email protected]>

This patch adds the dtsi/dts files needed to support the Marvell Octeon TX2 CN913x DB. This is only the base port with not all interfaces supported fully.

---

(no changes since v2)

Changes in v2:
- Changed commit text from CN9132 to CN913x as it supports all variants
- Merge identical DT nodes from the A & B variants into the common dtsi files
- Change Copyright notice to 2018-2021 as requested by Marvell

 arch/arm/dts/Makefile                |   6 +
 arch/arm/dts/cn9130-db-A.dts         |  55 +++++
 arch/arm/dts/cn9130-db-B.dts         |  51 +++++
 arch/arm/dts/cn9130-db-dev-info.dtsi |  44 ++++
 arch/arm/dts/cn9130-db.dtsi          | 316 +++++++++++++++++++++++++++
 arch/arm/dts/cn9131-db-A.dts         |  54 +++++
 arch/arm/dts/cn9131-db-B.dts         |  69 ++++++
 arch/arm/dts/cn9131-db.dtsi          | 166 ++++++++++++++
 arch/arm/dts/cn9132-db-A.dts         |  13 ++
 arch/arm/dts/cn9132-db-B.dts         |  13 ++
 arch/arm/dts/cn9132-db.dtsi          | 217 ++++++++++++++++++
 11 files changed, 1004 insertions(+)
 create mode 100644 arch/arm/dts/cn9130-db-A.dts
 create mode 100644 arch/arm/dts/cn9130-db-B.dts
 create mode 100644 arch/arm/dts/cn9130-db-dev-info.dtsi
 create mode 100644 arch/arm/dts/cn9130-db.dtsi
 create mode 100644 arch/arm/dts/cn9131-db-A.dts
 create mode 100644 arch/arm/dts/cn9131-db-B.dts
 create mode 100644 arch/arm/dts/cn9131-db.dtsi
 create mode 100644 arch/arm/dts/cn9132-db-A.dts
 create mode 100644 arch/arm/dts/cn9132-db-B.dts
 create mode 100644 arch/arm/dts/cn9132-db.dtsi
arch/arm/dts/Makefile +6 -0
index a5cae010c263..92e68ca4361b 100644
@@ -237,6 +237,12 @@ dtb-$(CONFIG_ARCH_MVEBU) +=			\
 	armada-xp-maxbcm.dtb			\
 	armada-xp-synology-ds414.dtb		\
 	armada-xp-theadorable.dtb		\
+	cn9130-db-A.dtb				\
+	cn9130-db-B.dtb				\
+	cn9131-db-A.dtb				\
+	cn9131-db-B.dtb				\
+	cn9132-db-A.dtb				\
+	cn9132-db-B.dtb				\
 	cn9130-crb-A.dtb			\
 	cn9130-crb-B.dtb
 
arch/arm/dts/cn9130-db-A.dts new file +55 -0

55 lines not on this page · raw message

arch/arm/dts/cn9130-db-B.dts new file +51 -0

51 lines not on this page · raw message

arch/arm/dts/cn9130-db-dev-info.dtsi new file +44 -0

44 lines not on this page · raw message

arch/arm/dts/cn9130-db.dtsi new file +316 -0

316 lines not on this page · raw message

arch/arm/dts/cn9131-db-A.dts new file +54 -0

54 lines not on this page · raw message

arch/arm/dts/cn9131-db-B.dts new file +69 -0

69 lines not on this page · raw message

arch/arm/dts/cn9131-db.dtsi new file +166 -0

166 lines not on this page · raw message

arch/arm/dts/cn9132-db-A.dts new file +13 -0
new file mode 100644
index 000000000000..ba9b8a25d1d8
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2018-2021 Marvell International Ltd.
+ */
+
+#include "cn9131-db-A.dts"
+#include "cn9132-db.dtsi"
+
+/ {
+	model = "Marvell CN9132 development board (CP NOR) setup(A)";
+	compatible = "marvell,cn9132-db", "marvell,armada-ap806-quad",
+		     "marvell,armada-ap806";
+};
arch/arm/dts/cn9132-db-B.dts new file +13 -0
new file mode 100644
index 000000000000..e126e23ea65f
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2018-2021 Marvell International Ltd.
+ */
+
+#include "cn9131-db-B.dts"
+#include "cn9132-db.dtsi"
+
+/ {
+	model = "Marvell CN9132 development board (CP NAND) setup(B)";
+	compatible = "marvell,cn9132-db-B", "marvell,armada-ap806-quad",
+		     "marvell,armada-ap806";
+};
arch/arm/dts/cn9132-db.dtsi new file +217 -0

217 lines not on this page · raw message

Signature · 1 line
2.31.1
#2 lore raw

PATCH v3 2/2 arm: octeontx2: Add Octeon TX2 CN913x DB support

In reply to Stefan Roese

From: Konstantin Porotchkin <[email protected]>

This patch adds the base support for the Marvell Octeon TX2 CN913x DB. Only one defconfig is added with this patch. Other board variants are available (NAND, MMC booting) and images for these boards can be generated by following the documentation added in the included README.

---

Changes in v3:
- Changed board MAINTAINERS to reflect the latest changes of added files

Changes in v2:
- Changed commit text from CN9132 to CN913x as it supports all variants
- Renamed default defconfig to mvebu_db_cn9130_defconfig
- Removed NAND booting defconfig and added small README

 board/Marvell/octeontx2_cn913x/MAINTAINERS |  1 +
 board/Marvell/octeontx2_cn913x/README      | 24 ++++++
 configs/mvebu_db_cn9130_defconfig          | 89 ++++++++++++++++++++++
 3 files changed, 114 insertions(+)
 create mode 100644 board/Marvell/octeontx2_cn913x/README
 create mode 100644 configs/mvebu_db_cn9130_defconfig
board/Marvell/octeontx2_cn913x/MAINTAINERS +1 -0
index d469e16ea753..74c5fd16e295 100644
@@ -3,3 +3,4 @@ M:	Kostya Porotchkin <[email protected]>
 S:	Maintained
 F:	board/Marvell/octeontx2_cn913x/
 F:	configs/mvebu_crb_cn9130_defconfig
+F:	configs/mvebu_db_cn9130_defconfig
board/Marvell/octeontx2_cn913x/README new file +24 -0
new file mode 100644
index 000000000000..3d0c8b31e4c2
@@ -0,0 +1,24 @@
+Not all board variants are represented with a specific defconfig in
+mainline U-Boot. Here a small documentation on how to generate U-Boot
+images for all other board variants, available via different dts
+files and defconfigs.
+
+Use a different dts than in the defconfig:
+
+make DEVICE_TREE=cn9131-db-B
+
+Use a different boot device (e.g. MMC or NAND instead of SPI NOR):
+
+For MMC, please make the following changes to the defconfig via
+e.g. "make menuconfig":
+Remove CONFIG_MVEBU_SPI_BOOT
+Select CONFIG_MVEBU_MMC_BOOT
+Remove CONFIG_ENV_IS_IN_SPI_FLASH
+Select CONFIG_ENV_IS_IN_MMC
+
+For NAND, please make the following changes to the defconfig via
+e.g. "make menuconfig":
+Remove CONFIG_MVEBU_SPI_BOOT
+Select CONFIG_MVEBU_NAND_BOOT
+Remove CONFIG_ENV_IS_IN_SPI_FLASH
+Select CONFIG_ENV_IS_IN_NAND
configs/mvebu_db_cn9130_defconfig new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.31.1