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
hardfalcon has quit [Ping timeout: 256 seconds]
dc13ff has quit [Quit: Connection closed for inactivity]
LargePrime has quit [Ping timeout: 240 seconds]
LargePrime has joined #linux-sunxi
OnkelUlla has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9.1]
hardfalcon has joined #linux-sunxi
Putti has quit [Ping timeout: 260 seconds]
nuuuciano_ has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
dddddd has quit [Remote host closed the connection]
<wens> hitech95: what does the datasheet say for that bit?
nuuuciano has joined #linux-sunxi
<hitech95> My question was if that sould be marked as output instead of input because it isa an ADC so in codec output to soc.
hardfalcon has quit [Ping timeout: 276 seconds]
<wens> AFAIK the code was done assuming the codec is "integrated", thus assuming the viewpoint of the system, not the codec
<wens> but yeah, I think your argument makes sense
hardfalcon has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 256 seconds]
lurchi_ is now known as lurchi__
hitech95 has quit [Ping timeout: 268 seconds]
VargaD has quit [Ping timeout: 265 seconds]
VargaD has joined #linux-sunxi
pgreco has quit [Ping timeout: 264 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
adj__ has joined #linux-sunxi
adj_ has quit [Ping timeout: 268 seconds]
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
megi has quit [Ping timeout: 260 seconds]
GrimKriegor has quit [Ping timeout: 264 seconds]
pgreco has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
GrimKriegor has joined #linux-sunxi
nots has quit [Quit: Page closed]
nuuuciano has quit [Ping timeout: 256 seconds]
hlauer has joined #linux-sunxi
droman0 has quit [Ping timeout: 256 seconds]
steev has quit [Ping timeout: 260 seconds]
narmstrong has quit [Ping timeout: 245 seconds]
Cir0X has quit [Ping timeout: 276 seconds]
ccaione has quit [Ping timeout: 260 seconds]
jeandet has quit [Ping timeout: 260 seconds]
zerotri has quit [Ping timeout: 276 seconds]
ullbeking has quit [Ping timeout: 256 seconds]
ojn has quit [Ping timeout: 256 seconds]
Tartarus has quit [Ping timeout: 260 seconds]
arnd has quit [Ping timeout: 256 seconds]
aliosa27_ has quit [Ping timeout: 276 seconds]
rexxster has joined #linux-sunxi
lvrp16 has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 256 seconds]
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
swiftgeek has quit [Remote host closed the connection]
TheSeven has quit [Ping timeout: 276 seconds]
fire219 has quit [Ping timeout: 264 seconds]
victhor has quit [Ping timeout: 256 seconds]
fire219 has joined #linux-sunxi
victhor has joined #linux-sunxi
IgorPec has joined #linux-sunxi
TheSeven has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
tllim has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
hlauer has quit [Ping timeout: 240 seconds]
paulk-gagarine has quit [Read error: Connection reset by peer]
narmstrong has joined #linux-sunxi
arete74 has joined #linux-sunxi
zerotri has joined #linux-sunxi
ullbeking has joined #linux-sunxi
ccaione has joined #linux-sunxi
jeandet has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
lvrp16 has joined #linux-sunxi
steev has joined #linux-sunxi
IgorPec has quit [Ping timeout: 256 seconds]
Tartarus has joined #linux-sunxi
droman0 has joined #linux-sunxi
montjoie has joined #linux-sunxi
Cir0X has joined #linux-sunxi
jeandet has quit [Ping timeout: 256 seconds]
zerotri has quit [Ping timeout: 256 seconds]
LargePrime has quit [Ping timeout: 260 seconds]
narmstrong has quit [Ping timeout: 256 seconds]
steev has quit [Ping timeout: 276 seconds]
lvrp16 has quit [Ping timeout: 276 seconds]
ccaione has quit [Ping timeout: 256 seconds]
Tartarus has quit [Ping timeout: 276 seconds]
ullbeking has quit [Ping timeout: 256 seconds]
droman0 has quit [Ping timeout: 276 seconds]
Cir0X has quit [Ping timeout: 260 seconds]
phdeswer has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 264 seconds]
leviathan has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
LargePrime has joined #linux-sunxi
ojn has joined #linux-sunxi
Tartarus has joined #linux-sunxi
ccaione has joined #linux-sunxi
zerotri has joined #linux-sunxi
Cir0X has joined #linux-sunxi
narmstrong has joined #linux-sunxi
arnd has joined #linux-sunxi
ojn has joined #linux-sunxi
ojn has quit [Changing host]
Tartarus has joined #linux-sunxi
Tartarus has quit [Changing host]
zerotri has joined #linux-sunxi
zerotri has quit [Changing host]
lvrp16 has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
ceng has quit [Ping timeout: 276 seconds]
ceng has joined #linux-sunxi
steev has joined #linux-sunxi
swiftgeek has joined #linux-sunxi
[TheBug] has quit [Ping timeout: 260 seconds]
jeandet has joined #linux-sunxi
ullbeking has joined #linux-sunxi
[TheBug] has joined #linux-sunxi
droman0 has joined #linux-sunxi
ernestask has joined #linux-sunxi
phdeswer has quit [Remote host closed the connection]
IgorPec has joined #linux-sunxi
phdeswer has joined #linux-sunxi
micken has quit [Ping timeout: 240 seconds]
paulliu has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 248 seconds]
hardfalcon has joined #linux-sunxi
f0xx has joined #linux-sunxi
micken has joined #linux-sunxi
chomwitt has joined #linux-sunxi
hlauer has joined #linux-sunxi
micken has quit [Ping timeout: 276 seconds]
aliosa27_ has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
fkluknav has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
BenG83 has quit [Ping timeout: 240 seconds]
hitech95 has joined #linux-sunxi
micken has joined #linux-sunxi
clemens3 has joined #linux-sunxi
phdeswer has quit [Remote host closed the connection]
paulk-gagarine has joined #linux-sunxi
<hitech95> wens, sorry but i had to to go to sleep here was 2:30AM. Anyway i'm working on this, added some more controls/routing i'll test it later: https://gist.github.com/hitech95/94b46bdb4cbd8d15b3d3966a8bc21105
tllim has quit [Read error: Connection reset by peer]
megi has joined #linux-sunxi
dddddd has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 276 seconds]
msimpson has joined #linux-sunxi
[PlayerOne] has joined #linux-sunxi
indy has quit [Remote host closed the connection]
iamfrankenstein has joined #linux-sunxi
indy has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 240 seconds]
fkluknav has quit [Ping timeout: 256 seconds]
gnufan has quit [Ping timeout: 240 seconds]
yann has joined #linux-sunxi
tom_nov has joined #linux-sunxi
phdeswer has joined #linux-sunxi
f0xx has quit [Ping timeout: 256 seconds]
msimpson has quit [Quit: Leaving]
iamfrankenstein has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
tuxillo has quit [Quit: leaving]
afaerber has quit [Quit: Leaving]
hardfalcon has quit [Ping timeout: 256 seconds]
hardfalcon has joined #linux-sunxi
GrimKriegor has quit [Ping timeout: 264 seconds]
iamfrankenstein has quit [Ping timeout: 255 seconds]
afaerber has joined #linux-sunxi
hitech95 has quit [Ping timeout: 255 seconds]
f0xx has joined #linux-sunxi
gnufan has joined #linux-sunxi
micken has quit [Ping timeout: 256 seconds]
micken has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
reinforce has joined #linux-sunxi
afaerber has joined #linux-sunxi
IgorPec has quit [Ping timeout: 256 seconds]
hardfalcon has quit [Quit: Leaving.]
hardfalcon has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 265 seconds]
hitech95 has joined #linux-sunxi
hardfalcon has joined #linux-sunxi
tuxillo has joined #linux-sunxi
<micken> anarsoul: is the arm core in 64bit mode after u-boot? I have never dealt with arm64
hardfalcon has quit [Ping timeout: 264 seconds]
<micken> in general will u-boot on aarch64 run a 32bit binary?
msimpson has joined #linux-sunxi
megi has quit [Ping timeout: 260 seconds]
hardfalcon has joined #linux-sunxi
jaganteki has joined #linux-sunxi
Nikolai has joined #linux-sunxi
<Nikolai> hi, has someone here has some kernel/uboot config at or maybe knows an image for the opi zero which can be used to flash the onboard spi from within linux or uboot?
<pmpp> hi Nikolai, maybe there https://github.com/hyphop/miZy-uboot
<Nikolai> thanks :), looks interesting, going to give it a try
AneoX_ has joined #linux-sunxi
jbrown has joined #linux-sunxi
AneoX has quit [Ping timeout: 276 seconds]
BenG83 has joined #linux-sunxi
IgorPec has joined #linux-sunxi
<hitech95> pmpp, i'm still tring to understand where is the i2c display code :( I looked for 2 days...
<pmpp> ?
<hitech95> pmpp, the uboot you linked. I would like to understand how the display is configured but I don't see anything inside...
<pmpp> i guess he targets 16x2 display
<hitech95> ssd1306: via i2c. it is a graphical display. But I have no idea on how he have done that!
<KotCzarny> ssd1306 is used by fbtft module
<KotCzarny> *using
<KotCzarny> so just check what it does
<hitech95> yup but that is uboot not kernel
<pmpp> from uboot i would target a 16x2 display it is very easy to handle
<pmpp> ssd1306 may need a font atlas
<hitech95> pmpp, i'm not into u-boot. I would like to do a splash screen to a EPD display. does you have an example for that 16x2? Just for reference?
<KotCzarny> splash screen is just few predefined i2c transfers
<KotCzarny> just hack it
<hitech95> KotCzarny, yup but I have no idea how uboot flow is. I have to create a command or what?
<KotCzarny> gotta run, bbl
<hitech95> yup i know how to drive them, but I have no idea how to hack into uboot.
<pmpp> uboot scripting is quite powerfull
<hitech95> you mean the .scr stuff? I worked on old mips ubbot. We have nothing similar on OpenWRT xD
<pmpp> dunno uboot scripting engine is open source, you have i2c with mizy patches, add i2c calls to script engine and you'll get things done i guess
<hitech95> pmpp, ok I had no idea of that!
<pmpp> but not sure if it would be usefull since time spent in uboot is quite short if not doing multiboot
<hitech95> multiboot?
<pmpp> yeah boot menu
<pmpp> eg choosing between armbian or h3droid ( sorry can't see anything else :p )
<pmpp> opizero and openwrt seems a bit too light for H2 potential
megi has joined #linux-sunxi
<hitech95> pmpp, The idea is to have a userspace app running on linux. The output of that app is on the EPD display. But I would like to have a splash when Uboot is working/updating. (Still an ideam first I have to make sure that the bpi m2m works...)
<pmpp> afaik epd sequences are very complicated
<escalion> hitech95: you will have to look throught the source and see if there is a driver available
<hitech95> pmpp, yup I know.
<hitech95> escalion, Uboot?
<escalion> hitech95: yes
<hitech95> you mean a driver for i2c or the display? For the display i think no.
<escalion> You can also find the appropriate open flow for you device, for example an iMX6 qdl will use imx6qdl.c
<escalion> if i2c is implemented ( i havent checked ) then it will be trivial
<escalion> but if you need to implement i2c then it'll take a little while longer
<escalion> shouldn't be hard to make a command plugin for it though
<escalion> and then reference that from a script (if scr's are your thing)
<hitech95> the display is SPI
<escalion> Then it should be easy
<hitech95> no dea, I never heavy worked on uboot. I just ported a copuple of board to a bsp reference design.
<escalion> hitech95, whats your board?
<hitech95> Banana Pi M2M. I'm using it to make my OWN SBC for this project :)
<hitech95> Or in case Neutis come out in a decent time (they chanched the release date too many times) i'll use that (cheper for me).
<escalion> basically, you need to check that the CCM is enabled for whatever clock the serial port uses
<escalion> make sure you compil with the serial module enabled
<hitech95> No idea what CCM is xD.
<escalion> clock control module
<hitech95> Oh, ok
<escalion> You're gunna need this http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf and some big cahoonas
<escalion> gl;hf
<hitech95> Right now I'm writing the audio driver so.... I'm at page 183 of http://dl.linux-sunxi.org/A33/A33%20user%20manual%20release%201.1.pdf :)
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-sunxi
<escalion> which banana pi do you have?
<escalion> I would probably avoid writing an audio driver for u-boot?
leviathan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<hitech95> escalion, Banana pi M2 Magic. I'm writing the audio driver for Linux not for U-Boot.
elros has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 264 seconds]
fkluknav has joined #linux-sunxi
leviathan has joined #linux-sunxi
gnufan has quit [Ping timeout: 256 seconds]
pmpp has quit [Ping timeout: 240 seconds]
matthias_bgg has joined #linux-sunxi
pmpp has joined #linux-sunxi
elros has quit [Ping timeout: 245 seconds]
elros has joined #linux-sunxi
Andy-D_ has quit [Ping timeout: 264 seconds]
LargePrime has quit [Ping timeout: 256 seconds]
Nikolai has quit [Quit: Leaving]
gnufan has joined #linux-sunxi
vagrantc has joined #linux-sunxi
LargePrime has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<micken> phew
<micken> I hope I picked the right manual
<micken> Perhaps someone can verify?
megi has quit [Ping timeout: 264 seconds]
lurchi_ is now known as lurchi__
sunshavi has quit [Ping timeout: 268 seconds]
<micken> jernej: can you have a look at the above register hdr? Did I get the right manual?
<micken> for Pinebook
<ElBarto> micken: just look at the A64 manual or the dts for address/range
<micken> the format is for ARM styled asm (constants)
<micken> A64 manual is the one I got it from
<ElBarto> ok
* micken wants to be sure he reads the right manual before starting implmenting :)
phdeswer has quit [Remote host closed the connection]
<hitech95> micken, LOL
nuuuciano has joined #linux-sunxi
<kevans91_> micken: Psh, implementing from the correct manual is overrated. =)
reinforce has quit [Quit: Leaving.]
Putti has joined #linux-sunxi
f0xx has quit [Ping timeout: 245 seconds]
cnxsoft has quit [Quit: cnxsoft]
Andy-D has joined #linux-sunxi
<willmore> buZz, power of two dimming, not full PWM for LEDS. (sorry, lagged)
nuuuciano has quit [Ping timeout: 268 seconds]
<buZz> dangit willmore , my lastlog doesnt go so far :P
<buZz> what are you responding on?
<KotCzarny> antialiasing leds
<KotCzarny> i guess
return0e has quit [Remote host closed the connection]
<buZz> ah, i guess yeah
<buZz> temporal dithering is common aswell
juri_ has quit [Ping timeout: 265 seconds]
<hitech95> KotCzarny, whut? led antialias? what is this?
<KotCzarny> adding more brightness to led pixels instead of just 0/1
<hitech95> like a pwm output?
<KotCzarny> a bit
<hitech95> KotCzarny, My audio work so far: https://preview.ibb.co/iwZZ0J/immagine.png
<micken> kevans91_: :D
<KotCzarny> hitech95: nice, although dont remember to add a note which soc it is and put it on the linux-sunxi wiki
<hitech95> KotCzarny, yup. I'll try that! Still tring to match all the controls to the diagram
<KotCzarny> s/remember/forget/ eh
<hitech95> ha ha ha
juri_ has joined #linux-sunxi
SP7RT has joined #linux-sunxi
return0e has joined #linux-sunxi
ernestask has quit [Quit: ernestask]
JohnDoe_71Rus has joined #linux-sunxi
<buZz> just blink silly fast, not really PWM
<diego71> blink fast is pwm, right?
<buZz> pwm is altered duty cycle
<buZz> and often in hw
megi has joined #linux-sunxi
tllim has joined #linux-sunxi
gumblex_ has joined #linux-sunxi
<diego71> yes, and if you attach a led to a pwm it blinks very fast, and you can dim the light.
IgorPec has quit [Ping timeout: 256 seconds]
gumblex has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
<MoeIcenowy> but sensitive people will find this kind of adjustable LED not so proper
<MoeIcenowy> especially when frequency not enough
reinforce has joined #linux-sunxi
<wens> flickering!
hlauer has quit [Ping timeout: 268 seconds]
GrimKriegor has joined #linux-sunxi
jaganteki has quit [Ping timeout: 260 seconds]
msimpson has quit [Quit: Leaving]
* KotCzarny blinks
<KotCzarny> usually even 50/50 cycle is enough to add legibility and lines smoothing
<buZz> MoeIcenowy: yep
<buZz> i've seen people do temporal dithering -plus- PWM on addressable ledstrip
<buZz> just to get color spectrum higher definition
<buZz> looked amazing :)
leviathan has quit [Ping timeout: 256 seconds]
<KotCzarny> 100" tv?
<buZz> no, 5x5mm LED
<buZz> around 300 of em, iirc
<buZz> temporal dithering for -video- would just be called 'motion blur' , i guess
chomwitt has quit [Ping timeout: 240 seconds]
GrimKriegor has quit [Read error: Connection reset by peer]
GrimKriegor has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
vinimac has joined #linux-sunxi
leviathan has joined #linux-sunxi
leviathan has quit [Client Quit]
leviathan has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
fkluknav has quit [Ping timeout: 276 seconds]
tom_nov has quit [Quit: Leaving]
IgorPec has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 265 seconds]
dc13ff has joined #linux-sunxi
BenG83 has quit [Read error: Connection reset by peer]
matthias_bgg has quit [Quit: Leaving]
yann has quit [Ping timeout: 265 seconds]
paulk-gagarine has quit [Quit: Leaving]
paulk-gagarine has joined #linux-sunxi
f0xx has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 240 seconds]
nuuuciano has joined #linux-sunxi
f0xx has quit [Ping timeout: 256 seconds]
sunshavi has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
<MoeIcenowy> wens: forgot to report: after applying your syscon, dwmac-sun8i on a64 still works
tl_lim has quit [Ping timeout: 245 seconds]
<MoeIcenowy> (I need to do DT regression test now
tl_lim has joined #linux-sunxi
leviathancn has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
elros has quit [Remote host closed the connection]
nots has joined #linux-sunxi
<MoeIcenowy> ok dt regression test passed
<hitech95> Just discovered that aif3 is mono :(
nots has quit [Ping timeout: 260 seconds]
<anarsoul|2> MoeIcenowy: does it mean that we'll get HDMI support for A64 in 4.19?
<MoeIcenowy> I do what I will do now
<MoeIcenowy> and the HDMI support is Jagan Teki's work now
<anarsoul|2> hm, I'm not sure if it's good or not
<MoeIcenowy> You known I don't have as much productivity now
<hitech95> guys, is it normal that there are multiplexers that are present in the registers but are not documented in the diagram? in the audio codec it seems that there are at least 3 other muxes that make unnecessary mess:
<KotCzarny> welcome to the wonderful worlds of allwinner documentation
Gerwin_J has quit [Ping timeout: 265 seconds]
<KotCzarny> such errors are usually explained/fixed on linux-sunxi wiki pages
<hitech95> KotCzarny, for some reason there is a pin mux with tri-state option inside the audio codec! WTF!
f0xx has joined #linux-sunxi
<MoeIcenowy> KotCzarny: to read the documentation, you should be able to read both Chinese and English well
<MoeIcenowy> as it's written in Chinglish
<MoeIcenowy> ;-)
<KotCzarny> :)
sunshavi has quit [Ping timeout: 260 seconds]
<hitech95> Not that funny. Unfotunatly i don't know chinese. I wonder if on china version of datasheet the information is more complete and if is present a description. The big problem is the lack of descriptions of funcional blocks!
hardfalcon has quit [Ping timeout: 245 seconds]
leviathan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
IgorPec has quit [Ping timeout: 248 seconds]
paulk-gagarine-s has joined #linux-sunxi
gnufan has quit [Ping timeout: 276 seconds]
<jernej> hitech95: so go to practical documenation - BSP source code
<hitech95> jernej, yup the problem is the fact that is a mess. I have no idea of what change all the files looks more or less identical and I don't know which one is for my soc: https://github.com/BPI-SINOVOIP/BPI-M2M-bsp/tree/master/linux-sunxi/sound/soc/sunxi/audiocodec
IgorPec has joined #linux-sunxi
gnufan has joined #linux-sunxi
paulk-gagarine has quit [Ping timeout: 276 seconds]
<jernej> I know, been there, done that (with HDMI)
<jernej> but if you are persistent, you'll find out
<hitech95> does you know how to figure out which one is the right one?
<hitech95> what the hell means w1 w3 w5?
clemens3 has quit [Ping timeout: 256 seconds]
nuuuciano has quit [Ping timeout: 256 seconds]
<jernej> ah, you don't know codenames (or whatever they are)
<jernej> sun8iw7 is for example codename for H3
hardfalcon has joined #linux-sunxi
<jernej> sun8iw5 is A33
<hitech95> Oh, ok. I missed the section of name change.... LOL SO A33 is sun8iw5p1
Putti has joined #linux-sunxi
<jernej> I guess you know now which file to look at :)
nuuuciano has joined #linux-sunxi
<hitech95> jernej, now yes. Only 1K of lines for the header... wish me good luck!
dc13ff has quit [Quit: Connection closed for inactivity]
<hitech95> Problem solved, they don't use thosse registers. Are defined but never used! Good to know!
<KotCzarny> don't be so sure
<KotCzarny> but also dont forget to try some experimentation on them
<KotCzarny> just for fun
<hitech95> KotCzarny, If I could understand what those bits does.... Looks like hey short out some internal codec lines. For example AIF 1 with AIF3. But it have no sense... Maybe is due to some glue logic under the codec
leviathancn has quit [Read error: Connection reset by peer]
f0xx has quit [Ping timeout: 248 seconds]
yann has joined #linux-sunxi
hardfalcon has quit [Quit: Leaving.]
hardfalcon has joined #linux-sunxi
<KotCzarny> interestingly, slackware 14.2 will be 2 years old in 10 days
<KotCzarny> oops, wrong chan
<hitech95> LOL!
<hitech95> Justo searched on bsp to see if they implemented the automatic gain control wich would be userful but: NOPE!
nuuuciano has quit [Remote host closed the connection]
hardfalcon has quit [Ping timeout: 260 seconds]
<night199uk> hey
<night199uk> i'm running mainline kernel 4.18.0 hand built on a banana pi m2 plus (allwinner h3). what's the state of the art with regard to controlling GPIO pins?
<night199uk> i've seen a few tools for raspberry pi like wiringpi, and also some stuff that talks to /sys/class/gpio directly; is there a modern up-to-date how to?
<night199uk> beeble: awesome; thanks :-)
<beeble> thats a lib and some userlandtools for using the new character device
<beeble> the sysfs interface is deprecated
<night199uk> yeah; let me check these out and see if i can get there, should be enough
<night199uk> depcated but still there right now?
<beeble> yes
<night199uk> okay, thanks, i'll start with this since libgpiod since it's state of the art and i'm mostly new to this
nuuuciano has joined #linux-sunxi
<night199uk> q: do the default bananapi/h3 dtb's in the kernel expose the GPIO pins? I had manually enabled spi0 & spi1 through tweaking my dtb (before I started reading about overalys), but i'm assuming the other gpio pins should just be left as GPIO, right?
f0xx has joined #linux-sunxi
<beeble> you request a gpio from the gpio controller from userland. so it does not have to be configured in the dts
<night199uk> ahh; okay. so i just have to be careful not to request gpio on the dual use SPI pins, etc?
<night199uk> how does that pin sharing work?
xerpi has joined #linux-sunxi
<night199uk> that url goes to 404 for me btw
<beeble> not sure at the moment if it tracks assignments from other peripherals. sysfs did not
<beeble> try it out. if it does not throw an error there is no handling :)
tl_lim has quit [Read error: Connection reset by peer]
<night199uk> haha
<night199uk> good plan
<night199uk> just trying to build this now
tl_lim has joined #linux-sunxi
<night199uk> one last one for now - is there a python interface to this yet?
<beeble> yes
<night199uk> oh haha
<night199uk> great thanks :-)
<night199uk> sorry for the stupid question
<beeble> no problem
<hitech95> I have just seen that sysf gpio is deprecated. Why?
hardfalcon has joined #linux-sunxi
<beeble> because gpios weren't a device until the gpio character device and the sysfs interface more or less a workaround
<night199uk> how are the lines mapped to names? looks like my bananapi doesn't have names for most of the lines
<night199uk> line 11: unnamed unused input active-high
<night199uk> lots of these
<KotCzarny> dt maybe
<night199uk> yeah, will check
<night199uk> -> dts
montjoie has quit [Quit: leaving]
lkcl has quit [Read error: Connection reset by peer]
hardfalcon1 has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 240 seconds]
<beeble> night199uk: gpiochipX N
<night199uk> beeble: any ideas how i can map these pin numbers to real chip pins?
<night199uk> i can find a few tables, but none of them seem to align exactly with what i see
<beeble> the same way you would calculate the sysfs number
<night199uk> i never used sysfs before :-)
<night199uk> coming at this fresh
<night199uk> i see two gpiochips, 1 with 224 lines, and 1 with 32 lines
<beeble> ok so if you have PA5 for example that should be gpiochip0 5
<night199uk> aha, yeah, just reading that
<beeble> thats my guess at least, haven't touched it on sunxi for some time
<night199uk> this that only gives me one number though
<night199uk> "E.g for PH18 this would be ( 8 - 1) * 32 + 18 = 224 + 18 = 242 (since 'h' is the 8th letter)."
gnufan has quit [Ping timeout: 264 seconds]
<night199uk> any ideas how i tell which chip?
<KotCzarny> you only have one chip really
<night199uk> so in this case I want to drive A-07 from that link, so assuming thats (1 - 1) * 32 + 18 = 32 + 18 = 50
<KotCzarny> second is probably axp
<night199uk> axp?
<beeble> ah banks are not split on sunxi? but ok goiols should tell you that
<KotCzarny> cat /sys/class/gpio/gpiochip*/label
<beeble> don't have a board up atm
<night199uk> 1c20800.pinctrl
<night199uk> 1f02c00.pinctrl
<KotCzarny> 1f is probably PI
<night199uk> cryptic :-)
<night199uk> PI?
<KotCzarny> PIxx
<night199uk> okay, i see
<night199uk> so in this case PA7 = 50, right?
<night199uk> gpioset gpiochip0 50=1?
<night199uk> gpioset gpiochip0 50=1
<night199uk> gpioset: error setting the GPIO line values: Device or resource busy
gnufan has joined #linux-sunxi
<KotCzarny> might be used by led driver
lkcl has joined #linux-sunxi
<KotCzarny> anything taken by some driver in DT will probably be 'busy'
<night199uk> hrm, odd, yeah
hlauer has joined #linux-sunxi
<beeble> pa7 should be gpiochip0 7?
<KotCzarny> ah, right
<KotCzarny> :)
<night199uk> oh my maths
<night199uk> without brackets :-)
<night199uk> yeah
<night199uk> seems to do something, let me check with the multimeter whether that did what i expect :-)
<night199uk> thanks
<night199uk> well, it seems to be toggling the pin :-)
<night199uk> thanks very much!
<night199uk> i should build a proper dt overlay for this board so i can name the pins properly
<KotCzarny> ahm, sorry, 1f.. is PLxx
<KotCzarny> but seen from arisc side
clemens3 has joined #linux-sunxi
vinimac has quit [Quit: Leaving]
paulk-gagarine has joined #linux-sunxi
paulk-gagarine-s has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
paulliu has quit [Quit: Leaving.]
f0xx has quit [Ping timeout: 248 seconds]
reinforce has joined #linux-sunxi
paulk-gagarine has quit [Quit: Leaving]
paulk-gagarine has joined #linux-sunxi
popolon has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
tl_lim has quit [Ping timeout: 240 seconds]
tl_lim has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
* hitech95 going craxy with sunxi8i-codec
BenG83 has joined #linux-sunxi
lurchi__ is now known as lurchi_
nots has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
chomwitt has joined #linux-sunxi
SP7RT has quit [Ping timeout: 260 seconds]
hlauer has quit [Ping timeout: 260 seconds]
lurchi_ is now known as lurchi__
sunshavi has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
lurchi__ is now known as lurchi_
afaerber has joined #linux-sunxi
vagrantc has joined #linux-sunxi
lynxis has quit [Remote host closed the connection]
reinforce has quit [Quit: Leaving.]
lynxis has joined #linux-sunxi
tl_lim has quit [Ping timeout: 260 seconds]
tl_lim has joined #linux-sunxi
xerpi has quit [Quit: Leaving]
jbrown has quit [Remote host closed the connection]
dc13ff has joined #linux-sunxi
lurchi_ is now known as lurchi__
clemens3 has quit [Ping timeout: 260 seconds]
<hitech95> wens, I have question about the sun4i-i2s. Why is it limited to only 16bit as word lenght? https://github.com/linux-sunxi/linux-sunxi/blob/5a3386790a172cf738194e1574f631cd43c6140a/sound/soc/sunxi/sun4i-i2s.c#L723
<anarsoul|2> hitech95: because hardware it was initially written for supported only 16 bits?
jbrown has joined #linux-sunxi
jbrown has quit [Remote host closed the connection]
putti_ has joined #linux-sunxi
Putti has quit [Ping timeout: 268 seconds]