1 From 1ba56aeb391401c4cb2126c39f90b3cdbfabdb3f Mon Sep 17 00:00:00 2001
2 From: William Zhang <william.zhang@broadcom.com>
3 Date: Wed, 1 Jun 2022 13:17:34 -0700
4 Subject: [PATCH] arm64: dts: Add DTS files for bcmbca SoC BCM4912
6 Add DTS for ARMv8 based broadband SoC BCM4912. bcm4912.dtsi is the
7 SoC description DTS header and bcm94912.dts is a simple DTS file for
8 Broadcom BCM94912 Reference board that only enable the UART port.
10 Signed-off-by: William Zhang <william.zhang@broadcom.com>
11 Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
12 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +-
15 .../boot/dts/broadcom/bcmbca/bcm4912.dtsi | 128 ++++++++++++++++++
16 .../boot/dts/broadcom/bcmbca/bcm94912.dts | 30 ++++
17 3 files changed, 160 insertions(+), 1 deletion(-)
18 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi
19 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts
21 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
22 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
24 # SPDX-License-Identifier: GPL-2.0
25 -dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb
26 +dtb-$(CONFIG_ARCH_BCMBCA) += bcm94912.dtb \
29 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.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,bcm4912", "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";
83 + compatible = "cache";
88 + compatible = "arm,armv8-timer";
89 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
90 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
96 + compatible = "arm,cortex-a53-pmu";
97 + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
98 + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
99 + <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
100 + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
101 + interrupt-affinity = <&B53_0>, <&B53_1>,
102 + <&B53_2>, <&B53_3>;
106 + periph_clk: periph-clk {
107 + compatible = "fixed-clock";
108 + #clock-cells = <0>;
109 + clock-frequency = <200000000>;
111 + uart_clk: uart-clk {
112 + compatible = "fixed-factor-clock";
113 + #clock-cells = <0>;
114 + clocks = <&periph_clk>;
121 + compatible = "arm,psci-0.2";
126 + compatible = "simple-bus";
127 + #address-cells = <1>;
129 + ranges = <0x0 0x0 0x81000000 0x8000>;
131 + gic: interrupt-controller@1000 {
132 + compatible = "arm,gic-400";
133 + #interrupt-cells = <3>;
134 + interrupt-controller;
135 + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
136 + reg = <0x1000 0x1000>,
144 + compatible = "simple-bus";
145 + #address-cells = <1>;
147 + ranges = <0x0 0x0 0xff800000 0x800000>;
149 + uart0: serial@12000 {
150 + compatible = "arm,pl011", "arm,primecell";
151 + reg = <0x12000 0x1000>;
152 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
153 + clocks = <&uart_clk>, <&uart_clk>;
154 + clock-names = "uartclk", "apb_pclk";
155 + status = "disabled";
160 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts
162 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
164 + * Copyright 2022 Broadcom Ltd.
169 +#include "bcm4912.dtsi"
172 + model = "Broadcom BCM94912 Reference Board";
173 + compatible = "brcm,bcm94912", "brcm,bcm4912", "brcm,bcmbca";
180 + stdout-path = "serial0:115200n8";
184 + device_type = "memory";
185 + reg = <0x0 0x0 0x0 0x08000000>;