ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | Wiki at http://linux-rockchip.info | Logs at http://irclog.whitequark.org/linux-rockchip | ML at http://groups.google.com/group/linux-rockchip
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 256 seconds]
bbelos has quit [Ping timeout: 248 seconds]
bbelos has joined #linux-rockchip
Tony_ has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
rperier_ has joined #linux-rockchip
rperier has quit [Ping timeout: 265 seconds]
naobsd has joined #linux-rockchip
Astralix` has joined #linux-rockchip
cnxsoft1 has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 252 seconds]
Astralix|away has quit [Ping timeout: 264 seconds]
selfbg has joined #linux-rockchip
<naobsd> mmind00: can you see anything about rk3288-timer on running system?
<naobsd> mmind00: only arch_sys_counter jiffies are available in /sys/devices/system/clocksource/clocksource0/available_clocksource
<naobsd> CONFIG_ROCKCHIP_TIMER=y and /sys/devices/platform/ff810000.timer is available...
<naobsd> mmind00: I'm using next-20150407 + some dts patches from your dts branch
<naobsd> mmind00: btw tsadc is working with hym8563 and tsadc dts patch :) do you still need tested-by for them?
<mmind00> naobsd: Tested-by-Tag is always helpful ... especially, as I want to try squeezing those two in for 4.1 still :-)
<mmind00> naobsd: as for the timer ... don't know at the moment, would need to check ... is /sys/devices/platform/ff810000.timer/driver present and lead to somewhere? [when the driver symlink is present, it means the device was bound to a driver]
rperier_ is now known as rperier
rperier has quit [Changing host]
rperier has joined #linux-rockchip
<naobsd> oh, no ff810000.timer/driver :(
<mmind00> ok, strange ... I'll take a look after breakfast :-)
<rperier> naobsd: It worked yesterday btw, the right bootloader is started
dan64b has quit [Ping timeout: 246 seconds]
<rperier> parameter works fine too, where should I write my kernel,btw ? after seek=0x2000 (which is parameter.img) ?
<naobsd> partition offset/size in parameter is _logical_ sector number. 0x2000th sector on SD card(and eMMC) is treated as logical sector 0 on u-boot (as same as RK proprietary loader)
<naobsd> rperier: e.g. if you use offset 0x8000 for kernel partition, you need to specify seek=$((0x2000+8000))
<rperier> and this partition should start at 0x8000 in the parameter file, right ?
<naobsd> rperier: yes
<rperier> I see
<naobsd> rperier: "if you use offset 0x8000 for kernel partition _in parameter_ ..." sorry ;)
<naobsd> ah
<rperier> ;)
<naobsd> seek=$((0x2000+0x8000)) <- needs "0x"
<rperier> yes, of course
<naobsd> mmind00: about rk3288-timer, I can see debug prints(I added), clockevents_config_and_register should be called which is in last line of rk_timer_init()
<mmind00> naobsd: ok ... i.e. it's registering a clockevents device, so I guess it is not meant to show up in clocksources? [never touched the timer stuff much]
<naobsd> ah
<naobsd> I roughly grep-ed arm arch/generic timer
<naobsd> there are clocksource_register_hz()
<naobsd> sched_clock_register()
<naobsd> timecounter_init()
<naobsd> but they don't exist in rockchip_timer.c
<naobsd> "it is not meant to show up in clocksources" may be right...
<naobsd> "This driver provides the basic timer functionnality"...what's basic timer func ;)
<naobsd> ok, at least I misunderstood about clockevents_config_and_register()
<naobsd> clockevent and clocksource are different thing
<mmind00> naobsd: the rockchip-timer is supposed to provide an alternative in the suspend case [when the architected timer might be turned off] ... same on the Cortex-A9 ones where we already have the Global/local timers
<mmind00> so it should be ok that its function is limited
<naobsd> I see
<naobsd> but I want to use rk3288-timer on RK3188 as for clocksource
<naobsd> arm_global_timer cannot be used with cpufreq
<naobsd> cannot be used -> is not fixed rate
<naobsd> rk3066 should be ok because it uses dw_apb_time which should provide clocksource
<naobsd> probably I should add rk3188-timer compat which provides clocksource
<naobsd> maybe for sched clock too?
<naobsd> (no idea timecounter... ETOOMANYTIMERSUBSYSTEMS!)
<mmind00> naobsd: not sure I understand ... my Radxa Rock runs perfectly fine with cpufreq and the global timer
<naobsd> mmm
<naobsd> I should check again with latest kernel...
<naobsd> I think "date; sleep 10; date" was wrong
<mmind00> naobsd: also the rate clocks for the timers (SCLK_TIMERx) are sourced from xin24m directly, so not dependent on the cpu rate at all
<mmind00> naobsd: bah ... scrap that last line :-)
<mmind00> naobsd: talking about the wrong timer block
<naobsd> I cannot remember about parent clock for global timer
<naobsd> CORE_PERI
<mmind00> yep ... but that was also only my guess ... the global-timer doesn't get mentioned in the docs at all
naobsd has quit [Remote host closed the connection]
naobsd has joined #linux-rockchip
naobsd has quit [Remote host closed the connection]
naobsd has joined #linux-rockchip
<naobsd> hmm... I want to reuse dw_apb_timer.c as rk_timer ;)
<naobsd> currently only lower 32bit part is used in rk_timer. it's basically same as dw_apb_timer except register offset ;)
apritzel has joined #linux-rockchip
field^Mop has joined #linux-rockchip
nighty^ has joined #linux-rockchip
naobsd has quit [Quit: naobsd]
field^Mop has quit [Ping timeout: 255 seconds]
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 256 seconds]
Tony_ has quit [Ping timeout: 248 seconds]
nighty^_ has joined #linux-rockchip
field^Mop has joined #linux-rockchip
ganbold_ has quit [Remote host closed the connection]
FreezingCold has joined #linux-rockchip
cnxsoft1 has quit [Quit: cnxsoft1]
selfbg has quit [Quit: Leaving]
ganbold_ has joined #linux-rockchip
naobsd has joined #linux-rockchip
GriefNorth has joined #linux-rockchip
GriefNorth has quit [Ping timeout: 256 seconds]
field^Mop has quit [Ping timeout: 244 seconds]
markm has quit [Ping timeout: 272 seconds]
field^Mop has joined #linux-rockchip
apritzel has quit [Ping timeout: 264 seconds]
GriefNorth has joined #linux-rockchip
FreezingCold has quit [Quit: Out]
GriefNorth has quit [Ping timeout: 252 seconds]
premoboss has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
naobsd has quit [Quit: naobsd]
VargaD_ has joined #linux-rockchip
VargaD has quit [Ping timeout: 248 seconds]
VargaD_ is now known as VargaD
field^Mop has quit [Ping timeout: 245 seconds]
sunilmohan_w has quit [Ping timeout: 255 seconds]
sunilmohan_w has joined #linux-rockchip