Skip to contentSkip to conversation

Add Cavium ARCH_THUNDER2 platform

PATCH Superseded Jayachandran C 3 participants 11 messages Feb 5, 2017 – Feb 9, 2017

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add Cavium ARCH_THUNDER2 platform

Here's the updated patchset, please let me know if thereare any comments. If a pull request is needed(with a public git tree), I can set one up on github.

This patchset adds support for the new ThunderX2 CN99XX processor family.

Changes are to add: the config option, the required device tree files, the device tree bindings documentation and the defconfig entry.

Changes from v1 -> v2:
* split Kconfig.platforms changes and device tree changes
* Added MAINTAINERS entry

JC.

Jayachandran C (5):
arm64: add THUNDER2 processor family
MAINTAINERS: Add Cavium ThunderX2 entry
arm64: dts: add device trees for ARCH_THUNDER2
dt-bindings: arm64 ARCH_THUNDER2 platform documentation
arm64: add ARCH_THUNDER2 to defconfig

 .../devicetree/bindings/arm/cavium-thunder2.txt    |   5 +
 Documentation/devicetree/bindings/arm/cpus.txt     |   1 +
 MAINTAINERS                                        |   7 +
 arch/arm64/Kconfig.platforms                       |   7 +
 arch/arm64/boot/dts/cavium/Makefile                |   1 +
 arch/arm64/boot/dts/cavium/thunder-99xx.dts        |  34 +++++
 arch/arm64/boot/dts/cavium/thunder-99xx.dtsi       | 147 +++++++++++++++++++++
 arch/arm64/configs/defconfig                       |   1 +
 8 files changed, 203 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/cavium-thunder2.txt
 create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dts
 create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dtsi
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/5 arm64: add THUNDER2 processor family

Add support for ThunderX2 CN99XX arm64 server processors.

Introduce a new arm64 platform config option ARCH_THUNDER2 for these processors.

---
 arch/arm64/Kconfig.platforms | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/Kconfig.platforms +7 -0
index 715ef12..129cc5a 100644
@@ -190,6 +190,13 @@ config ARCH_THUNDER
 	help
 	  This enables support for Cavium's Thunder Family of SoCs.
 
+config ARCH_THUNDER2
+	bool "Cavium ThunderX2 Server Processors"
+	select GPIOLIB
+	help
+	  This enables support for Cavium's ThunderX2 CN99XX family of
+	  server processors.
+
 config ARCH_UNIPHIER
 	bool "Socionext UniPhier SoC Family"
 	select ARCH_HAS_RESET_CONTROLLER
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 1/5 arm64: add THUNDER2 processor family

Quoted 19 lines · CET Jayachandran C

Add support for ThunderX2 CN99XX arm64 server processors.

Introduce a new arm64 platform config option ARCH_THUNDER2 for these processors.

---
 arch/arm64/Kconfig.platforms | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/Kconfig.platforms +0 -0
index 715ef12..129cc5a 100644
@@ -190,6 +190,13 @@ config ARCH_THUNDER
 	help
 	  This enables support for Cavium's Thunder Family of SoCs.
 

arch/arm64/Kconfig.platforms config ARCH_THUNDER · line 202

Quoted 10 lines
arch/arm64/Kconfig.platforms +7 -0
+config ARCH_THUNDER2
+	bool "Cavium ThunderX2 Server Processors"
+	select GPIOLIB
+	help
+	  This enables support for Cavium's ThunderX2 CN99XX family of
+	  server processors.
+
 config ARCH_UNIPHIER
 	bool "Socionext UniPhier SoC Family"
 	select ARCH_HAS_RESET_CONTROLLER

Applied this one to next/arm64, thanks!

Arnd

#3 lore raw

PATCH v2 2/5 MAINTAINERS: Add Cavium ThunderX2 entry

In reply to Jayachandran C

Add maintainer information for Cavium ThunderX2 ARM64 processor family.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 187b961..4f788ad 100644
@@ -2972,6 +2972,13 @@ S:	Maintained
 F:	drivers/iio/light/cm*
 F:	Documentation/devicetree/bindings/i2c/trivial-admin-guide/devices.rst
 
+CAVIUM THUNDERX2 ARM64 SOC
+M:	Jayachandran C <[email protected]>
+L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
+S:	Maintained
+F:	arch/arm64/boot/dts/cavium/thunder-99xx*
+F:	Documentation/devicetree/bindings/arm/cavium-thunder2.txt
+
 CAVIUM I2C DRIVER
 M:	Jan Glauber <[email protected]>
 M:	David Daney <[email protected]>
Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 2/5 MAINTAINERS: Add Cavium ThunderX2 entry

Quoted 4 lines · CET Jayachandran C

Add maintainer information for Cavium ThunderX2 ARM64 processor family.

Applied to next/soc, thanks!

Arnd

#5 lore raw

PATCH v2 3/5 arm64: dts: add device trees for ARCH_THUNDER2

In reply to Jayachandran C

Add device tree files for Cavium's ThunderX2 CN99XX arm64 server processors. The file cavium/thunder-99xx.dtsi has been added for the CPU and on-chip devices, and cavium/thunder-99xx.dts has been added for the evaluation board using the chip.

Update the Makefile to build the thunder-99xx.dtb when the ARCH_THUNDER2 option is selected.

---
 arch/arm64/boot/dts/cavium/Makefile          |   1 +
 arch/arm64/boot/dts/cavium/thunder-99xx.dts  |  34 +++++++
 arch/arm64/boot/dts/cavium/thunder-99xx.dtsi | 147 +++++++++++++++++++++++++++
 3 files changed, 182 insertions(+)
 create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dts
 create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dtsi
