Skip to content

Commit dab2da8

Browse files
grygoriyStmlind
authored andcommitted
ARM: dts: am4372: switch to use phy-gmii-sel
Switch to use phy-gmii-sel PHY instead of cpsw-phy-sel. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 8371439 commit dab2da8

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

arch/arm/boot/dts/am437x-l4.dtsi

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,6 @@
280280
#size-cells = <1>;
281281
ranges = <0 0 0x4000>;
282282

283-
phy_sel: cpsw-phy-sel@650 {
284-
compatible = "ti,am43xx-cpsw-phy-sel";
285-
reg= <0x650 0x4>;
286-
reg-names = "gmii-sel";
287-
};
288-
289283
am43xx_pinmux: pinmux@800 {
290284
compatible = "ti,am437-padconf",
291285
"pinctrl-single";
@@ -300,11 +294,17 @@
300294
};
301295

302296
scm_conf: scm_conf@0 {
303-
compatible = "syscon";
297+
compatible = "syscon", "simple-bus";
304298
reg = <0x0 0x800>;
305299
#address-cells = <1>;
306300
#size-cells = <1>;
307301

302+
phy_gmii_sel: phy-gmii-sel {
303+
compatible = "ti,am43xx-phy-gmii-sel";
304+
reg = <0x650 0x4>;
305+
#phy-cells = <2>;
306+
};
307+
308308
scm_clocks: clocks {
309309
#address-cells = <1>;
310310
#size-cells = <0>;
@@ -555,7 +555,6 @@
555555
cpts_clock_shift = <29>;
556556
ranges = <0 0 0x8000>;
557557
syscon = <&scm_conf>;
558-
cpsw-phy-sel = <&phy_sel>;
559558

560559
davinci_mdio: mdio@1000 {
561560
compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio";
@@ -572,11 +571,13 @@
572571
cpsw_emac0: slave@200 {
573572
/* Filled in by U-Boot */
574573
mac-address = [ 00 00 00 00 00 00 ];
574+
phys = <&phy_gmii_sel 1 0>;
575575
};
576576

577577
cpsw_emac1: slave@300 {
578578
/* Filled in by U-Boot */
579579
mac-address = [ 00 00 00 00 00 00 ];
580+
phys = <&phy_gmii_sel 2 0>;
580581
};
581582
};
582583
};

arch/arm/boot/dts/am43x-epos-evm.dts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,7 @@
584584
&cpsw_emac0 {
585585
phy-handle = <&ethphy0>;
586586
phy-mode = "rmii";
587-
};
588-
589-
&phy_sel {
590-
rmii-clock-ext;
587+
phys = <&phy_gmii_sel 1 1>;
591588
};
592589

593590
&i2c0 {

0 commit comments

Comments
 (0)