aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-02-22 08:54:48 -0500
committerArnd Bergmann <arnd@arndb.de>2019-02-22 08:55:16 -0500
commit847aed392fe7d101057a7c4b85c11542a961b817 (patch)
treef00d3e6a350f6c18e9704d048dd26aad1ac8fa60
parent94224c2517f9f60a87e3a3e39d9c8c34920b886c (diff)
parentbae2bf97939aebd74dfd8f0b76b4902a19e63eef (diff)
Merge tag 'omap-for-v5.1/dt-cpsw-phy' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/dt
Device tree changes to make CPSW Ethernet use proper phy driver We now have a proper PHY driver with drivers/phy/ti/phy-gmii-sel.c to configure the CPSW PHY. These changes update all CPSW users to use the new driver that already got merged during v5.0 merge window. * tag 'omap-for-v5.1/dt-cpsw-phy' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: dt-bindings: net: ti: deprecate cpsw-phy-sel bindings ARM: dts: am335x: switch to use phy-gmii-sel ARM: dts: am4372: switch to use phy-gmii-sel ARM: dts: dm814x: switch to use phy-gmii-sel ARM: dts: dra7: switch to use phy-gmii-sel Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--Documentation/devicetree/bindings/net/cpsw-phy-sel.txt2
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir2110.dts4
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir3220.dts4
-rw-r--r--arch/arm/boot/dts/am335x-baltos-ir5221.dts4
-rw-r--r--arch/arm/boot/dts/am335x-chiliboard.dts4
-rw-r--r--arch/arm/boot/dts/am335x-icev2.dts4
-rw-r--r--arch/arm/boot/dts/am335x-igep0033.dtsi4
-rw-r--r--arch/arm/boot/dts/am335x-lxm.dts4
-rw-r--r--arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi5
-rw-r--r--arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts5
-rw-r--r--arch/arm/boot/dts/am335x-phycore-som.dtsi4
-rw-r--r--arch/arm/boot/dts/am33xx-l4.dtsi15
-rw-r--r--arch/arm/boot/dts/am437x-l4.dtsi17
-rw-r--r--arch/arm/boot/dts/am43x-epos-evm.dts5
-rw-r--r--arch/arm/boot/dts/dm814x.dtsi15
-rw-r--r--arch/arm/boot/dts/dra7-l4.dtsi15
16 files changed, 36 insertions, 75 deletions
diff --git a/Documentation/devicetree/bindings/net/cpsw-phy-sel.txt b/Documentation/devicetree/bindings/net/cpsw-phy-sel.txt
index 764c0c79b43d..5d76f991c027 100644
--- a/Documentation/devicetree/bindings/net/cpsw-phy-sel.txt
+++ b/Documentation/devicetree/bindings/net/cpsw-phy-sel.txt
@@ -1,4 +1,4 @@
1TI CPSW Phy mode Selection Device Tree Bindings 1TI CPSW Phy mode Selection Device Tree Bindings (DEPRECATED)
2----------------------------------------------- 2-----------------------------------------------
3 3
4Required properties: 4Required properties:
diff --git a/arch/arm/boot/dts/am335x-baltos-ir2110.dts b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
index 75de1e723303..50dcf1290ac6 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir2110.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir2110.dts
@@ -72,7 +72,3 @@
72 dual_emac_res_vlan = <2>; 72 dual_emac_res_vlan = <2>;
73 phy-handle = <&phy1>; 73 phy-handle = <&phy1>;
74}; 74};
75
76&phy_sel {
77 rmii-clock-ext = <1>;
78};
diff --git a/arch/arm/boot/dts/am335x-baltos-ir3220.dts b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
index 1b215c425c57..f3f1abd26470 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir3220.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir3220.dts
@@ -114,7 +114,3 @@
114 dual_emac_res_vlan = <2>; 114 dual_emac_res_vlan = <2>;
115 phy-handle = <&phy1>; 115 phy-handle = <&phy1>;
116}; 116};
117
118&phy_sel {
119 rmii-clock-ext = <1>;
120};
diff --git a/arch/arm/boot/dts/am335x-baltos-ir5221.dts b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
index 832ead864dc5..42f473f0ed77 100644
--- a/arch/arm/boot/dts/am335x-baltos-ir5221.dts
+++ b/arch/arm/boot/dts/am335x-baltos-ir5221.dts
@@ -133,10 +133,6 @@
133 phy-handle = <&phy1>; 133 phy-handle = <&phy1>;
134}; 134};
135 135
136&phy_sel {
137 rmii-clock-ext = <1>;
138};
139
140&dcan1 { 136&dcan1 {
141 pinctrl-names = "default"; 137 pinctrl-names = "default";
142 pinctrl-0 = <&dcan1_pins>; 138 pinctrl-0 = <&dcan1_pins>;
diff --git a/arch/arm/boot/dts/am335x-chiliboard.dts b/arch/arm/boot/dts/am335x-chiliboard.dts
index b50d5d2e71ff..bffa5dce54ec 100644
--- a/arch/arm/boot/dts/am335x-chiliboard.dts
+++ b/arch/arm/boot/dts/am335x-chiliboard.dts
@@ -155,10 +155,6 @@
155 phy-mode = "rmii"; 155 phy-mode = "rmii";
156}; 156};
157 157
158&phy_sel {
159 rmii-clock-ext;
160};
161
162/* USB */ 158/* USB */
163&usb { 159&usb {
164 status = "okay"; 160 status = "okay";
diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index f2005ecca74f..9ac775c71072 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -484,10 +484,6 @@
484 dual_emac; 484 dual_emac;
485}; 485};
486 486
487&phy_sel {
488 rmii-clock-ext;
489};
490
491&davinci_mdio { 487&davinci_mdio {
492 pinctrl-names = "default", "sleep"; 488 pinctrl-names = "default", "sleep";
493 pinctrl-0 = <&davinci_mdio_default>; 489 pinctrl-0 = <&davinci_mdio_default>;
diff --git a/arch/arm/boot/dts/am335x-igep0033.dtsi b/arch/arm/boot/dts/am335x-igep0033.dtsi
index 55b4c94cfafb..cbd22f25de95 100644
--- a/arch/arm/boot/dts/am335x-igep0033.dtsi
+++ b/arch/arm/boot/dts/am335x-igep0033.dtsi
@@ -123,10 +123,6 @@
123 phy-mode = "rmii"; 123 phy-mode = "rmii";
124}; 124};
125 125
126&phy_sel {
127 rmii-clock-ext;
128};
129
130&elm { 126&elm {
131 status = "okay"; 127 status = "okay";
132}; 128};
diff --git a/arch/arm/boot/dts/am335x-lxm.dts b/arch/arm/boot/dts/am335x-lxm.dts
index 481edcfaf121..d0e8e720a4d6 100644
--- a/arch/arm/boot/dts/am335x-lxm.dts
+++ b/arch/arm/boot/dts/am335x-lxm.dts
@@ -328,10 +328,6 @@
328 dual_emac_res_vlan = <3>; 328 dual_emac_res_vlan = <3>;
329}; 329};
330 330
331&phy_sel {
332 rmii-clock-ext;
333};
334
335&mac { 331&mac {
336 pinctrl-names = "default", "sleep"; 332 pinctrl-names = "default", "sleep";
337 pinctrl-0 = <&cpsw_default>; 333 pinctrl-0 = <&cpsw_default>;
diff --git a/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi b/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
index 14f781953475..cb5913a69837 100644
--- a/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
+++ b/arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi
@@ -159,11 +159,6 @@
159 status = "okay"; 159 status = "okay";
160}; 160};
161 161
162&phy_sel {
163 reg= <0x44e10650 0xf5>;
164 rmii-clock-ext;
165};
166
167&sham { 162&sham {
168 status = "okay"; 163 status = "okay";
169}; 164};
diff --git a/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts b/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts
index 5a58efc0c874..e562ce40f290 100644
--- a/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts
+++ b/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts
@@ -446,11 +446,6 @@
446 dual_emac_res_vlan = <2>; 446 dual_emac_res_vlan = <2>;
447}; 447};
448 448
449&phy_sel {
450 reg= <0x44e10650 0xf5>;
451 rmii-clock-ext;
452};
453
454&sham { 449&sham {
455 status = "okay"; 450 status = "okay";
456}; 451};
diff --git a/arch/arm/boot/dts/am335x-phycore-som.dtsi b/arch/arm/boot/dts/am335x-phycore-som.dtsi
index 428a25e952b0..015adb626b03 100644
--- a/arch/arm/boot/dts/am335x-phycore-som.dtsi
+++ b/arch/arm/boot/dts/am335x-phycore-som.dtsi
@@ -100,10 +100,6 @@
100 status = "okay"; 100 status = "okay";
101}; 101};
102 102
103&phy_sel {
104 rmii-clock-ext;
105};
106
107/* I2C Busses */ 103/* I2C Busses */
108&am33xx_pinmux { 104&am33xx_pinmux {
109 i2c0_pins: pinmux_i2c0 { 105 i2c0_pins: pinmux_i2c0 {
diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi
index e957370f8aec..f459ec316a22 100644
--- a/arch/arm/boot/dts/am33xx-l4.dtsi
+++ b/arch/arm/boot/dts/am33xx-l4.dtsi
@@ -279,12 +279,6 @@
279 #pinctrl-cells = <1>; 279 #pinctrl-cells = <1>;
280 ranges = <0 0 0x2000>; 280 ranges = <0 0 0x2000>;
281 281
282 phy_sel: cpsw-phy-sel@650 {
283 compatible = "ti,am3352-cpsw-phy-sel";
284 reg= <0x650 0x4>;
285 reg-names = "gmii-sel";
286 };
287
288 am33xx_pinmux: pinmux@800 { 282 am33xx_pinmux: pinmux@800 {
289 compatible = "pinctrl-single"; 283 compatible = "pinctrl-single";
290 reg = <0x800 0x238>; 284 reg = <0x800 0x238>;
@@ -300,6 +294,12 @@
300 #size-cells = <1>; 294 #size-cells = <1>;
301 ranges = <0 0 0x800>; 295 ranges = <0 0 0x800>;
302 296
297 phy_gmii_sel: phy-gmii-sel {
298 compatible = "ti,am3352-phy-gmii-sel";
299 reg = <0x650 0x4>;
300 #phy-cells = <2>;
301 };
302
303 scm_clocks: clocks { 303 scm_clocks: clocks {
304 #address-cells = <1>; 304 #address-cells = <1>;
305 #size-cells = <0>; 305 #size-cells = <0>;
@@ -715,7 +715,6 @@
715 interrupts = <40 41 42 43>; 715 interrupts = <40 41 42 43>;
716 ranges = <0 0 0x8000>; 716 ranges = <0 0 0x8000>;
717 syscon = <&scm_conf>; 717 syscon = <&scm_conf>;
718 cpsw-phy-sel = <&phy_sel>;
719 status = "disabled"; 718 status = "disabled";
720 719
721 davinci_mdio: mdio@1000 { 720 davinci_mdio: mdio@1000 {
@@ -731,11 +730,13 @@
731 cpsw_emac0: slave@200 { 730 cpsw_emac0: slave@200 {
732 /* Filled in by U-Boot */ 731 /* Filled in by U-Boot */
733 mac-address = [ 00 00 00 00 00 00 ]; 732 mac-address = [ 00 00 00 00 00 00 ];
733 phys = <&phy_gmii_sel 1 1>;
734 }; 734 };
735 735
736 cpsw_emac1: slave@300 { 736 cpsw_emac1: slave@300 {
737 /* Filled in by U-Boot */ 737 /* Filled in by U-Boot */
738 mac-address = [ 00 00 00 00 00 00 ]; 738 mac-address = [ 00 00 00 00 00 00 ];
739 phys = <&phy_gmii_sel 2 1>;
739 }; 740 };
740 }; 741 };
741 }; 742 };
diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi
index ca0896f80248..85c6f4ff1824 100644
--- a/arch/arm/boot/dts/am437x-l4.dtsi
+++ b/arch/arm/boot/dts/am437x-l4.dtsi
@@ -280,12 +280,6 @@
280 #size-cells = <1>; 280 #size-cells = <1>;
281 ranges = <0 0 0x4000>; 281 ranges = <0 0 0x4000>;
282 282
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
289 am43xx_pinmux: pinmux@800 { 283 am43xx_pinmux: pinmux@800 {
290 compatible = "ti,am437-padconf", 284 compatible = "ti,am437-padconf",
291 "pinctrl-single"; 285 "pinctrl-single";
@@ -300,11 +294,17 @@
300 }; 294 };
301 295
302 scm_conf: scm_conf@0 { 296 scm_conf: scm_conf@0 {
303 compatible = "syscon"; 297 compatible = "syscon", "simple-bus";
304 reg = <0x0 0x800>; 298 reg = <0x0 0x800>;
305 #address-cells = <1>; 299 #address-cells = <1>;
306 #size-cells = <1>; 300 #size-cells = <1>;
307 301
302 phy_gmii_sel: phy-gmii-sel {
303 compatible = "ti,am43xx-phy-gmii-sel";
304 reg = <0x650 0x4>;
305 #phy-cells = <2>;
306 };
307
308 scm_clocks: clocks { 308 scm_clocks: clocks {
309 #address-cells = <1>; 309 #address-cells = <1>;
310 #size-cells = <0>; 310 #size-cells = <0>;
@@ -555,7 +555,6 @@
555 cpts_clock_shift = <29>; 555 cpts_clock_shift = <29>;
556 ranges = <0 0 0x8000>; 556 ranges = <0 0 0x8000>;
557 syscon = <&scm_conf>; 557 syscon = <&scm_conf>;
558 cpsw-phy-sel = <&phy_sel>;
559 558
560 davinci_mdio: mdio@1000 { 559 davinci_mdio: mdio@1000 {
561 compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio"; 560 compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio";
@@ -572,11 +571,13 @@
572 cpsw_emac0: slave@200 { 571 cpsw_emac0: slave@200 {
573 /* Filled in by U-Boot */ 572 /* Filled in by U-Boot */
574 mac-address = [ 00 00 00 00 00 00 ]; 573 mac-address = [ 00 00 00 00 00 00 ];
574 phys = <&phy_gmii_sel 1 0>;
575 }; 575 };
576 576
577 cpsw_emac1: slave@300 { 577 cpsw_emac1: slave@300 {
578 /* Filled in by U-Boot */ 578 /* Filled in by U-Boot */
579 mac-address = [ 00 00 00 00 00 00 ]; 579 mac-address = [ 00 00 00 00 00 00 ];
580 phys = <&phy_gmii_sel 2 0>;
580 }; 581 };
581 }; 582 };
582 }; 583 };
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index 4ea753b3ee43..9dfd80e3b76e 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -584,10 +584,7 @@
584&cpsw_emac0 { 584&cpsw_emac0 {
585 phy-handle = <&ethphy0>; 585 phy-handle = <&ethphy0>;
586 phy-mode = "rmii"; 586 phy-mode = "rmii";
587}; 587 phys = <&phy_gmii_sel 1 1>;
588
589&phy_sel {
590 rmii-clock-ext;
591}; 588};
592 589
593&i2c0 { 590&i2c0 {
diff --git a/arch/arm/boot/dts/dm814x.dtsi b/arch/arm/boot/dts/dm814x.dtsi
index f044abd64b7e..95de9f214c14 100644
--- a/arch/arm/boot/dts/dm814x.dtsi
+++ b/arch/arm/boot/dts/dm814x.dtsi
@@ -405,6 +405,12 @@
405 #size-cells = <1>; 405 #size-cells = <1>;
406 ranges = <0 0 0x800>; 406 ranges = <0 0 0x800>;
407 407
408 phy_gmii_sel: phy-gmii-sel {
409 compatible = "ti,dm814-phy-gmii-sel";
410 reg = <0x650 0x4>;
411 #phy-cells = <1>;
412 };
413
408 scm_clocks: clocks { 414 scm_clocks: clocks {
409 #address-cells = <1>; 415 #address-cells = <1>;
410 #size-cells = <0>; 416 #size-cells = <0>;
@@ -611,17 +617,14 @@
611 cpsw_emac0: slave@4a100200 { 617 cpsw_emac0: slave@4a100200 {
612 /* Filled in by U-Boot */ 618 /* Filled in by U-Boot */
613 mac-address = [ 00 00 00 00 00 00 ]; 619 mac-address = [ 00 00 00 00 00 00 ];
620 phys = <&phy_gmii_sel 1>;
621
614 }; 622 };
615 623
616 cpsw_emac1: slave@4a100300 { 624 cpsw_emac1: slave@4a100300 {
617 /* Filled in by U-Boot */ 625 /* Filled in by U-Boot */
618 mac-address = [ 00 00 00 00 00 00 ]; 626 mac-address = [ 00 00 00 00 00 00 ];
619 }; 627 phys = <&phy_gmii_sel 2>;
620
621 phy_sel: cpsw-phy-sel@48140650 {
622 compatible = "ti,am3352-cpsw-phy-sel";
623 reg= <0x48140650 0x4>;
624 reg-names = "gmii-sel";
625 }; 628 };
626 }; 629 };
627 630
diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi
index bb45cb7fc3b6..414f1cd68733 100644
--- a/arch/arm/boot/dts/dra7-l4.dtsi
+++ b/arch/arm/boot/dts/dra7-l4.dtsi
@@ -77,18 +77,18 @@
77 }; 77 };
78 }; 78 };
79 79
80 phy_gmii_sel: phy-gmii-sel {
81 compatible = "ti,dra7xx-phy-gmii-sel";
82 reg = <0x554 0x4>;
83 #phy-cells = <1>;
84 };
85
80 scm_conf_clocks: clocks { 86 scm_conf_clocks: clocks {
81 #address-cells = <1>; 87 #address-cells = <1>;
82 #size-cells = <0>; 88 #size-cells = <0>;
83 }; 89 };
84 }; 90 };
85 91
86 phy_sel: cpsw-phy-sel@554 {
87 compatible = "ti,dra7xx-cpsw-phy-sel";
88 reg= <0x554 0x4>;
89 reg-names = "gmii-sel";
90 };
91
92 dra7_pmx_core: pinmux@1400 { 92 dra7_pmx_core: pinmux@1400 {
93 compatible = "ti,dra7-padconf", 93 compatible = "ti,dra7-padconf",
94 "pinctrl-single"; 94 "pinctrl-single";
@@ -3099,7 +3099,6 @@
3099 <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>; 3099 <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>;
3100 ranges = <0 0 0x4000>; 3100 ranges = <0 0 0x4000>;
3101 syscon = <&scm_conf>; 3101 syscon = <&scm_conf>;
3102 cpsw-phy-sel = <&phy_sel>;
3103 status = "disabled"; 3102 status = "disabled";
3104 3103
3105 davinci_mdio: mdio@1000 { 3104 davinci_mdio: mdio@1000 {
@@ -3114,11 +3113,13 @@
3114 cpsw_emac0: slave@200 { 3113 cpsw_emac0: slave@200 {
3115 /* Filled in by U-Boot */ 3114 /* Filled in by U-Boot */
3116 mac-address = [ 00 00 00 00 00 00 ]; 3115 mac-address = [ 00 00 00 00 00 00 ];
3116 phys = <&phy_gmii_sel 1>;
3117 }; 3117 };
3118 3118
3119 cpsw_emac1: slave@300 { 3119 cpsw_emac1: slave@300 {
3120 /* Filled in by U-Boot */ 3120 /* Filled in by U-Boot */
3121 mac-address = [ 00 00 00 00 00 00 ]; 3121 mac-address = [ 00 00 00 00 00 00 ];
3122 phys = <&phy_gmii_sel 2>;
3122 }; 3123 };
3123 }; 3124 };
3124 }; 3125 };