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*
nashpa has joined #linux-sunxi
megi has quit [Ping timeout: 246 seconds]
_whitelogger has joined #linux-sunxi
kaspter has joined #linux-sunxi
dddddd has quit [Read error: Connection reset by peer]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 244 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft1 has quit [Ping timeout: 245 seconds]
TheSeven has quit [Ping timeout: 250 seconds]
TheSeven has joined #linux-sunxi
ganbold has quit [Remote host closed the connection]
aalm has quit [Quit: xyz 2.3]
ganbold has joined #linux-sunxi
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
_whitelogger has joined #linux-sunxi
selfbg has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
ganbold has quit [Remote host closed the connection]
ganbold has joined #linux-sunxi
ganbold has quit [Ping timeout: 258 seconds]
putti_ has joined #linux-sunxi
datagutt has quit [Ping timeout: 245 seconds]
datagutt has joined #linux-sunxi
datagutt has quit [Changing host]
datagutt has joined #linux-sunxi
ldevulder_ has quit [Read error: Connection reset by peer]
superprower has quit [Read error: Connection reset by peer]
ldevulder_ has joined #linux-sunxi
superprower has joined #linux-sunxi
Putti has quit [Ping timeout: 245 seconds]
reinforce has joined #linux-sunxi
ganbold_ has joined #linux-sunxi
SopaXorzTaker has joined #linux-sunxi
TheSeven has quit [Ping timeout: 264 seconds]
ldevulder__ has joined #linux-sunxi
TheSeven has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 272 seconds]
msimpson has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
vpeter has quit [Remote host closed the connection]
diego_r has joined #linux-sunxi
warpme_ has joined #linux-sunxi
warpme_ has quit [Client Quit]
msimpson has quit [Remote host closed the connection]
msimpson has joined #linux-sunxi
warpme_ has joined #linux-sunxi
warpme_ has quit [Client Quit]
warpme_ has joined #linux-sunxi
warpme_ has quit [Client Quit]
warpme_ has joined #linux-sunxi
sunilmohan has quit [Ping timeout: 246 seconds]
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-sunxi
sunilmohan has joined #linux-sunxi
putti_ is now known as Putti
ldevulder__ is now known as ldevulder
tl_lim has quit [Read error: Connection reset by peer]
Mangy_Dog has joined #linux-sunxi
tnovotny has joined #linux-sunxi
vpeter has joined #linux-sunxi
megi has joined #linux-sunxi
AneoX has joined #linux-sunxi
DrFrankensteinUK has quit [Remote host closed the connection]
DrFrankensteinUK has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 258 seconds]
Mangy_Dog has joined #linux-sunxi
parazyd has quit [Quit: leaving]
parazyd has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
msimpson has quit [Remote host closed the connection]
msimpson has joined #linux-sunxi
msevo has joined #linux-sunxi
msevo has quit [Quit: Leaving]
SopaXorzTaker has quit [Quit: Leaving]
codekipper29 has joined #linux-sunxi
codekipper29 has quit [Remote host closed the connection]
codekipper97 has joined #linux-sunxi
<codekipper97> z3ntu: Looking at the manuals it looks like you need to set up the I2S interface for the codec. This is done via AT+QDAI=
<z3ntu> codekipper97: I have the modem set to AT+QDAI=1,1,0,4,0 (io: PCM output (1), mode: slave mode (1), fsync: primary mode (short sync) (0), clock: 2048K (4), format: 16-bit linear (0))
<codekipper97> I think it should be AT+QDAI=1,1,1,4,0
<codekipper97> we don't support the PCM format yet...although it can be hacked in
<codekipper97> so you need to set the long sync
<z3ntu> ah
<z3ntu> But in auxiliary mode (long sync), "PCM interface operates with a 128kHz PCM_CLK and an 8kHz, 50% duty cycle PCM_SYNC only."
<z3ntu> Is that okay?
<codekipper97> mmm...this is a mono channel?
<codekipper97> now looking at it..that doesn't look right
<codekipper97> I've only ever looked at multi-channel pcm
matthias_bgg has quit [Read error: Connection reset by peer]
<codekipper97> over i2s
matthias_bgg has joined #linux-sunxi
<KotCzarny> ..but will it blend?
<fALSO> yes,,, but does it run: NETBSD ?
<fALSO> nice lcd
* fALSO is envious
<diego71> wow
gaston_ has joined #linux-sunxi
Pierre75 has joined #linux-sunxi
<libv> it's the bpi 3.5" one
<libv> fosdem owns about 120 of the 1000 produced
<KotCzarny> lol
<fALSO> ;-)
<fALSO> next year, ill try to go to fosdem
<fALSO> and meet some of you guys
<fALSO> give a handshake with TWO hands
<fALSO> secret handshake
AneoX has joined #linux-sunxi
Pierre75 has quit [Remote host closed the connection]
PaddleStroke has joined #linux-sunxi
<PaddleStroke> Hi,
<PaddleStroke> Anyone have experience with AXP209 drivers?
<PaddleStroke> I am trying to disable auto-boot on AC-plugged IN. AXP209 datasheet say it's possible (see page 15) but I cannot find how.
msimpson has quit [Remote host closed the connection]
msimpson has joined #linux-sunxi
<ElBarto> libv: what's the adafruit board ? hdmi to something ?
<ElBarto> or something to hdmi ?
<mru> hdmi to parallel
<ElBarto> thanks mru
<mru> it even says so on it
<ElBarto> so your board convert parallel rgb to csi ?
warpme_ has quit [Quit: warpme_]
<ElBarto> ah right :)
<wens> PaddleStroke: read "configurable" as "customizable at factory"
<KotCzarny> or use a workaround
<KotCzarny> connect li-ion battery
<KotCzarny> the boards i have dont auto turn on when there's li-ion present and you connect ac
<PaddleStroke> KotCzarny I am using a battery now and it does autorun. What kernel are you using?
<KotCzarny> mainline
<KotCzarny> the boards are banana pi m1 and r1
<KotCzarny> although i'm not sure about r1 not auto turning on
<KotCzarny> but m1 definitely ignores ac connection when it was powered off
<PaddleStroke> Interesting. Maybe it's a setting in their dts. You'r building from torvalds source? Or have additional patches?
<KotCzarny> nah, i dont think kernel has anything to do with it
<KotCzarny> bpim1 runs 4.16.0-rc3, with only axp patches to display some battery info
<KotCzarny> i shall upgrade it one day to recent kernel, but since it's lan audio player, no hurry
<z3ntu> codekipper97: Do you know how to fix it? :)
dddddd has joined #linux-sunxi
<PaddleStroke> Any idea where it could come from then? Which patch is it btw?
<KotCzarny> it's the one that exports axp registers, so i can display them:
<KotCzarny> C: 528, 528 PMU: 0.0C 4.819V AC: 0.324A 4.906V CHG: 0.000A BAT: 0.004A 4.098V VBUS: 0.000A 0.000V
<KotCzarny> kinda useful with li-ion, although it might be already in recent kernels
warpme_ has joined #linux-sunxi
<PaddleStroke> wens btw I heard you know very well AXP subject. I think I found an issue with uboot AXP209 driver. When doing shutdown it overwrite some settings such a battery detection. In particular if you boot back with PEK button, then AXP register are not reset, so the overwrite is still there and battery detection is off.
<PaddleStroke> if this interest you I have discussed it there : https://forum.armbian.com/topic/10834-axp209-proper-driver/
<KotCzarny> this is the patch i use
<KotCzarny> but as i've said most likely it's already included in some form
<PaddleStroke> Thanks
<PaddleStroke> this is the patch that Armbian use too.
arete74 has quit [Ping timeout: 248 seconds]
arete74 has joined #linux-sunxi
<PaddleStroke> what is the sysfs to read battery capacity? I tried /sys/class/power_supply/qxp_pmu/capacity but it's not working
<wens> PaddleStroke: send a fix for it?
<PaddleStroke> wens to tell the truth I'm bit of a noob, I started to dig inside linux kernel and uboot only 2 weeks ago. I tried to send an email but I am not sure it went through
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
DrFrankensteinUK has quit [Ping timeout: 248 seconds]
DrFrankensteinUK has joined #linux-sunxi
warpme_ has quit [Quit: warpme_]
dev1990_ has quit [Remote host closed the connection]
<wens> for u-boot, if you aren't subscribed, it would be put in holding
<codekipper97> z3ntu: it's do-able but I won't be able to look until next week. Won't be mainline-able without a lot more effort though....I know that some other members are doing similar things but nothing has been shared.
<z3ntu> I mostly care about it working for now - mainline can come later. Can you maybe give me some pointers what has to be done?
* mru gives z3ntu a null pointer
<codekipper97> you need to get the registers in I2S/PCM_FMT0 and I2S/PCM_FMT1 set up correctly. So that the signalling is what you see in "Figure 7-12. Timing Diagram for PCM/TDM-PCM mode"
vagrantc has joined #linux-sunxi
warpme_ has joined #linux-sunxi
msimpson has quit [Remote host closed the connection]
<qschulz> PaddleStroke: well the thing is, we need to set this bit in the axp20x_battery driver in the probe function so we don't rely on the bootloader to set it up for us
<qschulz> so fixing it in U-Boot, why not, it's always good to have. But it's important to have it in the kernel
<PaddleStroke> I think there is the same mistake in kernel axp20x.c driver : https://github.com/torvalds/linux/blob/master/drivers/mfd/axp20x.c
<PaddleStroke> line 812
<PaddleStroke> regmap_write(axp20x_pm_power_off->regmap, AXP20X_OFF_CTRL,
<PaddleStroke> it's same it writes bit(7) into reg32
<qschulz> this one's arguable I think, we're anyway shutting down the board so I'm not sure it makes much of a difference but would be nice to fix I guess
warpme_ has quit [Quit: warpme_]
msimpson has joined #linux-sunxi
<PaddleStroke> the issue is when we power on from PEK button. That's when the axp setting is not overwriten. The u-boot error is the same, it's when power-off that it overwrite the reg32.
msimpson has quit [Remote host closed the connection]
<PaddleStroke> if you reboot with AC plug in, this bug don't have any effect because regs are reset. But when booting on PEK press, then the regs are not reset and the battery detection is off
<qschulz> PaddleStroke: it's supposed to be in /sys/class/power_supply/smth/capacity for the capacity of the battery in mainline yes
<PaddleStroke> (note my first message is wrong. I say "That's when the axp setting is not overwriten" I meant "that's when axp regs are not edited"
<qschulz> Calibration is not supported yet though
<PaddleStroke> "that's when axp regs are not reset" sorry double mistake.
<qschulz> PaddleStroke: The point I was trying to make is that I'm not sure we actually care about monitoring the battery when we're shutting down the board.
<qschulz> But the fix in the battery driver is definitely needed yes
<PaddleStroke> Yes. What I meant is that apparantly after this shutdown, when you boot on PEK press, apparantly the AXP reg are not set back to default values. So on this second boot the reg32 is bit(7) which implies that battery detection is deactivate on this new boot.
<PaddleStroke> but if reg32 value is set on boot by battery driver than it does not matter much
megi has quit [Ping timeout: 244 seconds]
warpme_ has joined #linux-sunxi
selfbg has quit [Remote host closed the connection]
<libv> ElBarto: csi of allwinner is actually a parallel bus
<libv> the adafruit module is to drive lcd panels
<libv> but we don't care about what it is officially for
<libv> we were only using this board to test the bandwidth
<libv> and to verify our lcd and vga connection
<ElBarto> libv: ok, nice
<libv> this is stage 1 for the fosdem videobox
<libv> stage 2 has us produce the first adv7611 based board with lcd and vga
<libv> now that we know that it can do fullhd all day long, we can proceed
wasutton3 has joined #linux-sunxi
curlybracket has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
wasutton3 has quit [Ping timeout: 276 seconds]
<PaddleStroke> Does anyone have experience with DRM driver?
<PaddleStroke> Is there some documentation on framebuffer and how to assign them to display or HDMI ?
JohnDoe_71Rus has joined #linux-sunxi
afaerber has joined #linux-sunxi
yann has quit [Ping timeout: 258 seconds]
tnovotny has quit [Quit: Leaving]
<wens> PaddleStroke: under what environment?
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
tllim has joined #linux-sunxi
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
dev1990 has joined #linux-sunxi
<PaddleStroke> wens mainline kernel
<PaddleStroke> I'm on a A20 board
<wens> PaddleStroke: I meant userspace
warpme_ has quit [Ping timeout: 246 seconds]
<PaddleStroke> Not sure, what userspace environment are possible?
matthias_bgg has quit [Read error: Connection reset by peer]
<PaddleStroke> On desktop? :)
matthias_bgg has joined #linux-sunxi
<wens> with what? X11? wayland?
<PaddleStroke> x11
<PaddleStroke> kms/drm
<PaddleStroke> depends on the application
<PaddleStroke> so kms/drm/gbm/wayland in fact. But not only as I use different applications
megi has joined #linux-sunxi
reinforce has joined #linux-sunxi
JohnDoe_71Rus has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has joined #linux-sunxi
pgreco has quit [Ping timeout: 244 seconds]
<wens> well, then I suppose it depends on the application?
<PaddleStroke> My aim is to make a automatic switch between LCD (RGB) and HDMI
<wens> kernel doesn't care how userspace uses the screens
<PaddleStroke> When HDMI cable is plugged in, from HPD change I'd like to display on HDMI instead of LCD
<PaddleStroke> like a laptop would do when plugged in.
<wens> kernel doesn't do that
<wens> AFAIK it's up to userspace to detect the event and configure kms accordingly
<PaddleStroke> And how to configure KMS?
<PaddleStroke> Is there some documentation about this?
vagrantc has quit [Quit: leaving]
matthias_bgg has quit [Quit: Leaving]
<gnarface> PaddleStroke: check the linux-doc package in your distro.
<gnarface> i think there's some info in there about kms kernel command-line options...
<PaddleStroke> thanks!
<PaddleStroke> I'll dig into this. I don't know well X11/wayland and KMS yet.
PaddleStroke has quit [Remote host closed the connection]
<wens> there really aren't any
<wens> if the application uses kms/drm/gbm, it should be able to configure drm/kms
pgreco has joined #linux-sunxi
<gnarface> isn't there situations where you might need to specify a default resolution or something though?
<gnarface> like if something is going haywire
diego_r has quit [Ping timeout: 258 seconds]
reinforce has quit [Quit: Leaving.]
reinforce has joined #linux-sunxi
gaston_ has quit [Quit: Konversation terminated!]
ninolein has joined #linux-sunxi
DrFrankensteinUK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
DrFrankensteinUK has joined #linux-sunxi
vagrantc has joined #linux-sunxi
gaston_ has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
megi has quit [Ping timeout: 272 seconds]
gaston_ has quit [Quit: Konversation terminated!]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 244 seconds]
megi has joined #linux-sunxi
xes has quit [Ping timeout: 248 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
ninolein has quit [Ping timeout: 264 seconds]
ninolein has joined #linux-sunxi
<ElBarto> in case anyone is using H5 with netbooting on a board with external phy : https://patchwork.ozlabs.org/patch/1134275/
<ElBarto> also note that get_maintainer.pl didn't list any sunxi related maintainer
<ElBarto> wens: mripard: ^^
vagrantc has joined #linux-sunxi
BenG83 has joined #linux-sunxi
<Mangy_Dog> just to confirm about hdmi dif pairs... only need to match the pairs -+? dont need to have ALL the pairs the exact same length?
<karlp> you were given an answer to that last time you asked too :)
<Mangy_Dog> that might indeed be true
<Mangy_Dog> i forgot :(
<Mangy_Dog> making each pair the exact same length is going to be damn hard in the space i have
<Mangy_Dog> but matching the two traces in a pair is easy enough
<Mangy_Dog> according to this all pairs need to match +/-3mm
<Mangy_Dog> poop
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
afaerber has quit [Remote host closed the connection]
<karlp> you could also read the logs of this chanell for the last answers....
popolon has joined #linux-sunxi
DrFrankensteinUK has quit [Ping timeout: 245 seconds]
DrFrankensteinUK has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
vagrantc has quit [Ping timeout: 250 seconds]
vagrantc has joined #linux-sunxi
afaerber has joined #linux-sunxi
skiboy has quit [Quit: Leaving]
vagrantc has quit [Quit: leaving]
popolon has quit [Quit: WeeChat 2.5]
Mangy_Dog has quit [Remote host closed the connection]
xes has joined #linux-sunxi
robogoat has quit [Ping timeout: 272 seconds]
netlynx has quit [Quit: Ex-Chat]
robogoat has joined #linux-sunxi
tllim has quit [Read error: Connection reset by peer]
BenG83 has quit [Quit: Leaving]
xes has quit [Quit: bye..]
tllim has joined #linux-sunxi