1 From eab6bb0994b806525fc5e362e8b865f61c4a9e20 Mon Sep 17 00:00:00 2001
2 From: William Zhang <william.zhang@broadcom.com>
3 Date: Thu, 9 Jun 2022 17:15:33 -0700
4 Subject: [PATCH] arm64: dts: Add DTS files for bcmbca SoC BCM6813
6 Add DTS for ARMv8 based broadband SoC BCM6813. bcm6813.dtsi is the
7 SoC description DTS header and bcm96813.dts is a simple DTS file for
8 Broadcom BCM96813 Reference board that only enable the UART port.
10 Signed-off-by: William Zhang <william.zhang@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/bcm6813.dtsi | 128 ++++++++++++++++++
15 .../boot/dts/broadcom/bcmbca/bcm96813.dts | 30 ++++
16 3 files changed, 160 insertions(+), 1 deletion(-)
17 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm6813.dtsi
18 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm96813.dts
20 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
21 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
22 @@ -3,4 +3,5 @@ dtb-$(CONFIG_ARCH_BCMBCA) += bcm94912.dt
30 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6813.dtsi
32 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
34 + * Copyright 2022 Broadcom Ltd.
37 +#include <dt-bindings/interrupt-controller/irq.h>
38 +#include <dt-bindings/interrupt-controller/arm-gic.h>
41 + compatible = "brcm,bcm6813", "brcm,bcmbca";
42 + #address-cells = <2>;
45 + interrupt-parent = <&gic>;
48 + #address-cells = <2>;
52 + compatible = "brcm,brahma-b53";
53 + device_type = "cpu";
55 + next-level-cache = <&L2_0>;
56 + enable-method = "psci";
60 + compatible = "brcm,brahma-b53";
61 + device_type = "cpu";
63 + next-level-cache = <&L2_0>;
64 + enable-method = "psci";
68 + compatible = "brcm,brahma-b53";
69 + device_type = "cpu";
71 + next-level-cache = <&L2_0>;
72 + enable-method = "psci";
76 + compatible = "brcm,brahma-b53";
77 + device_type = "cpu";
79 + next-level-cache = <&L2_0>;
80 + enable-method = "psci";
84 + compatible = "cache";
89 + compatible = "arm,armv8-timer";
90 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
97 + compatible = "arm,cortex-a53-pmu";
98 + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
99 + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
100 + <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
101 + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
102 + interrupt-affinity = <&B53_0>, <&B53_1>,
103 + <&B53_2>, <&B53_3>;
107 + periph_clk: periph-clk {
108 + compatible = "fixed-clock";
109 + #clock-cells = <0>;
110 + clock-frequency = <200000000>;
112 + uart_clk: uart-clk {
113 + compatible = "fixed-factor-clock";
114 + #clock-cells = <0>;
115 + clocks = <&periph_clk>;
122 + compatible = "arm,psci-0.2";
127 + compatible = "simple-bus";
128 + #address-cells = <1>;
130 + ranges = <0x0 0x0 0x81000000 0x8000>;
132 + gic: interrupt-controller@1000 {
133 + compatible = "arm,gic-400";
134 + #interrupt-cells = <3>;
135 + interrupt-controller;
136 + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
137 + reg = <0x1000 0x1000>,
145 + compatible = "simple-bus";
146 + #address-cells = <1>;
148 + ranges = <0x0 0x0 0xff800000 0x800000>;
150 + uart0: serial@12000 {
151 + compatible = "arm,pl011", "arm,primecell";
152 + reg = <0x12000 0x1000>;
153 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
154 + clocks = <&uart_clk>, <&uart_clk>;
155 + clock-names = "uartclk", "apb_pclk";
156 + status = "disabled";
161 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96813.dts
163 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
165 + * Copyright 2022 Broadcom Ltd.
170 +#include "bcm6813.dtsi"
173 + model = "Broadcom BCM96813 Reference Board";
174 + compatible = "brcm,bcm96813", "brcm,bcm6813", "brcm,bcmbca";
181 + stdout-path = "serial0:115200n8";
185 + device_type = "memory";
186 + reg = <0x0 0x0 0x0 0x08000000>;