Skip to content

Commit b3992b8

Browse files
svanheuletsbogend
authored andcommitted
mips: dts: realtek: Add RTL838x SoC peripherals
Add some of the SoC's CPU peripherals currently supported: - GPIO controller with support for 24 GPIO lines, although not all lines are brought out to pads on the SoC package. These lines can generate interrupts from external sources. - Watchdog which can be used to restart the SoC if no external restart logic is present. - SPI controller, primarily used to access NOR flash Signed-off-by: Sander Vanheule <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 4b7785d commit b3992b8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/mips/boot/dts/realtek/rtl838x.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
#size-cells = <1>;
4747
ranges = <0x0 0x18000000 0x10000>;
4848

49+
spi0: spi@1200 {
50+
compatible = "realtek,rtl8380-spi";
51+
reg = <0x1200 0x100>;
52+
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
};
56+
4957
uart0: serial@2000 {
5058
compatible = "ns16550a";
5159
reg = <0x2000 0x100>;
@@ -89,5 +97,33 @@
8997
interrupt-parent = <&cpuintc>;
9098
interrupts = <2>, <3>, <4>, <5>, <6>;
9199
};
100+
101+
watchdog: watchdog@3150 {
102+
compatible = "realtek,rtl8380-wdt";
103+
reg = <0x3150 0xc>;
104+
105+
realtek,reset-mode = "soc";
106+
107+
clocks = <&lx_clk>;
108+
timeout-sec = <20>;
109+
110+
interrupt-parent = <&intc>;
111+
interrupt-names = "phase1", "phase2";
112+
interrupts = <19>, <18>;
113+
};
114+
115+
gpio0: gpio@3500 {
116+
compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio";
117+
reg = <0x3500 0x1c>;
118+
119+
gpio-controller;
120+
#gpio-cells = <2>;
121+
ngpios = <24>;
122+
123+
interrupt-controller;
124+
#interrupt-cells = <2>;
125+
interrupt-parent = <&intc>;
126+
interrupts = <23>;
127+
};
92128
};
93129
};

0 commit comments

Comments
 (0)