[PATCH v2 0/2] ARM: OMAP4: Fix gpmc_fck clock
From: Florian Vaussard <hidden>
Date: 2014-02-23 20:36:12
Also in:
linux-omap
On 02/22/2014 12:23 AM, Tony Lindgren wrote:
* Tero Kristo [off-list ref] [140220 01:54]:quoted
On 02/19/2014 09:26 PM, Florian Vaussard wrote:quoted
On 02/19/2014 05:22 PM, Tero Kristo wrote:quoted
On 02/19/2014 11:15 AM, Florian Vaussard wrote:quoted
Hello, Trying to get my SMSC9221 working on OMAP4 with DT, I faced a misconfigured gpmc_fck (dummy clock set to 0) resulting in serveral division-by-zero, misconfigured timings and driver lost in the La La Land. To solve this, patch 1 removes gpmc_fck from the dummy clocks, and patch 2 adds the gpmc_fck DT node and reference it from the gpmc node. Tested on DuoVero/Parlor (OMAP4430) with SMSC9221.I can't test GPMC myself, but other than that, this set looks good to go.Thank you. Would you like more test coverage by other people? I would like to see this in -rc if possible, as it is needed to boot my OMAP4 system.Well, I just think the driver clock change should be acked by someone who knows gpmc better than me.Hmm do we also need to fix this for other omaps? We at least have the following refrerences: $ git grep dummy_ck drivers/ | grep -i gpmc drivers/clk/ti/clk-44xx.c: DT_CLK("50000000.gpmc", "fck", "dummy_ck"), drivers/clk/ti/clk-54xx.c: DT_CLK(NULL, "gpmc_ck", "dummy_ck"), drivers/clk/ti/clk-7xx.c: DT_CLK(NULL, "gpmc_ck", "dummy_ck"),
Yes, the same applies to OMAP5 and DRA7. For OMAP5, gpmc_fclk is connected to L3MAIN2_L3_GICLK, which is a gated l3_iclk. For DRA7, I have no idea, as the TRM is not public. Someone from TI? And I have no way to test this. Cheers, Florian