DocScrutinizer05 changed the topic of #qi-hardware to: Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs and http://irclog.whitequark.org/qi-hardware
jekhor has quit [Ping timeout: 264 seconds]
atommann has joined #qi-hardware
jow_laptop has quit [Ping timeout: 240 seconds]
jow_laptop has joined #qi-hardware
sb0 has joined #qi-hardware
atommann has quit [Ping timeout: 244 seconds]
atommann has joined #qi-hardware
atommann has quit [Ping timeout: 265 seconds]
astr has quit [Ping timeout: 240 seconds]
astr has joined #qi-hardware
atommann has joined #qi-hardware
xiangfu has joined #qi-hardware
Haswell has quit [Quit: Saliendo]
archang has joined #qi-hardware
jekhor has joined #qi-hardware
atommann has quit [Quit: Leaving]
atommann has joined #qi-hardware
FAMAS has quit [Read error: Connection reset by peer]
FAMAS has joined #qi-hardware
xiangfu has quit [Quit: leaving]
FAMAS has quit [Read error: Connection reset by peer]
FAMAS has joined #qi-hardware
kilae has joined #qi-hardware
atommann has quit [Ping timeout: 244 seconds]
jekhor has quit [Ping timeout: 245 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Quit: brb]
pcercuei has joined #qi-hardware
<larsc> pcercuei: yes, happy new year.
<larsc> I'm having trouble with your watchdog driver
<larsc> the system reboots after a while even though the watchdog is not enabled
<pcercuei> the upstream version?
<larsc> yes
<pcercuei> and it doesn't happen when the watchdog module is not loaded?
<larsc> yes
<pcercuei> but that means you need a "wdt" clock
<larsc> hm, looks as if something actually does enable the wdt
<larsc> and once it is enabled the gpios keyboard doesn't work anymore, strange
<pcercuei> huh
<larsc> does gmenu2x has any watchdog code?
<mth> no, we have a watchdog daemon
<larsc> I really wonder why enabling the watchdog kills the gpios
<mth> the watchdog doesn't use any pins, so that's probably not where the interference is
<mth> maybe it messes with the wrong clock?
<mth> or an interrupt?
<larsc> it looks like gpio_get_value() is still correct, but it doesn't generate any interrupts anymore
<larsc> actually it seems to kill the timer interrupt
<larsc> if I remove the 'writeb(0x1, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE);' I still get the timer interrupts
<larsc> otherwise they stop
<larsc> strangely enough writing 0 to it again doesnt fix the issue
<pcercuei> if you write 0x1, you write 0 to the upper 30 bits
<pcercuei> is there anything in there?
<larsc> not according to the datasheet
<larsc> even if I replace the writeb(0x1, with writeb(0x0 it continuous to work
<larsc> hm, switched things around to first setup the watchdog and then enable the watchdog clock in the tcu and things seem to work
<larsc> only looked like it
<larsc> really strange
<pcercuei> we don't have those problems with the watchdog on jz4770
<pcercuei> so that's indeed strange
<larsc> hm, does the watchdog timer also generate an interrupt?
<pcercuei> no
<pcercuei> that wouldn't make sense
<larsc> it wouldn't
<larsc> but right now the whole thing doesn't make sense
<pcercuei> disable devicetree :p
<larsc> this is plain mainline
<mth> the Ben has a matrix keyboard, right?
<mth> wouldn't that be polled on a timer rather than have GPIO interrupts?
<larsc> both
<larsc> it looks as if for whatever reason tcu0 channel just stops
<mth> the watchdog timer stop is in the same register as the tcu timer stop flags, but the code looks fine
<mth> jz4740_timer_enable_watchdog
<larsc> I double checked that already, in the register it is still enabled
<larsc> also just calling jz4740_timer_enable_watchdog() doesn't do anything
<larsc> problems only start once the watchdog is enabled in the watchdog core
<larsc> if I change the timer code to not use tcu0 everything is fine
<larsc> are you using the watchdog on the dingoo?
<pcercuei> we didn't update the kernel for a long time
<larsc> which tcu channels are used for pwm on the dingoo?
atommann has joined #qi-hardware
<pcercuei> PWM7 for the backlight
<larsc> maybe they just forgot to tell us that the wdt hijacks tcu0
<larsc> pcercuei: so, tomorrow morning 8 o'clock? ;)
<pcercuei> probably not 8 o'clock
<larsc> lots of work to do
<pcercuei> it'll take time to even read the emails
<larsc> all the ez posts
atommann has quit [Quit: Leaving]
Haswell has joined #qi-hardware
FAMAS2 has joined #qi-hardware
FAMAS has quit [Read error: Connection reset by peer]
FAMAS2 has quit [Read error: Connection reset by peer]
FAMAS2 has joined #qi-hardware
FAMAS2 has quit [Read error: Connection reset by peer]
FAMAS has joined #qi-hardware
FAMAS has quit [Read error: Connection reset by peer]
sb0 has quit [Quit: Leaving]
FAMAS has joined #qi-hardware
jekhor has joined #qi-hardware
pcercuei has quit [Ping timeout: 245 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 256 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 256 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 245 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 244 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 244 seconds]
pcercuei has joined #qi-hardware
kilae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0.5/20141126041045]]
pcercuei has quit [Ping timeout: 244 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 264 seconds]
pcercuei has joined #qi-hardware
FDCX has joined #qi-hardware
pcercuei has quit [Ping timeout: 240 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 265 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 265 seconds]
FAMAS has quit [Read error: Connection reset by peer]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 244 seconds]
pcercuei has joined #qi-hardware
FDCX has quit [Ping timeout: 240 seconds]
lrockhq has joined #qi-hardware
lrockhq has joined #qi-hardware
pcercuei has quit [Ping timeout: 245 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Ping timeout: 265 seconds]
pcercuei has joined #qi-hardware
FAMAS has joined #qi-hardware
pcercuei has quit [Ping timeout: 244 seconds]
pcercuei has joined #qi-hardware
jekhor has quit [Ping timeout: 244 seconds]
FAMAS has quit [Read error: Connection reset by peer]
FAMAS has joined #qi-hardware