Skip to contentSkip to conversation

arm64: bcmbca: add bcm63158 soc support under bcmbca arch

PATCH Applied William Zhang 4 participants 12 messages Jun 1, 2022 – Jun 8, 2022

Subsystems (3)
lore
Share & tools
lore

William Zhang

author maintainer
#0 lore raw

v2 cover arm64: bcmbca: add bcm63158 soc support under bcmbca arch

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.

Changes in v2:
- Simplify dt-bindings patch subject line
- Change internal bus address and size cells from 2 to 1
- Fix pmu compatible string
- Remove unnecessary cpu_on and cpu_off properties from psci node
- Add the missing gic registers and interrupts property to gic node

William Zhang (5):
dt-bindings: arm64: add bcm63158 SoC
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.36.1
author maintainer
#1 lore raw

PATCH v2 1/5 dt-bindings: arm64: add bcm63158 SoC

Add BCM63158 SoC device tree description to bcmbca binding document.

---

Changes in v2:
- Simplify dt-bindings patch subject line

 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.36.1
maintainer Applied
#3 lore raw

Re: [PATCH v2 1/5] dt-bindings: arm64: add bcm63158 SoC

In reply to William Zhang
Quoted 3 lines · William Zhang

Add BCM63158 SoC device tree description to bcmbca binding document.

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

Signature · 1 line
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

author maintainer
#4 lore raw

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

In reply to William Zhang

Add ARCH_BCMBCA config for Broadcom Broadband SoC chipsets

---

(no changes since v1)

 arch/arm64/Kconfig.platforms | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/Kconfig.platforms +9 -0
index 4e6d635a1731..88ddc2e5b152 100644
@@ -63,6 +63,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.36.1
#5 lore raw

Re: [PATCH v2 2/5] arm64: bcmbca: add arch bcmbca machine entry

Quoted 3 lines · William Zhang

Add ARCH_BCMBCA config for Broadcom Broadband SoC chipsets

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

Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer
#6 lore raw

PATCH v2 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.

---

Changes in v2:
- Change internal bus address and size cells from 2 to 1
- Fix pmu compatible string
- Remove unnecessary cpu_on and cpu_off properties from psci node
- Add the missing gic registers and interrupts property to gic node

 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.36.1
#7 lore raw

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

Quoted 7 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

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

author maintainer
#8 lore raw

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

In reply to William Zhang

Add bcm63158 related files to BCMBCA ARCH maintainer list entry

---

(no changes since v1)

 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 216890b11060..164d1f3bedf8 100644
@@ -3776,8 +3776,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.36.1
#9 lore raw

Re: [PATCH v2 4/5] MAINTAINERS: add bcm63158 to bcmbca arch entry

Quoted 3 lines · William Zhang

Add bcm63158 related files to BCMBCA ARCH maintainer list entry

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

Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author maintainer
#10 lore raw

PATCH v2 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.

---

(no changes since v1)

 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.36.1
#11 lore raw

Re: [PATCH v2 5/5] arm64: defconfig: enable bcmbca soc support

Quoted 5 lines · 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.

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

Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel