Skip to content

Commit ff85a7a

Browse files
mwalleclaudiubeznea
authored andcommitted
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 <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Tested-by: Horatiu Vultur <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nicolas Ferre <[email protected]>
1 parent 6ad69e0 commit ff85a7a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

arch/arm/boot/dts/lan966x.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@
391391
status = "disabled";
392392
};
393393

394+
cpu_ctrl: syscon@e00c0000 {
395+
compatible = "microchip,lan966x-cpu-syscon", "syscon";
396+
reg = <0xe00c0000 0x350>;
397+
};
398+
394399
can0: can@e081c000 {
395400
compatible = "bosch,m_can";
396401
reg = <0xe081c000 0xfc>, <0x00100000 0x4000>;
@@ -406,10 +411,20 @@
406411
status = "disabled";
407412
};
408413

414+
reset: reset-controller@e200400c {
415+
compatible = "microchip,lan966x-switch-reset";
416+
reg = <0xe200400c 0x4>;
417+
reg-names = "gcb";
418+
#reset-cells = <1>;
419+
cpu-syscon = <&cpu_ctrl>;
420+
};
421+
409422
gpio: pinctrl@e2004064 {
410423
compatible = "microchip,lan966x-pinctrl";
411424
reg = <0xe2004064 0xb4>,
412425
<0xe2010024 0x138>;
426+
resets = <&reset 0>;
427+
reset-names = "switch";
413428
gpio-controller;
414429
#gpio-cells = <2>;
415430
gpio-ranges = <&gpio 0 0 78>;
@@ -453,6 +468,8 @@
453468
compatible = "microchip,sparx5-sgpio";
454469
reg = <0xe2004190 0x118>;
455470
clocks = <&sys_clk>;
471+
resets = <&reset 0>;
472+
reset-names = "switch";
456473
#address-cells = <1>;
457474
#size-cells = <0>;
458475
status = "disabled";

0 commit comments

Comments
 (0)