hexdump01 has quit [Ping timeout: 252 seconds]
hexdump01 has joined #linux-mediatek
cbeznea_ has joined #linux-mediatek
mripard has joined #linux-mediatek
ukleinek has joined #linux-mediatek
<ukleinek> heyho, I have no access to hardware docs (yet), could please someone lookup the duty and period length for a PWM on the mt8365 (or a similar SoC) for given values of clock freq, CLKDIV, PWMDWIDTH and PWMTHRES? I would expect something like duty = ((PWMTHRES + 1) << CLKDIV) / freq and period = ((PWMDWIDTH + 1) << CLKDIV) / freq). Can someone confirm please?
<ukleinek> In the PWM driver's .apply callback the "+ 1" isn't implemented, but I see the output toggling when I set PWMTHRES = 0
<ukleinek> so the formula above is what I think is the right one after a bit of playing around with the hardware feeding an FX2/sigrok.
Poltawer has joined #linux-mediatek
* ukleinek got a non-public confirmation, thanks
ungeskriptet has quit [Read error: Connection reset by peer]
ungeskriptet has joined #linux-mediatek
ungeskriptet has quit [Ping timeout: 276 seconds]
ungeskriptet has joined #linux-mediatek
wens has quit [Ping timeout: 240 seconds]
wens has joined #linux-mediatek
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-mediatek
cbeznea_ has quit [Ping timeout: 260 seconds]
Wkiktor has joined #linux-mediatek
Wkiktor has quit [Remote host closed the connection]
Poltawer has quit [Quit: WeeChat 4.6.3]