Skip to content

Commit 9c4cc91

Browse files
SuperDavidWudavem330
authored andcommitted
ARM64: dts: rockchip: Add gmac2phy node support for rk3328
The gmac2phy controller of rk3328 is connected to integrated PHY directly inside, add the node for the integrated PHY support. Signed-off-by: David Wu <david.wu@rock-chips.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent db40f15 commit 9c4cc91

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3328.dtsi

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
i2c1 = &i2c1;
6464
i2c2 = &i2c2;
6565
i2c3 = &i2c3;
66+
ethernet0 = &gmac2io;
67+
ethernet1 = &gmac2phy;
6668
};
6769

6870
cpus {
@@ -424,6 +426,43 @@
424426
status = "disabled";
425427
};
426428

429+
gmac2phy: ethernet@ff550000 {
430+
compatible = "rockchip,rk3328-gmac";
431+
reg = <0x0 0xff550000 0x0 0x10000>;
432+
rockchip,grf = <&grf>;
433+
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
434+
interrupt-names = "macirq";
435+
clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>,
436+
<&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>,
437+
<&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>,
438+
<&cru SCLK_MAC2PHY_OUT>;
439+
clock-names = "stmmaceth", "mac_clk_rx",
440+
"mac_clk_tx", "clk_mac_ref",
441+
"aclk_mac", "pclk_mac",
442+
"clk_macphy";
443+
resets = <&cru SRST_GMAC2PHY_A>, <&cru SRST_MACPHY>;
444+
reset-names = "stmmaceth", "mac-phy";
445+
phy-mode = "rmii";
446+
phy-handle = <&phy>;
447+
status = "disabled";
448+
449+
mdio {
450+
compatible = "snps,dwmac-mdio";
451+
#address-cells = <1>;
452+
#size-cells = <0>;
453+
454+
phy: phy@0 {
455+
compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
456+
reg = <0>;
457+
clocks = <&cru SCLK_MAC2PHY_OUT>;
458+
resets = <&cru SRST_MACPHY>;
459+
pinctrl-names = "default";
460+
pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>;
461+
phy-is-integrated;
462+
};
463+
};
464+
};
465+
427466
gic: interrupt-controller@ff811000 {
428467
compatible = "arm,gic-400";
429468
#interrupt-cells = <3>;

0 commit comments

Comments
 (0)