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
diego71_ has quit [Read error: Connection reset by peer]
diego71 has joined #linux-sunxi
cmeerw has joined #linux-sunxi
cmeerw has quit [Ping timeout: 480 seconds]
gediz0x539 has quit [Quit: Leaving]
gediz0x539 has joined #linux-sunxi
<gediz0x539> megi: hey :) do you remember the gstreamer command you have used in this video? https://www.youtube.com/watch?v=dHOgVmxH_dA
<megi> it was playbin 3 + kmssink with plane/connector id selected to the HDMI output
<megi> gst-play-1.0 --use-playbin3 xx3.mkv --videosink="queue ! kmssink connector-id=52 palne-id=42 plane-properties=s,zpos=1
<megi> + some kernel patch to disable DSI-0 output, because kmssink had some issue outputing to the correct plane or something like that
<megi> and I didn't really felt like recompiling gst plugins to fix that
vagrantc has quit [Quit: leaving]
warpme_ has joined #linux-sunxi
tnovotny has joined #linux-sunxi
<gediz0x539> megi: thank you so much
gediz0x539 has quit [Remote host closed the connection]
gediz0x539 has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 480 seconds]
prefixcactus has joined #linux-sunxi
linusw has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
<apritzel> ah, hi linusw, do you have any information on the cw1200 Wifi chip?
gediz0x539 has joined #linux-sunxi
warpme_ has quit [Quit: Connection closed for inactivity]
Mangy_Dog has quit [Ping timeout: 481 seconds]
Mangy_Dog has joined #linux-sunxi
qCactus has joined #linux-sunxi
prefixcactus has quit [Ping timeout: 480 seconds]
warpme_ has joined #linux-sunxi
ftg has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
qCactus has quit [Ping timeout: 480 seconds]
<linusw> a bit in my head but sadly no datasheet :(
<linusw> I will check some old mails.
<linusw> apritzel: what I know for sure is that the team making CW1200 was based in Greater Noida, India, and taken over by Mediatek in July 2013.
<linusw> What I also know is that we had a hard time enabling it even on the reference designs because the CW1200 requires an external clock source, no internal clock provided.
<linusw> In our case that clock came from the Bluetooth chipset which was lacking a driver, so we would have to fix that driver first to get this driver working.
<apritzel> linusw: thanks! Do you know of other related chipsets? I think arnd found some other driver in mainline that looks similar too?
gediz0x539 has quit [Remote host closed the connection]
<arnd> linusw: the driver that I found is drivers/staging/wfx/, which is for the silicon labs version of the hardware and actively maintained by one of their developers (Jérôme Pouiller <jerome.pouiller@silabs.com>)
<arnd> linusw: any chance you confused mtk and silabs, or that mtk sold it on afterwards?
<arnd> (trying to construct a family tree of who licensed or sold the IP to whom)
<arnd> the silabs copyright lists "2017-2020", so maybe that is when they got it from mtk
<arnd> silabs definitely have the firmware sources and are modifying them, but maybe every licensee has those
<linusw> arnd: I am certain it was Mediatek back then but no idea what happened after that.
<arnd> another plausible route would be that Energy Micro was already a licensee if ST-Ericssons wifi before this got acquired by silabs
<arnd> silabs also acquired bluegiga, which sold another sdio bluetooth+wireless module, but that one apparently used drivers/staging/csr/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade7615de0643a9da628688e661e08148cd7c463
<arnd> so wf111==csr, but wf200==stericsson,
<arnd> and no idea what wf121 was
<arnd> csr's wireless stack later went to Samsung
<arnd> the rest of csr went to Qualcomm
Mangy_Dog has quit [Ping timeout: 480 seconds]
choozy has joined #linux-sunxi
gediz0x539 has joined #linux-sunxi
gediz0x539 has quit [Quit: Leaving]
gediz0x539 has joined #linux-sunxi
qCactus has joined #linux-sunxi
prefixcactus has quit [Ping timeout: 481 seconds]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<gediz0x539> i'm trying to make gstreamer work with cedrus on linux 5.13. both gst 1.18 and 1.19 use high CPU but 1.19 shows frames mostly green.
qCactus has quit [Read error: Connection reset by peer]
<gediz0x539> cedrus is probed successfully at startup.
<gediz0x539> SoC is A13 btw.
<gediz0x539> i also get some "v4l2slh264dec0: Unsupported bitdepth/chroma format" when i try to play a sample video with gst-launch
<gediz0x539> any recommendations?
Mangy_Dog has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
qCactus has joined #linux-sunxi
qCactus_ has joined #linux-sunxi
prefixcactus has quit [Ping timeout: 480 seconds]
qCactus has quit [Ping timeout: 480 seconds]
qCactus_ has quit [Ping timeout: 480 seconds]
tnovotny has quit []
<jernej> gediz0x539: A13 decodes in tiled NV12 format, not sure if this is supported by gstreamer already
<jernej> ndufresne ^
<ndufresne> try to set env GST_DEBUG=2, should give you a preceding error log with more precise info
cmeerw has joined #linux-sunxi
<ndufresne> gediz0x539: note that kmssink support is missing, so you can't direct display (buffers needs to be detiled on CPU, high CPU usage)
<ndufresne> if me (or someone else) can manage to make it work properly, patches are welcome of course
<ndufresne> there is also an interesting in adding some texelFetch driven detiler in libgstgl, but not sure the ancient GPU supports it or not
jemk_ has joined #linux-sunxi
jemk has quit [Read error: Connection reset by peer]
fcas has joined #linux-sunxi
<fcas> good afternoon everyone. I'm trying to add a Chip Select to SPI1 on device tree (sun8i-orangepi-pc-plus.dts) but I haven't been able to make it work until now, linux 5.4.69
<fcas> tried to use &spi1_pins{pins = "PA15", "PA16", "PA14", "PA13","PC3"; };
<fcas> PC3 should be CS1 for SPI1
<fcas> tried to make it simple too, using just &spi{ .... cs-gpios = <0>, <&pio 2 3 GPIO_ACTIVE_LOW>; //CS0, PC3 }
choozy has joined #linux-sunxi
hlauer has joined #linux-sunxi
warpme_ has quit [Quit: Connection closed for inactivity]
gsz has joined #linux-sunxi
<apritzel> fcas: this cs-gpios definitely does not work this way, you cannot mix internal CSs with GPIOs - the value must be all valid GPIO specifiers
Luke-Jr has quit [Ping timeout: 480 seconds]
<apritzel> fcas: I don't think that the H3 actually has an internal CS1, for either SPI0 or SPI1? PC3 is definitely SPI0_CS
<fcas> but my spi0 isn't enabled, I'm just using spi1
<fcas> and I read that cs-gpios=<0> is working, I can read my first device
<fcas> read and write to my first device on spi bus
<fcas> when I try to use the second one, I can see the MOSI and CLK working
<fcas> just the CS1 (PC3) doesnt work
<apritzel> I think there was an issue with external GPIOs used as chipselects in the driver?
<fcas> I even tried to use a setup from armbian ( https://forum.armbian.com/topic/4330-spi-gpio-chip-select-support/ ) and they do talk about this issue
<apritzel> ah, indeed this 0 in the cs-gpios list is a special trick for gpios (because it's never a valid phandle)
gsz has quit []
Luke-Jr has joined #linux-sunxi
<apritzel> fcas: you must not enumerate PC3 in the SPI pins property, by the way
<apritzel> because your line above won't work anyway, because it tries to switch to function "spi1", which is not defined for PC3
<apritzel> so from skimming over both the generic and sun6i SPI code, it looks like it should work, using cs-gpios, because this is handled by generic SPI code
<apritzel> just don't add PC3 to the spi pins, but just name it in cs-gpios
<apritzel> fcas: and keep an eye on kernel messages (dmesg) and /sys/kernel/debug/gpio, to see if the GPIO is configured correctly
<fcas> using <0>, <&pio 2 3 GPIO_ACTIVE_LOW> => decompiling dtb got cs-gpios = < 0x00 0x0a 0x00 0x0a 0x00 >;
<fcas> using cs_gpios = <&pio 0 13 GPIO_ACTIVE_LOW>, <&pio 2 3 GPIO_ACTIVE_LOW>; and decompiling got cs-gpios = <0x0a 0x00 0x0d 0x01 0x0a 0x02 0x03 0x01>;
<apritzel> looks alright, those angle brackets really only exist in the source
<apritzel> and only the first one is right, because PA13 is handled internally by the SPI controller, not as a GPIO (from Linux' POV)
<apritzel> fcas: are you sure the first decompilation is correct? should be: <0x00 0x0a 0x02 0x03 0x01>
fcas has quit [Quit: Page closed]
cmeerw has quit [Ping timeout: 480 seconds]
Luke-Jr has quit [Read error: Connection reset by peer]
choozy has quit [Remote host closed the connection]
Luke-Jr has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
jernej has quit [Remote host closed the connection]
jernej has joined #linux-sunxi