2021-10-19 17:12:33 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mem.h>
|
|
|
|
#include <arm64/armv8-r.dtsi>
|
2022-05-06 17:02:05 +08:00
|
|
|
#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h>
|
2021-10-19 17:12:33 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-r82";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-r82";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@2 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-r82";
|
|
|
|
reg = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@3 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-r82";
|
|
|
|
reg = <3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
timer {
|
|
|
|
compatible = "arm,armv8-timer";
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
|
|
|
<GIC_PPI 14 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
|
|
|
<GIC_PPI 11 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>,
|
|
|
|
<GIC_PPI 10 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uartclk: apb-pclk {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
|
|
|
|
gic: interrupt-controller@af000000 {
|
|
|
|
compatible = "arm,gic";
|
|
|
|
reg = <0xaf000000 0x1000>,
|
|
|
|
<0xaf100000 0x100>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@9c090000 {
|
|
|
|
compatible = "arm,pl011";
|
|
|
|
reg = <0x9c090000 0x1000>;
|
|
|
|
status = "disabled";
|
2022-01-11 20:01:48 +08:00
|
|
|
interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-names = "irq_5";
|
2021-10-19 17:12:33 +08:00
|
|
|
label = "UART_0";
|
|
|
|
clocks = <&uartclk>;
|
|
|
|
};
|
2022-04-20 11:31:03 +08:00
|
|
|
|
|
|
|
uart1: uart@9c0a0000 {
|
|
|
|
compatible = "arm,pl011";
|
|
|
|
reg = <0x9c0a0000 0x1000>;
|
|
|
|
status = "disabled";
|
|
|
|
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-names = "irq_6";
|
|
|
|
label = "UART_1";
|
|
|
|
clocks = <&uartclk>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2: uart@9c0b0000 {
|
|
|
|
compatible = "arm,pl011";
|
|
|
|
reg = <0x9c0b0000 0x1000>;
|
|
|
|
status = "disabled";
|
|
|
|
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-names = "irq_7";
|
|
|
|
label = "UART_2";
|
|
|
|
clocks = <&uartclk>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3: uart@9c0c0000 {
|
|
|
|
compatible = "arm,pl011";
|
|
|
|
reg = <0x9c0c0000 0x1000>;
|
|
|
|
status = "disabled";
|
|
|
|
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
|
|
|
|
interrupt-names = "irq_8";
|
|
|
|
label = "UART_3";
|
|
|
|
clocks = <&uartclk>;
|
|
|
|
};
|
2021-10-19 17:12:33 +08:00
|
|
|
};
|
|
|
|
};
|