|
63 | 63 | i2c1 = &i2c1;
|
64 | 64 | i2c2 = &i2c2;
|
65 | 65 | i2c3 = &i2c3;
|
| 66 | + ethernet0 = &gmac2io; |
| 67 | + ethernet1 = &gmac2phy; |
66 | 68 | };
|
67 | 69 |
|
68 | 70 | cpus {
|
|
424 | 426 | status = "disabled";
|
425 | 427 | };
|
426 | 428 |
|
| 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 | + |
427 | 466 | gic: interrupt-controller@ff811000 {
|
428 | 467 | compatible = "arm,gic-400";
|
429 | 468 | #interrupt-cells = <3>;
|
|
0 commit comments