Skip to contentSkip to conversation

Add AMD Pensando Elba Device Tree

PATCH Applied Brad Larson 2 participants 6 messages Sep 25, 2023 – Sep 28, 2023

Subsystems (4)
lore
Share & tools
lore

Brad Larson

author maintainer
#0 lore raw

cover Add AMD Pensando Elba Device Tree

The Elba System Controller is dropped from this patch series. The following Elba enablement patches have been merged.

f2156989bf30 spi: cdns: Add compatible for AMD Pensando Elba SoC f5c2f9f95843 spi: cadence-quadspi: Add compatible for AMD Pensando Elba SoC 2c8606040a80 spi: dw: Add support for AMD Pensando Elba SoC 6282a6ceef62 spi: dw: Add AMD Pensando Elba SoC SPI Controller aad53d4ee756 mmc: sdhci-cadence: Support mmc hardware reset b5dbcf1f1d1a mmc: sdhci-cadence: Add AMD Pensando Elba SoC support e095b78ef2db mmc: sdhci-cadence: Support device specific init during probe d3e32f847891 mmc: sdhci-cadence: Enable device specific override of writel() 82e4726b00e9 dt-bindings: mmc: cdns: Add AMD Pensando Elba SoC 8e993c5888fa dt-bindings: mfd: syscon: Add amd,pensando-elba-syscon compatible

The relevant DT changes from the previous series is below. That series is being split into two. The first is this series with the device tree and what is missing for enablement. The second for TBD Elba system controller support.

v15-0006-arm64-dts-Add-AMD-Pensando-Elba-SoC-support.patch
- The first cell in the cpu reg property is always zero. Change address-cells to <1> and dropped the leading zero from all cpu* reg<>
- Added read-only and spare partitions to flash0

v14-0006-arm64-dts-Add-AMD-Pensando-Elba-SoC-support.patch
- Fix dtbs_check l2-cache* property issue by adding required cache-level and cache-unified properties
- Observed the issue after updating dtschema from 2023.1 to 2023.4 and yamllint from 1.26.3 to 1.30.0

v6-0010-arm64-dts-Add-AMD-Pensando-Elba-SoC-support
- Update node names and add amd,pensando-elba-syscon

Brad Larson (4):
dt-bindings: arm: add AMD Pensando boards
MAINTAINERS: Add entry for AMD PENSANDO
arm64: Add config for AMD Pensando SoC platforms
arm64: dts: Add AMD Pensando Elba SoC support

 .../devicetree/bindings/arm/amd,pensando.yaml |  26 +++
 MAINTAINERS                                   |   7 +
 arch/arm64/Kconfig.platforms                  |  12 ++
 arch/arm64/boot/dts/amd/Makefile              |   1 +
 arch/arm64/boot/dts/amd/elba-16core.dtsi      | 197 ++++++++++++++++++
 arch/arm64/boot/dts/amd/elba-asic-common.dtsi |  70 +++++++
 arch/arm64/boot/dts/amd/elba-asic.dts         |  28 +++
 arch/arm64/boot/dts/amd/elba-flash-parts.dtsi | 117 +++++++++++
 arch/arm64/boot/dts/amd/elba.dtsi             | 191 +++++++++++++++++
 9 files changed, 649 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/amd,pensando.yaml
 create mode 100644 arch/arm64/boot/dts/amd/elba-16core.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba-asic-common.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba-asic.dts
 create mode 100644 arch/arm64/boot/dts/amd/elba-flash-parts.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba.dtsi

base-commit: 7bc675554773f09d88101bf1ccfc8537dc7c0be9

Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH 1/4 dt-bindings: arm: add AMD Pensando boards

Document the compatible for AMD Pensando Elba SoC boards.

---
 .../devicetree/bindings/arm/amd,pensando.yaml | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/amd,pensando.yaml
