1 From e663e06bd3f21e64bc2163910f626af68add6308 Mon Sep 17 00:00:00 2001
2 From: Anand Gore <anand.gore@broadcom.com>
3 Date: Wed, 1 Jun 2022 13:19:56 -0700
4 Subject: [PATCH] ARM64: dts: Add DTS files for bcmbca SoC BCM6858
6 Add DTS for ARMv8 based broadband SoC BCM6858. bcm6858.dtsi is the SoC
7 description DTS header and bcm96858.dts is a simple DTS file for
8 Broadcom BCM96858 Reference board that only enables the UART port.
10 Signed-off-by: Anand Gore <anand.gore@broadcom.com>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
13 arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +-
14 .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 121 ++++++++++++++++++
15 .../boot/dts/broadcom/bcmbca/bcm96858.dts | 30 +++++
16 3 files changed, 153 insertions(+), 1 deletion(-)
17 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
18 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts
20 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
21 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
23 # SPDX-License-Identifier: GPL-2.0
24 dtb-$(CONFIG_ARCH_BCMBCA) += bcm94912.dtb \
29 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi
31 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
33 + * Copyright 2022 Broadcom Ltd.
36 +#include <dt-bindings/interrupt-controller/irq.h>
37 +#include <dt-bindings/interrupt-controller/arm-gic.h>
40 + compatible = "brcm,bcm6858", "brcm,bcmbca";
41 + #address-cells = <2>;
44 + interrupt-parent = <&gic>;
47 + #address-cells = <2>;
51 + compatible = "brcm,brahma-b53";
52 + device_type = "cpu";
54 + next-level-cache = <&L2_0>;
55 + enable-method = "psci";
59 + compatible = "brcm,brahma-b53";
60 + device_type = "cpu";
62 + next-level-cache = <&L2_0>;
63 + enable-method = "psci";
67 + compatible = "brcm,brahma-b53";
68 + device_type = "cpu";
70 + next-level-cache = <&L2_0>;
71 + enable-method = "psci";
75 + compatible = "brcm,brahma-b53";
76 + device_type = "cpu";
78 + next-level-cache = <&L2_0>;
79 + enable-method = "psci";
82 + compatible = "cache";
87 + compatible = "arm,armv8-timer";
88 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
89 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
90 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
95 + compatible = "arm,armv8-pmuv3";
96 + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
97 + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
98 + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
99 + <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
100 + interrupt-affinity = <&B53_0>, <&B53_1>,
101 + <&B53_2>, <&B53_3>;
105 + periph_clk:periph-clk {
106 + compatible = "fixed-clock";
107 + #clock-cells = <0>;
108 + clock-frequency = <200000000>;
113 + compatible = "arm,psci-0.2";
118 + compatible = "simple-bus";
119 + #address-cells = <1>;
121 + ranges = <0x0 0x0 0x81000000 0x8000>;
123 + gic: interrupt-controller@1000 {
124 + compatible = "arm,gic-400";
125 + #interrupt-cells = <3>;
126 + interrupt-controller;
127 + reg = <0x1000 0x1000>, /* GICD */
128 + <0x2000 0x2000>, /* GICC */
129 + <0x4000 0x2000>, /* GICH */
130 + <0x6000 0x2000>; /* GICV */
131 + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
132 + IRQ_TYPE_LEVEL_HIGH)>;
137 + compatible = "simple-bus";
138 + #address-cells = <1>;
140 + ranges = <0x0 0x0 0xff800000 0x62000>;
142 + uart0: serial@640 {
143 + compatible = "brcm,bcm6345-uart";
144 + reg = <0x640 0x18>;
145 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
146 + clocks = <&periph_clk>;
147 + clock-names = "refclk";
148 + status = "disabled";
153 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts
155 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
157 + * Copyright 2022 Broadcom Ltd.
162 +#include "bcm6858.dtsi"
165 + model = "Broadcom BCM96858 Reference Board";
166 + compatible = "brcm,bcm96858", "brcm,bcm6858", "brcm,bcmbca";
173 + stdout-path = "serial0:115200n8";
177 + device_type = "memory";
178 + reg = <0x0 0x0 0x0 0x08000000>;