mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-19 16:02:36 +02:00
120 lines
No EOL
2.9 KiB
Text
120 lines
No EOL
2.9 KiB
Text
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/soc/bcm963xx_dt_bindings.h>
|
|
|
|
#define GIC_DIST_BASE 0x81001000
|
|
#define GIC_CPUI_BASE 0x81002000
|
|
|
|
#define TIMER_HYP_PPI 10
|
|
#define TIMER_VIRT_PPI 11
|
|
#define TIMER_PHYS_SECURE_PPI 13
|
|
#define TIMER_PHYS_NONSECURE_PPI 14
|
|
|
|
#define PMU_CORE0_SPI 9
|
|
#define PMU_CORE1_SPI 10
|
|
#define ARM_UART0_SPI 92
|
|
|
|
/dts-v1/;
|
|
/* For secondary boot area */
|
|
/memreserve/ 0x00000000 0x00008000;
|
|
|
|
#include "../bcm_rsvdmem_32.dtsi"
|
|
|
|
/ {
|
|
model = "Broadcom BCM96878";
|
|
compatible = "brcm,bcm96878";
|
|
interrupt-parent = <&gic>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
chosen {
|
|
bootargs = "console=ttyAMA0 earlyprintk mem=128M,1048576 debug root=/dev/ram0 ro";
|
|
linux,initrd-start = <0x2000000>;
|
|
linux,initrd-end = <0x27FF500>;
|
|
};
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
#if 0
|
|
enable-method = "brcm,bca-smp";
|
|
#endif
|
|
|
|
CA7_0: cpu@0 {
|
|
device_type = "cpu";
|
|
compatible = "arm,cortex-a7";
|
|
reg = <0x0>;
|
|
next-level-cache = <&L2_0>;
|
|
};
|
|
#if 0
|
|
CA7_1: cpu@1 {
|
|
device_type = "cpu";
|
|
compatible = "arm,cortex-a7";
|
|
reg = <0x1>;
|
|
next-level-cache = <&L2_0>;
|
|
};
|
|
#endif
|
|
L2_0: l2-cache0 {
|
|
compatible = "cache";
|
|
};
|
|
};
|
|
|
|
gic: interrupt-controller@81000000 {
|
|
compatible = "arm,cortex-a7-gic";
|
|
#interrupt-cells = <3>;
|
|
#address-cells = <0>;
|
|
interrupt-controller;
|
|
reg = <GIC_DIST_BASE 0x1000>,
|
|
<GIC_CPUI_BASE 0x2000>;
|
|
};
|
|
|
|
timer {
|
|
compatible = "arm,armv7-timer";
|
|
interrupts = <GIC_PPI TIMER_PHYS_SECURE_PPI (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
|
|
<GIC_PPI TIMER_PHYS_NONSECURE_PPI (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
|
|
<GIC_PPI TIMER_VIRT_PPI (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
|
|
<GIC_PPI TIMER_HYP_PPI (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
|
|
};
|
|
|
|
brcm-legacy {
|
|
compatible = "brcm,brcm-legacy";
|
|
};
|
|
|
|
memory@00000000 {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x04000000>; /* 64MBMB */
|
|
};
|
|
|
|
clk24: clk24 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <24000000>;
|
|
clock-output-names = "v2m:clk24";
|
|
};
|
|
|
|
/* Legacy UBUS base */
|
|
ubus@ff800000 {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges = <0 0xff800000 0x7fffff>;
|
|
|
|
serial@ff812000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "arm,pl011", "arm,primecell";
|
|
reg = <0x12000 0x1000>;
|
|
interrupts = <GIC_SPI ARM_UART0_SPI IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&clk24>, <&clk24>;
|
|
clock-names = "uartclk", "apb_pclk";
|
|
};
|
|
};
|
|
pcie1: pcie@84000000 {
|
|
compatible = "brcm,bcm963xx-vpcie";
|
|
device_type = "vpci";
|
|
reg = <0x84000000 0x01000000>;
|
|
|
|
brcm,coreid = <1>;
|
|
};
|
|
|
|
}; |