2019-11-11 01:43:26 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Derived from DTS extracted with:
|
|
|
|
*
|
|
|
|
* qemu-system-aarch64 -machine virt -cpu cortex-a53 -nographic
|
|
|
|
* -machine dumpdtb=virt.dtb
|
|
|
|
*
|
|
|
|
* dtc -I dtb -O dts virt.dtb
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mem.h>
|
|
|
|
#include <arm/armv8-a.dtsi>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a53";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-03-19 22:33:18 +08:00
|
|
|
uartclk: apb-pclk {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
2019-11-11 01:43:26 +08:00
|
|
|
soc {
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
|
2020-12-04 23:45:12 +08:00
|
|
|
sram0: memory@40000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x40000000 DT_SIZE_M(128)>;
|
|
|
|
};
|
|
|
|
|
2019-11-11 01:43:26 +08:00
|
|
|
gic: interrupt-controller@8000000 {
|
|
|
|
compatible = "arm,gic";
|
2020-09-24 18:59:37 +08:00
|
|
|
reg = <0x8000000 0x010000>,
|
|
|
|
<0x80a0000 0xf60000>;
|
2019-11-11 01:43:26 +08:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <4>;
|
|
|
|
label = "GIC";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@9000000 {
|
|
|
|
compatible = "arm,pl011";
|
|
|
|
reg = <0x9000000 0x1000>;
|
|
|
|
status = "disabled";
|
2020-05-20 18:58:09 +08:00
|
|
|
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL 0>;
|
2019-11-11 01:43:26 +08:00
|
|
|
interrupt-names = "irq_0";
|
2020-03-19 22:33:18 +08:00
|
|
|
clocks = <&uartclk>;
|
2019-11-11 01:43:26 +08:00
|
|
|
label = "UART_0";
|
|
|
|
};
|
|
|
|
|
|
|
|
flash0: flash@0 {
|
2020-04-09 22:37:31 +08:00
|
|
|
compatible = "cfi-flash";
|
|
|
|
bank-width = <4>;
|
|
|
|
/* As this is pointed to by zephyr,flash we can only handle
|
|
|
|
* one value in the reg property, so we comment out the
|
|
|
|
* second flash bank for now
|
|
|
|
*/
|
|
|
|
reg = <0x0 DT_SIZE_M(64) /* 0x4000000 DT_SIZE_M(64) */>;
|
2019-11-11 01:43:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
arch_timer: timer {
|
|
|
|
compatible = "arm,arm-timer";
|
2020-05-26 13:26:18 +08:00
|
|
|
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL
|
2020-05-20 18:58:09 +08:00
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
2020-05-26 13:26:18 +08:00
|
|
|
<GIC_PPI 14 IRQ_TYPE_LEVEL
|
2020-05-20 18:58:09 +08:00
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
2020-05-26 13:26:18 +08:00
|
|
|
<GIC_PPI 11 IRQ_TYPE_LEVEL
|
2020-05-20 18:58:09 +08:00
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
2020-05-26 13:26:18 +08:00
|
|
|
<GIC_PPI 10 IRQ_TYPE_LEVEL
|
2020-05-20 18:58:09 +08:00
|
|
|
IRQ_DEFAULT_PRIORITY>;
|
2019-11-11 01:43:26 +08:00
|
|
|
label = "arch_timer";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|