Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 
0003 #include <dt-bindings/interrupt-controller/irq.h>
0004 
0005 / {
0006         #address-cells = <2>;
0007         #size-cells = <2>;
0008 
0009         cpuintc: interrupt-controller {
0010                 #address-cells = <0>;
0011                 #interrupt-cells = <1>;
0012                 interrupt-controller;
0013                 compatible = "mti,cpu-interrupt-controller";
0014         };
0015 
0016         package0: bus@1fe00000 {
0017                 compatible = "simple-bus";
0018                 #address-cells = <2>;
0019                 #size-cells = <1>;
0020                 ranges = <0 0x1fe00000 0 0x1fe00000 0x100000
0021                         0 0x3ff00000 0 0x3ff00000 0x100000
0022                         0xefd 0xfb000000 0xefd 0xfb000000 0x10000000>;
0023 
0024                 liointc: interrupt-controller@3ff01400 {
0025                         compatible = "loongson,liointc-1.0";
0026                         reg = <0 0x3ff01400 0x64>;
0027 
0028                         interrupt-controller;
0029                         #interrupt-cells = <2>;
0030 
0031                         interrupt-parent = <&cpuintc>;
0032                         interrupts = <2>, <3>;
0033                         interrupt-names = "int0", "int1";
0034 
0035                         loongson,parent_int_map = <0x00ffffff>, /* int0 */
0036                                                 <0xff000000>, /* int1 */
0037                                                 <0x00000000>, /* int2 */
0038                                                 <0x00000000>; /* int3 */
0039 
0040                 };
0041 
0042                 cpu_uart0: serial@1fe00100 {
0043                         compatible = "ns16550a";
0044                         reg = <0 0x1fe00100 0x10>;
0045                         clock-frequency = <100000000>;
0046                         interrupt-parent = <&liointc>;
0047                         interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
0048                         no-loopback-test;
0049                 };
0050 
0051                 cpu_uart1: serial@1fe00110 {
0052                         status = "disabled";
0053                         compatible = "ns16550a";
0054                         reg = <0 0x1fe00110 0x10>;
0055                         clock-frequency = <100000000>;
0056                         interrupts = <15 IRQ_TYPE_LEVEL_HIGH>;
0057                         interrupt-parent = <&liointc>;
0058                         no-loopback-test;
0059                 };
0060         };
0061 };