Turl 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
avph has quit [Ping timeout: 256 seconds]
akaizen has joined #linux-sunxi
mcan has quit [Ping timeout: 265 seconds]
mcan has joined #linux-sunxi
khuey__ is now known as khuey|away
uwe_ has quit [Ping timeout: 255 seconds]
uwe_ has joined #linux-sunxi
avph has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
akaizen has joined #linux-sunxi
<wens> ssvb: both referencing the same pin? in this case i think you should just have a single vbus regulator, and reference it for both phys
<wens> otherwise, theorectically you could end up where one regulator is on, and the other is off, and who knows what the state of the pin is actually
ninolein has quit [Ping timeout: 246 seconds]
ninolein has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
montjoie has quit [Ping timeout: 250 seconds]
montjoie has joined #linux-sunxi
naobsd has joined #linux-sunxi
T0mW has quit [Quit: Leaving]
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
Igorpec6 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
reinforce has joined #linux-sunxi
cubeast has joined #linux-sunxi
dlan has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
steev has quit [Ping timeout: 240 seconds]
FlorianH has joined #linux-sunxi
steev has joined #linux-sunxi
hipboi has joined #linux-sunxi
domidumont has joined #linux-sunxi
FlorianH has quit [Ping timeout: 240 seconds]
afaerber_ has joined #linux-sunxi
naobsd has quit [Ping timeout: 240 seconds]
afaerber has quit [Ping timeout: 246 seconds]
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
naobsd has joined #linux-sunxi
hipboi has quit []
lemonzest has joined #linux-sunxi
FlorianH has joined #linux-sunxi
_massi has joined #linux-sunxi
ddc has joined #linux-sunxi
<ddc> Hi everyone wondering if there is someone here who has some experience with CSI?
<grugly> I use to watch that tv show..
<grugly> gibbs and gabby.. I was always a fan of gabby..
<ddc> I'm trying to implement a driver using v4l2 media controller framework for sun4i (Camera Sensor Interface )
<grugly> but of course, I figure you are talking about something far more technical, and I've been drinking and am just trolling ;)
<ddc> grugly: lol
<grugly> and no, I've never.. and replys are generally slow around here.. kick back and idle for a while.. someone in the know might wake up at some stage..
<ddc> grugly:different time zone I guess
<grugly> irs is kinda slowweb...
<grugly> the buffer stays for a while, and people read it every now and then..
<grugly> look for the text amongst the parts and quits..
<grugly> irc even
<ddc> grugly: I know I'm not expecting a quick reply
<grugly> excellent :)
<grugly> I have whitelist perms on an irc server, and I see wpople all the time talk about whitelisting, but they don;t give usernames.. it's so silly..
<grugly> irc? I meant minecraft.. I watch on irc
<ddc> grugly: I would like to discuss some ideas and I thought irc maybe usefull for that
<NiteHawk> it is. if you get in touch with people, it's a rather direct and immediate way to communicate. the thing is you just can't expect folks to be "available" 24/7
<ddc> NiteHawk: I'm not expecting anything
<wens> grugly: that's ncis :p
<NiteHawk> ddc: i wasn't referring to you specifically, just talking in general
<wens> ddc: mainline?
<ddc> wens: yes
<wens> cool, was looking into it, but very low priority for me
<wens> iirc the controller is very simple
<wens> cameras on the other hand, not so simple
<wigyori> morning
<ddc> wens: I'm trying to mimic the OMAP 3 ISP structure. which seems to fit nicely with A33/A80 but not sun4i
<ddc> wens: I've some issues now in how to make the driver as univeral as possiple i.e works for all sunxi family
<wens> ddc: i think you should focus on the simplest implementation, like csi1 on A10/A20
<wens> then extend it for csi0
<wens> that was my plan anyway
<wens> the A33/A80 ones seem to have an extra mux, so the registers don't line up correctly
<ddc> unfortunately I only have CSI0 available in my dev board.
<wens> ah, well, csi1 is like a dumbed down csi0, no multiple channels
<ddc> The muxex can be part of the physical interface entity
<wens> what hardware do you have?
<wens> i would just focus on getting a simple soc_camera driver working with a single format first
<ddc> I've two custom boards with A20 and A33
<wens> and not overthink or over-engineer it from the beginning
<wens> do you also have a supported camera?
naobsd has quit [Quit: naobsd]
<ddc> wens: that is ok but I found that the media controller is more suited than the camera_soc framework
<ddc> I do have few OVs
<wens> ok, i'm familiar with neither :)
<ddc> wens:http://linuxtv.org/downloads/presentations/summit_jun_2010/20100614-v4l2_summit-media.pdf
<ddc> wens:http://processors.wiki.ti.com/index.php/Writing_V4L2_Media_Controller_Applications_on_Dm36x_Video_Capture
<wens> the user manual only mentions writing to memory
<wens> and we have no official docs for the video engine or ISP
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 260 seconds]
cnxsoft1 is now known as cnxsoft
<wens> imho media controller seems a bit overkill
<ddc> wens: I'm aware of that. but looking at the A10 user manual ISP FE can be linked to the CCM of the CSI and can source it is output to SRAM/DRAM
<ddc> wens: overkill why?
<wens> ah, wasn't aware of that. So you can use camera -> CSI -> DRAM, or camera -> CSI -> ISP -> DRAM
<ddc> I guess. And you can then implement the ISP as a seperate entinty and link to the pipeline
Net147 has quit [Ping timeout: 250 seconds]
<ddc> s/entinty/entity
<wens> about overkill, what i meant was media controller seems to want to solve dynamic discovery and configuration of the media related blocks
<wens> but with DT and relatively simple hardware, is there such a need for us?
meridion has joined #linux-sunxi
Net147 has joined #linux-sunxi
<wens> anyway, i just thought using soc_camera is easier if we don't have to support ISP
<ddc> You have a point if we only dealing with CSI1 but with CSI0(two pipeline) and other SOC which have more compicated bus interface then the story is different
<ddc> s/compicated/complicated
<grugly> but compicated is cute..
* grugly gives ddc a stuffed toy to play withj
<wens> by 2 pipeline you mean the ISP right?
<ddc> yes
Net147 has quit [Ping timeout: 240 seconds]
<wens> the manual doesn't even say which channel gets sent to the ISP lol
Net147 has joined #linux-sunxi
<wens> i'm out of ideas. this turned out to be more complicated than i thought
<ddc> Look at the ISP Mode register (INPUT_FMT)
<wens> doesn't say much, 9:8 bayer_seq, 0: input_fmt
<wens> A10 user manual v1.5 btw
<ddc> 0:Bayer Raw, 1:YUV422
<ddc> Which I guess can tell what channel to use
afaerber_ has quit [Quit: Verlassend]
<wens> or non-CCIR656 modes in CSI0 imply only 1 channel
Netlynx has joined #linux-sunxi
FR^2 has joined #linux-sunxi
<ddc> this is more confusing!
FlorianH has quit [Ping timeout: 250 seconds]
f15h has joined #linux-sunxi
<ddc> wens: is this only relevant to HawkView ISP
afaerber has joined #linux-sunxi
<meridion> I'm currently messing around with OTG on the Lime2, however after loading g_mass_storage successfully I am now trying to unload it
<meridion> which rmmod tells me I cannot do because the module is in use
<meridion> any suggestions?
<NiteHawk> does lsmod show anything wrt "Used by"?
<meridion> -2
<meridion> it says this for all loaded modules
<meridion> I did try loading the g_ether module while g_mass_storage was still loaded to see what would happen
<meridion> (no such device)
ddc has quit [Quit: Page closed]
<meridion> however, g_mass_storage seems to be still working fine as the machine it is connected to sees a mass storage device
<NiteHawk> zcat /proc/config.gz | grep MODULE_UNLOAD
<meridion> o wow.
<meridion> $ grep MODULE_UNLOAD .config
<meridion> # CONFIG_MODULE_UNLOAD is not set
<meridion> okay
<NiteHawk> see?
<meridion> I guess I would've like it to have said, function not implemented
<NiteHawk> i was suspecting your kernel doesn't support module unloading, which is what lsmod "-2" seems to point to. - e.g. https://forums.gentoo.org/viewtopic-t-951170-view-previous.html
<meridion> but that makes sense
<meridion> I also didn't know why it said -2
<meridion> anyway, thanks for the help, will be recompiling my kernel now
ricardocrudo has quit [Ping timeout: 264 seconds]
FR^2 has quit [Quit: Connection reset by peer]
f15h has quit [Quit: Leaving]
FlorianH has joined #linux-sunxi
rfugl has quit [Ping timeout: 264 seconds]
<rellla> yeah, allwinner-zh starred linux-sunxi/linux-sunxi
<NiteHawk> \o/
Igorpec6 has quit [Quit: Nettalk6 - www.ntalk.de]
paulk-collins has joined #linux-sunxi
FR^2 has joined #linux-sunxi
naobsd has joined #linux-sunxi
kaspter has joined #linux-sunxi
ssvb has quit [Ping timeout: 260 seconds]
cubeast has quit [Quit: Leaving]
kaspter has quit [Ping timeout: 252 seconds]
ssvb has joined #linux-sunxi
camh has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ricardocrudo has joined #linux-sunxi
Igorpec6 has joined #linux-sunxi
camh has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
cosm has joined #linux-sunxi
Igorpec6 has quit [Ping timeout: 264 seconds]
montjoie has quit [Ping timeout: 244 seconds]
montjoie has joined #linux-sunxi
slice has joined #linux-sunxi
kz1 has quit [Ping timeout: 240 seconds]
Igorpec6 has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
kz1 has joined #linux-sunxi
slice has quit []
engideavr_ has joined #linux-sunxi
<engideavr_> Hello, I have an Olimex A20 board and would like to ouput a clock to clk_out_a_pins_a , may I ask a question here ?
<engideavr_> Currently on a running Linux version 4.3.0-rc1-96427-g904c778-dirty, playing around with sun7i-a20-olinuxino-micro.dts but not much luck on results..
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
focus has quit [Remote host closed the connection]
focus has joined #linux-sunxi
marcin has quit [Remote host closed the connection]
marcin has joined #linux-sunxi
reinforce has joined #linux-sunxi
<wens> engideavr_: the clk needs a user to activate it
<wens> the pinctrl setting (which is handled by the driver core) only muxes the pin, it doesn't enable the clk
ncrmnt has joined #linux-sunxi
<engideavr_> wens: I have &clk_out_a { in the olimex dts and pinctrl-0 = <&clk_out_a_pins_a>; status = "okay"; just like the uart code, what am I missing ?
<wens> and what device is that supposed to be?
<wens> clk usage is not automatic, the device driver has to use it
<wens> say a device driver is expecting one clk, it will not touch the second one you added yourself to the dts
<wens> and the majority of clks on sunxi aren't devices, they're just clocks
<wens> so doing what you did does nothing really.
<engideavr_> So, I have somewhat to "open" the clk_out_a ?
ncrmnt has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<wens> right, so what do you want to use it for?
<engideavr_> Like opening an uart ?
<wens> clks aren't exported to userspace, you can't use them directly
<wens> they can only be referenced in the kernel by other clocks or devices
<engideavr_> Than, what is clk_out_a_pins_a for ?
<wens> well, technically any kernel code can
<wens> its for the ap6210 wifi+bt module on the cubietruck, which supports getting a 32.768 khz clock signal from the SoC
<wens> though we haven't hooked that up in the dts yet
<engideavr_> Regardless of the "device driver" it is a way to get a clock out, right ?
<wens> right
JohnDoe_71Rus has joined #linux-sunxi
<engideavr_> ok, so, basically, I need to have a decice driver that uses that clock and then magically it would go out of the relevant ping
<wens> but without a device driver telling it to turn on, and set the clock rate, by itself it won't do anything
<wens> yeah
<engideavr_> no problem to write s imple device driver, just trying to understand the logic
<engideavr_> ok, thanks, great, I will let you know how it goes :)
<wens> clk_out_a_pins_a is a pinmux setting, telling the pinctrl driver that you want that pin muxed to that function
<wens> which you hook up by adding pinctrl-0 = <&clk_out_a_pins_a>; in the device node that is supposed to be using it
<engideavr_> Yes, similar to uart, that is clear, what I was missing is the fact that nothing happens if nobody uises the clock...
<wens> well of course nothing would happen
<wens> it's by default off
<engideavr_> yes, thanks wens, really helpful !!!
vishnup has joined #linux-sunxi
_massi has quit [Ping timeout: 240 seconds]
engideavr has joined #linux-sunxi
engideavr_ has quit [Quit: Page closed]
paulk-collins has quit [Quit: Quitte]
cosm has quit [Ping timeout: 256 seconds]
FR^2 has quit [Quit: Connection reset by peer]
paulk-collins has joined #linux-sunxi
domidumont has quit [Read error: Connection reset by peer]
paulk-collins has quit [Remote host closed the connection]
paulk-collins has joined #linux-sunxi
paulk-collins has quit [Excess Flood]
paulk-collins has joined #linux-sunxi
ssvb has quit [Ping timeout: 246 seconds]
RSpliet has quit [Read error: Connection reset by peer]
RSpliet has joined #linux-sunxi
<meridion> NiteHawk: it's quite a bit later, but it works completely now, I can unload my gadgets, so thanks
RSpliet has quit [Ping timeout: 260 seconds]
<NiteHawk> meridion: great :) and you're welcome
RSpliet has joined #linux-sunxi
Nyuutwo has joined #linux-sunxi
RSpliet has quit [Ping timeout: 246 seconds]
RSpliet has joined #linux-sunxi
lemonzest has quit [Quit: Leaving]
lemonzest has joined #linux-sunxi
khuey|away is now known as khuey__
robogoat_ has quit [Ping timeout: 256 seconds]
robogoat has joined #linux-sunxi
Igorpec6 has quit [Ping timeout: 264 seconds]
vishnup has quit [Remote host closed the connection]
orly_owl has quit [Quit: leaving]
orly_owl has joined #linux-sunxi
robogoat has quit [Ping timeout: 250 seconds]
lemonzest has quit [Ping timeout: 252 seconds]
robogoat has joined #linux-sunxi
afaerber has quit [Quit: Verlassend]
lemonzest has joined #linux-sunxi
ssvb has joined #linux-sunxi
FlorianH has quit [Ping timeout: 256 seconds]
bonbons has joined #linux-sunxi
RSpliet has quit [Read error: Connection reset by peer]
RSpliet has joined #linux-sunxi
premoboss has joined #linux-sunxi
robogoat has quit [Ping timeout: 246 seconds]
robogoat has joined #linux-sunxi
ZbooNet has joined #linux-sunxi
ZbooNet has quit [Remote host closed the connection]
ZbooNet has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
khuey__ is now known as khuey|away
lemonzest has quit [Quit: Leaving]
philippe_fouquet has joined #linux-sunxi
ZbooNet is now known as staplr
premoboss has quit [Quit: Sto andando via]
staplr has quit [Quit: Leaving]
staplr has joined #linux-sunxi
staplr has quit [Client Quit]
staplr has joined #linux-sunxi
staplr has quit [Client Quit]
staplr has joined #linux-sunxi
philippe_fouquet has quit []
viccuad has joined #linux-sunxi
khuey|away is now known as khuey__
bonbons has quit [Quit: Leaving]
avph has quit [Ping timeout: 256 seconds]
ricardocrudo has quit [Ping timeout: 240 seconds]
RSpliet has quit [Read error: Connection reset by peer]
RSpliet has joined #linux-sunxi
Netlynx has quit [Quit: Leaving]
paulk-collins has quit [Quit: Quitte]
reinforce has quit [Quit: Leaving.]
RSpliet has quit [Read error: Connection reset by peer]
avph has joined #linux-sunxi
RSpliet has joined #linux-sunxi
avph has quit [Read error: Connection reset by peer]
avph has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
avph has quit [Read error: Connection reset by peer]
avph_ has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 260 seconds]
naobsd has quit [Quit: naobsd]
montjoie has quit [Ping timeout: 255 seconds]
montjoie has joined #linux-sunxi
robogoat has quit [Ping timeout: 272 seconds]
ricardocrudo has joined #linux-sunxi
robogoat has joined #linux-sunxi