arch/arm64/boot/dts/cavium/Makefile +1 -0
index e34f89d..557c8be 100644
@@ -1,4 +1,5 @@
 dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb
+dtb-$(CONFIG_ARCH_THUNDER2) += thunder-99xx.dtb
 
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
arch/arm64/boot/dts/cavium/thunder-99xx.dts new file +34 -0
new file mode 100644
index 0000000..ed6715a
@@ -0,0 +1,34 @@
+/*
+ * dts file for Cavium ThunderX2 CN99XX based Evaluation Boards
+ *
+ * Copyright (c) 2017 Cavium Inc.
+ * Copyright (c) 2013-2016 Broadcom
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ */
+
+/dts-v1/;
+
+#include "thunder-99xx.dtsi"
+
+/ {
+	model = "Cavium ThunderX2 CN99XX";
+	compatible = "cavium,thunder-99xx";
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x80000000 0x0 0x80000000>,  /* 2G @ 2G  */
+		      <0x00000008 0x80000000 0x0 0x80000000>;  /* 2G @ 34G */
+	};
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
arch/arm64/boot/dts/cavium/thunder-99xx.dtsi new file +147 -0

147 lines not on this page · raw message

Signature · 1 line
2.7.4
#6 lore raw

PATCH v2 4/5 dt-bindings: arm64 ARCH_THUNDER2 platform documentation

In reply to Jayachandran C

Add documentation for Cavium ThunderX2 CN99XX ARM64 processor family. The processor core will use the ID "cavium,thunder2" and the SoC will use the ID "cavium,thunder-99xx".

---
 Documentation/devicetree/bindings/arm/cavium-thunder2.txt | 5 +++++
 Documentation/devicetree/bindings/arm/cpus.txt            | 1 +
 2 files changed, 6 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/cavium-thunder2.txt
Documentation/devicetree/bindings/arm/cavium-thunder2.txt new file +5 -0
new file mode 100644
index 0000000..82276a2
@@ -0,0 +1,5 @@
+Cavium Thunder2 Family device tree bindings
+-------------------------------------------
+
+Boards with Cavium ThunderX2 CN99XX shall have the root property:
+  compatible = "cavium,thunder-99xx";
Documentation/devicetree/bindings/arm/cpus.txt +1 -0
index a1bcfee..74f0b23 100644
@@ -169,6 +169,7 @@ nodes to be present and contain the properties described below.
 			    "brcm,brahma-b15"
 			    "brcm,vulcan"
 			    "cavium,thunder"
+			    "cavium,thunder2"
 			    "faraday,fa526"
 			    "intel,sa110"
 			    "intel,sa1100"
Signature · 1 line
2.7.4
#7 lore raw

PATCH v2 5/5 arm64: add ARCH_THUNDER2 to defconfig

In reply to Jayachandran C

This will allow the default kernel build to boot on Cavium ThunderX2 CN99XX processors.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 33b744d..7a9c262 100644
@@ -53,6 +53,7 @@ CONFIG_ARCH_STRATIX10=y
 CONFIG_ARCH_TEGRA=y
 CONFIG_ARCH_SPRD=y
 CONFIG_ARCH_THUNDER=y
+CONFIG_ARCH_THUNDER2=y
 CONFIG_ARCH_UNIPHIER=y
 CONFIG_ARCH_VEXPRESS=y
 CONFIG_ARCH_VULCAN=y
Signature · 1 line
2.7.4
#8 lore raw

PATCH v2 5/5 arm64: add ARCH_THUNDER2 to defconfig

Quoted 4 lines · CET Jayachandran C

This will allow the default kernel build to boot on Cavium ThunderX2 CN99XX processors.

Applied to next/arm64, thanks!

Arnd

#9 lore raw

v2 cover Add Cavium ARCH_THUNDER2 platform

In reply to Jayachandran C

Le 02/04/17 ? 16:57, Jayachandran C a ?crit :

Quoted 7 lines

Here's the updated patchset, please let me know if thereare any comments. If a pull request is needed(with a public git tree), I can set one up on github.

This patchset adds support for the new ThunderX2 CN99XX processor family.

Quoted 6 lines

Changes are to add: the config option, the required device tree files, the device tree bindings documentation and the defconfig entry.

Changes from v1 -> v2:
* split Kconfig.platforms changes and device tree changes
* Added MAINTAINERS entry

Does that mean support for Broadcom Vulcan should be removed then? If do, do you mind doing that?

Signature · 1 line
Florian
#10 lore raw

v2 cover Add Cavium ARCH_THUNDER2 platform

Quoted 11 lines · Florian Fainelli

Le 02/04/17 ? 16:57, Jayachandran C a ?crit :

Quoted 10 lines

Here's the updated patchset, please let me know if thereare any comments. If a pull request is needed(with a public git tree), I can set one up on github.

This patchset adds support for the new ThunderX2 CN99XX processor family.

Changes are to add: the config option, the required device tree files, the device tree bindings documentation and the defconfig entry.

Quoted 6 lines
Quoted 3 lines

Changes from v1 -> v2:
* split Kconfig.platforms changes and device tree changes
* Added MAINTAINERS entry

Does that mean support for Broadcom Vulcan should be removed then? If do, do you mind doing that?

I will send patches for removing ARCH_VULCAN once ARCH_THUNDER2 is merged and the driver dependencies are updated by another set of patches. Otherwise we have a problem (especially in distribution config files) of not being able to select the drivers (for SPI, GPIO and I2C) for the platform.

Thanks,
JC.