<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]
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!
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...