Skip to contentSkip to conversation

arm64: bcmbca: add bcm63158 soc support

PATCH Applied William Zhang 3 participants 14 messages May 14, 2022 – May 18, 2022

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

William Zhang

author maintainer
#0 lore raw

cover arm64: bcmbca: add bcm63158 soc support

This change adds the basic support for Broadcom's ARM64 based Broadband SoC BCM63158. The initial support includes a bare-bone dts for quad core ARM A53 with a ARM PL011 uart. Linux kernel image can be built with the ARM64 defconfig.

William Zhang (5):
dt-bindings: arm64: add BCM63158 soc to binding document
arm64: bcmbca: add arch bcmbca machine entry
arm64: dts: add dts files for bcmbca soc 63158
MAINTAINERS: add bcm63158 to bcmbca arch entry
arm64: defconfig: enable bcmbca soc support

 .../bindings/arm/bcm/brcm,bcmbca.yaml         |   7 +
 MAINTAINERS                                   |   2 +
 arch/arm64/Kconfig.platforms                  |   9 ++
 arch/arm64/boot/dts/broadcom/Makefile         |   1 +
 arch/arm64/boot/dts/broadcom/bcmbca/Makefile  |   2 +
 .../boot/dts/broadcom/bcmbca/bcm63158.dtsi    | 128 ++++++++++++++++++
 .../boot/dts/broadcom/bcmbca/bcm963158.dts    |  30 ++++
 arch/arm64/configs/defconfig                  |   1 +
 8 files changed, 180 insertions(+)
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/Makefile
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH 1/5 dt-bindings: arm64: add BCM63158 soc to binding document

Add BCM63158 SOC device tree description to bcmbca binding document.

---

 Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +7 -0
index 5fb455840417..4e3a1a5391f6 100644
@@ -28,6 +28,13 @@ properties:
           - const: brcm,bcm47622
           - const: brcm,bcmbca
 
+      - description: BCM63158 based boards
+        items:
+          - enum:
+              - brcm,bcm963158
+          - const: brcm,bcm63158
+          - const: brcm,bcmbca
+
 additionalProperties: true
 
 ...
Signature · 1 line
2.17.1
maintainer
#2 lore raw

Re: [PATCH 1/5] dt-bindings: arm64: add BCM63158 soc to binding document

Quoted 13 lines · William Zhang

Add BCM63158 SOC device tree description to bcmbca binding document.

---

 Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +0 -0
index 5fb455840417..4e3a1a5391f6 100644

Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml properties: · line 34

Quoted 7 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +4 -0
@@ -28,6 +28,13 @@ properties:
           - const: brcm,bcm47622
           - const: brcm,bcmbca
 
+      - description: BCM63158 based boards
+        items:
+          - enum:
+              - brcm,bcm963158

bcm963158 is a board?

Quoted 9 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +3 -0
+          - const: brcm,bcm63158
+          - const: brcm,bcmbca
+
 additionalProperties: true
 
...
Signature · 1 line
2.17.1
author maintainer
#3 lore raw

Re: [PATCH 1/5] dt-bindings: arm64: add BCM63158 soc to binding document

Hi Rob,

Quoted 17 lines · Rob Herring
Quoted 16 lines · William Zhang

Add BCM63158 SOC device tree description to bcmbca binding document.

---

  Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 7 +++++++
  1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +0 -0
index 5fb455840417..4e3a1a5391f6 100644
@@ -28,6 +28,13 @@ properties:
            - const: brcm,bcm47622
            - const: brcm,bcmbca
 
Quoted 7 lines

Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml properties: · line 34

Quoted 4 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +4 -0
+      - description: BCM63158 based boards
+        items:
+          - enum:
+              - brcm,bcm963158

bcm963158 is a board?

Yes it is the generic board id with only minimum hardware blocks(cpu, memory, uart) enabled for all BCM63158 based boards. Specific board id can be added in the future with actual hardware blocks that are used on the board.

Quoted 11 lines
Quoted 9 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +3 -0
+          - const: brcm,bcm63158
+          - const: brcm,bcmbca
+
  additionalProperties: true
 
...
Signature · 1 line
2.17.1
author maintainer
#6 lore raw

PATCH 2/5 arm64: bcmbca: add arch bcmbca machine entry

In reply to William Zhang

Add ARCH_BCMBCA config for Broadcom Broadband SoC chipsets

---

 arch/arm64/Kconfig.platforms | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/Kconfig.platforms +9 -0
index aaeaf57c8222..952c2f04f7c9 100644
@@ -64,6 +64,15 @@ config ARCH_BCM_IPROC
 	help
 	  This enables support for Broadcom iProc based SoCs
 
