
-----Original Message----- From: york sun Sent: Wednesday, February 08, 2017 1:03 AM To: Scott Wood; Y.B. Lu; u-boot@lists.denx.de Cc: Albert Aribaud; Z.Q. Hou Subject: Re: [U-Boot] [PATCH] armv8/fsl-layerscape: fdt: remove SYSCLK frequency fixup for ls1012a
On 01/20/2017 05:13 PM, york sun wrote:
Then a proper fix would be check the clock name or compatible. If none of them exists, we should fix the device tree first.
Yangbo,
Can you fix the code to check clock name or compatible?
York
[Lu Yangbo-B47093] Hi York, do you mean check the clock name or compatible to make sure it's sysclk and then fix it? Scott's patch added coreclock node also with compatible 'fixed-clock'. https://patchwork.kernel.org/patch/9536515/
If we check clock name, I found most names with 'fixed-clock' compatible are 'sysclk', but some are not. fsl-ls1012a-frdm.dts: sys_mclk: clock-mclk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <25000000>; };
fsl-ls1012a-qds.dts: sys_mclk: clock-mclk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <24576000>; };
Do you have any suggestion? Thanks.