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*
specing_ has joined #linux-sunxi
specing has quit [Ping timeout: 268 seconds]
specing_ is now known as specing
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
warpme_ has quit [Quit: Connection closed for inactivity]
apritzel has quit [Ping timeout: 260 seconds]
Mangy_Dog has quit [Ping timeout: 252 seconds]
elros1 has quit [Remote host closed the connection]
jstefanop has quit [Remote host closed the connection]
jstefanop has joined #linux-sunxi
jstefanop has quit [Ping timeout: 265 seconds]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
jstefanop has joined #linux-sunxi
victhor has quit [Ping timeout: 240 seconds]
jstefanop has quit [Ping timeout: 252 seconds]
<tuxd3v> hello,
<tuxd3v> the driver sun6i_csi can be used by allwiner H3 Soc?
buzzmarshall has quit [Remote host closed the connection]
tuxd3v has quit [Read error: Connection reset by peer]
tuxd3v_ has joined #linux-sunxi
ganbold has quit [Ping timeout: 252 seconds]
ganbold has joined #linux-sunxi
tuxd3v_ has quit [Quit: Leaving]
ganbold has quit [Ping timeout: 240 seconds]
tuxd3v has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
camus is now known as kaspter
ganbold has joined #linux-sunxi
pdp7 has quit [Excess Flood]
pdp7 has joined #linux-sunxi
<tuxd3v> the driver sun6i_csi should be used by allwiner H3 Soc?
<smaeul> apritzel: BROM adds some delays that may be important. starting at 0xa90c, you have 1/disable BGR, 2/enable BGR, 3/disable PHY, 4/enable PHY, 5/???, 6/wrapper w/USBPHY2 SIDDQ @ 0xaa54
<smaeul> apritzel: from the SIDDQ setup, it looks like you probably need the whole PHY reference, not just the gates/resets
<smaeul> oh, the fifth function (0xaa0c) is non-ISCR PHY setup. the ISCR bits start at 0x9bf4, but those may not be interesting
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
kaspter has quit [Ping timeout: 252 seconds]
kaspter has joined #linux-sunxi
reinforce has joined #linux-sunxi
cmeerw has joined #linux-sunxi
apritzel has joined #linux-sunxi
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
indy has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]
apritzel has quit [Ping timeout: 240 seconds]
<mripard> tuxd3v: it can be used yes
<gediz0x539> ndufresne: hi, what's the minimum viable kernel version to use cedrus with current improves on gstreamer? 5.11?
<gediz0x539> s/improves/improvements/
<plaes> IIRC even 5.11 needed one extra patch
<plaes> commit 45f6f5d1d3630219484d7a87833152047ea67fe2
vagrantc has quit [Quit: leaving]
<gediz0x539> plaes: in which tree is this commit?
<gediz0x539> i couldn't find it
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
apritzel has joined #linux-sunxi
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
tnovotny has joined #linux-sunxi
<gediz0x539> plaes: thanks
warpme_ has joined #linux-sunxi
<plaes> hash I posted earlier was commit from my own 5.11 branch
<gediz0x539> I've even looked at gstreamer commits to find that :)
apritzel has quit [Ping timeout: 246 seconds]
<gediz0x539> so it's better to use 5.11.6 at least, I assume
gediz539 has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 240 seconds]
uis_ has joined #linux-sunxi
uis has quit [Ping timeout: 240 seconds]
slapin has quit [Quit: Lost terminal]
montjoie has quit [Ping timeout: 240 seconds]
montjoie has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
kaspter has quit [Ping timeout: 268 seconds]
kaspter has joined #linux-sunxi
danqo has quit [Quit: Idle for 30+ days]
indy has quit [Ping timeout: 240 seconds]
indy has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 268 seconds]
camus is now known as kaspter
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
camus is now known as kaspter
jo0nas has quit [Read error: Connection reset by peer]
jo0nas has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
Mangy_Dog has quit [Changing host]
Mangy_Dog has joined #linux-sunxi
jstefanop has joined #linux-sunxi
victhor has joined #linux-sunxi
jstefanop has quit [Ping timeout: 240 seconds]
lkcl has quit [Quit: BNC by ##bnc4you]
lkcl has joined #linux-sunxi
indy has quit [Ping timeout: 260 seconds]
specing_ has joined #linux-sunxi
specing has quit [Ping timeout: 240 seconds]
specing_ is now known as specing
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 265 seconds]
apritzel has joined #linux-sunxi
lucascastro has quit [Ping timeout: 240 seconds]
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #linux-sunxi
indy has joined #linux-sunxi
<ndufresne> gediz539: atm the situation is that for 1.18 you need 5.9 or less, and for gstreamer master (upcoming 1.20) it will be 5.11 and more for H264 decode
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
<ndufresne> for VP8, we'll see the timing, but 1.20 might be set to 5.13 (the final API is lending there)
<ndufresne> mpeg2 made it final to 5.14, just few days late for 5.13
luke-jr has joined #linux-sunxi
<ndufresne> HEVC and VP9 are pending, but upstream work is progressing well
<ndufresne> gediz539: note that with 1.20 + 5.11+, you get much better performance, lower CPU utilisation, better throughput
indy has quit [Ping timeout: 252 seconds]
<gediz539> ndufresne: actually i was thinking about 1.20 + 5.11+ scenario. it makes it even clear for me to hear this from you. thanks a lot.
gaston1980 has joined #linux-sunxi
tnovotny has quit [Read error: Connection reset by peer]
tnovotny has joined #linux-sunxi
indy has joined #linux-sunxi
elros1 has joined #linux-sunxi
Net147 has quit [Ping timeout: 252 seconds]
Net147 has joined #linux-sunxi
jstefanop has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
choozy has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
cmeerw has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
vagrantc has joined #linux-sunxi
indy has quit [Ping timeout: 240 seconds]
specing has quit [Ping timeout: 260 seconds]
indy has joined #linux-sunxi
indy has quit [Ping timeout: 240 seconds]
indy has joined #linux-sunxi
indy has quit [Excess Flood]
indy has joined #linux-sunxi
lucascastro has joined #linux-sunxi
indy has quit [Excess Flood]
indy has joined #linux-sunxi
<vagrantc> for crust-firmware, can the pine64-lts use the pine64_plus target, or is it different enough to warrant it's own config?
prefixcactus has quit [Ping timeout: 240 seconds]
<jernej> I think it's safe
gsz has joined #linux-sunxi
<apritzel> vagrantc: the pine64_plus_defconfig just says that it has an AXP, which is true for both
<vagrantc> hah, didn't realize those configs were so short :)
<tuxd3v> mripard, many thanks :)
specing has joined #linux-sunxi
Jin^eLD has joined #linux-sunxi
<Jin^eLD> hi, does anyone happen to have a device tree for the old cubietruck to enable spi? I have pretty much zero experience with lower level/hardware stuff, so if anyone got his spi going with mainline and has the dts around I'd be super greatful :>
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<vagrantc> if you're not running a linux kernel with the patches for crust and you've got crust loaded ... will terrible things happen? or will crust just not work?
<vagrantc> pmic and clock problems?
netlynx has quit [Ping timeout: 265 seconds]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
ats_ has joined #linux-sunxi
atsampson has quit [Ping timeout: 250 seconds]
bauen1 has quit [Remote host closed the connection]
<apritzel> vagrantc: that setup works fine, and TF-A already talks to crust
<apritzel> vagrantc: you just won't get some more advanced features atm
kaspter has quit [Ping timeout: 240 seconds]
jernej has quit [Remote host closed the connection]
kaspter has joined #linux-sunxi
<apritzel> Jin^eLD: SPI for a SPI flash or to control some SPI device, possibly from userland?
<Jin^eLD> apritzel: oh, no flash, adxl345 accelerometer, and indeed needed in userland
<apritzel> Jin^eLD: with spidev?
<Jin^eLD> I am using the cubietruck with klipper 3d printing firmware and it has a resonance compensation feature which I wanted to try :)
<Jin^eLD> yes, I think it should work with spidev
<apritzel> Jin^eLD: look at mainline's sun7i-a20-bananapi.dts (and others), that enables the SPI port
<Jin^eLD> but I understand that I need to configure the pins on the CN8 port correctly in the device tree
bauen1 has joined #linux-sunxi
<Jin^eLD> hmm ok let me see the bananathing, the sun7i-a20-pcduino3.dts did not really work out
<apritzel> which pins are you using?
* ElBarto should have a look at crust for FreeBSD :)
<apritzel> Jin^eLD: SPI0, 1 and 2 have two alternative pin sets each on the A20
<Jin^eLD> 1, 2, 9, 10, 11, 12
<apritzel> Jin^eLD: our wiki (http://linux-sunxi.org/Cubietech_Cubietruck#Expansion_Ports) tells me that's SPI0 portB
<vagrantc> apritzel: thanks!
jernej has joined #linux-sunxi
<Jin^eLD> apritzel: ah... so I should be looking for some spi*_pb_pins?
<apritzel> Jin^eLD: weird, that doesn't match up with the dtsi, let me double check
<apritzel> try the spi2_pb_pins and friends
<apritzel> and it seems to SPI2
<Jin^eLD> so everything like in the sun7i-a20-pcduino3.dts from the wiki, but with spi2_pb_pins instead?
<apritzel> Jin^eLD: seems like sun7i-a20-hummingbird.dts has exactly what you need
<Jin^eLD> looking at it
<Jin^eLD> it has less than I thought was needed
<Jin^eLD> let me just try :)
<apritzel> it seems like the Cubietruck exposes *both* SPI2 pin sets, the PC one at pins 5-8, and the PB one at pins 9-12
<apritzel> Jin^eLD: the SPI0 naming on the connector is a bit confusing, maybe it means "the first SPI port on the Cubietruck"?
<Jin^eLD> I honestly have no idea, I looked at the image in the first link and also in the wiki and then a friend of mine told me what pins on the adxl go to which spi pin since I honestly have not the slightest clue about hardware
<Jin^eLD> once the adxl driver did not actually do anything I realized spi is not enabled by default :) that's how I got to the dts thing
<Jin^eLD> but of course trying the patch from the wiki for another board was a bit too naive and optimstic
<vagrantc> apritzel: does suspend happen to be one of those advanced features?
hlauer has joined #linux-sunxi
<apritzel> vagrantc: haven't tried that, there is some suspend support in TF-A, smaeul should be able to answer that
<vagrantc> working on integrating into debian's u-boot packages (although someone else already packaged crust) ... and also packaging crust for guix
<apritzel> Jin^eLD: seems like you need to describe the adxl in the DT as well, compare the example in Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
<Jin^eLD> oh
<apritzel> Jin^eLD: spi0 is spi2 in your case, and you need to add this pinctrl property as well
<apritzel> Jin^eLD: so like the SPI node from hummingbird, with an accelerometer subnode from the example
<Jin^eLD> the pinctrl is just as in the hummingbird? that's what I have so far, will now try to add the accel thing https://paste.ee/p/3we0y
<apritzel> yes, you need to marry the Allwinner SPI controller driver to your accelerator driver somehow
mnemoc has quit [Ping timeout: 245 seconds]
menomc has joined #linux-sunxi
jernej has quit [Ping timeout: 250 seconds]
<apritzel> and you do exactly that by placing the adxl subnode inside the SPI node
elros1 has quit [Read error: Connection reset by peer]
<apritzel> vagrantc: suspend is typically not the problem, btw, it's resuming that is tricky :-D
buzzmarshall has joined #linux-sunxi
<Jin^eLD> apritzel: do I need the includes from the example as well?
<apritzel> Jin^eLD: those should be already in
<vagrantc> apritzel: yes, i suppose i do need *both* to work well. :)
<Jin^eLD> does this make any sense? https://paste.ee/p/6IEeK I really have no idea what I am doing there
<apritzel> Jin^eLD: somewhat, I'd remove the two interrupt properties for now
<apritzel> Jin^eLD: do you have an extra interrupt line coming from the adxl to the connector?
<apritzel> (in addition to the four SPI pins)
<Jin^eLD> no, only the spi pins
<Jin^eLD> ok so getting rid of the interrupts
<Jin^eLD> compiling...
<apritzel> yes, otherwise looks good, just hope that the adxl driver doesn't depend on interrupts
random_yanek has quit [*.net *.split]
lvrp16 has quit [*.net *.split]
fl_0 has quit [*.net *.split]
zhovner has quit [*.net *.split]
NekoMay has quit [*.net *.split]
libv has quit [*.net *.split]
arnd has quit [*.net *.split]
junak[m] has quit [*.net *.split]
alexxy has quit [*.net *.split]
<apritzel> (doesn't look like it)
arnd has joined #linux-sunxi
tuxillo has quit [Ping timeout: 240 seconds]
tuxillo has joined #linux-sunxi
<Jin^eLD> still compiling :>
junak[m] has joined #linux-sunxi
lvrp16 has joined #linux-sunxi
NekoMay has joined #linux-sunxi
fl_0 has joined #linux-sunxi
libv has joined #linux-sunxi
alexxy has joined #linux-sunxi
zhovner has joined #linux-sunxi
<apritzel> what are you compiling? the kernel?
uis_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<Jin^eLD> yes
<apritzel> "make dtbs" is all you need ;-)
<Jin^eLD> I know it can work with overlays somehow and what not
uis has joined #linux-sunxi
<Jin^eLD> but its really quicker for me to update the patch in my yocto recipe and rebuild the kernel ;)
thefloweringash has quit [Ping timeout: 246 seconds]
fevv8[m] has quit [Ping timeout: 246 seconds]
random_yanek has joined #linux-sunxi
davidebeatrici has quit [Ping timeout: 245 seconds]
JuniorJPDJ has quit [Ping timeout: 245 seconds]
MartijnBraam has quit [Ping timeout: 258 seconds]
z3ntu has quit [Ping timeout: 258 seconds]
solderfumes[m] has quit [Ping timeout: 248 seconds]
kayterina has quit [Ping timeout: 248 seconds]
Ke has quit [Ping timeout: 245 seconds]
Jeremy_Rand_DT[m has quit [Ping timeout: 245 seconds]
psydruid[m] has quit [Ping timeout: 245 seconds]
Avamander[m]1 has quit [Ping timeout: 246 seconds]
Tooniis has quit [Ping timeout: 245 seconds]
junak[m] has quit [Ping timeout: 276 seconds]
insep_ has quit [Ping timeout: 248 seconds]
<Jin^eLD> apritzel: does not look like it worked :(
bauen1 has quit [Read error: Connection reset by peer]
<Jin^eLD> modprobe does not print anything in dmesg (driver should report something when it finds the chip) and also no new /dev/input
jernej has joined #linux-sunxi
<Jin^eLD> decompiled the dtb, seems my changes are in there
<apritzel> Jin^eLD: not even an error message? did you grep for "spi" to see if that part works?
<Jin^eLD> dmesg | grep spi gives nothing at all
<Jin^eLD> spi is enabled in the kernel
<apritzel> what about /sys/bus/spi?
<Jin^eLD> hmm
<Jin^eLD> devices - empty, but drivers shows adxl34x and spidev
<apritzel> do you have the Allwinner SPI driver compiled in?
<apritzel> spi-sun4i
<Jin^eLD> CONFIG_SPI_SUN4I=y
<Jin^eLD> CONFIG_SPI_SUN6I=y
<Jin^eLD> so that'd be a yes
<Jin^eLD> coming from /proc/config.gz to eliminate possible configuration messup
<Jin^eLD> so thats in for sure
<Jin^eLD> also have CONFIG_SPI_SPIDEV=y
<Jin^eLD> do I perhaps still need those interrupt thingies from the documentation?
solderfumes[m] has joined #linux-sunxi
Jeremy_Rand_DT[m has joined #linux-sunxi
davidebeatrici has joined #linux-sunxi
<apritzel> the binding says "required", but I don't the driver ever asking for an IRQ
<apritzel> don't see*
<Jin^eLD> hmm
<Jin^eLD> must be something else then...
MartijnBraam has joined #linux-sunxi
z3ntu has joined #linux-sunxi
<apritzel> I think the adxl driver is fine, it's more the sunxi part that's somehow not working
<Jin^eLD> but spi in generall is kind of supposed to work on the sunxi?
bauen1 has joined #linux-sunxi
fevv8[m] has joined #linux-sunxi
thefloweringash has joined #linux-sunxi
<apritzel> it should, the fact that some board .dts files enable that would be proof, I guess
<Jin^eLD> sounds like I'm screwed then :P
Avamander[m]1 has joined #linux-sunxi
<Jin^eLD> apritzel: any ideas what else I could try there?
solderfumes[m] has quit [Ping timeout: 245 seconds]
MartijnBraam has quit [Ping timeout: 246 seconds]
Jeremy_Rand_DT[m has quit [Ping timeout: 245 seconds]
Avamander[m]1 has quit [Ping timeout: 245 seconds]
fevv8[m] has quit [Ping timeout: 245 seconds]
davidebeatrici has quit [Ping timeout: 258 seconds]
bauen1 has quit [Quit: Lost terminal]
z3ntu has quit [Ping timeout: 245 seconds]
thefloweringash has quit [Ping timeout: 258 seconds]
<apritzel> it's odd, the SPI driver should load anyway, and at least complain if something is missing or wrong
<Jin^eLD> in this case I must still be missing something..
kayterina has joined #linux-sunxi
hlauer has quit [Ping timeout: 240 seconds]
JuniorJPDJ has joined #linux-sunxi
psydruid[m] has joined #linux-sunxi
bauen1 has joined #linux-sunxi
Tooniis has joined #linux-sunxi
choozy has joined #linux-sunxi
Ke has joined #linux-sunxi
junak[m] has joined #linux-sunxi
insep_ has joined #linux-sunxi
solderfumes[m] has joined #linux-sunxi
Jeremy_Rand_DT[m has joined #linux-sunxi
MartijnBraam has joined #linux-sunxi
Avamander[m]1 has joined #linux-sunxi
fevv8[m] has joined #linux-sunxi
thefloweringash has joined #linux-sunxi
davidebeatrici has joined #linux-sunxi
gsz has quit [Ping timeout: 240 seconds]
z3ntu has joined #linux-sunxi
reinforce has joined #linux-sunxi
<tuxillo> hi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
reinforce has quit [Client Quit]
cmeerw has quit [Ping timeout: 258 seconds]
apritzel has quit [Ping timeout: 246 seconds]
black_ink_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
black_ink has joined #linux-sunxi
<smaeul> vagrantc: boot/shutdown should work without any Linux patches. suspend to/resume from "deep" mem sleep will not. s2idle will still work, but "deep" the default option for /sys/power/mem_sleep if it is available
<smaeul> this is assuming you have CONFIG_SUN6I_MSGBOX enabled/loaded. otherwise, shutdown/reboot will be broken
<smaeul> vagrantc: defconfigs are pretty simple. if you send me a list of boards, I can add them (or you can open an issue/PR)
<vagrantc> smaeul: many thanks!
<smaeul> mripard: it seems that protected-clocks will not be accepted. do you have a suggestion on how to move forward? different binding? CLK_IS_CRITICAL in CCU driver? add hwspinlocks to CCU driver and have the CPUs fight over the clock gate?
<smaeul> vagrantc: if you are adding patches, or just curious, this is all you need for working suspend/resume: https://github.com/crust-firmware/linux/commits/crust-minimal (and the irqchip patches are merged for v5.13)
<vagrantc> it's a bit difficult to get patches into debian that haven't at least landed in linux-next, but if they're small enough i can try
<smaeul> yeah, that makes sense. the clock changes have been sitting out there for a couple of years, and are the only remaining blocker, so hopefully we can figure out a solution
<smaeul> for R_TWD, another option would be to remove it from the CCU driver entirely -- since it is secure-only, Linux can never use it anyway
kaspter has quit [Ping timeout: 252 seconds]
camus has joined #linux-sunxi
camus is now known as kaspter
ats_ is now known as ats
gaston1980 has quit [Quit: Konversation terminated!]
gaston1980 has joined #linux-sunxi