+config ARCH_BCMBCA
+	bool "Broadcom Broadband SoC"
+	help
+	  Say Y if you intend to run the kernel on a Broadcom Broadband ARM-based
+	  BCA chipset.
+
+	  This enables support for Broadcom BCA ARM-based broadband chipsets,
+	  including the DSL, PON and Wireless family of chips.
+
 config ARCH_BERLIN
 	bool "Marvell Berlin SoC Family"
 	select DW_APB_ICTL
Signature · 1 line
2.17.1
author maintainer
#8 lore raw

PATCH 3/5 arm64: dts: add dts files for bcmbca soc 63158

In reply to William Zhang

Add dts for ARMv8 based broadband SoC BCM63158. bcm63158.dtsi is the SoC description dts header and bcm963158.dts is a simple dts file for Broadcom BCM963158 Reference board that only enable the UART port.

---

 arch/arm64/boot/dts/broadcom/Makefile         |   1 +
 arch/arm64/boot/dts/broadcom/bcmbca/Makefile  |   2 +
 .../boot/dts/broadcom/bcmbca/bcm63158.dtsi    | 128 ++++++++++++++++++
 .../boot/dts/broadcom/bcmbca/bcm963158.dts    |  30 ++++
 4 files changed, 161 insertions(+)
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/Makefile
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
arch/arm64/boot/dts/broadcom/Makefile +1 -0
index 5082fcd1fea5..e8584d3b698f 100644
@@ -9,5 +9,6 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \
 			      bcm2837-rpi-zero-2-w.dtb
 
 subdir-y	+= bcm4908
+subdir-y	+= bcmbca
 subdir-y	+= northstar2
 subdir-y	+= stingray
arch/arm64/boot/dts/broadcom/bcmbca/Makefile new file +2 -0
new file mode 100644
index 000000000000..d5f89245336c
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb
arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi new file +128 -0

128 lines not on this page · raw message

arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts new file +30 -0
new file mode 100644
index 000000000000..eba07e0b1ca6
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2022 Broadcom Ltd.
+ */
+
+/dts-v1/;
+
+#include "bcm63158.dtsi"
+
+/ {
+	model = "Broadcom BCM963158 Reference Board";
+	compatible = "brcm,bcm963158", "brcm,bcm63158", "brcm,bcmbca";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x08000000>;
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
Signature · 1 line
2.17.1
#9 lore raw

Re: [PATCH 3/5] arm64: dts: add dts files for bcmbca soc 63158

Quoted 6 lines · William Zhang

Add dts for ARMv8 based broadband SoC BCM63158. bcm63158.dtsi is the SoC description dts header and bcm963158.dts is a simple dts file for Broadcom BCM963158 Reference board that only enable the UART port.

---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree-arm64/next, thanks! --
Florian

author maintainer
#10 lore raw

PATCH 4/5 MAINTAINERS: add bcm63158 to bcmbca arch entry

In reply to William Zhang

Add bcm63158 related files to BCMBCA ARCH maintainer list entry

---

 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 6fa9eecd6c97..d07e64de945c 100644
@@ -3766,8 +3766,10 @@ T:	git git://github.com/broadcom/stblinux.git
 F:	Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml
 F:	arch/arm/boot/dts/bcm47622.dtsi
 F:	arch/arm/boot/dts/bcm947622.dts
+F:	arch/arm64/boot/dts/broadcom/bcmbca/*
 N:	bcmbca
 N:	bcm[9]?47622
+N:	bcm[9]?63158
 
 BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
 M:	Nicolas Saenz Julienne <[email protected]>
Signature · 1 line
2.17.1
author maintainer
#12 lore raw

PATCH 5/5 arm64: defconfig: enable bcmbca soc support

In reply to William Zhang

Enable CONFIG_ARCH_BCMBCA in defconfig. This config can be used to build a basic kernel for arm64 based Broadcom Broadband SoC booting to console.

---

 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 7d1105343bc2..7cf31913bcdf 100644
@@ -36,6 +36,7 @@ CONFIG_ARCH_ALPINE=y
 CONFIG_ARCH_APPLE=y
 CONFIG_ARCH_BCM2835=y
 CONFIG_ARCH_BCM4908=y
+CONFIG_ARCH_BCMBCA=y
 CONFIG_ARCH_BCM_IPROC=y
 CONFIG_ARCH_BERLIN=y
 CONFIG_ARCH_BRCMSTB=y
Signature · 1 line
2.17.1