J.D. Schroeder dbb9c19632 ARM: dts: dra7: Fix clock data for gmac_gmii_ref_clk_div
This commit fixes the clock data inside the DRA7xx clocks device tree
structure for the gmac_gmii_ref_clk_div clock. This clock is actually
the GMAC_MAIN_CLK and has nothing to do with the register at address
0x4a0093d0. If CLKSEL_REF bit 24 inside of CM_GMAC_GMAC_CLKCTRL, is
set to 1 in order to use the GMAC_RMII_CLK instead of the
GMAC_RMII_HS_CLK, the kernel generates a clock divider warning:
    WARNING: CPU: 0 PID: 0 at drivers/clk/clk-divider.c:129 clk_divider_recalc_rate+0xa8/0xe0()
    gmac_gmii_ref_clk_div: Zero divisor and CLK_DIVIDER_ALLOW_ZERO not set

By properly configuring the gmac_gmii_ref_clk_div (GMAC_MAIN_CLK) to
have the parent of dpll_gmac_m2_ck always divided by 2 the warning is
resolved and the clock tree is fixed up.

Additionally, a new clock called rmii_50mhz_clk_mux is defined that
does utilize CM_GMAC_GMAC_CLKCTRL[24] CLKSEL_REF to configure the
source clock for the RMII_50MHZ_CLK.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: J.D. Schroeder <jay.schroeder@garmin.com>
Reviewed-by: Trenton Andres <trenton.andres@garmin.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2016-08-31 07:36:50 -07:00
..
2016-08-01 18:37:45 -04:00
2016-03-20 15:15:48 -07:00
2016-03-20 15:15:48 -07:00
2016-03-20 15:15:48 -07:00
2016-03-20 15:15:48 -07:00
2016-08-01 18:37:45 -04:00
2016-01-20 18:16:29 -08:00
2016-08-01 18:37:45 -04:00
2015-12-15 17:46:16 +01:00
2016-08-01 18:37:45 -04:00
2016-06-06 16:24:27 +08:00
2016-04-15 22:35:45 +08:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:37:45 -04:00
2016-04-26 12:50:45 +02:00
2016-08-01 18:37:45 -04:00
2016-05-18 12:48:46 -07:00
2016-05-18 12:48:46 -07:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:37:45 -04:00
2016-06-29 14:28:27 +02:00
2016-06-29 14:28:42 +02:00
2016-06-24 11:04:35 +09:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:37:45 -04:00
2015-10-06 16:25:00 +02:00
2015-10-06 16:25:00 +02:00
2016-07-04 21:18:11 +02:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:37:45 -04:00
2016-04-26 10:24:58 -07:00
2016-05-24 15:46:06 -07:00