2023-09-28 14:46:18 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2023 honglin leng <a909204013@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-10-03 14:18:12 +08:00
|
|
|
#include <mem.h>
|
|
|
|
#include <freq.h>
|
|
|
|
|
2023-09-28 14:46:18 +08:00
|
|
|
#include <arm64/armv8-a.dtsi>
|
|
|
|
#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a72";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-03 14:18:12 +08:00
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
|
2023-09-28 14:46:18 +08:00
|
|
|
timer {
|
|
|
|
compatible = "arm,armv8-timer";
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
sram0: memory@200000 {
|
|
|
|
device_type = "memory";
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x200000 0x80000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gic: interrupt-controller@ff841000 {
|
|
|
|
compatible = "arm,gic-v2", "arm,gic";
|
|
|
|
reg = <0xff841000 0x1000>,
|
|
|
|
<0xff842000 0x2000>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2023-09-29 21:35:32 +08:00
|
|
|
gpio: gpio@fe200000 {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
reg = <0xfe200000 0xf4>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
/* GPIO 0 ~ 27 */
|
|
|
|
gpio0: gpio@0 {
|
|
|
|
compatible = "brcm,bcm2711-gpio";
|
|
|
|
reg = <0>;
|
|
|
|
interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <28>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* GPIO 28 ~ 45 */
|
|
|
|
gpio1: gpio@1c {
|
|
|
|
compatible = "brcm,bcm2711-gpio";
|
|
|
|
reg = <28>;
|
|
|
|
interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL
|
|
|
|
IRQ_DEFAULT_PRIORITY>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <18>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-28 14:46:18 +08:00
|
|
|
uart1: uart@fe215040 {
|
|
|
|
compatible = "brcm,bcm2711-aux-uart";
|
|
|
|
reg = <0xfe215040 0x40>;
|
2023-10-03 14:18:12 +08:00
|
|
|
clock-frequency = <DT_FREQ_M(500)>;
|
2023-09-28 14:46:18 +08:00
|
|
|
interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL
|
2023-10-03 14:18:12 +08:00
|
|
|
IRQ_DEFAULT_PRIORITY>;
|
2023-09-28 14:46:18 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|