Skip to contentSkip to conversation

clk: ti: omap3: Fix am3517 mdio clock alias

PATCH Superseded Adam Ford 3 participants 4 messages Jun 23, 2018 – Jun 25, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 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 renables the MDIO clock.

Fixes 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")
drivers/clk/ti/clk-3xxx.c +2 -0
index 8aa5f5793835..f84734bd0aa7 100644
@@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
 };
 
 static struct ti_dt_clk am35xx_clks[] = {
+	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
+	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
 	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
 	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
 	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
Signature · 1 line
2.17.1
Tested-by on v1 1/1
#1 lore raw
Quoted 7 lines · Adam Ford

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

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

On AM3517-EVM, you can add:

Quoted 22 lines
drivers/clk/ti/clk-3xxx.c +2 -0
index 8aa5f5793835..f84734bd0aa7 100644
@@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
 };
 
 static struct ti_dt_clk am35xx_clks[] = {
+	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
+	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
 	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
 	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
 	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
Signature · 6 lines
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 5 lines · Derald D. Woods
Quoted 4 lines · Adam Ford

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

Quoted 9 lines
Quoted 3 lines
Fixes 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")

On AM3517-EVM, you can add:

Quoted 1 line

Can you try adding the alternative solution with the DT change I just proposed?

clocks = <&emac_fck>;
clock-names = "fck";

... under the mdio node?

The target is to get rid of the clock aliases under the driver files.

-Tero

Quoted 17 lines
Quoted 17 lines
drivers/clk/ti/clk-3xxx.c +2 -0
index 8aa5f5793835..f84734bd0aa7 100644
@@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
  };
 
  static struct ti_dt_clk am35xx_clks[] = {
+	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
+	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
  	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
  	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
  	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
Signature · 1 line
2.17.1
Quoted 4 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

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

author
#3 lore raw
Quoted 17 lines · Tero Kristo
Quoted 5 lines · Derald D. Woods
Quoted 4 lines · Adam Ford

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

Quoted 9 lines
Quoted 3 lines
Fixes 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")

On AM3517-EVM, you can add:

Quoted 1 line
Quoted 8 lines

Can you try adding the alternative solution with the DT change I just proposed?

clocks = <&emac_fck>;
clock-names = "fck";

... under the mdio node?

By itself, that wasn't enough, but I was able to do that and also add

clocks = <&emac_ick>;
clock-names = "ick";

under the emac node and together that fixed the issue.

I'll update my patch and re-submit as V2.

adam

Quoted 28 lines

The target is to get rid of the clock aliases under the driver files.

-Tero

Quoted 17 lines
Quoted 17 lines
drivers/clk/ti/clk-3xxx.c +2 -1
index 8aa5f5793835..f84734bd0aa7 100644
@@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
  };
 
  static struct ti_dt_clk am35xx_clks[] = {
+    DT_CLK("davinci_emac.0", NULL, "emac_ick"),
+    DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
     DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
     DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
     DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
--

2.17.1

Quoted 4 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

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