rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
Mangy_Dog has quit [Ping timeout: 240 seconds]
aalm has quit [Quit: xyz 2.3]
aalm has joined #linux-sunxi
lurchi_ is now known as lurchi__
kevans91_ has joined #linux-sunxi
kevans91_ has quit [Client Quit]
lurchi__ is now known as lurchi_
megi has quit [Ping timeout: 245 seconds]
lurchi_ has quit [Quit: Konversation terminated!]
lurchi__ has joined #linux-sunxi
lurchi__ has quit [Quit: Konversation terminated!]
lurchi__ has joined #linux-sunxi
lurchi__ has quit [Quit: Konversation terminated!]
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
cnxsoft has joined #linux-sunxi
aloo_shu has quit [Quit: bye]
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
pmpp has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
pmp-p has quit [Ping timeout: 244 seconds]
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
<KotCzarny> 1 contributor
GrimKriegor_ has joined #linux-sunxi
GrimKriegor has quit [Read error: Connection reset by peer]
<KotCzarny> couldnt those dram timings be gathered from inside android ?
sunshavi has quit [Remote host closed the connection]
_whitelogger has joined #linux-sunxi
<MoeIcenowy> libv: yes
<MoeIcenowy> S3 is rebranded from Allwinner
JohnDoe_71Rus has joined #linux-sunxi
sunshavi has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 245 seconds]
lykt has quit [Quit: leaving]
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
marekbelisko has joined #linux-sunxi
return0e has quit [Ping timeout: 265 seconds]
lykt has joined #linux-sunxi
martin__ has joined #linux-sunxi
marekbelisko has quit [Quit: This computer has gone to sleep]
martinayotte has quit [Ping timeout: 245 seconds]
cnxsoft has quit [Ping timeout: 268 seconds]
cnxsoft has joined #linux-sunxi
s_frit has quit []
curlybracket has joined #linux-sunxi
curlybracket has quit [Ping timeout: 240 seconds]
tl_lim has quit [Read error: Connection reset by peer]
msimpson_ has joined #linux-sunxi
msimpson_ has quit [Remote host closed the connection]
<jernej> MoeIcenowy: Are you sure that H6 pll-audio clock is correctly modeled? Check this comment: https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/drivers/clk/sunxi/clk-sun50iw6.c#L301-L308
<jernej> it doesn't have fixed post divider 8 as it is currently assumed
<jernej> to me, it seems that pll-audio is just clock with 2 adjustable dividers (P and M0)
<MoeIcenowy> jernej: currently I think I forced D2*P=8
<jernej> where?
<MoeIcenowy> in probe code
<jernej> oh, true
<MoeIcenowy> or precisely
<MoeIcenowy> D2=1, P=8
florian has joined #linux-sunxi
<jernej> I guess I could change that to D2=2 and P=4? That would help very much with sigma-delta pattern, where D2 is assumed to be 2
<MoeIcenowy> you can do what you want
<MoeIcenowy> you can even decouple clock name with value
<jernej> what do you mean?
<MoeIcenowy> make pll-audio-4x not 4*pll-audio
<MoeIcenowy> this happens on some previous SoCs when doing SD
<jernej> which one?
<MoeIcenowy> at least H3
warpme_ has joined #linux-sunxi
<jernej> hm... I guess it would be best to rework SDM a bit. According to AW e-mail, SDM affects only N factor, M doesn't have to be constant
<jernej> uh, and P factor certainly needs to be adjustable
megi has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
curlybracket has joined #linux-sunxi
oknos has joined #linux-sunxi
gsz has joined #linux-sunxi
dddddd has joined #linux-sunxi
reinforce has joined #linux-sunxi
gsz has quit [Quit: Konversation terminated!]
florian has quit [Ping timeout: 245 seconds]
<wens> jernej: their SDM code expects a fixed M factor
florian has joined #linux-sunxi
<jernej> yes, but they explained to me (which I also put on wiki) that pattern only affects N
<wens> jernej: someone (was it you?) mentioned that SDM is simply a fixed point N factor with 17 bits precision
<jernej> yes, I asked wink how pattern affects PLL
<jernej> Probably I could re-write it to be more clear, but anyway
<KotCzarny> and probably move out of private page
<jernej> that too
<wens> I did the calculations by hand once, and the values they use are slightly off, though it it doesn't show audibly
<wens> but based the manuals it seems only the audio PLL supports SDM
<wens> so I'm not sure if we gain anything by generalizing the SDM clock code to support arbitrary clock rates
warpme_ has quit [Quit: warpme_]
<jernej> which SoC? looking at H6 PLL registers, it seems that most have SDM enable bit
<jernej> but yes, it's probably useful only for audio
<jernej> btw, I checked A64 pattern for 24576000Hz and it's off only for 810Hz
<jernej> I don't think you can get any closer
<wens> wonder if it's possible to get closer by using a higher rate for pll-base, and then dividing it down
<wens> anyway, for the H5 and all before, only PLL AUDIO has a note saying "if SDM is enabled, only lowest 4 bits of N work"
<wens> that signals something special about the audio PLL, or at least is a big red flag
<wens> H6 pll clocks seem to have a slightly different structure, and there are three extra control bits: FRAC_IN, FRAC_EN, DITHER_EN
<jernej> ok, I'll try to fit H6 audio SDM in current framework
<jernej> but then I'll have to rework pll-audio to have adjustable divider
<wens> you can just rework the "fixed" dividers to whatever you need. I already did this for the other SoCs
<jernej> hm... I checked clk driver of H3, A64 and R40 and all have pll-audio with fixed divider
<jernej> which one has adjustable?
return0e has joined #linux-sunxi
<wens> no, you just adjust the fixed factors so they match what you want for the base pll, i.e. D2=2
<wens> jernej: so for the h3 (and all the others), pll-audio(-1x) = pll-audio-4x = pll-audio-base, and pll-audio-2x = pll-audio-base / 2, while pll-audio-8x = pll-audio-base * 2
<jernej> not sure how to do that, H6 audio PLL SD patterns in BSP clk driver are only for 541900800 and 589824000 base rate, e.g. 24x higher
<wens> that's probably because N needs to be above 11? so they divide it down using P and output div?
<jernej> yes
<wens> doesn't that make the 2x and 4x outputs unusable?
<jernej> probably
<jernej> if I make pll-audio with adjustable P and fixed post-divider (D2 = 2), then dividers will be same as in BSP
<wens> doesn't seem you need adjustable P either?
<wens> the BSP has four sets of values, either 22.5792/24.576, or 90.3168/98.304
<wens> and within the two sets, only N and the SDM value change
<jernej> sure, but P is currently fixed to 8 in mainline
<jernej> but BSP sets it either to 3 or 12
<jernej> so, why not make pll-audio flexible with adjustable P?
<wens> you could just change it to 12, and only support 22.5792/24.576
<wens> making it adjustable is possible as well, I just don't see the benefit
<wens> maybe useful for hi-res audio?
<jernej> probably, yes
<jernej> so it wouldn't need to be changed once hi-res audio is supported
<jernej> there is ongoing effort to improve HDMI audio support
<wens> ok. I'm just not currently seeing how it would be exercised
<wens> speaking of HDMI audio, I think there was a recent patch that programs the audio sample rate properly in the HDMI block.
<jernej> I know, I reviewed it
<wens> does that help with the auto cts part that had issues?
<jernej> maybe you're right and we don't need support for higher rates yet, only use I could find it for AHUB, which we don't support
<wens> AHUB is interesting. previous chips had something like it but it wasn't documented.
<wens> We'd have to switch to DPCM to support it though
<wens> it looks more or less like a digital stream mixer?
<jernej> I don't know audio infrastructure so well...
<wens> I meant the hardware. AHUB looks like a mixer
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
vagrantc has joined #linux-sunxi
<jernej> I think this commit will help with HDMI audio delays, but I have to test it first: https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c41784b042ac9cf97f2e871aceef3e06eff14140
<jernej> Ok, so I'll go with fixed P = 12 and D2 = 2 for now, same as in BSP
<jernej> I'm still not sure what's the purpose of audio hub
<wens> have digital audio mixing and routing without going through the CPU
<wens> or DRAM
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 276 seconds]
Mangy_Dog has quit [Ping timeout: 265 seconds]
oknos has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
florian has quit [Ping timeout: 245 seconds]
aalm has quit [Quit: oops, forgot tmux]
lurchi__ has quit [Ping timeout: 268 seconds]
martin__ has quit [Quit: Leaving]
martinayotte has joined #linux-sunxi
florian has joined #linux-sunxi
DrFrankensteinUK has quit [Remote host closed the connection]
GrimKriegor_ has quit [Quit: ZNC - https://znc.in]
tllim has joined #linux-sunxi
yann|work is now known as yann
GrimKriegor has joined #linux-sunxi
GrimKriegor has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
vagrantc has quit [Quit: leaving]
lurchi__ has joined #linux-sunxi
DrFrankensteinUK has joined #linux-sunxi
aalm has joined #linux-sunxi
tllim has quit [Read error: Connection reset by peer]
gsz has joined #linux-sunxi
ganbold has quit [Ping timeout: 240 seconds]
gsz has quit [Quit: Konversation terminated!]
megi has quit [Ping timeout: 245 seconds]
gnufan_home has joined #linux-sunxi
gnufan_home has quit [Ping timeout: 276 seconds]
gsz has joined #linux-sunxi
agates_ is now known as agates
gnufan_home has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
agates[m] has joined #linux-sunxi
agates has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
_whitelogger has joined #linux-sunxi
cristian_c has quit [Ping timeout: 250 seconds]
lurchi__ has quit [Ping timeout: 276 seconds]
gaston1980 has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
afaerber has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
tllim has joined #linux-sunxi
jbrown has quit [Quit: Leaving]
jbrown has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
<avph> So on my A20 in FEL mode my SPI flash is not detected with sunxi-fel, but reading and writing seems fine. Booting does not work from SPI however.
<avph> any clues?
marekbelisko has joined #linux-sunxi
<hellsenberg> avph: which board is it?
<avph> bananapi with a SPI flash hooked up
<hellsenberg> can the OS "see" the flash chip? (e.g. flashrom)
<hellsenberg> i wonder if the on-chip bootloader could have problems with the specific SPI flash chip model for some reason
<avph> yes
gaston1980 has quit [Quit: Konversation terminated!]
<hellsenberg> how's the flash chip wired up? when you say "reading and writing seems fine", do you mean using flashrom or sunxi-fel?
<avph> so both reading and writing seems fine with both flashrom and sunxi-fel, but booting from it does not work (falls back to FEL)
<hellsenberg> i recall something about sunxi checking some magic value to determine it can boot from there
<avph> hmm so I was wrong about sunxi-fel being able to do something useful... flashrom+spidev does work fine however
<hellsenberg> then fel mode probably doesn't know how to use the chip i guess, kind of like intel hardware has the ME VSCC table
<hellsenberg> *i guess*
<avph> reading is quite universal on SPI flash, so I think it's weird that the BROM does not use it...
<smaeul> avph: which pins / which SPI controller do you have it hooked up to? the BROM only works with a specific pin/CS combo
<avph> smaeul: SPI0,CS0 I think
<smaeul> – Support system boot from NAND Flash, SPI Nor Flash (SPI0), SD Card/TF card (SDC0/2)
<smaeul> ok so that's right
megi has joined #linux-sunxi
<smaeul> and it's the pinmux on port C: PC0-PC2 and PC23
<avph> I'm confused https://linux-sunxi.org/images/9/9d/A20_Bananapi_Schematic.pdf multiple things are called SPI0
<smaeul> you can mux pins on either port C or port I to SPI0 (PI10-PI14), though not at the same time
cristian_c has joined #linux-sunxi
<hellsenberg> oh, interesting
<smaeul> on that board, it looks the port I mux is the one wired up, so you're out of luck
<avph> ah too bad...
<hellsenberg> welp, that explains things
<hellsenberg> smaeul: thanks!
<smaeul> reference for the pinmux is the diagram on page 95 of the A20 manual: SPI0(PC port) boot operation
gsz has quit [Quit: Konversation terminated!]
marekbelisko has quit [Quit: This computer has gone to sleep]
lurchi__ has joined #linux-sunxi
lurchi__ has quit [Client Quit]
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.0, revision: 5.0.0+git-7422-2fe1a3bca, build type: debug, sources date: 20160102, built on: 2019-07-01 08:27:19 UTC 5.0.0+git-7422-2fe1a3bca http://www.kvirc.net/]
lurchi_ has quit [Ping timeout: 276 seconds]
Mangy_Dog has quit [Read error: Connection reset by peer]
Mangy_Dog has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
a|3x has quit [Quit: Leaving]
armessia has joined #linux-sunxi
armessia_ has joined #linux-sunxi
armessia has quit [Client Quit]
armessia_ has quit [Client Quit]
armessia has joined #linux-sunxi
armessia has quit [Quit: Leaving]
armessia has joined #linux-sunxi
armessia has quit [Quit: Leaving]
armessia has joined #linux-sunxi
armessia has left #linux-sunxi [#linux-sunxi]
armessia has joined #linux-sunxi
armessia has left #linux-sunxi [#linux-sunxi]
armessia has joined #linux-sunxi
armessia has quit [Client Quit]
armessia has joined #linux-sunxi
armessia has quit [Client Quit]
gnufan_home has quit [Quit: Leaving.]
Mangy_Dog has quit [Ping timeout: 265 seconds]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
aloo_shu has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
florian has quit [Ping timeout: 276 seconds]