Skip to content

Commit 5ec37be

Browse files
cpackham-atlnztsbogend
authored andcommitted
mips: dts: realtek: Add syscon-reboot node
The board level reset on systems using the RTL9302 can be driven via the switch. Use a syscon-reboot node to represent this. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f67a922 commit 5ec37be

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/dts-v1/;
33

4-
#include "rtl930x.dtsi"
4+
#include "rtl9302c.dtsi"
55

66
#include <dt-bindings/input/input.h>
77
#include <dt-bindings/gpio/gpio.h>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
2+
3+
#include "rtl930x.dtsi"
4+
5+
&switch0 {
6+
compatible = "realtek,rtl9302c-switch", "syscon", "simple-mfd";
7+
};

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@
2929
#clock-cells = <0>;
3030
clock-frequency = <175000000>;
3131
};
32+
33+
switch0: switch@1b000000 {
34+
compatible = "realtek,rtl9301-switch", "syscon", "simple-mfd";
35+
reg = <0x1b000000 0x10000>;
36+
#address-cells = <1>;
37+
#size-cells = <1>;
38+
39+
reboot@c {
40+
compatible = "syscon-reboot";
41+
reg = <0x0c 0x4>;
42+
value = <0x01>;
43+
};
44+
};
3245
};
3346

3447
&soc {

0 commit comments

Comments
 (0)