Skip to content

Commit 6ad69e0

Browse files
mwalleclaudiubeznea
authored andcommitted
ARM: dts: lan966x: add MIIM nodes
Add the MDIO controller nodes. The integrated PHYs are connected to the second controller. This controller also takes care of the resets of the integrated PHYs, thus it has two memory regions. The first controller is routed to the external MDIO/MDC pins. By default, they are disabled. 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-10-michael@walle.cc Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent 63f2959 commit 6ad69e0

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

arch/arm/boot/dts/lan966x.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,37 @@
418418
#interrupt-cells = <2>;
419419
};
420420

421+
mdio0: mdio@e2004118 {
422+
compatible = "microchip,lan966x-miim";
423+
#address-cells = <1>;
424+
#size-cells = <0>;
425+
reg = <0xe2004118 0x24>;
426+
clocks = <&sys_clk>;
427+
status = "disabled";
428+
};
429+
430+
mdio1: mdio@e200413c {
431+
compatible = "microchip,lan966x-miim";
432+
#address-cells = <1>;
433+
#size-cells = <0>;
434+
reg = <0xe200413c 0x24>,
435+
<0xe2010020 0x4>;
436+
clocks = <&sys_clk>;
437+
status = "disabled";
438+
439+
phy0: ethernet-phy@1 {
440+
reg = <1>;
441+
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
442+
status = "disabled";
443+
};
444+
445+
phy1: ethernet-phy@2 {
446+
reg = <2>;
447+
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
448+
status = "disabled";
449+
};
450+
};
451+
421452
sgpio: gpio@e2004190 {
422453
compatible = "microchip,sparx5-sgpio";
423454
reg = <0xe2004190 0x118>;

0 commit comments

Comments
 (0)