Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sander@svanheule.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Sander Vanheule and committed by
Thomas Bogendoerfer
b3992b82 4b7785dd

+36
+36
arch/mips/boot/dts/realtek/rtl838x.dtsi
··· 46 46 #size-cells = <1>; 47 47 ranges = <0x0 0x18000000 0x10000>; 48 48 49 + spi0: spi@1200 { 50 + compatible = "realtek,rtl8380-spi"; 51 + reg = <0x1200 0x100>; 52 + 53 + #address-cells = <1>; 54 + #size-cells = <0>; 55 + }; 56 + 49 57 uart0: serial@2000 { 50 58 compatible = "ns16550a"; 51 59 reg = <0x2000 0x100>; ··· 96 88 97 89 interrupt-parent = <&cpuintc>; 98 90 interrupts = <2>, <3>, <4>, <5>, <6>; 91 + }; 92 + 93 + watchdog: watchdog@3150 { 94 + compatible = "realtek,rtl8380-wdt"; 95 + reg = <0x3150 0xc>; 96 + 97 + realtek,reset-mode = "soc"; 98 + 99 + clocks = <&lx_clk>; 100 + timeout-sec = <20>; 101 + 102 + interrupt-parent = <&intc>; 103 + interrupt-names = "phase1", "phase2"; 104 + interrupts = <19>, <18>; 105 + }; 106 + 107 + gpio0: gpio@3500 { 108 + compatible = "realtek,rtl8380-gpio", "realtek,otto-gpio"; 109 + reg = <0x3500 0x1c>; 110 + 111 + gpio-controller; 112 + #gpio-cells = <2>; 113 + ngpios = <24>; 114 + 115 + interrupt-controller; 116 + #interrupt-cells = <2>; 117 + interrupt-parent = <&intc>; 118 + interrupts = <23>; 99 119 }; 100 120 }; 101 121 };