[OpenWrt-Devel] [PATCH 9/9] ramips: use gic timer as clocksource for mt7621

John Crispin blogic at openwrt.org
Fri Dec 11 13:47:54 EST 2015

On 11/12/2015 19:36, Nikolay Martynov wrote:
> 2015-12-11 13:33 GMT-05:00 John Crispin <blogic at openwrt.org>:
>> On 11/12/2015 17:31, Nikolay Martynov wrote:
>>> 2015-12-11 11:29 GMT-05:00 John Crispin <blogic at openwrt.org>:
>>>> On 11/12/2015 17:25, Felix Fietkau wrote:
>>>>> On 2015-12-11 05:01, Nikolay Martynov wrote:
>>>>>> * Switches clocksource to gic timer.
>>>>>> * Moves frequency definitions to dtsi since frequency was hardcoded anyway
>>>>>>   Will work on proper frequency detection later.
>>>>>> Signed-off-by: Nikolay Martynov <mar.kolya at gmail.com>
>>>>> This patch breaks the SPI driver:
>>>>> [    2.980000] spi-mt7621 1e000b00.spi: unable to get SYS clock, err=0
>>>>> - Felix
>>>> strange, worked for me earlier today. but maybe i missed this one.
>>> I'm sorry, the device I have doesn't have spi, so I could not really
>>> test this part. But it should be trivial to fix. I'll have a look
>>> tonight unless this gets fixed before.
>> we need to define a fixed-rate clock using DT and load
>> drivers/clk/clk-fixed-rate.c additionally we need to point the 3 device
>> nodes at that clock.
> Yeah, looks like it's not as trivial as I thought it would be, but I
> think I can handle that if you are fine waiting several hours :).

if you dont have the hw it will be hard to test. i can have a look at it
tomorrow. i think we need to just add a node defining the fixed-rate
clock and then point the 3 other nodes at it and load the driver.

pages 25/6/7 explain this ->
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list