Turl 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
<icenowy[m]> speed up is not the critical thing now
elros has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-sunxi
phil42 has joined #linux-sunxi
kloczek has quit [Read error: Connection reset by peer]
jbrown has joined #linux-sunxi
kloczek has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 240 seconds]
ganbold has quit [Quit: This computer has gone to sleep]
sunshavi has quit [Ping timeout: 260 seconds]
cnxsoft has joined #linux-sunxi
<wens> jernej: a proper board design? :)
<wens> jernej: AFAIK Allwinner hasn't added voltage switching support for mmc0 in any of its chips, except probably the A80
<wens> jernej: so the fastest it can go is 25 MB/s
nuuuciano_ has quit [Ping timeout: 256 seconds]
\\Mr_C\\ has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
victhor has quit [Remote host closed the connection]
nots has quit [Quit: Page closed]
jbrown has quit [Ping timeout: 248 seconds]
[7] has quit [Ping timeout: 265 seconds]
<icenowy[m]> I think at least it's possible
<icenowy[m]> but in no reference design
<wens> problem is there is no dedicated VCC for PF pins
TheSeven has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
ganbold has joined #linux-sunxi
longsleep has quit [Ping timeout: 260 seconds]
longsleep has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Putti has joined #linux-sunxi
IgorPec has joined #linux-sunxi
Putti has quit [Ping timeout: 264 seconds]
Putti has joined #linux-sunxi
reinforce has joined #linux-sunxi
montjoie has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
reinforce1 has joined #linux-sunxi
LargePrime has quit [Ping timeout: 264 seconds]
reinforce1 has quit [Quit: Leaving.]
reinforce has quit [Quit: Leaving.]
robogoat has quit [Ping timeout: 264 seconds]
robogoat has joined #linux-sunxi
souther has quit [Ping timeout: 276 seconds]
<f11f12_> jernej: for HDMI I'd like to know if a hot plug edge should trigger a HDMI irq (GIC 90). In the 3.10 kernel there is a thread polling the hpd bit.
reinforce has joined #linux-sunxi
<f11f12_> on the LVDS side: I've hooked up a panel, using the tcon0 test image generator I have output (timing is ok). I have a tcon_top, tcon0/1, mixer0/1, display_clocks and a de with two pipelines.
<f11f12_> The diagram in the manual shows DE0->mux-A->tcon_lcd0->mux-B->LVDS0. I assumed the 'DE0' is 'mixer0', and the mixer0 will run the DMA transfers. I could not find any documentation in the mux-A, my mux-B is probably correct as I can get tcon0 test output to LVDS.
souther has joined #linux-sunxi
<f11f12_> /dev/fb0 is present, setting modes/timings is ok.
reinforce has quit [Quit: Leaving.]
OnkelUlla has joined #linux-sunxi
<hanetzer> ugh. don'tcha hate it when you had something that kinda worked, and then you rebase against upstream and it doesn't work at all anymore?
TheSeven has quit [Ping timeout: 265 seconds]
TheSeven has joined #linux-sunxi
<jernej> icenowy[m]: wens: Ok, but that is probably not the reason why I get only about 2.5 - 3 MB/s read speed on H6, while on H3 is much higher.
tllim has quit [Quit: Leaving]
<jernej> f11f12_: HDMI HPD should trigger HDMI interrupt, which in R40 case should be 120 - 32 = 88
<jernej> ah, sorry, looking at wrong manual
nuuuciano has quit [Ping timeout: 240 seconds]
<jernej> it's 90 - 32 = 58
<f11f12_> :-) Just checking the same
<f11f12_> ok, got that one too.
<jernej> I think "MUX" in manual is actually TCON-TOP
<jernej> can you paste your TCON-TOP DT node somewhere so I can check what you have there?
<jernej> that's ok too
<jernej> what about sun4i_tcon.c patch?
<f11f12_> plugging the HDMI cable should enable the connector (compatible = "hdmi-connector";)
<f11f12_> but that never happens
<f11f12_> I checked the HPD pin with a scope, it goes to 1.
<jernej> not really, hdmi-connector is there only to represent HW
<f11f12_> I picked sun4i_tcon.c from your linux-1 repo, branch h6_hdmi_wip
Harrier has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
<f11f12_> this is my hdmi related dt: https://pastebin.com/QAYSAd6S
<jernej> well, you have wrong HDMI and HDMI PHY compatible defined
<jernej> it should be the one from H3
<jernej> what is your base kernel? 4.17-rc1 or linux-next?
megi has joined #linux-sunxi
<f11f12_> sunxi-next
<f11f12_> from github.com/linux-sunxi/linux-sunxi.git
<jernej> that's ok, but you definetly have to change both compatibles for HDMI and HDMI PHY to h3 instead of a83t
<jernej> since PHYs are completely different
<jernej> that explains why you don't see HPD interrupt
f0xx has joined #linux-sunxi
<f11f12_> ok, then I'll need a different sun8i_hdmi_phy.c, mine does not list h3 as compatible.
<f11f12_> s/sun8i_hdmi_phy.c/sun8i_dw_hdmi.c/ - I'll try the hdmi ip to match a83t, and the hdmi-phy to match h3.
<jernej> ah, sorry
<jernej> hdmi controller is the same
<jernej> what differs is phy
<jernej> so change PHY to h3
TEKrantz has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-sunxi
<f11f12_> ok, now I also need a pll-0 clock for my dt.
* f11f12_ looking at docs
<f11f12_> ah -nothing in there
clemens3 has joined #linux-sunxi
TEKrantz has joined #linux-sunxi
msimpson has joined #linux-sunxi
TEKrantz has quit [Ping timeout: 256 seconds]
<jernej> put <&ccu 7> for pll-0 for now
<f11f12_> the V40 manual does not help - I'll read the H3
<jernej> that's not in manual
<f11f12_> ok
<f11f12_> :-)
<jernej> pll-0 is usually pll_video0
<jernej> but since it's not exported yet, you can't use nice name, you have to put number
TEKrantz has joined #linux-sunxi
TEKrantz has quit [Ping timeout: 240 seconds]
<jernej> btw, you have to be careful, if you want to have dual screen setup
<f11f12_> yay! HDMI HDP interrupts!
<f11f12_> hpd
<jernej> since lvds and hdmi are by default on PLL_VIDEO0
<jernej> you have to put one on PLL_VIDEO1
<jernej> I suggest HDMI and HDMI PHY
<f11f12_> for now I'll do HDMI or LVDS. still I lack some other clock, as there is no data transfer happening.
hitech95_ROG has joined #linux-sunxi
<wens> you can use assigned-clocks and assigned-clock-parents in the device tree for that? though there's no guarantee they won't be switched back
<jernej> wens: can we devise some mechanism for that?
souther has quit [Ping timeout: 240 seconds]
souther has joined #linux-sunxi
TEKrantz has joined #linux-sunxi
<jernej> f11f12_: Can you try TCON test signal?
<f11f12_> TCON test on LVDS or HDMI?
<jernej> HDMI
<f11f12_> ok
<jernej> what is your HDMI monitor resolution?
<f11f12_> W: 1280 H: 800
<jernej> ah, then you probably need also clock fixes
<jernej> (add minimum rate line)
<wens> jernej: you mean restricting it to not switching parents?
<jernej> f11f12_: additionally, you have to add CLK_SET_RATE_PARENT flag to hdmi_clk in clk driver if you want to have any hope seeing something on the screen
matthias_bgg has joined #linux-sunxi
<f11f12_> the tcon1 test for hdmi outputs nothing yet. For LVDS I had to set a bit in a undocumented register (0x1c71084).
<f11f12_> I patched ccu-sun8i-r40.c with the minimum rate.
<f11f12_> init.flags = CLK_SET_RATE_PARENT; is set in sun8i_hdmi_phy_clk.c
<jernej> wens: I mean some mechanism which would take care that clocks don't interfere between each other
ganbold has quit [Quit: This computer has gone to sleep]
<jernej> wens: one could be assigning parents in DT and then somehow mark them not to change parent
souther has quit [Ping timeout: 276 seconds]
<jernej> wens: the other would be checking if parent clock is already taken or fixed and select another one
<jernej> I mean parent PLL
<wens> I thought clock rate protection in sun4i-drm was merged?
<jernej> wens: so that may actually already work as expected...
<jernej> wens: if only TCON is first clock which sets desired frequency
<jernej> wens: but I think that this is not enough, since in clk driver you can't check if clock is taken (or "locked") and rate changing on such clock "succeeds" with doing nothing
<jernej> at least I remember it in this way
<f11f12_> jernej: for the V40 I also need to set the HDMI input src and clk gates (sun8i_tcon_top_set_hdmi_src and sun8i_tcon_top_de_config). I'll test it manually
<f11f12_> does tcon_top only have registers at 0x00, 0x1c and 0x20? thats all the manual lists vor V40
<jernej> tcon top details are in TCON section in R40 manual
<jernej> but as far as you are concerned, those registers should be enough
<_bielski_> beeble: I will try mainline. Just in the past when I was putting the SD card image together I have taken the u-boot linked by the github user 'longsleep', I assummed that there is a reason why it works like that. That's the only reason.
souther has joined #linux-sunxi
<f11f12_> hey! tcon_top registers set and I've got HDMI test output :-)
<jernej> ah, I remembered why don't you see anything on the screen
<jernej> some more patches
<jernej> give me a minute to collect them
<jernej> can you show me your mixer patch? I'll tell you what to add
<jernej> f11f12_: ^
<beeble> _bielski_: longsleeps stuff is based on the old bsp stuff. with mainline you should have pretty good support nowadays
<jernej> f11f12_: anyway, you have to add ".index = 0" to r40 mixer0 structure
<f11f12_> jernej: I have two mixers in dt: mixer@1e80000 and mixer@1e90000, both 0x10000 in size.
<f11f12_> will fail, so I shrunk it to 0x10000
<jernej> actually, R40 has mixers on same base address as others SoCs: mixer0 - 0x01100000, mixer1 - 0x01200000
<jernej> you shouldn't change size in the driver
kaspter has quit [Quit: kaspter]
<f11f12_> jernej: what is 'MP' in the memory map?
kaspter has joined #linux-sunxi
<f11f12_> I'll fix my dt
<wens> f11f12_: Mixer Processor, a mem-to-mem 2D compositing engine
<wens> not the same as DE 2.0 mixer
<wens> I guess that's your culprit
<f11f12_> wens: thanks!
<f11f12_> yes, indeed!
<wens> f11f12_: did you actually read the relevant sections in the manual? or did you think that, hmm this looks close enough, and used it
<wens> DE 2.0 is in the "Display" chapter, while MP is in the "Graphic" chapter
<wens> huge difference
<f11f12_> wens: for the V40 i have no documentation on the DE2.0, the DE2.0 manual does not list the V40
<jernej> f11f12_: since all DE2.0 are much or less the same
<jernej> *more
<wens> f11f12_: well the V40 or R40 manual does actually have a one page description for DE 2.0, and a whole chapter for MP
BenG83 has joined #linux-sunxi
<f11f12_> wens: the MP chapter only lists we to mem, but the DE chapter lists just specs. From the specs it looked similar to the A83t, so I went with that.
<wens> so how did you manage to put in the wrong address for all the mixer blocks...
<jernej> f11f12_: what compatibles are you using for mixers?
<f11f12_> I'll need to update sun8i_ui/vi_layer.c
<jernej> nope, you don0t
<f11f12_> jernej, what should I use?
<f11f12_> sun8i_ui_layer.c:52:7: error: ‘SUN8I_MIXER_BLEND_PIPE_CTL’ undeclared
<jernej> "allwinner,sun8i-r40-de2-mixer-0" for first and "allwinner,sun8i-r40-de2-mixer-1" for second
<jernej> then you need to expand mixer driver with those compatibles
<jernej> and define r40 specific mixer configuration
<wens> hmm, are they different from the other SoCs?
<f11f12_> vi num and ui nums?
mavkhime_ has quit [Ping timeout: 265 seconds]
<jernej> wens: most DE2 SoC have same capabilities for mixer0 and same capabilities for mixer1
<jernej> however, mixer1 is less capable as mixer0
<wens> jernej: let me rephrase, can't we use a compatible string from another, compatible, soc?
<jernej> well, he can from H3, but H3 has only mixer0 currently
<jernej> there are some uncertanties about capabilities, so for now, each supported SoC has it's own compatible
<f11f12_> jernej: do I set a mod_rate? otherwise it would be similar to the a83t-mixer0
<jernej> take H3 mixer0
<jernej> with only one screen active you don't need mixer1
<jernej> and mixer1 have differencies in which clocks have to be defined in DT node
<jernej> so just don't define it for now
<jernej> have to go for now
<f11f12_> jernej: thanks!
netlynx has joined #linux-sunxi
reinforce has joined #linux-sunxi
msev- has quit [Ping timeout: 256 seconds]
libv has quit [Ping timeout: 276 seconds]
msev- has joined #linux-sunxi
libv has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 265 seconds]
Gerwin_J has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
Gerwin_J has quit [Quit: Gerwin_J]
BenG83 has quit [Quit: Leaving]
afaerber has joined #linux-sunxi
megi has quit [Ping timeout: 248 seconds]
JohnDoe0 has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 260 seconds]
jbrown has joined #linux-sunxi
lurchi_ is now known as lurchi__
egbert has quit [Ping timeout: 264 seconds]
egbert has joined #linux-sunxi
dh1tw has joined #linux-sunxi
dh1tw has quit [Max SendQ exceeded]
leviathan has joined #linux-sunxi
dh1tw has joined #linux-sunxi
dh1tw has quit [Max SendQ exceeded]
dh1tw has joined #linux-sunxi
dh1tw has quit [Max SendQ exceeded]
dh1tw has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
megi has joined #linux-sunxi
rexxster has joined #linux-sunxi
Gerwin_J has quit [Read error: Connection reset by peer]
mavkhimenia has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
LargePrime has joined #linux-sunxi
aalm has quit [Ping timeout: 264 seconds]
macduck has joined #linux-sunxi
aalm has joined #linux-sunxi
f11f12_ has quit [Quit: Leaving]
zumbi_ is now known as zumbi
hitech95_ROG has quit [Ping timeout: 248 seconds]
mavkhime_ has joined #linux-sunxi
sunshavi has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 268 seconds]
<buZz> so, i just got a 'nanopi neo core2' , a H5 board without display output :P
dddddd has joined #linux-sunxi
<buZz> is there any distro for it that would offer a serial port on the OTG port from boot?
mavkhimenia has joined #linux-sunxi
mavkhime_ has quit [Ping timeout: 240 seconds]
messpl_ has quit [Ping timeout: 240 seconds]
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
megi has quit [Ping timeout: 248 seconds]
paulk-gagarine-s has joined #linux-sunxi
paulk-gagarine has quit [Ping timeout: 268 seconds]
paulk-gagarine-s has quit [Remote host closed the connection]
paulk-gagarine has joined #linux-sunxi
<wens> icenowy[m]: how far were you with a64 de2 stuff?
cnxsoft has quit [Quit: cnxsoft]
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-sunxi
mkid has quit [Quit: Konversation terminated!]
embed-3d_ has joined #linux-sunxi
embed-3d has quit [Ping timeout: 265 seconds]
mavkhime_ has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 256 seconds]
megi has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
tllim has joined #linux-sunxi
IgorPec has quit [Ping timeout: 264 seconds]
Gerwin_J has quit [Read error: Connection reset by peer]
Putti has joined #linux-sunxi
jelly has quit [Read error: Connection reset by peer]
jelly-home has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
clemens3 has quit [Ping timeout: 240 seconds]
BenG83 has joined #linux-sunxi
jelly-home is now known as jelly
IgorPec has joined #linux-sunxi
wasutton3_mobile has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
rexxster has quit [Ping timeout: 268 seconds]
rexxster has joined #linux-sunxi
hitech95_ROG has joined #linux-sunxi
kloczek has quit [Quit: kloczek]
kloczek has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 240 seconds]
nuuuciano has joined #linux-sunxi
elros has joined #linux-sunxi
leviathan has quit [Read error: Connection reset by peer]
f0xx has quit [Read error: No route to host]
f0xx has joined #linux-sunxi
vagrantc has joined #linux-sunxi
TEKrantz has quit [Quit: Light travels faster then sound, which is why some people appear bright, until you hear them speak]
elros has quit [Remote host closed the connection]
f0xx has quit []
f0xx has joined #linux-sunxi
arete74 has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 248 seconds]
anarsoul has quit [Ping timeout: 260 seconds]
clemens3 has joined #linux-sunxi
anarsoul has joined #linux-sunxi
f0xx has quit [Ping timeout: 265 seconds]
leviathan has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
mavkhime_ has quit [Ping timeout: 264 seconds]
hanni76 has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
Mr__Anderson has joined #linux-sunxi
SP7RT has joined #linux-sunxi
mavkhime_ has joined #linux-sunxi
mavkhimenia has quit [Read error: Connection reset by peer]
edfox has joined #linux-sunxi
edfox has left #linux-sunxi [#linux-sunxi]
f11f12 has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 260 seconds]
d3r3k has joined #linux-sunxi
nots has joined #linux-sunxi
f0xx has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 248 seconds]
<jernej> icenowy[m]: Did you try mali450 gbm driver on H5? I have some strange image corruption, like mixing two images
<jernej> splash screen and main menu in this case
mavkhime_ has quit [Ping timeout: 260 seconds]
<jernej> icenowy[m]: PMU shouldn't be enabled, right?
xerpi has joined #linux-sunxi
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-sunxi
Putti has quit [Ping timeout: 264 seconds]
maik_ has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
Putti has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
xes has quit [Read error: Connection reset by peer]
netlynx has quit [Quit: Ex-Chat]
Mr__Anderson has quit [Remote host closed the connection]
JohnDoe0 has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
anarsoul|2 has joined #linux-sunxi
montjoie has quit [Quit: leaving]
nuuuciano has quit [Ping timeout: 240 seconds]
hanni76 has quit [Remote host closed the connection]
maik_ has quit [Ping timeout: 260 seconds]
matthias_bgg has joined #linux-sunxi
victhor has joined #linux-sunxi
IgorPec has quit [Ping timeout: 248 seconds]
<willmore> buZz, try over at #armbian, maybe?
wigyori has quit [Remote host closed the connection]
<vagrantc> does https://linux-sunxi.org/Linux_mainlining_effort#Boards make any sense without any links to the work-in-progress?
f0xx has quit [Ping timeout: 248 seconds]
wigyori has joined #linux-sunxi
anarsoul|2 has quit [Remote host closed the connection]
anarsoul|2 has joined #linux-sunxi
lurchi__ is now known as lurchi_
Putti has quit [Ping timeout: 256 seconds]
xes has joined #linux-sunxi
xes has quit [Remote host closed the connection]
AneoX has quit [Ping timeout: 240 seconds]
AneoX_ has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 248 seconds]
hitech95_ROG has quit [Read error: Connection reset by peer]
pg12 has quit [Ping timeout: 255 seconds]
fl_0 has quit [Ping timeout: 240 seconds]
leviathan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
fl_0 has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
reinforce has joined #linux-sunxi
reinforce has quit [Client Quit]
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
xerpi has quit [Quit: Leaving]
afaerber has quit [Quit: Leaving]
pg12 has joined #linux-sunxi
pg12 has quit [Ping timeout: 256 seconds]
pg12 has joined #linux-sunxi
wasutton3_mobile has quit [Ping timeout: 256 seconds]
megi has quit [Ping timeout: 248 seconds]
kelvan_ has joined #linux-sunxi
merlin_1991 has joined #linux-sunxi
doppo_ has joined #linux-sunxi
kilobyte_ has joined #linux-sunxi
mripard_ has joined #linux-sunxi
x5eb has joined #linux-sunxi
icenowy[m] has quit [*.net *.split]
doppo has quit [*.net *.split]
hramrach has quit [*.net *.split]
_0x5eb_ has quit [*.net *.split]
kilobyte has quit [*.net *.split]
kelvan has quit [*.net *.split]
merlin1991 has quit [*.net *.split]
grw has quit [*.net *.split]
mripard has quit [*.net *.split]
doppo_ is now known as doppo
x5eb is now known as _0x5eb_
grw has joined #linux-sunxi
hramrach has joined #linux-sunxi
icenowy[m] has joined #linux-sunxi
lurchi_ is now known as lurchi__
BenG83 has quit [Quit: Leaving]
clemens3 has quit [Ping timeout: 240 seconds]
anarsoul|2 has quit [Remote host closed the connection]
anarsoul|2 has joined #linux-sunxi