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
dev1990_ has quit [Quit: Konversation terminated!]
pfeerick has quit [Ping timeout: 240 seconds]
Gerwin_J has joined #linux-sunxi
apritzel has quit [Ping timeout: 255 seconds]
pfeerick has joined #linux-sunxi
pg12 has quit [Ping timeout: 248 seconds]
pg12 has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
ninolein_ has joined #linux-sunxi
ninolein has quit [Ping timeout: 240 seconds]
Andy-D_ has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-sunxi
pg12 has quit [Ping timeout: 246 seconds]
pg12 has joined #linux-sunxi
rocketpenguin has joined #linux-sunxi
montjoie has quit [Ping timeout: 240 seconds]
montjoie has joined #linux-sunxi
montjoie has quit [Ping timeout: 240 seconds]
montjoie has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
_whitelogger has joined #linux-sunxi
Wizzup has quit [Ping timeout: 268 seconds]
IgorPec has joined #linux-sunxi
Wizzup has joined #linux-sunxi
goofie has quit [Ping timeout: 240 seconds]
TheSeven has quit [Ping timeout: 258 seconds]
TheSeven has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 246 seconds]
<montjoie> mripard: will send
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 276 seconds]
lkcl has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 248 seconds]
rej has joined #linux-sunxi
DullTube has joined #linux-sunxi
reinforce has joined #linux-sunxi
apritzel has joined #linux-sunxi
<mripard> montjoie: thanks :)
cnxsoft has joined #linux-sunxi
xes_ has joined #linux-sunxi
xes has quit [Ping timeout: 240 seconds]
nvz has quit [Quit: leaving]
dave0x6d has quit [Quit: Connection closed for inactivity]
DullTube has quit [Ping timeout: 240 seconds]
cnxsoft has quit [Read error: Connection reset by peer]
apritzel has quit [Quit: Leaving.]
popolon has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
msimpson has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
florianH has joined #linux-sunxi
popolon has quit [Read error: Connection reset by peer]
Andy-D_ has joined #linux-sunxi
BenG83 has quit [Quit: Leaving]
matthias_bgg has joined #linux-sunxi
matthias_bgg has quit [Client Quit]
matthias_bgg has joined #linux-sunxi
popolon has joined #linux-sunxi
cosm has quit [Ping timeout: 240 seconds]
cosm has joined #linux-sunxi
leviathan_ has joined #linux-sunxi
LargePrime has quit [Ping timeout: 255 seconds]
xes_ is now known as xes
Andy-D_ has quit [Ping timeout: 255 seconds]
<wens> Net147: so I'm reworking my a31 patches on top of your hdmi i2c patch
chlorine has joined #linux-sunxi
LargePrime has joined #linux-sunxi
chlorine has quit [Ping timeout: 248 seconds]
The_Loko has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
<oliv3r> Net147: not yet, well i got 2 outputs on the pipeline, so there's progress :) i think the display may be dark because of th ebacklight though
leviathan_ has quit [Remote host closed the connection]
mrnuke has quit [Ping timeout: 240 seconds]
<Net147> oliv3r: You will seen light coming out from the underside of the LCD if the backlight is on even if all the pixels are black. The backlight is definitely needed to see the image.
<Net147> wens: cool
rocketpenguin has quit [Ping timeout: 255 seconds]
<wens> mripard asked me to use regmap_fields, but it seems some bits won't be able to
<wens> such as FIFO access, which needs byte access, instead of word access
<Net147> wens: I was wondering why the HDMI driver wasn't using regmap to begin with
<wens> Net147: I think mripard just forgot :p
<wens> ATM I'm only using regmap for the parts I need to change
<wens> which is exclusively the DDC block
<oliv3r> Net147: yeah i know; i had it working before, so i'll just toggle the pins manuallyfor now
<Net147> oliv3r: enabling PH8 to power the LCD?
<Net147> oliv3r: backlight adjustment is just doing PWM on the LCD power on PH8
<Net147> wens: probably should just convert all the HDMI driver to use regmap so the cached view of the registers doesn't get out of sync
<oliv3r> Net147: yeah but the backlight controls don't do anything
<oliv3r> which is strange
<oliv3r> i have a scope connected to the pins, so i see whats going on
<oliv3r> if i manually do the pwm it works fine
<oliv3r> so i commented ph8 for now
<oliv3r> and just toggle it manually before figuring out whats going on there :)
<oliv3r> i'm 90% certain I have the same config as before too
<wens> Net147: regmap doesn't cache unless you tell it to
nvz has joined #linux-sunxi
<oliv3r> Net147: ok i have backlight and 2 outputs on pipeline 0
<oliv3r> next step is to get /dev/fb0 up :)
<wens> Net147: also there's no real point in caching mmio registers
<Net147> wens: okay
yann has joined #linux-sunxi
mrnuke has joined #linux-sunxi
<Net147> oliv3r: which kernel version are you using?
IgorPec has joined #linux-sunxi
tom_nov has joined #linux-sunxi
<wens> there is a lot of boilerplate code :(
afaerber has quit [Quit: Leaving]
<Net147> and it is duplicating readl_poll_timeout...
sunxi_fan has quit [Remote host closed the connection]
<wens> it's better to have a generic macro for it
<Net147> but I guess need to start somewhere
<wens> (there is already one for regmap)
<oliv3r> Net147: 4.12-rc1
chlorine has joined #linux-sunxi
<oliv3r> Net147: as it is maxime's drm-next branch
chlorine has quit [Ping timeout: 260 seconds]
afaerber has joined #linux-sunxi
popolon has quit [Ping timeout: 248 seconds]
popolon has joined #linux-sunxi
kloczek has quit [Remote host closed the connection]
nvz has quit [Ping timeout: 248 seconds]
sunxi_fan has joined #linux-sunxi
nvz has joined #linux-sunxi
nvz has quit [Ping timeout: 246 seconds]
nvz has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
reinforce has joined #linux-sunxi
leviathancn has joined #linux-sunxi
reinforce has quit [Remote host closed the connection]
reinforce has joined #linux-sunxi
reinforce has quit [Client Quit]
reinforce has joined #linux-sunxi
reinforce has quit [Remote host closed the connection]
reinforce has joined #linux-sunxi
kloczek has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
reinforce has joined #linux-sunxi
chlorine has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
BenG83 has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
<MoeIcenowy> tkaiser: I saw the design of BPi M2 Zero
<MoeIcenowy> It's a criminal waste of the rich peripherals of H2+ chip
<plaes> :)
<MoeIcenowy> They made a Raspberry Pi Zero W factor board with H2+
<MoeIcenowy> perfectly wasted 3 host-only USB controllers and a Gigabit MAC
<BenG83> I am really not a friend of new boards copying older formfactors :/
<MoeIcenowy> In Chinese I can only describe this with a phrase "暴殄天物"
<plaes> 差不多?
<MoeIcenowy> nope, it's a very bad word
<BenG83> that is not in HSK1 :P
<MoeIcenowy> an advanced phrase
<MoeIcenowy> it's used to describe severe waste
<plaes> ok.. mine is "close enough"
<MoeIcenowy> This design successfully nearly all of the high-speed peripherals of H2+
<plaes> *misses
<MoeIcenowy> only one USB Controller is left
<MoeIcenowy> plaes: thanks. I forgot to add this word
<MoeIcenowy> and at the tail of the board there's a CSI -- I think it will be much better if they can wire the extra peripherals there and make an expansion board
<plaes> yeah.. almost all the board include the CSI
<MoeIcenowy> P.S. BPi M2 Berry is also a wasteful form factor copying
<MoeIcenowy> At least the smart power management provided by AXP221s and one host USB is wasted
<MoeIcenowy> and it's a Quad-Core board which can be only powered via Micro-USB jack, not power barrel!
<plaes> what about pins?
<MoeIcenowy> 40pins on RPi + 3 pins debug uart
<plaes> I mean, it can be powered via pins
<MoeIcenowy> I think it's impossible -- it's usually impossible on boards with AXP
<MoeIcenowy> but for boards with one of the power inputs of AXP dropped it may be possible
<MoeIcenowy> in the situation of Pine64 (the VBUS pin is dropped) it can be powered via pins
<MoeIcenowy> as when the jumper is set to DC5V mode the 5V pins are directly connected to ACIN
<plaes> hmm ok
<MoeIcenowy> oh for BPi M2 Berry it might be possible -- as it has neither BAT input nor ACIN input
<wens> MoeIcenowy: micro-usb in itself is not a crime :p
<wens> MoeIcenowy: crappy connectors and cables are
<oliv3r> which is like 90% of the time the case :)
JohnDoe_71Rus has joined #linux-sunxi
<oliv3r> when is tcon->bind called in the sun4i_tcon/sun4i-drm code?
<oliv3r> i see that the tcon driver is probed, but the rgb panel connection happens in the bind ops; but can't see where it is invoked
<wens> when component_bind_all is called
Mr__Anderson has joined #linux-sunxi
willmore has quit [Remote host closed the connection]
<oliv3r> btw, how is the a20 display-engine different from the a10? i'd think they'd be identical?
<wens> mostly the same
<oliv3r> so they are different enough that they'd need a new compatible?
<wens> there might be some slight differences in each hardware block we didn't figure out
<ElBarto> A20 have sprites too
<wens> oliv3r: we use soc-specific compatibles, with known working compatibles as fallbacks
<wens> in case some day we actually do find some differences
<oliv3r> okay, makes sense
<oliv3r> ok i see the component_bind_all call; i don't understand however why it is never exected
<oliv3r> i've added a DRM_DEBUG_DRIVER to the bind call, but don't see that comming by
<oliv3r> is that a possible DT fault?
cnxsoft has quit [Quit: cnxsoft]
<wens> please google drm.debug
<oliv3r> i have that enabled
<oliv3r> hence, I know how to use DRM_DEBUG_DRIVER and that it works :p
<oliv3r> i do get output from the allready present DRM_DEBUG_DRIVER + the ones i added myself
<oliv3r> however the bind function from the tcon (to bind the rgb panel) never happens
<wens> do you have the panel driver enabled?
<oliv3r> yeah
<oliv3r> drm_panel_simple
<wens> and also the panel and related (backlight?) drivers and dt nodes
<wens> backlight likely uses pwm?
<oliv3r> yep
<oliv3r> i disabled the power-on gpio however in the dt and manually toggle it for now, as the panel driver doesn't do it (because the panel is not 'bind'-ed) because the rgb driver isn't loaded, because the tcon doesn't get bind-ed (i guess)?
<oliv3r> i do have [ 3.727310] [drm:sun4i_drv_probe [sun4i_drm]] Queued 2 outputs on pipeline 0
<oliv3r> which are th edisplay-backend and the lcd-controller nodes
<oliv3r> tcon probe does find the panel (i added a print if panel != NULL)
<oliv3r> i just removed the entire backlight node from the panel so that the bl modules itself works (via /sys/class/backlight)
jernej has joined #linux-sunxi
<oliv3r> hah component_bind_all is never called
<wens> huh
<oliv3r> well it never reaches the component_bind_all (from sun4i_drv_bind)
<oliv3r> sun4i_drv_bind isn't called :S
<oliv3r> But component_master_add_with_match is run
<oliv3r> so who/how when calls sun4i_drv_bind? it seems tbe added properly via component_master_add_with_match; if it where not, then the probe would fail ...
reinforce has quit [Quit: Leaving.]
<oliv3r> yeah
<oliv3r> though the backlight imo is fully optional :)
<Net147> It is probably something simple missing...
<oliv3r> i know; but im beating myself up as to finding what :D
<oliv3r> i've now checkout out your repo with commit 04b98d87170d572829e6a0625c5ab3bfd8dd2ad6
<oliv3r> so lets see if that does work
<mripard> oliv3r: giving your changes would help
<Net147> oliv3r: here is my dmesg booting that commit - https://pastebin.com/raw/iBw99idA
<Net147> oliv3r: keep in mind you need to make same changes to the lime2 DT that I did to lime DT
Andy-D_ has joined #linux-sunxi
Andy-D_ has quit [Ping timeout: 248 seconds]
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
IgorPec has quit [Ping timeout: 276 seconds]
fkluknav has joined #linux-sunxi
matthias_bgg has quit [Quit: Leaving]
vagrantc has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
terra854 has joined #linux-sunxi
reinforce has joined #linux-sunxi
leviathancn has quit [Remote host closed the connection]
BenG83 has quit [Quit: Leaving]
Gerwin_J has quit [Quit: Gerwin_J]
Gerwin_J has joined #linux-sunxi
<rej> Is there a known to work combination of kernel+defconfig + uboot+defconfig that will run on an Olimex A20-SOM-4GB booting from an SD card? It seems not to use the UART as console so boot messages are lost and it doesn't seem to bring up any peripherals, so I have to assume the kernel crashed.
<rej> Last time I tried was about a year ago, but a colleague of mine is seemingly still seeing the same issue. Perhaps the UART isn't specified in the defconfig?
chlorine has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
<vagrantc> mainline u-boot only has configs/A20-OLinuXino-Lime2_defconfig configs/A20-OLinuXino_MICRO_defconfig
<vagrantc> configs/A20-OLinuXino-Lime_defconfig configs/A20-Olimex-SOM-EVB_defconfig
<vagrantc> not sure which of those is appropriate, if any
chlorine has quit [Ping timeout: 246 seconds]
<rej> yes
<rej> The second one I think.
<rej> Or maybe configs/A20-Olimex-SOM-EVB_defconfig works even without the actual EVB.
<rej> But uboot seems to start the kernel and hands over control. It's the kernel that then doesn't print anything. :)
<vagrantc> the defaults for all sunxi boards seem to include console=ttyS0,115200 in the environment settings
<vagrantc> it wasn't clear from what you were saying that you had any working serial at all :)
<vagrantc> setenv bootargs ${bootargs} earlyprintk
<vagrantc> might reveal something
<rej> The UART works fine on ancient NAND-boot supporting kernel 3.4.
<rej> ah ok
<rej> I recall having to configure that "manually" after the kernel defconfig, though.
<vagrantc> and what version of the kernel are you booting?
<rej> So back then I was thinking the problem might be that the kernel can't initialise its memory or something similarly terrible.
<rej> Well, last year it must have been early in the 4.x series.
<vagrantc> hard to troubleshoot based on old memories :P
<rej> Also note that I am not sitting next to a powered up system right now - I was just enquiring into obvious clues.
<vagrantc> well, with any recent kernel, all the various sun7i-a20-oli* variants specify the chosen console ...
<vagrantc> what method are you using to boot? boot script? extlinux.conf? fallbacks?
<rej> I tried uboot and uboot was able to load and run the kernel. It could have been the DTB of course.
<vagrantc> well, how it goes about loading the kernel could affect weather bootargs are used or not...
<rej> The kernel's DTB obviously.
<rej> Yes, it's tricky.
engideavr has quit [Quit: Konversation terminated!]
<vagrantc> although, the chosen property to define the serial console has been in there since late 2015 or so...
<vagrantc> in the kernel .dts, that is
<rej> Yes, so the kernel crashes before it starts printing, I guess.
<vagrantc> next troubleshooting step would be to actually load with earlyprintk, would be my guess
<vagrantc> other possibilities is it might be loading the wrong device-tree
<rej> indeed
<rej> I'm not sure what my colleague has been doing in that regard.
<vagrantc> well, good luck, maybe get them in irc with a board handy :)
<vagrantc> speculative troubleshooting has serious limitations
<rej> I have invited him to do that already, but I think it's late in the evening where he is.
<vagrantc> but it looks to me like using mainline u-boot and mainline kernel should support it, if it is correct to use one of those boards
<rej> yes
<vagrantc> if it's some variant as yet unsupported in mainline, might take a little more tweaking
<rej> A20 is veritably ancient. :)
BenG83 has joined #linux-sunxi
jernej has quit [Ping timeout: 248 seconds]
jernej has joined #linux-sunxi
<vagrantc> sure, but there are many board variants out there and not every one may be well supported in mainline
leviathan_ has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
noblock has joined #linux-sunxi
noblock has quit [Client Quit]
iamfrankenstein has quit [Ping timeout: 260 seconds]
yann has quit [Ping timeout: 260 seconds]
chlorine_ has quit [Read error: Connection reset by peer]
chlorine has joined #linux-sunxi
tom_nov has quit [Quit: Leaving]
netlynx has joined #linux-sunxi
pg12 has quit [Ping timeout: 255 seconds]
pg12 has joined #linux-sunxi
chlorine has quit [Ping timeout: 248 seconds]
The_Loko has quit [Quit: Leaving]
iamfrankenstein has joined #linux-sunxi
phipli has quit [Remote host closed the connection]
phipli has joined #linux-sunxi
anarsoul has joined #linux-sunxi
anarsoul has quit [Client Quit]
apritzel has joined #linux-sunxi
yann has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
mzki has quit [Quit: leaving]
mzki has joined #linux-sunxi
IgorPec has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Mr__Anderson has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
victhor has quit [Ping timeout: 260 seconds]
jernej has quit [Ping timeout: 248 seconds]
vagrantc has quit [Quit: leaving]
florianH has quit [Quit: Connection closed for inactivity]
reinforce has quit [Quit: Leaving.]
juri_ has quit [Ping timeout: 258 seconds]
leviathan_ has quit [Remote host closed the connection]
Andy-D_ has joined #linux-sunxi
phipli has quit [Remote host closed the connection]
jernej has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 258 seconds]
Gerwin_J has joined #linux-sunxi
chlorine has joined #linux-sunxi
[TheBug] has quit [Ping timeout: 240 seconds]
chlorine has quit [Ping timeout: 246 seconds]
terra854 has quit [Quit: Connection closed for inactivity]
lemonzest has quit [Quit: Quitting]
phipli has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
[TheBug] has joined #linux-sunxi
Seppoz has joined #linux-sunxi
juri_ has joined #linux-sunxi
victhor has joined #linux-sunxi
jernej has quit [Ping timeout: 248 seconds]
rexxster has quit [Remote host closed the connection]
rellla has quit [Ping timeout: 240 seconds]
rexxster has joined #linux-sunxi
phipli has quit [Ping timeout: 255 seconds]
rexxster has quit [Remote host closed the connection]
rexxster has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9]
lurchi_ is now known as lurchi__
Gerwin_J has quit [Quit: Gerwin_J]
nvz has quit [Read error: Connection reset by peer]
Gerwin_J has joined #linux-sunxi
nvz has joined #linux-sunxi