Documentation/devicetree/bindings/arm/amd,pensando.yaml new file +26 -0
new file mode 100644
index 000000000000..e5c2591834a8
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/amd,pensando.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMD Pensando SoC Platforms
+
+maintainers:
+  - Brad Larson <[email protected]>
+
+properties:
+  $nodename:
+    const: "/"
+  compatible:
+    oneOf:
+
+      - description: Boards with Pensando Elba SoC
+        items:
+          - enum:
+              - amd,pensando-elba-ortano
+          - const: amd,pensando-elba
+
+additionalProperties: true
+
+...
Signature · 1 line
2.17.1
author maintainer
#2 lore raw

PATCH 2/4 MAINTAINERS: Add entry for AMD PENSANDO

In reply to Brad Larson

Add entry for AMD PENSANDO maintainer and files

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 2833e2da63e0..a58f7b15e84c 100644
@@ -1815,6 +1815,13 @@ N:	allwinner
 N:	sun[x456789]i
 N:	sun[25]0i
 
+ARM/AMD PENSANDO ARM64 ARCHITECTURE
+M:	Brad Larson <[email protected]>
+L:	[email protected] (moderated for non-subscribers)
+S:	Supported
+F:	Documentation/devicetree/bindings/*/amd,pensando*
+F:	arch/arm64/boot/dts/amd/elba*
+
 ARM/Amlogic Meson SoC CLOCK FRAMEWORK
 M:	Neil Armstrong <[email protected]>
 M:	Jerome Brunet <[email protected]>
Signature · 1 line
2.17.1
author maintainer
#3 lore raw

PATCH 3/4 arm64: Add config for AMD Pensando SoC platforms

In reply to Brad Larson

Add ARCH_PENSANDO configuration option for AMD Pensando SoC based platforms.

---
 arch/arm64/Kconfig.platforms | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/Kconfig.platforms +12 -0
index 6069120199bb..24335565bad5 100644
@@ -244,6 +244,18 @@ config ARCH_NPCM
 	  General support for NPCM8xx BMC (Arbel).
 	  Nuvoton NPCM8xx BMC based on the Cortex A35.
 
+config ARCH_PENSANDO
+	bool "AMD Pensando Platforms"
+	help
+	  This enables support for the ARMv8 based AMD Pensando SoC
+	  family to include the Elba SoC.
+
+	  AMD Pensando SoCs support a range of Distributed Services
+	  Cards in PCIe format installed into servers.  The Elba
+	  SoC includes 16 Cortex A-72 CPU cores, 144 P4-programmable
+	  cores for a minimal latency/jitter datapath, and network
+	  interfaces up to 200 Gb/s.
+
 config ARCH_QCOM
 	bool "Qualcomm Platforms"
 	select GPIOLIB
Signature · 1 line
2.17.1
author maintainer
#4 lore raw

PATCH 4/4 arm64: dts: Add AMD Pensando Elba SoC support

In reply to Brad Larson

Add AMD Pensando common and Elba SoC specific device nodes

---

New series baseline:
- Remove references to system controller

Old series history:
v15 changes:
- The first cell in the cpu reg property is always zero. Change address-cells to <1> and dropped the leading zero from all cpu* reg<>
- Added read-only and spare partitions to flash0

v14 changes:
- Fix dtbs_check l2-cache* property issue by adding required cache-level and cache-unified properties
- Observed the issue after updating dtschema from 2023.1 to 2023.4 and yamllint from 1.26.3 to 1.30.0

v11 changes:
- Delete reset-names
- Fix spi0 compatible to be specific 'amd,pensando-elba-ctrl'

v9 changes:
- Single node for spi0 system-controller and squash the reset-controller child into parent

---
 arch/arm64/boot/dts/amd/Makefile              |   1 +
 arch/arm64/boot/dts/amd/elba-16core.dtsi      | 197 ++++++++++++++++++
 arch/arm64/boot/dts/amd/elba-asic-common.dtsi |  70 +++++++
 arch/arm64/boot/dts/amd/elba-asic.dts         |  28 +++
 arch/arm64/boot/dts/amd/elba-flash-parts.dtsi | 117 +++++++++++
 arch/arm64/boot/dts/amd/elba.dtsi             | 191 +++++++++++++++++
 6 files changed, 604 insertions(+)
 create mode 100644 arch/arm64/boot/dts/amd/elba-16core.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba-asic-common.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba-asic.dts
 create mode 100644 arch/arm64/boot/dts/amd/elba-flash-parts.dtsi
 create mode 100644 arch/arm64/boot/dts/amd/elba.dtsi
arch/arm64/boot/dts/amd/Makefile +1 -0
index 68103a8b0ef5..8502cc2afbc5 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_PENSANDO) += elba-asic.dtb
 dtb-$(CONFIG_ARCH_SEATTLE) += amd-overdrive-rev-b0.dtb amd-overdrive-rev-b1.dtb
arch/arm64/boot/dts/amd/elba-16core.dtsi new file +197 -0

197 lines not on this page · raw message

arch/arm64/boot/dts/amd/elba-asic-common.dtsi new file +70 -0

70 lines not on this page · raw message

arch/arm64/boot/dts/amd/elba-asic.dts new file +28 -0
new file mode 100644
index 000000000000..c3f4da2f7449
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+/*
+ * Device Tree file for AMD Pensando Elba Board.
+ *
+ * Copyright 2020-2022 Advanced Micro Devices, Inc.
+ */
+
+/dts-v1/;
+
+#include "elba.dtsi"
+#include "elba-16core.dtsi"
+#include "elba-asic-common.dtsi"
+#include "elba-flash-parts.dtsi"
+
+/ {
+	model = "AMD Pensando Elba Board";
+	compatible = "amd,pensando-elba-ortano", "amd,pensando-elba";
+
+	aliases {
+		serial0 = &uart0;
+		spi0 = &spi0;
+		spi1 = &qspi;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
arch/arm64/boot/dts/amd/elba-flash-parts.dtsi new file +117 -0

117 lines not on this page · raw message

arch/arm64/boot/dts/amd/elba.dtsi new file +191 -0

191 lines not on this page · raw message

Signature · 1 line
2.17.1
#5 lore raw
In reply to Brad Larson
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 14 lines · On Mon, 25 Sep 2023 12:56:06 -0700 you wrote:

The Elba System Controller is dropped from this patch series. The following Elba enablement patches have been merged.

f2156989bf30 spi: cdns: Add compatible for AMD Pensando Elba SoC f5c2f9f95843 spi: cadence-quadspi: Add compatible for AMD Pensando Elba SoC 2c8606040a80 spi: dw: Add support for AMD Pensando Elba SoC 6282a6ceef62 spi: dw: Add AMD Pensando Elba SoC SPI Controller aad53d4ee756 mmc: sdhci-cadence: Support mmc hardware reset b5dbcf1f1d1a mmc: sdhci-cadence: Add AMD Pensando Elba SoC support e095b78ef2db mmc: sdhci-cadence: Support device specific init during probe d3e32f847891 mmc: sdhci-cadence: Enable device specific override of writel() 82e4726b00e9 dt-bindings: mmc: cdns: Add AMD Pensando Elba SoC 8e993c5888fa dt-bindings: mfd: syscon: Add amd,pensando-elba-syscon compatible

Quoted 1 line

[...]

Here is the summary with links:
- [1/4] dt-bindings: arm: add AMD Pensando boards

    https://git.kernel.org/soc/soc/c/b0292fd8be37
  - [2/4] MAINTAINERS: Add entry for AMD PENSANDO
    https://git.kernel.org/soc/soc/c/fbf37376f8ac
  - [3/4] arm64: Add config for AMD Pensando SoC platforms
    https://git.kernel.org/soc/soc/c/646fe2e4b390
  - [4/4] arm64: dts: Add AMD Pensando Elba SoC support
    https://git.kernel.org/soc/soc/c/34dc1baba215

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html