0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright 2022 Broadcom Ltd.
0004 */
0005
0006 #include <dt-bindings/interrupt-controller/irq.h>
0007 #include <dt-bindings/interrupt-controller/arm-gic.h>
0008
0009 / {
0010 compatible = "brcm,bcm6856", "brcm,bcmbca";
0011 #address-cells = <2>;
0012 #size-cells = <2>;
0013
0014 interrupt-parent = <&gic>;
0015
0016 cpus {
0017 #address-cells = <2>;
0018 #size-cells = <0>;
0019
0020 B53_0: cpu@0 {
0021 compatible = "brcm,brahma-b53";
0022 device_type = "cpu";
0023 reg = <0x0 0x0>;
0024 next-level-cache = <&L2_0>;
0025 enable-method = "psci";
0026 };
0027
0028 B53_1: cpu@1 {
0029 compatible = "brcm,brahma-b53";
0030 device_type = "cpu";
0031 reg = <0x0 0x1>;
0032 next-level-cache = <&L2_0>;
0033 enable-method = "psci";
0034 };
0035
0036 L2_0: l2-cache0 {
0037 compatible = "cache";
0038 };
0039 };
0040
0041 timer {
0042 compatible = "arm,armv8-timer";
0043 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
0044 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
0045 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
0046 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
0047 };
0048
0049 pmu: pmu {
0050 compatible = "arm,cortex-a53-pmu";
0051 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
0052 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
0053 interrupt-affinity = <&B53_0>, <&B53_1>;
0054 };
0055
0056 clocks: clocks {
0057 periph_clk:periph-clk {
0058 compatible = "fixed-clock";
0059 #clock-cells = <0>;
0060 clock-frequency = <200000000>;
0061 };
0062 };
0063
0064 psci {
0065 compatible = "arm,psci-0.2";
0066 method = "smc";
0067 };
0068
0069 axi@81000000 {
0070 compatible = "simple-bus";
0071 #address-cells = <1>;
0072 #size-cells = <1>;
0073 ranges = <0x0 0x0 0x81000000 0x8000>;
0074
0075 gic: interrupt-controller@1000 {
0076 compatible = "arm,gic-400";
0077 #interrupt-cells = <3>;
0078 interrupt-controller;
0079 reg = <0x1000 0x1000>, /* GICD */
0080 <0x2000 0x2000>, /* GICC */
0081 <0x4000 0x2000>, /* GICH */
0082 <0x6000 0x2000>; /* GICV */
0083 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) |
0084 IRQ_TYPE_LEVEL_HIGH)>;
0085 };
0086 };
0087
0088 bus@ff800000 {
0089 compatible = "simple-bus";
0090 #address-cells = <1>;
0091 #size-cells = <1>;
0092 ranges = <0x0 0x0 0xff800000 0x800000>;
0093
0094 uart0: serial@640 {
0095 compatible = "brcm,bcm6345-uart";
0096 reg = <0x640 0x18>;
0097 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
0098 clocks = <&periph_clk>;
0099 clock-names = "refclk";
0100 status = "disabled";
0101 };
0102 };
0103 };