ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
<macromorgan> so what all do I need to do to get USB OTG working on the H616? I've correctly identified the usb_id_det pin (when I plug in a host device I can see an interrupt, when I plug in nothing or not a host device I get no interrupt). I also have a working driver for the USB charger that the otg controller can see when there's a voltage or not (usb0_vbus_power-supply). And I've set the dr_mode to OTG.
<macromorgan> How can I check then if the controller is correctly switching between OTG and Host?
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
ItsKaitlyn03 has joined #linux-sunxi
<ItsKaitlyn03> Hey, it's been awhile! So, I'm starting to think DRAM initialization for A133 is closer to A523
ItsKaitlyn03 has quit [Quit: Page closed]
ItsKaitlyn03 has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
<jernej> tokyovigilante: having both outputs active at the same time is a bit tricky and to fully utilize that, further changes are needed
<jernej> I suggest to test with LCD only first
<jernej> there is no need to have h700 variant of lcd tcon
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
<Jookia> ItsKaitlyn03: yeah? what's the news?
<ItsKaitlyn03> I got it to somehow "recognize" 128 MiB of DRAM, also going to have to modify H616 further, as there is more DRAM parameters
<Jookia> interesting!
<Jookia> that's some really cool progress
<Jookia> DRAM is magic to me :)
<ItsKaitlyn03> unfortunately I don't think its initialized correctly, but yeah
<ItsKaitlyn03> all i know is that h616 has some similarities, but it needs more modifications. so I already have decided to branch off from H616 dram code
<Jookia> yeah that makes sense
warpme has quit []
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner_ has joined #linux-sunxi
warpme has joined #linux-sunxi
cyrevolt has joined #linux-sunxi
AntoniAloyTorrens[m]1 has joined #linux-sunxi
aedancullen has joined #linux-sunxi
aerospace[m] has joined #linux-sunxi
chuang[m] has joined #linux-sunxi
cmeerw[m] has joined #linux-sunxi
cperon has joined #linux-sunxi
loki666 has joined #linux-sunxi
dickenhobelix[m] has joined #linux-sunxi
dittid[m] has joined #linux-sunxi
error2[m] has joined #linux-sunxi
KNULLNoNeAll[m] has joined #linux-sunxi
exkc has joined #linux-sunxi
fraolt has joined #linux-sunxi
GrantM11235[m] has joined #linux-sunxi
JosephWatson[m] has joined #linux-sunxi
JuniorJPDJ has joined #linux-sunxi
Guest6573 has joined #linux-sunxi
triskit|away has joined #linux-sunxi
Newbyte has joined #linux-sunxi
obbardc has joined #linux-sunxi
oliv3r[m] has joined #linux-sunxi
pgwipeout[m] has joined #linux-sunxi
psydroid[m] has joined #linux-sunxi
exkcmoeadmin[m] has joined #linux-sunxi
<loki666> tokyovigilante: I'm already using your rg35xx-upstream-extras branch with anbernic_rg35h_defconfig for u-boot
rsglobal[m] has joined #linux-sunxi
sajattack[m] has joined #linux-sunxi
t4h4[m] has joined #linux-sunxi
Tooniis[m] has joined #linux-sunxi
MatrixTravelerbot[m] has joined #linux-sunxi
vulpes2[m] has joined #linux-sunxi
movedon5b2z4xywybidzannet[m] has joined #linux-sunxi
loki666 has quit [Remote host closed the connection]
warpme has quit []
warpme has joined #linux-sunxi
chewitt has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
machinehum has quit [Ping timeout: 480 seconds]
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-sunxi
chewitt has quit [Ping timeout: 480 seconds]
paulk has quit [Remote host closed the connection]
paulk has joined #linux-sunxi
warpme has quit []
Robot_ has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
<Jookia> does dts pinctrl work on the d1 in u-boot?
warpme has quit []
warpme has joined #linux-sunxi
<Jookia> i got my pwm driver working. kind of. the number of active cycles seem to 'stick' when updating the register
<Jookia> it's probably because i'm not using writel or readl but instead clrsetbits. writel seems to cause compiler warning and data abort though. not sure
<Jookia> yeah, two writes are interfering :(
<Jookia> i'll fix it tomorrow but otherwise it works fine!
dsimic is now known as Guest6804
dsimic has joined #linux-sunxi
Guest6804 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.0 Quasar http://www.kvirc.net/]
warpme has quit []
warpme has joined #linux-sunxi
<ItsKaitlyn03> okay doing more comparisons between h616 there is more differences
<ItsKaitlyn03> so branching out into my own dram c file was probably a good thing
<ItsKaitlyn03> PRCM on a133 doesn't hold ohms240 and res_cal_ctrl configuration vals
<ItsKaitlyn03> instead its in SYS_CFG
<ItsKaitlyn03> conveniently, the addresses are also in the same spot as in the D1
Robot_ has quit [Ping timeout: 480 seconds]
wingrime1 has quit [Read error: Connection reset by peer]
KREYREN_oftc has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
AntoniAloyTorrens[m]1 has quit []
warpme has quit []
MatrixTravelerbot[m] has quit []
electricworry_ has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
aedancullen has quit []
electricworry_ has quit [Remote host closed the connection]
loki666 has joined #linux-sunxi
electricworry_ has joined #linux-sunxi
<loki666> tokoyvigilante: here is my dmesg log https://pastebin.com/1wdJ8rTq
<loki666> don't know if it's the issue, but the driver "sun50i-iommu.c" doesn't compile
electricworry_ has quit [Remote host closed the connection]
electricworry has joined #linux-sunxi
<loki666> should I patch it to use label "err_free_group"
<loki666> mmh when I plug the hdmi back in, I get
<loki666> [ 1972.798881] Console: switching to colour frame buffer device 128x48
<loki666> [ 1972.832268] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
<loki666> but no output
cmeerw[m] has quit []
tlwoerner_ has quit [Ping timeout: 480 seconds]
oliv3r[m] has quit []
electricworry has quit [Ping timeout: 480 seconds]
dickenhobelix[m] has quit []
<loki666> according to dts, mixer0 is referencing iommus ...
<loki666> clearly, something went wrong when applying jernejsk patches see https://github.com/jernejsk/linux-1/blob/h616-full/drivers/iommu/sun50i-iommu.c
exkcmoeadmin[m] has quit []
tlwoerner has joined #linux-sunxi
tlwoerner_ has joined #linux-sunxi
tlwoerner_ has quit [Read error: Connection reset by peer]
tlwoerner_ has joined #linux-sunxi
tlwoerner has quit [Ping timeout: 480 seconds]
KREYREN_oftc has quit [Remote host closed the connection]
KREYREN_oftc has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.2, revision: 5.2.0+git-7584-200e7bcec, build type: debug, sources date: 20160102, built on: 2024-05-13 20:04:01 UTC 5.2.0+git-7584-]
<macromorgan> so it looks like (on the Anbernic H700 based stuff) boost is connected to the OTG port through another regulator. The regulator has 5 pins and one of them is connected to a GPIO. The problem is when I drive the GPIO high the regulator only outputs about half of what is input, so with boost running at full blast I'm getting about 2.6v to the OTG port. I haven't yet figured out what more I need to do to get it outputting 5v
<macromorgan> to the OTG port (or even what the regulator's part number is... the text is just too damn tiny).
<macromorgan> if boost is off it looks like the VSYS is what's connected to the mystery regulator
<loki666> tokyovigilante: bah I'm lost, I think my DTB wasn't properly loaded by u-boot, now it seems to be ok, but I don't have the fb0 log when I plug the hdmi...
warpme has joined #linux-sunxi
warpme has quit []
ItsKaitlyn03 has quit [Quit: Page closed]
igraltist has quit [Remote host closed the connection]
igraltist has joined #linux-sunxi
ftg has joined #linux-sunxi
wasutton- has joined #linux-sunxi
wasutton3 has quit [Ping timeout: 480 seconds]
loki666 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hentai has quit [Read error: Connection reset by peer]
hentai has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]