Files
openloongarch-linux-5.10/arch/loongarch/boot/dts/loongson/ls2p500_evb.dts
T
2024-06-17 20:18:01 +08:00

137 lines
1.5 KiB
Devicetree

#include "loongson2p500.dtsi"
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/pwm/pwm.h>
/ {
model = "LS2P500-EVB";
chosen {
stdout-path = "serial0:115200n8";
bootargs = "earlycon";
};
memory {
name = "memory";
device_type = "memory";
/* low 256MB, 0 ~ 2MB reserved, highest 16MB reserved. */
reg = <0 0x00200000 0 0x0ee00000
0 0x90000000 0 0x30000000>;
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0 0x02000000>;
// alloc-ranges = <0 0x00200000 0 0x09000000>;
linux,cma-default;
};
};
};
&uart0 {
status = "okay";
};
&uart1 {
status = "okay";
};
&uart2 {
status = "okay";
};
&uart3 {
status = "okay";
};
&uart4 {
status = "okay";
};
&uart5 {
status = "okay";
};
&uart6 {
status = "okay";
};
&uart7 {
status = "okay";
};
&spi0 {
status = "okay";
// spidev@0 {
// compatible = "rohm,dh2228fv";
// spi-max-frequency = <100000000>;
// reg = <0>;
// };
};
&spi2 {
status = "okay";
};
&i2c2 {
status = "okay";
};
&gmac0 {
status = "okay";
};
&gmac1 {
status = "okay";
};
// &sdio {
// status = "okay";
// };
&rtc0 {
status = "okay";
};
&pwm0 {
status = "okay";
};
&pwm1 {
status = "okay";
};
&pwm2 {
status = "okay";
};
&pwm3 {
status = "okay";
};
&prt_pwm7 {
status = "okay";
};
&prt_pwm8 {
status = "okay";
};
&prt_pwm9 {
status = "okay";
};
&prt_pwm10 {
status = "okay";
};
&prt_pwm11 {
status = "okay";
};