Re: [PATCH v6 2/2] ARM: mach-moxart: add MOXA ART SoC device tree files
From: Jonas Jensen
Date: Thu Dec 19 2013 - 05:59:25 EST
On 19 December 2013 00:41, Peter Crosthwaite
<peter.crosthwaite@xxxxxxxxxx> wrote:
>> + clocks {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + ref12: ref12M {
>> + compatible = "fixed-clock";
>
> Is the correct split to perhaps have the fixed-clock node in dtsi as
> you have here but ...
>
>> + #clock-cells = <0>;
>> + clock-frequency = <12000000>;
>
> The board is responsible for the frequency?
>
> I guess in this schema,
>
> 1. the "fixed-clock" node corresponds to the existence of clock input
> pins on the SoC level - hence the node is DTSI.
> 2. setting the clock-frequency corresponds to populatation of those
> input pins with a soldered crystal - hence done in DTS
Yes, the soldered crystal belongs to board. Changes in v7 should reflect that.
I tried to doing what you said above, it didn't quite work, I got the
same error from of_clk_get() / of_clk_get_by_name(), but came up with
another solution please have a look at v7.
Thanks,
Jonas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/