1 From 076dcedc6628c6bf92bd17bfcf8fb7b1af62bfb6 Mon Sep 17 00:00:00 2001
2 From: William Zhang <william.zhang@broadcom.com>
3 Date: Wed, 1 Jun 2022 15:56:51 -0700
4 Subject: [PATCH] arm64: dts: Add DTS files for bcmbca SoC BCM63158
6 Add DTS for ARMv8 based broadband SoC BCM63158. bcm63158.dtsi is the
7 SoC description DTS header and bcm963158.dts is a simple DTS file for
8 Broadcom BCM963158 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/Makefile | 1 +
14 arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 2 +
15 .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 128 ++++++++++++++++++
16 .../boot/dts/broadcom/bcmbca/bcm963158.dts | 30 ++++
17 4 files changed, 161 insertions(+)
18 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/Makefile
19 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
20 create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
22 --- a/arch/arm64/boot/dts/broadcom/Makefile
23 +++ b/arch/arm64/boot/dts/broadcom/Makefile
24 @@ -7,5 +7,6 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rp
25 bcm2837-rpi-cm3-io3.dtb
29 subdir-y += northstar2
32 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile
34 +# SPDX-License-Identifier: GPL-2.0
35 +dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb
37 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi
39 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
41 + * Copyright 2022 Broadcom Ltd.
44 +#include <dt-bindings/interrupt-controller/irq.h>
45 +#include <dt-bindings/interrupt-controller/arm-gic.h>
48 + compatible = "brcm,bcm63158", "brcm,bcmbca";
49 + #address-cells = <2>;
52 + interrupt-parent = <&gic>;
55 + #address-cells = <2>;
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 = "brcm,brahma-b53";
84 + device_type = "cpu";
86 + next-level-cache = <&L2_0>;
87 + enable-method = "psci";
91 + compatible = "cache";
96 + compatible = "arm,armv8-timer";
97 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
98 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
99 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
100 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
104 + compatible = "arm,cortex-a53-pmu";
105 + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
106 + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
107 + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
108 + <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
109 + interrupt-affinity = <&B53_0>, <&B53_1>,
110 + <&B53_2>, <&B53_3>;
114 + periph_clk: periph-clk {
115 + compatible = "fixed-clock";
116 + #clock-cells = <0>;
117 + clock-frequency = <200000000>;
119 + uart_clk: uart-clk {
120 + compatible = "fixed-factor-clock";
121 + #clock-cells = <0>;
122 + clocks = <&periph_clk>;
129 + compatible = "arm,psci-0.2";
134 + compatible = "simple-bus";
135 + #address-cells = <1>;
137 + ranges = <0x0 0x0 0x81000000 0x8000>;
139 + gic: interrupt-controller@1000 {
140 + compatible = "arm,gic-400";
141 + #interrupt-cells = <3>;
142 + interrupt-controller;
143 + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
144 + reg = <0x1000 0x1000>,
152 + compatible = "simple-bus";
153 + #address-cells = <1>;
155 + ranges = <0x0 0x0 0xff800000 0x800000>;
157 + uart0: serial@12000 {
158 + compatible = "arm,pl011", "arm,primecell";
159 + reg = <0x12000 0x1000>;
160 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
161 + clocks = <&uart_clk>, <&uart_clk>;
162 + clock-names = "uartclk", "apb_pclk";
163 + status = "disabled";
168 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts
170 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
172 + * Copyright 2022 Broadcom Ltd.
177 +#include "bcm63158.dtsi"
180 + model = "Broadcom BCM963158 Reference Board";
181 + compatible = "brcm,bcm963158", "brcm,bcm63158", "brcm,bcmbca";
188 + stdout-path = "serial0:115200n8";
192 + device_type = "memory";
193 + reg = <0x0 0x0 0x0 0x08000000>;