summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/lan966x.dtsi
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-05-03 01:41:24 +0300
committerClaudiu Beznea <claudiu.beznea@microchip.com>2022-05-13 16:42:19 +0300
commitff85a7a9dedb6c876974ae20ff0c902a9247dae8 (patch)
treec8037eeafeaac918f68d826a298c5bf120cccdda /arch/arm/boot/dts/lan966x.dtsi
parent6ad69e07def67c95e677a747d5320f2f734fd583 (diff)
downloadlinux-ff85a7a9dedb6c876974ae20ff0c902a9247dae8.tar.xz
ARM: dts: lan966x: add reset switch reset node
Add the switch reset node which will later be used by the switch driver. The switch reset also resets the GPIO controller and the SGPIO controller, thus it also has to be connectected to these nodes. This way the reset will only issued once for the first device requesting the reset. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220502224127.2604333-11-michael@walle.cc Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Diffstat (limited to 'arch/arm/boot/dts/lan966x.dtsi')
-rw-r--r--arch/arm/boot/dts/lan966x.dtsi17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
index 786655b65dc5..238b4dfccaa2 100644
--- a/arch/arm/boot/dts/lan966x.dtsi
+++ b/arch/arm/boot/dts/lan966x.dtsi
@@ -391,6 +391,11 @@
status = "disabled";
};
+ cpu_ctrl: syscon@e00c0000 {
+ compatible = "microchip,lan966x-cpu-syscon", "syscon";
+ reg = <0xe00c0000 0x350>;
+ };
+
can0: can@e081c000 {
compatible = "bosch,m_can";
reg = <0xe081c000 0xfc>, <0x00100000 0x4000>;
@@ -406,10 +411,20 @@
status = "disabled";
};
+ reset: reset-controller@e200400c {
+ compatible = "microchip,lan966x-switch-reset";
+ reg = <0xe200400c 0x4>;
+ reg-names = "gcb";
+ #reset-cells = <1>;
+ cpu-syscon = <&cpu_ctrl>;
+ };
+
gpio: pinctrl@e2004064 {
compatible = "microchip,lan966x-pinctrl";
reg = <0xe2004064 0xb4>,
<0xe2010024 0x138>;
+ resets = <&reset 0>;
+ reset-names = "switch";
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&gpio 0 0 78>;
@@ -453,6 +468,8 @@
compatible = "microchip,sparx5-sgpio";
reg = <0xe2004190 0x118>;
clocks = <&sys_clk>;
+ resets = <&reset 0>;
+ reset-names = "switch";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";