2019-07-25 16:44:41 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019, Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
|
|
|
|
2022-05-06 17:02:05 +08:00
|
|
|
#include <zephyr/dt-bindings/i2c/i2c.h>
|
|
|
|
#include <zephyr/dt-bindings/gpio/gpio.h>
|
2019-07-25 16:44:41 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "snps,archs38";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "snps,archs38";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@2 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "snps,archs38";
|
|
|
|
reg = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@3 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "snps,archs38";
|
|
|
|
reg = <3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
intc: arcv2-intc {
|
|
|
|
compatible = "snps,arcv2-intc";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
idu_intc: idu-interrupt-controller {
|
|
|
|
compatible = "snps,archs-idu-intc";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
|
|
|
|
2022-06-15 22:34:01 +08:00
|
|
|
ici: intercore-interrupt-unit {
|
|
|
|
compatible = "snps,archs-ici";
|
|
|
|
interrupts = <19 1>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
|
|
|
|
2022-06-15 19:14:40 +08:00
|
|
|
timer0: timer0 {
|
|
|
|
compatible = "snps,arc-timer";
|
|
|
|
interrupts = <16 1>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
|
|
|
|
|
|
|
timer1: timer1 {
|
|
|
|
compatible = "snps,arc-timer";
|
|
|
|
interrupts = <17 1>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
|
|
|
|
2019-07-25 16:44:41 +08:00
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
interrupt-parent = <&idu_intc>;
|
|
|
|
ranges;
|
|
|
|
|
2019-11-12 16:00:51 +08:00
|
|
|
ddr0: memory@90000000 {
|
2019-07-25 16:44:41 +08:00
|
|
|
device_type = "memory";
|
2019-11-12 16:00:51 +08:00
|
|
|
reg = <0x90000000 0x50000000>;
|
2019-07-25 16:44:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@f0005000 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
clock-frequency = <33333333>;
|
|
|
|
reg = <0xf0005000 0x1000>;
|
|
|
|
interrupts = <30 1>;
|
2022-06-15 19:59:22 +08:00
|
|
|
reg-shift = <2>;
|
2019-07-25 16:44:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart1: uart@f0026000{
|
|
|
|
compatible = "ns16550";
|
|
|
|
clock-frequency = <33333333>;
|
|
|
|
reg = <0xf0026000 0x1000>;
|
|
|
|
interrupts = <46 1>;
|
2022-06-15 19:59:22 +08:00
|
|
|
reg-shift = <2>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2: uart@f0027000 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
clock-frequency = <33333333>;
|
|
|
|
reg = <0xf0027000 0x1000>;
|
|
|
|
interrupts = <47 1>;
|
2022-06-15 19:59:22 +08:00
|
|
|
reg-shift = <2>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3: uart@f0028000 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
clock-frequency = <33333333>;
|
|
|
|
reg = <0xf0028000 0x1000>;
|
|
|
|
interrupts = <48 1>;
|
2022-06-15 19:59:22 +08:00
|
|
|
reg-shift = <2>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio0: gpio@f0003000 {
|
|
|
|
compatible = "snps,designware-gpio";
|
|
|
|
reg = <0xf0003000 0x1000>;
|
2021-06-28 14:19:46 +08:00
|
|
|
ngpios = <24>;
|
2019-07-25 16:44:41 +08:00
|
|
|
interrupt-parent = <&idu_intc>;
|
|
|
|
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2021-06-29 14:57:46 +08:00
|
|
|
creg_gpio: creg_gpio@f00014b0 {
|
|
|
|
compatible = "snps,creg-gpio";
|
|
|
|
reg = <0xf00014b0 0x4>;
|
|
|
|
ngpios = <12>;
|
|
|
|
bit_per_gpio = <2>;
|
|
|
|
off_val = <0>;
|
|
|
|
on_val = <2>;
|
|
|
|
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-07-25 16:44:41 +08:00
|
|
|
i2c0: i2c@f0023000 {
|
|
|
|
compatible = "snps,designware-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0023000 0x1000>;
|
|
|
|
interrupts = <43 1>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@f0024000 {
|
|
|
|
compatible = "snps,designware-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0024000 0x1000>;
|
|
|
|
interrupts = <44 1>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2: i2c@f0025000 {
|
|
|
|
compatible = "snps,designware-i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0025000 0x1000>;
|
|
|
|
interrupts = <45 1>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi0: spi@f0020000 {
|
|
|
|
compatible = "snps,designware-spi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0020000 0x1000>;
|
|
|
|
interrupts = <40 1>;
|
2023-04-24 16:30:35 +08:00
|
|
|
fifo-depth = <32>;
|
2023-11-10 07:27:21 +08:00
|
|
|
max-xfer-size = <16>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi1: spi@f0021000 {
|
|
|
|
compatible = "snps,designware-spi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0021000 0x1000>;
|
|
|
|
interrupts = <41 1>;
|
2023-04-24 16:30:35 +08:00
|
|
|
fifo-depth = <32>;
|
2023-11-10 07:27:21 +08:00
|
|
|
max-xfer-size = <16>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi2: spi@f0022000 {
|
|
|
|
compatible = "snps,designware-spi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0xf0022000 0x1000>;
|
|
|
|
interrupts = <42 1>;
|
2023-04-24 16:30:35 +08:00
|
|
|
fifo-depth = <32>;
|
2023-11-10 07:27:21 +08:00
|
|
|
max-xfer-size = <16>;
|
2019-07-25 16:44:41 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2019-11-12 16:00:51 +08:00
|
|
|
};
|