<apritzel>
macromorgan: ok, that looks good: I can set exactly the bits described for the A80 NMI controller, at 0x07010320. There does not seem to be anything at 0x7021000, which would be the location for a sun6i-a31-r-intc compatible intc
<apritzel>
so this is good news, as it means that no interrupts are routed through that r-intc, as in the H6, where it caused a major problem, when we introduced that later
<apritzel>
macromorgan: tokyovigilante, acmeplus: what are the plans for the .dts submission? Now is a good time: if we can get this reviewed before the end of April, it has good chances to go into v6.10
<apritzel>
drop everything we don't have a binding for (graphics, Mali, video, audio)
<apritzel>
macromorgan: regarding USB: it is quite common for many boards to have separate GPIO controlled regulators (voltage switches, really) for USB VBUS
<tokyovigilante>
apritzel: sure, have been thinking about getting a minimum DTS together, will try to do that in the next day or so
<apritzel>
for peripheral mode you want that turned off, also by default it would be the sink of the power supply, not a source
<apritzel>
tokyovigilante: great, thanks! Expect two or three rounds of submissions, a few days apart
<tokyovigilante>
Should we have a separate one for the RG35xx-plain? (I don't have that specific one), but there are now a base model, the -plus that adds Wifi/BT, and the -H which is a different form-factor, and adds a second USB and analog sticks
<apritzel>
so don't bother too much getting everything *perfect* on the first run, you will need to fix things anyway
<tokyovigilante>
Will do, have seen a few go in recently so sort-of familiary with the process now
<apritzel>
yes, it looks like there should be a rg35xx_2024.dts, which is included by the the other two
<apritzel>
even if this new one is not a perfect subset: we can delete or overwrite nodes or properties in the other two as well
<tokyovigilante>
makes sense, will just have to guess for the -2024 unless macromorgan has one, I don't think even if I order one now it will be here in time, have the -H and -Plus to hand though.
<apritzel>
look at sun50i-h6-pine-h64-model-b.dts for an example
<tokyovigilante>
cool
<macromorgan>
let me post what I have right now... you want to take the lead tokyo? Otherwise I can (note I am working off the H, not the plus, but ADC aside it should be almost identical
<apritzel>
macromorgan: which ADC is that? GPADC or LRADC? You can also leave that part of for now if that's not ready
<macromorgan>
I need to hook up the GPIOs to the USB/USB regulator, and remove the nmi interrupt stuff. I was also hoping to sort out all the regulator bits before I upstreamed it, so there's a lot of /* test */ that still needs to be defined or removed.
<macromorgan>
CPU is the only regulator that I take for granted currently, all the other ones were figured out "the hard way"
<macromorgan>
but if it doesn't say /* test */ it means I've already confirmed through testing that the value is correct
<Jookia>
i sent about a years of backlogged patches to u-boot today. sorry reviewers :)
Robot_ has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.2.2]
Daanct12 has joined #linux-sunxi
apritzel has joined #linux-sunxi
chewitt has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
<apritzel>
macromorgan: I think the boost regulator node name must be just "boost", not "reg-boost". The alias name can be anything, but the actual node name has to match the name in the driver
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
dsimic is now known as Guest826
dsimic has joined #linux-sunxi
electricworry_ has quit [Remote host closed the connection]
Guest826 has quit [Ping timeout: 480 seconds]
<apritzel>
Jookia: which reviewers? There seem to be almost no people caring about reviewing U-Boot patches in the last months :-( If you know people that would care, please CC: and poke them, we can use any help we can get!
Nemo_bis has quit [Remote host closed the connection]
Nemo_bis has joined #linux-sunxi
bauen1 has joined #linux-sunxi
Schimsalabim has quit [Read error: No route to host]
Schimsalabim has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
<macromorgan>
Jookia: That's nothing, I've been meaning to resubmit a v2 version of a patch for over 2 years now dealing with UBIFS and slc-emulation. I'm probably the last madlad there is caring about mainline on my PocketCHIP
<apritzel>
macromorgan: that's interesting. I stumbled upon this pad conntrol in the manual as well, but I think it's unrelated, since it seems to be an *output*?
<apritzel>
so the RTC can signal its interrupt condition on this pad/pin, and this actually wakes up the PMIC, for instance?
<apritzel>
but you said it works with the mainline driver?
<apritzel>
I played with the NMI registers in U-Boot, and managed to trigger an IRQ (probably due to changing the trigger type), and I could clear it through the status register, so that seems fine to me
<apritzel>
I haven't checked whether it's forwarded to the GIC, though
KREYREN_oftc has joined #linux-sunxi
<macromorgan>
I'm just trying to figure out what the heck that even does. Turns out I know a lot less about RAM than I thought I did...
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
diego71 has quit [Ping timeout: 480 seconds]
diego71 has joined #linux-sunxi
acmeplus has joined #linux-sunxi
<acmeplus>
tokyovigilante: I received a 2024 the other day, so will check the DTS and post the stock one for comparison. I assume it's 99% the plus without wifi/bt, but most likely battery is different too
<acmeplus>
And apparently the RG28XX is going to be very similar too
<apritzel>
if we are not sure about the RG35xx-2024, we could leave that out, for the initial post. How each DTB is compiled from what source files can change internally anytime, without breaking something. We can easily add support later.
KREYREN_oftc has quit [Remote host closed the connection]
Robot_ has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
<macromorgan>
while it will require working on all 3 (which I eventually planned to do, just chose the H model as my primary target for bringup) I'd be shocked if the difference wasn't missing wifi for the 2024 model and missing adc joysticks for the H model
<macromorgan>
tiny chance there could also be a difference with the audio output path as well as some button layout
vagrantc has joined #linux-sunxi
<macromorgan>
hmm... trying to figure out the right way to plumb the GPIOs for the USB host port. So I've got 1 GPIO that turns on a 5v regulator for the host port, 1 GPIO that seems to power the USB controller on the SoC (wired into the power domain?), and 1 GPIO that detects whether or not a device is plugged in.
<Jookia>
aperezdc: you reviewers :) though i am dropping some reviewed-by on the list
warpme has joined #linux-sunxi
<Jookia>
oops
<Jookia>
i tabbed the wrong person
<Jookia>
apritzel: ^
<Jookia>
I'm not too sure how much reviewed-by/tested-by is going to help get patches merged but I feel bad not tagging patches with those
<tokyovigilante>
oh nice, thanks acmeplus. Good to see they are hopefully basing a few devices around the H700 for consistency
warpme has quit []
<Jookia>
i have to admit, using b4 for patches has turned my intense hatred of mailing lists in to a little bit of enjoyment
<Jookia>
btw the 'post patches even if they don't get merged, other people can use them' approach is why i'm doing it at this point
<Jookia>
no pressure on merging my amazing patches :)
<dok>
Jookia: you're working with sunxi devices?
<Jookia>
dok: yes at the moment :(
<Jookia>
novena stuff is still on my backlog
<Jookia>
what about you?
<dok>
trying to dust off my patchset to support sunxi a64 in barebox
<dok>
currently in the rabbit hole of also adding support for H6
<dok>
respectively pine64 and orange pi board
wingrime1 has joined #linux-sunxi
<Jookia>
oh cool! i'd like more sunxi in barebox
<dok>
Jookia: was novena something related to a stm SoC ?
<Jookia>
oh! i'm confusing you with someone else
<Jookia>
ok i remember you now
<dok>
its alright
<Jookia>
the t113 might go well with barebox, not sure
<Jookia>
it's a nice chip
<dok>
is novena the laptop thing on crowdsupply ?
wingrime-ww has quit [Ping timeout: 480 seconds]
<Jookia>
yeah, it's an old piece of hardware i want to get working again and mainlined
<apritzel>
Jookia: just wanted to avoid disappointment by stating that U-Boot patches are severely review-limited
<Jookia>
apritzel: yeah i understand :)
ftg has quit [Read error: Connection reset by peer]
<Jookia>
without DMA usb gadget is taking 2 minutes to upload a 7 megabyte file to RAM. is this normal?
<Jookia>
that's 60KiB/s :(
<Jookia>
ok, fastboot actually works really fast. but bootm breaks. hmm
<Jookia>
(is that why they call it fastboot?)
vagrantc has quit [Quit: leaving]
<apritzel>
Jookia: there is surely something fishy with the 60 KiB/s. With PIO you would expect something in the ballpark of the FEL upload speed, which is typically about 500 KiB/s (differs per SoC)
<Jookia>
fastboot manages to upload 7MB in 0.7 seconds
<apritzel>
what's the other method, exactly?
<Jookia>
dfu
<apritzel>
ah, have you tried ums or the Ethernet gadget?
<Jookia>
ums won't work for this, Ethernet gadget crashes