Skip to content

Commit db40f15

Browse files
SuperDavidWudavem330
authored andcommitted
ARM: dts: rk3228-evb: Enable the integrated PHY for gmac
This patch enables the integrated PHY for rk3228 evb board by default. To use the external 1000M PHY on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu <david.wu@rock-chips.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8bdf63b commit db40f15

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

arch/arm/boot/dts/rk3228-evb.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
device_type = "memory";
5151
reg = <0x60000000 0x40000000>;
5252
};
53+
54+
vcc_phy: vcc-phy-regulator {
55+
compatible = "regulator-fixed";
56+
enable-active-high;
57+
regulator-name = "vcc_phy";
58+
regulator-min-microvolt = <1800000>;
59+
regulator-max-microvolt = <1800000>;
60+
regulator-always-on;
61+
regulator-boot-on;
62+
};
5363
};
5464

5565
&emmc {
@@ -60,6 +70,30 @@
6070
status = "okay";
6171
};
6272

73+
&gmac {
74+
assigned-clocks = <&cru SCLK_MAC_SRC>;
75+
assigned-clock-rates = <50000000>;
76+
clock_in_out = "output";
77+
phy-supply = <&vcc_phy>;
78+
phy-mode = "rmii";
79+
phy-handle = <&phy0>;
80+
status = "okay";
81+
82+
mdio {
83+
compatible = "snps,dwmac-mdio";
84+
#address-cells = <1>;
85+
#size-cells = <0>;
86+
87+
phy@0 {
88+
compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22";
89+
reg = <0>;
90+
clocks = <&cru SCLK_MAC_PHY>;
91+
resets = <&cru SRST_MACPHY>;
92+
phy-is-integrated;
93+
};
94+
};
95+
};
96+
6397
&tsadc {
6498
status = "okay";
6599

0 commit comments

Comments
 (0)