rtl838x: rtl838x.dtsi: fix missing interrupt-parent for uart0
[openwrt/staging/rmilecki.git] / target / linux / rtl838x / dts / rtl838x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8
9 compatible = "realtek,rtl838x-soc";
10
11 cpus {
12 #address-cells = <1>;
13 #size-cells = <0>;
14 frequency = <500000000>;
15
16 cpu@0 {
17 compatible = "mips,mips4KEc";
18 reg = <0>;
19 };
20 };
21
22 memory@0 {
23 device_type = "memory";
24 reg = <0x0 0x8000000>;
25 };
26
27 chosen {
28 bootargs = "console=ttyS0,38400";
29 };
30
31 cpuintc: cpuintc {
32 #address-cells = <0>;
33 #interrupt-cells = <1>;
34 interrupt-controller;
35 compatible = "rtl838x,icu";
36 reg = <0xb8003000 0x20>;
37 };
38
39 spi0: spi@b8001200 {
40 status = "okay";
41
42 compatible = "realtek,rtl838x-nor";
43 reg = <0xb8001200 0x100>;
44
45 #address-cells = <1>;
46 #size-cells = <0>;
47 };
48
49 uart0: uart@b8002000 {
50 status = "disabled";
51
52 compatible = "ns16550a";
53 reg = <0xb8002000 0x100>;
54
55 clock-frequency = <200000000>;
56
57 interrupt-parent = <&cpuintc>;
58 interrupts = <31>;
59
60 reg-io-width = <1>;
61 reg-shift = <2>;
62 fifo-size = <1>;
63 no-loopback-test;
64 };
65
66 uart1: uart@b8002100 {
67 status = "okay";
68
69 compatible = "ns16550a";
70 reg = <0xb8002100 0x100>;
71
72 clock-frequency = <200000000>;
73
74 interrupt-parent = <&cpuintc>;
75 interrupts = <30>;
76
77 reg-io-width = <1>;
78 reg-shift = <2>;
79 fifo-size = <1>;
80 no-loopback-test;
81 };
82
83 gpio0: gpio-controller@b8003500 {
84 compatible = "realtek,rtl838x-gpio";
85 reg = <0xb8003500 0x20>;
86 gpio-controller;
87 #gpio-cells = <2>;
88 interrupt-parent = <&cpuintc>;
89 interrupts = <23>;
90 };
91
92 ethernet0: ethernet@bb00a300 {
93 status = "okay";
94
95 compatible = "realtek,rtl838x-eth";
96 reg = <0xbb00a300 0x100>;
97 interrupt-parent = <&cpuintc>;
98 interrupts = <24>;
99 #interrupt-cells = <1>;
100 phy-mode = "internal";
101
102 fixed-link {
103 speed = <1000>;
104 full-duplex;
105 };
106 };
107
108 switch0: switch@bb000000 {
109 status = "okay";
110
111 compatible = "realtek,rtl838x-switch";
112 };
113 };