Skip to contentSkip to conversation

clk: ti: omap3: Fix am3517 mdio clock alias

PATCH In review Adam Ford 2 participants 2 messages Jun 25, 2018

Subsystems (3)
lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH v2 1/1 clk: ti: omap3: Fix am3517 mdio clock alias

A previous patch removed OMAP clock aliases that were perceived to be unnecessary. Unfortunately, it broke the ethernet on the am3517-evm. This patch enables the MDIO clock and EMAC clock.

Fixes 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")

---
V2: Instead of modifying clk-3xxx.c, this patch modifie the device tree
to work like the original patch intended.

arch/arm/boot/dts/am3517.dtsi +4 -0
index ca294914bbb1..4b6062b631b1 100644
@@ -39,6 +39,8 @@
 			ti,davinci-ctrl-ram-size = <0x2000>;
 			ti,davinci-rmii-en = /bits/ 8 <1>;
 			local-mac-address = [ 00 00 00 00 00 00 ];
+			clocks = <&emac_ick>;
+			clock-names = "ick";
 		};
 
 		davinci_mdio: ethernet@5c030000 {
@@ -49,6 +51,8 @@
 			bus_freq = <1000000>;
 			#address-cells = <1>;
 			#size-cells = <0>;
+			clocks = <&emac_fck>;
+			clock-names = "fck";
 		};
 
 		uart4: serial@4809e000 {
Signature · 1 line
2.17.1
#1 lore raw

On 25/06/18 13:53, Adam Ford wrote:

Subject line should be: "ARM: dts: omap3:" etc.

-Tero

Quoted 27 lines

A previous patch removed OMAP clock aliases that were perceived to be unnecessary. Unfortunately, it broke the ethernet on the am3517-evm. This patch enables the MDIO clock and EMAC clock.

Fixes 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")

---
V2: Instead of modifying clk-3xxx.c, this patch modifie the device tree
to work like the original patch intended.

arch/arm/boot/dts/am3517.dtsi +2 -0
index ca294914bbb1..4b6062b631b1 100644
@@ -39,6 +39,8 @@
  			ti,davinci-ctrl-ram-size = <0x2000>;
  			ti,davinci-rmii-en = /bits/ 8 <1>;
  			local-mac-address = [ 00 00 00 00 00 00 ];
+			clocks = <&emac_ick>;
+			clock-names = "ick";
  		};
 
  		davinci_mdio: ethernet@5c030000 {

arch/arm/boot/dts/am3517.dtsi line 58

Quoted 8 lines
arch/arm/boot/dts/am3517.dtsi +2 -0
@@ -49,6 +51,8 @@
  			bus_freq = <1000000>;
  			#address-cells = <1>;
  			#size-cells = <0>;
+			clocks = <&emac_fck>;
+			clock-names = "fck";
  		};
 
  		uart4: serial@4809e000 {

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki