blob: cbd094dde6d07e2715d03510a15795ba4b656508 [file] [log] [blame]
William Zhang41c65ce2022-08-01 11:39:21 -07001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2022 Broadcom Ltd.
4 */
5
6#include <dt-bindings/interrupt-controller/arm-gic.h>
7#include <dt-bindings/interrupt-controller/irq.h>
8
9/ {
10 compatible = "brcm,bcm63178", "brcm,bcmbca";
11 #address-cells = <1>;
12 #size-cells = <1>;
13
14 interrupt-parent = <&gic>;
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 CA7_0: cpu@0 {
21 device_type = "cpu";
22 compatible = "arm,cortex-a7";
23 reg = <0x0>;
24 next-level-cache = <&L2_0>;
25 enable-method = "psci";
26 };
27
28 CA7_1: cpu@1 {
29 device_type = "cpu";
30 compatible = "arm,cortex-a7";
31 reg = <0x1>;
32 next-level-cache = <&L2_0>;
33 enable-method = "psci";
34 };
35
36 CA7_2: cpu@2 {
37 device_type = "cpu";
38 compatible = "arm,cortex-a7";
39 reg = <0x2>;
40 next-level-cache = <&L2_0>;
41 enable-method = "psci";
42 };
43
44 L2_0: l2-cache0 {
45 compatible = "cache";
46 };
47 };
48
49 timer {
50 compatible = "arm,armv7-timer";
51 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>,
52 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>,
53 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>,
54 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>;
55 arm,cpu-registers-not-fw-configured;
56 };
57
58 pmu: pmu {
59 compatible = "arm,cortex-a7-pmu";
60 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
61 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
62 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
63 interrupt-affinity = <&CA7_0>, <&CA7_1>,
64 <&CA7_2>;
65 };
66
67 clocks: clocks {
68 periph_clk: periph-clk {
69 compatible = "fixed-clock";
70 #clock-cells = <0>;
71 clock-frequency = <200000000>;
72 };
73 uart_clk: uart-clk {
74 compatible = "fixed-factor-clock";
75 #clock-cells = <0>;
76 clocks = <&periph_clk>;
77 clock-div = <4>;
78 clock-mult = <1>;
79 };
80 };
81
82 psci {
83 compatible = "arm,psci-0.2";
84 method = "smc";
85 };
86
87 axi@81000000 {
88 compatible = "simple-bus";
89 #address-cells = <1>;
90 #size-cells = <1>;
91 ranges = <0 0x81000000 0x8000>;
92
93 gic: interrupt-controller@1000 {
94 compatible = "arm,cortex-a7-gic";
95 #interrupt-cells = <3>;
96 interrupt-controller;
97 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_HIGH)>;
98 reg = <0x1000 0x1000>,
99 <0x2000 0x2000>,
100 <0x4000 0x2000>,
101 <0x6000 0x2000>;
102 };
103 };
104
105 bus@ff800000 {
106 compatible = "simple-bus";
107 #address-cells = <1>;
108 #size-cells = <1>;
109 ranges = <0 0xff800000 0x800000>;
110
111 uart0: serial@12000 {
112 compatible = "arm,pl011", "arm,primecell";
113 reg = <0x12000 0x1000>;
114 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
115 clocks = <&uart_clk>, <&uart_clk>;
116 clock-names = "uartclk", "apb_pclk";
117 status = "disabled";
118 };
119 };
120};