Enable aux timer and test uart in DT

This commit is contained in:
Rodrigo Arias 2024-09-03 16:09:53 +02:00
parent 3ee0933d7b
commit fa6227928e

View File

@ -128,17 +128,18 @@
current-speed = <115200>; current-speed = <115200>;
status = "okay"; status = "okay";
}; };
// /* The serial for interrupt tests */ /* The serial for interrupt tests */
// uart_testing: serial@40003000 { uart_testing: serial@40003000 {
// compatible = "ns16550"; compatible = "ns16550";
// reg = <0x0 0x40003000 0x0 0x1000>; reg = <0x0 0x40003000 0x0 0x1000>;
//// interrupts = <1>; /* Output interrupt 1 */ reg-shift = <2>;
//// interrupt-parent = <&PLIC>; /* Output interrupt 1 (the first one) */
// reg-shift = <2>; interrupts = <1>;
// clock-frequency = <50000000>; interrupt-parent = <&PLIC>;
// current-speed = <115200>; clock-frequency = <50000000>;
// status = "okay"; current-speed = <115200>;
// }; status = "okay";
};
// ethernet0 { // ethernet0 {
// xlnx,rxmem = <0x000005f2>; // xlnx,rxmem = <0x000005f2>;
@ -211,7 +212,7 @@
*/ */
interrupts-extended = <&HLIC0 11>, <&HLIC0 9>; interrupts-extended = <&HLIC0 11>, <&HLIC0 9>;
reg = < 0x0 0x40800000 0x0 0x00400000>; reg = < 0x0 0x40800000 0x0 0x00400000>;
riscv,ndev = <3>; riscv,ndev = <4>;
//riscv,max-priority = <0x7>; //riscv,max-priority = <0x7>;
phandle = <0x3>; phandle = <0x3>;
}; };
@ -230,6 +231,13 @@
interrupts-extended = <&HLIC0 3>, <&HLIC0 7>; interrupts-extended = <&HLIC0 3>, <&HLIC0 7>;
compatible = "riscv,clint0"; compatible = "riscv,clint0";
}; };
aux_timer: clint@40010000 {
reg = <0x0 0x40010000 0x0 0x00010000>;
reg-names = "control";
interrupts = <4>; /* PLIC input source 4 */
interrupt-parent = <&PLIC>;
compatible = "riscv,clint0";
};
// clint: clint@40002000 { // clint: clint@40002000 {
// /* MTIME and MTIMECMP address and size pairs */ // /* MTIME and MTIMECMP address and size pairs */
// reg = <0x0 0x40002000 0x0 0x8>, <0x0 0x40002008 0x0 0x8>; // reg = <0x0 0x40002000 0x0 0x8>, <0x0 0x40002008 0x0 0x8>;