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
<vagrantc> and there seems to be some regulator missing [drm:anx6345_i2c_probe [analogix_anx6345]] *ERROR* DVDD12 regulator not found
<vagrantc> and USB doesn't work
<vagrantc> any kernel config options obviously missing: https://www.aikidev.net/~vagrant/pinebook/config-4.13.0-1-arm64 ?
<vagrantc> also using the u-boot shipped with the image ... i seem to recall someone had some patches with a more recent u-boot for pinebook
<vagrantc> lost track of exactly which u-boot fork that was, though...
<BenG83> is that one a Pinebook?
<BenG83> nvm me I need to read more careful
<BenG83> :)
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
iamfrankenstein has quit [Read error: Connection reset by peer]
iamfrankenstein has joined #linux-sunxi
<vagrantc> hrm... using those patches failed to build.
<vagrantc> was too good to be true, only ~8 patches not on mainline u-boot
<vagrantc> the last patch attempted to address memory size limits of SPL ... so i guess it's not surprising
<vagrantc> aarch64-linux-gnu-ld.bfd: u-boot-spl section `.rodata' will not fit in region `.sram'
<vagrantc> aarch64-linux-gnu-ld.bfd: region `.sram' overflowed by 776 bytes
apritzel1 is now known as apritzel
<apritzel> shadeslayer: since you asked for it: I pushed a Pine64 firmware image: https://github.com/apritzel/pine64/tree/master/images
<anarsoul|2> vagrantc: you've got bitten by SPL size limit :)
<vagrantc> apritzel: thanks, will try
<vagrantc> the mainline pine64_plus with the same patches applied builds fine, fwiw, though i'm not surprised that pinebook has more hardware and thus more code...
<apritzel> vagrantc: but that should not apply to the SPL
<apritzel> vagrantc: what compiler do you have?
<apritzel> vagrantc: GCC 5.x or earlier generate larger code
<anarsoul|2> vagrantc: pinebook needs axp803 driver to enable some regulators
<anarsoul|2> for LCD to power up
<apritzel> which could be done in ATF as well, I guess ...
<apritzel> anarsoul|2: does the AXP compile into the SPL as well?
<anarsoul|2> apritzel: yes
<vagrantc> apritzel: i think gcc-7, but maybe gcc-6
<anarsoul|2> apritzel: could be done in SPL, but that would require a separate ATF image for pinebook...
<apritzel> anarsoul|2: I have some cool new feature in ATF: I read the SPL header from SRAM A1 and figure out the DT name
<apritzel> so ATF can do board specific fixups
<apritzel> for instance I now change the DRAM voltage for Pine64s only
* vagrantc finally got pine64+ working with u-boot spl!
<vagrantc> which is why i was hoping to get pinebook working too... :)
<vagrantc> i've got some ancient ATF build ... maybe it's time to try and build a new one
<anarsoul|2> apritzel: cool
ninolein_ has quit [Ping timeout: 258 seconds]
<anarsoul|2> vagrantc: nice, I'll look into it
ninolein has joined #linux-sunxi
<anarsoul|2> oops, I meant apritzel: nice, I'll look into it :)
<apritzel> vagrantc: definitely, I fixed some bugs lately
<vagrantc> apritzel: cool.
<anarsoul|2> vagrantc: well, it works fine for me
<anarsoul|2> with my branch
<vagrantc> anarsoul|2: i've applied the patches from your branch to v2017.11 in the debian package, and built that way ... there may be some compiler flags passed that are different or something
<apritzel> anarsoul|2: try: echo 0 > /sys/devices/system/cpu/cpu3/online
<anarsoul|2> apritzel: why?
<apritzel> anarsoul|2: but make sure you have a reset button ;-)
<anarsoul|2> what'll happen?
<vagrantc> apritzel: with the patch you referenced, it builds
<apritzel> anarsoul|2: it hangs in ATF
<anarsoul|2> ouch
<apritzel> (plus the three patches before that)
* vagrantc wonders if it will ever be possible to see the allwinner arm-trusted-firmware patches merged back upstream...
<apritzel> vagrantc: I am halfway through with that
* vagrantc cheers!
kaspter has quit [Quit: kaspter]
<apritzel> anarsoul|2: the DT name patch
<anarsoul|2> apritzel: nice, I'll try to get it working on pinebook
kaspter has joined #linux-sunxi
kaspter has quit [Client Quit]
<apritzel> that depends on some heavy rework of the power setup, though
<apritzel> but you should be able to take just the first part
<apritzel> (in sunxi_common.c)
<apritzel> vagrantc: btw: you pushed CONFIG_ARCH_SUNXI into the Debian kernel config?
<anarsoul|2> apritzel: I'll just take atf from your branch
wink_ has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9.1]
<apritzel> anarsoul|2: or that ...
<apritzel> anarsoul|2: you should my exception vector table patch (mentioned above), that frees up ~1KB of SPL code
<apritzel> should *try
<anarsoul|2> apritzel: yeah, will do
wink__ has joined #linux-sunxi
<anarsoul|2> however without axp driver SPL fits nicely into 32k
<apritzel> if we dump the whole table, we should be able to free up another 2.5KB
<anarsoul|2> yeah, and generate it on the fly
<apritzel> anarsoul|2: exactly
<vagrantc> apritzel: heh. looks like i did. had to look it up, wasn't sure it was me: https://bugs.debian.org/860855
<apritzel> vagrantc: I did a similar exercise for Debian ;-)
wink_ has quit [Ping timeout: 260 seconds]
<apritzel> vagrantc: the arm64 .iso installer dd'ed to a USB pen drive should work out of the box, have you tried?
<vagrantc> apritzel: i've enabled support in the debian kernels for a fair number of armhf and arm64 boards
<vagrantc> apritzel: no, i usually do network installs or manually debootstrap an image.
<apritzel> vagrantc: yeah, it's a bit of a pity that they just don't follow the mainline defconfig
<vagrantc> well, the mainline defconfig uses too my =y and not enough =m to make sense for Debian
<apritzel> for CONFIG_ARCH_xxxx, I mean
<apritzel> I think you can't =m them, wouldn't make sense anyway
<vagrantc> right
<vagrantc> i think the idea was to only enable support for things when there are actual users/testers
<apritzel> vagrantc: thanks anyway for doing that!
<vagrantc> at least, that's always what i assumed
<apritzel> vagrantc: yeah, makes some sense
<wens> debian arm64 kernel in general is missing CMA
* vagrantc did enough patches that now has direct commit access :)
<wens> cool
<apritzel> vagrantc: did you get that subtle hint from wens? :-D
<wens> there's already a bug filed for that
<wink__> Hi folks,I m an engineer from Allwinner, happy to announce that the lastest BSP (with Linux 4.4) of H3 was released, github page is https://github.com/Allwinner-Homlet
<apritzel> wens: yeah, but you need someone to be pesky and push that
<wens> apritzel: looks like it landed
<wens> wink__: thanks, though why the new project name?
lurchi_ is now known as lurchi__
apritzel has quit [Ping timeout: 240 seconds]
<anarsoul|2> wink__: any plans for 4.4 for A64?
BenG83 has quit [Quit: Leaving]
cnxsoft has joined #linux-sunxi
<vagrantc> yay!
<vagrantc> u-boot 2017.11 on pinebook
<icenowy[m]> anarsoul|2: he's for BU3
<icenowy[m]> so not responsible for A64
<anarsoul|2> vagrantc: :)
<anarsoul|2> icenowy[m]: what's BU3?
hardfalcon1 has joined #linux-sunxi
<vagrantc> oh, even see output on the screen... not used to that!
hardfalcon has quit [Ping timeout: 260 seconds]
pmpp has quit [Ping timeout: 276 seconds]
<wink__> anarsoul|2:A64 hasn't a Linux 4.4 plan yet, the next plan is for H6.
<anarsoul|2> wink__: I see, thanks for response!
diego71_ has joined #linux-sunxi
aballier_ has joined #linux-sunxi
oliv3r_ has joined #linux-sunxi
mfa298_ has joined #linux-sunxi
willmore_ has joined #linux-sunxi
<vagrantc> hrm. eMMC doesn't seem stable enough to load an initrd...
pmpp has joined #linux-sunxi
valkyr1e_ has joined #linux-sunxi
ornitorrincos has quit [*.net *.split]
valkyr1e has quit [*.net *.split]
diego71 has quit [*.net *.split]
willmore has quit [*.net *.split]
aballier has quit [*.net *.split]
brtlin has quit [*.net *.split]
mfa298 has quit [*.net *.split]
sunxi_fan has quit [*.net *.split]
aib has quit [*.net *.split]
oliv3r has quit [*.net *.split]
a|3x has quit [*.net *.split]
plaes has quit [*.net *.split]
kaspter has joined #linux-sunxi
aib has joined #linux-sunxi
<anarsoul|2> vagrantc: yeah, I had the same issue with eMMC, but it went away after I charged pinebook
<anarsoul|2> so if yours at ~5% you may need to charge it :)
<anarsoul|2> vagrantc: it's unstable in both u-boot and linux, so could be a hardware issue
brtlin has joined #linux-sunxi
a|3x has joined #linux-sunxi
sunxi_fan has joined #linux-sunxi
plaes has joined #linux-sunxi
<vagrantc> oh yeah, this has had power, but probably no supported kernel or u-boot to charge it
loblik- has quit [Ping timeout: 240 seconds]
loblik has joined #linux-sunxi
<vagrantc> hmmm... seems to think it's at 100% battery
anarsoul|2 has quit [Ping timeout: 260 seconds]
wink__ has left #linux-sunxi [#linux-sunxi]
ornitorrincos has joined #linux-sunxi
ornitorrincos has quit [Changing host]
ornitorrincos has joined #linux-sunxi
willmore_ is now known as willmore
jbrown has quit [Ping timeout: 250 seconds]
jbrown has joined #linux-sunxi
wink[AW] has joined #linux-sunxi
<smaeul> wink[AW]: any chance of releasing arisc firmware source or toolchain?
<vagrantc> seems to read from microSD just fine...
<wink[AW]> exit
wink[AW] has quit [Quit: WeeChat 1.9.1]
Hao has joined #linux-sunxi
<aalm> :D
<aalm> was that "oh, tough Q, better run"
aalm has quit [Quit: brb, forced reboot -_-]
aalm has joined #linux-sunxi
hipboi_ has joined #linux-sunxi
kaspter1 has joined #linux-sunxi
kaspter has quit [Ping timeout: 248 seconds]
kaspter1 is now known as kaspter
hipboi_ has quit [Read error: Connection reset by peer]
chlorine has joined #linux-sunxi
* vagrantc realizes icenowy's sunxi64-4.14-rc6 also contains the pinebook patchsets
chlorine has quit [Ping timeout: 240 seconds]
hipboi_ has joined #linux-sunxi
wink[AW] has joined #linux-sunxi
mpmc has quit [Ping timeout: 255 seconds]
kaspter has quit [Quit: kaspter]
kaspter has joined #linux-sunxi
hipboi_ has quit [Ping timeout: 260 seconds]
hipboi_ has joined #linux-sunxi
<anarsoul> vagrantc: and mine 4.15-rc1 also contains pinebook patches ;)
<anarsoul> with charging and sound
<anarsoul> vagrantc: see https://github.com/anarsoul/linux-2.6
* vagrantc has yet to get video
<vagrantc> or usb
<vagrantc> but it's got a great serial console
<vagrantc> linux-2.6 ?
<anarsoul> :)
<anarsoul> vagrantc: I'm too lazy to rename repo
<vagrantc> heh.
<anarsoul> back in 2009 it was 2.6
<anarsoul> 2.6.something
* vagrantc remembers
mpmc has joined #linux-sunxi
GrimKriegor has quit [Ping timeout: 264 seconds]
gnufan has joined #linux-sunxi
<icenowy[m]> montjoie: for ATE it's said that it's connected to an internal I2C
nuuuciano has quit [Ping timeout: 255 seconds]
<icenowy[m]> they says I2C3, however there's no I2C3 in user manual
GrimKriegor has joined #linux-sunxi
hipboi_ has quit [Ping timeout: 260 seconds]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 248 seconds]
hipboi_ has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
SP7RT has joined #linux-sunxi
Hao has quit [Ping timeout: 260 seconds]
SP7RT has quit [Ping timeout: 240 seconds]
Hao has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
reinforce has joined #linux-sunxi
<jernej> icenowy[m]: glue code is in drivers/mfd/acx00-core.c http://sprunge.us/DjYX
<jernej> montjoie: ^^^
tllim has joined #linux-sunxi
<tllim> @BenG, the AXP805 datasheet already upload to PINE H64 wiki page: http://wiki.pine64.org/index.php/PINE_H64_Main_Page
tllim has quit [Client Quit]
xes__ has joined #linux-sunxi
xes_ has quit [Ping timeout: 240 seconds]
hipboi_ has quit [Ping timeout: 248 seconds]
hipboi_ has joined #linux-sunxi
aalm has quit [Quit: xyz 1.9.1]
hipboi__ has joined #linux-sunxi
hipboi_ has quit [Ping timeout: 248 seconds]
tllim has joined #linux-sunxi
<tllim> @anarsoul, just check with Allwinner BU2, the A64 Linux 4.4 will release on March 2018.
tllim has quit [Client Quit]
<KotCzarny> seems 4.4 is going to be the new 3.4
<anarsoul> yep
<anarsoul> hopefully it's LTS release and isn't EOLed yet
tllim has joined #linux-sunxi
<KotCzarny> 4.4 is going to be the one with 6 years of eol
<KotCzarny> an experiment to coerce vendors to mainline more
tllim has quit [Client Quit]
<anarsoul> cool
<anarsoul> yet I'd prefer mainline
aalm has joined #linux-sunxi
f0xx has joined #linux-sunxi
tuxillo has quit [Ping timeout: 240 seconds]
tuxillo has joined #linux-sunxi
DullTube has joined #linux-sunxi
tuxillo has quit [Ping timeout: 255 seconds]
<icenowy[m]> jernej: so it's really an embedded AC200?
<icenowy[m]> from the pinctrl driver source code the unpopulared PA/PB GPIO banks of H6 seems just fit an AC200 ;-)
<icenowy[m]> PA has RMII and PB has CCIR/I2S
<icenowy[m]> and I2C3 is also on PB
apritzel has joined #linux-sunxi
junnie has joined #linux-sunxi
lemonzest has quit [Quit: Quitting]
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
apritzel has quit [Ping timeout: 240 seconds]
indy has joined #linux-sunxi
msimpson has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 255 seconds]
aalm has quit [Quit: xyz 1.9.1]
tuxillo has joined #linux-sunxi
sr-digitronic has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
tom_nov has joined #linux-sunxi
gajjar04akash has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
BenG83 has joined #linux-sunxi
Worf has joined #linux-sunxi
junnie has quit [Ping timeout: 258 seconds]
junnie has joined #linux-sunxi
Worf has quit [Quit: Konversation terminated!]
BenG83 has quit [Ping timeout: 250 seconds]
massi has joined #linux-sunxi
yann has joined #linux-sunxi
wink[AW] has quit [Ping timeout: 260 seconds]
paulk-gagarine has quit [Ping timeout: 248 seconds]
junnie has quit [Ping timeout: 248 seconds]
paulk-gagarine has joined #linux-sunxi
longsleep has quit [Ping timeout: 276 seconds]
Hao has quit [Ping timeout: 240 seconds]
longsleep has joined #linux-sunxi
ernestask has joined #linux-sunxi
qschulz has joined #linux-sunxi
oliv3r_ is now known as oliv3r
enrico_ has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
jbrown has quit [Ping timeout: 248 seconds]
cnxsoft has quit [Ping timeout: 250 seconds]
cnxsoft1 is now known as cnxsoft
<oliv3r> plaes: ping
<silviop> plaes: have you added support for dual channel lvds in kernel drm ?
afaerber has joined #linux-sunxi
hipboi__ has quit [Ping timeout: 250 seconds]
enrico_ has quit [Remote host closed the connection]
enrico_ has joined #linux-sunxi
derRichard has joined #linux-sunxi
<derRichard> hi
<derRichard> my a20 board resets sometimes. is there a status register i can query in uboot after a reset to get the reason?
<qschulz> mainline or vendor u-boot?
<wens> nope
<willmore> KotCzarny, wasn't 4.14 also getting 6 years?
<derRichard> qschulz: mainline
<derRichard> both kernel and uboot
<derRichard> but i can switch to vendor uboot, if needed
<KotCzarny> willmore: yeah, but i suspect when the 6 years was announced 4.14 wasnt existing yet
<KotCzarny> so most likely people worked what they had (ie. 4.4)
<willmore> I'm just saying, if you're working on a 'use a more current kernel' effort right now, the smart goal is clearly 4.14 with the hope of doing that tiny bit extra at the end to actually mainline it. :) Maybe I'm just too hopeful.
<KotCzarny> you are expecting too much
<KotCzarny> :)
* willmore sighs
<brtlin> willmore, KotCzarny : 4.14 get support until jan-2020 for now, not 6 years. See https://www.kernel.org/releases.html and https://plus.google.com/+KonstantinRyabitsev/posts/Lq97ZtL8Xw9
<KotCzarny> it might change once 4.15 gets released
<willmore> brtlin is right, Greg posted recently specifically refuting the 6 years for 4.14. At least for now, KotCzarny there might still be hope. So, given that, I can completely see the 4.4 reasoning.
<willmore> Then again, if you go mainline, you get support forever. Just saying. ;)
<KotCzarny> forever*: some restrictions apply, you abandon your driver with no maintainers, support gets removed
<KotCzarny> ;)
<willmore> Of course. :)
<KotCzarny> hmm, offtopic, did anything change in 4.13+ ? f->f_op->read method seems missing
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
lurchi_ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-sunxi
<plaes> oliv3r: pong!
<plaes> silviop: nope, haven't had time to play with this stuff at all
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
TheSeven has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
Hao has joined #linux-sunxi
silviop has quit [Ping timeout: 276 seconds]
fkluknav has joined #linux-sunxi
hipboi__ has joined #linux-sunxi
goliath has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
Ntemis has joined #linux-sunxi
hipboi__ has quit [Quit: This computer has gone to sleep]
benettig has joined #linux-sunxi
apritzel1 has joined #linux-sunxi
DullTube has quit [Quit: Leaving]
jbrown has joined #linux-sunxi
hipboi__ has joined #linux-sunxi
benettig has quit [Quit: Leaving]
<zzeroo> Hi, I try to enable my touch screen. The screen is connected via lvds. After updateing my mainline kernel 4.6 to 4.13 the touch is not working. Now my question. Do I have to recompile u-boot after changing the device tree file?
cnxsoft has quit [Quit: cnxsoft]
<zzeroo> To save time ATM I extract the devicetree, edit it, and recompile afterwards `dtc -O dts` && edit the .dts && `dtc -O dtb ...` Is this enough?
<jernej> icenowy[m]: I believe it really is AC200
tkaiser has joined #linux-sunxi
<qschulz> zzeroo: you can edit the dt from u-boot
<KotCzarny> tkaiser: 1.8ghz, he he
<KotCzarny> nice specs tho
<wens> 2k retina display
<tkaiser> 3GB DRAM ;)
<KotCzarny> i wonder what is the battery life on that thing
<jernej> H6, of course
<KotCzarny> also, they say 'presale price'
<willmore> The battery is pretty big.
<KotCzarny> 'shipping in 28d'
<buZz> is a63 faster than a73?
<willmore> A63? <insert picture of Jackie Chan doing the "what are you thinking?" pose>
<KotCzarny> buzz: a63 is cut down a64
<buZz> oh derp
<KotCzarny> also called 'upgrade'
<KotCzarny> ;)
<wens> KotCzarny: but the gpu is an upgrade!
<willmore> a63 is supposed to be an upgraded A64...
<wens> lol
<willmore> A65 was taken?
<buZz> still just 4k@30fps
apritzel has joined #linux-sunxi
<buZz> boring
<buZz> :P
<apritzel> A64 smells more like an "A" version of the H6?
<willmore> Is this still no 40nm or is it 28nm?
<apritzel> A63*
<buZz> 28nm
<KotCzarny> apritzel: h6 has usb3/pcie
<willmore> apritzel, sorta, but it's missing all the cool I/O, isn't it?
<apritzel> willmore: if it really runs @1.8GHz
<willmore> apritzel, exactly.
<willmore> For more than 10ms at least.
<KotCzarny> so while they mix and match silicon parts, not really similar ;)
<apritzel> well, in a tablet ...
<apritzel> KotCzarny: think Lego: they have a pool of colourful brick^WIP block and happily stick them together
lurchi_ is now known as lurchi__
<KotCzarny> apritzel: yup, that's why it's hard to say what is the same design and what is something new
<apritzel> but if it runs at 1.8 GHz (and thus is 28nm) and support VP9, than it's probably closer to the H6 than to the A64
<willmore> apritzel, that was always the idea from ARM with the various busses they impemented.
<KotCzarny> fractal soc!
lurchi__ is now known as lurchi_
<apritzel> and so I am trying to convince people of using DT to compose SoCs out of IP drivers, instead of introducing SoC support in the kernel
<apritzel> also Mali-T760 points at H6
<KotCzarny> similar situation with r40, what was it's brothers/parents? ;)
<willmore> apritzel, wasn't that the goal as well? :)
<zzeroo> qschulz: How?
<apritzel> zzeroo: => fdt addr $fdt_addr_r; fdt print
<KotCzarny> i think there should be a page which lists socs and the bricks they are made of
<KotCzarny> for starters
<apritzel> zzeroo: then: fdt set /soc/somenodename property <value>
enrico_ has quit [Ping timeout: 260 seconds]
<KotCzarny> would require to identify and name those bricks somehow
<apritzel> I think the A63 is to the H6 what the A64 is to the H5
<apritzel> weird numbering, though ;-)
<apritzel> A series have less USB (because you don't need many for a tablet)
<willmore> KotCzarny, they left out the discovery that PCI has. That wasn't considered important as SoCs were supposed to be fixed things--the configuration would be baked in. Thanks ARM. :(
<willmore> apritzel, I solved the numbering!!!! Sum the digits. They have to add up to 15 within and A and H pair.
<apritzel> willmore: there is discovery in ARM IP, see IIDR registers in PL011 and the GIC, for instance
<zzeroo> apritzel: `fdt addr 0x43000000` results in `libfdt fdt_check_header(): FDT_ERR_BADMAGIC` where do I find the correct addr?
hipboi__ has quit [Ping timeout: 268 seconds]
<apritzel> zzeroo: did you load the DT already?
<apritzel> (to $fdt_addr_r)
<zzeroo> apritzel: my boot.cmd contains something like that: "load mmc 0:1 0x43000000 ${fdtfile}"
<apritzel> zzeroo: yes, and afterwards you tell U-Boot about the DT with "fdt addr 0x43000000"
<apritzel> zzeroo: given that there is something at $fdtfile
<willmore> apritzel, For some hardware, yes, but the serial ports? Ethernet? etc.
apritzel1 has quit [Ping timeout: 255 seconds]
<apritzel> willmore: PL011 is serial
<apritzel> willmore: think about how to do this nicely and you will end up at something like device tree
<apritzel> willmore: also the AMBA bus can discover devices
<willmore> apritzel, I will have to look into that.
<apritzel> willmore: check the final part of drivers/tty/serial/amba-pl011.c
<tkaiser> apritzel: Which reminds me to search in the new H3 kernel 4.4 BSP for fex ;)
<willmore> apritzel, thanks.
<apritzel> willmore: but at the end what PCI offers is not flexible enough for a fine grained SoC: no clocks, no pin multiplex pin descriptions, ...
enrico_ has joined #linux-sunxi
<tkaiser> 21 hits for sys_config.fex in the kernel code drop :)
reinforce has quit [Quit: Leaving.]
<zzeroo> apritzel: Thanks this works. This means editing the dtb is enought. I dont have to recompile something, right?
<apritzel> tkaiser: what did you expect: it looks more like a forward port from 3.10 to [lsk-v4.4-17.03 ~ lsk-v4.4-17.05]
<tkaiser> Yes, unfortunately.
<apritzel> zzeroo: exactly, just use the fdt commands, then pass the original address to the kernel
<apritzel> zzeroo: you might want to insert "fdt resize" from time to time
<apritzel> zzeroo: in case you add properties or nodes
BenG83 has joined #linux-sunxi
<icenowy[m]> yes
<icenowy[m]> still the familiar taste in the 4.4 BSP
<zzeroo> apritzel: Thank you, this saves time again. But this thing is so huge ^^ I've to read some more docs about ;)
<willmore> apritzel, true. The 'what does the peripherial do with the signals' part is completely absent from PCI.
gzamboni has joined #linux-sunxi
<apritzel> willmore: which is not PCI to blame for, really, as it was more designed for cards in slots, which have their own clocks and there is no need for pin multiplexing, for instance
<apritzel> willmore: Cavium actually hides their platform devices behind a PCI config space (at least in the ThunderX1)
<zzeroo> My old device tree contains "wake-gpios = <7 7 GPIO_ACTIVE_LOW>;" at the i2c config. The vanilla 4.13 devicetree from my board shows something like "wake-gpios = <&pio 7 7 GPIO_ACTIVE_LOW>;". For what stands the first parameter `&pio`?
<apritzel> zzeroo: that is the phandle of the pinctrl node
<icenowy[m]> apritzel: mysteriously the H6 CCU do not have PIO clock
<icenowy[m]> at least according to the user manual
<zzeroo> apritzel: Is this optional or do I have to change this lines
<apritzel> zzeroo: when it comes to phandle this editing in U-Boot becomes really tedious ...
popolon has joined #linux-sunxi
<zzeroo> apritzel: No all I try to figure out is, why does my touchscreen under 4.6 and not under 4.13. This is because a wrong gpio or i2c config.
<apritzel> icenowy[m]: that's just a clock gate anyway in the other SoCs?
<icenowy[m]> yes
<icenowy[m]> and in H6 now there's nothing
<zzeroo> `edt_ft5x06 2-0038: Failed to request GPIO wake pin, error -22`
<icenowy[m]> I checked BSP clk-sun50iw6.c and the pio clk is just a dummy one
<icenowy[m]> all parameters are 0
<icenowy[m]> or maybe it can be just set to APB1?
<icenowy[m]> however usually the APB clocks shouldn't be exported
<apritzel> icenowy[m]: I guess they just tied this gate to always on
<icenowy[m]> yes
<apritzel> icenowy[m]: so a dummy clock would be the answer then, as I guess our pinctrl binding requires a clock
<icenowy[m]> as it nearly won't be gated at all
<willmore> apritzel, I didn't mean to criticize PCI for that, it was never meant for that use. Sorry if I sounded like that. Since I had advocated a PCI like discovery, I was admitting that being like PCI wasn't enough for *this* use.
<icenowy[m]> but we may remove it from the pinctrl binding
<apritzel> icenowy[m]: rather make it optional for some drivers, I guess
<icenowy[m]> oh I mean it
<apritzel> icenowy[m]: as make a missing clock non fatal in probe()
Poeticode is now known as P_C
<icenowy[m]> my fault
jbrown has quit [Remote host closed the connection]
P_C is now known as PiC
PiC is now known as P_C
<KotCzarny> jernej: but that table doesnt mention which soc includes them
<KotCzarny> not to mention it's not specific enough ie. video engine had few iterations
<jernej> that's true
<jernej> but it's a start
<KotCzarny> yup
<jernej> and may blocks are same through generations and some with minor changes
<jernej> *many
<apritzel> KotCzarny: jernej: one could base that on either DT compatible or look at what Linux drivers actually do for those different generations of IP
sr-digitronic has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
junnie has joined #linux-sunxi
lurchi__ is now known as lurchi_
<icenowy[m]> finished an initial version of H6 CCU driver
<icenowy[m]> oh converting user manual to code nearly drained out my brain
<KotCzarny> poor you
<KotCzarny> want the cookie?
<apritzel> icenowy[m]: thanks a ton, indeed doesn't look like fun ...
<icenowy[m]> let me finish the initial test, dry my hair and go sleep
<apritzel> icenowy[m]: insert a "drop it somewhere" in between ;-)
<icenowy[m]> ok let me drop a stash
junnie has quit [Ping timeout: 248 seconds]
<wens> icenowy[m]: you should probably just send out an initial support (platform, basic dtsi with cpu and uarts) series
goliath has quit [Quit: Leaving]
<icenowy[m]> yes but won't be today
<icenowy[m]> wens: should the &quot;apb&quot; clock of H6 pinctrl ignored or set to the apb1 clock?
<icenowy[m]> the bus gate is removed from CCU (seems to be hardwired to open)
jbrown has joined #linux-sunxi
gzamboni has quit [Ping timeout: 268 seconds]
<wens> so you poked the register?
<apritzel> wens: there does not seem to be a register ...
<apritzel> icenowy[m]: awesome, thanks a lot
<apritzel> will take a look at the weekend
<wens> apritzel: you mean the bus clock gate right?
<wens> maybe it's just undocumented?
<icenowy[m]> good night ;-)
<wens> best to try it
<apritzel> icenowy[m]: sleep well!
<apritzel> wens: all the gate bits have been moved to new registers
msimpson has quit [Quit: Leaving]
<apritzel> and there is no one dealing with PIO or something
SP7RT has joined #linux-sunxi
<wens> I see
silviop has joined #linux-sunxi
<apritzel> for instance there is a "UART bus gating reset register", where bits 19:16 control the reset, and bits 3:0 control the clock gates
<icenowy[m]> wens: in uart0-helloworld-sdboot I didn't enable the clock of PIO at all
gumblex has quit [Ping timeout: 240 seconds]
<icenowy[m]> but PIO still works
<wens> icenowy[m]: to be fair, I don't think we needed to enable the PIO bus gate in any of the socs
<apritzel> did the BROM disable the PIO gate on older SoCs?
<wens> the BROM would enable it as part of trying to find boot media
<wens> or it was just on by default
<icenowy[m]> oh I forgot it
<icenowy[m]> A SoC without PIO is unfunctional
<icenowy[m]> :-)
<silviop> I'm try to port BSP driver to mainline i stuck in gpio_to_irq(config_info.int_number); i'm not use device tree for now so hw conf is embedded in driver i have port:PA03<6><default><default><default> in original fex
<silviop> there is a conversion table ? (A33)
<icenowy[m]> P.S. the xhci part of H6 seems to have a new dedicated PHY
<icenowy[m]> but it can be expected
<wens> silviop: A (convert to 0-based integer) * 32 + 3
<silviop> A = 0 ?
<wens> yes
<silviop> = 0 * 32 + 6
<wens> what's with the 6
<wens> isn't your pin PA3?
<silviop> yes
<wens> so it would be 0 * 32 + 3
<silviop> ok i put 3 :-)
<icenowy[m]> I think I can get MMC to work tomorrow (it's quite easy ;-) )
<BenG83> AXP805 seems to support companion battery management ICs
<icenowy[m]> yes
<BenG83> wonder if there is a reference design
<icenowy[m]> I think it's based on AXP806
<BenG83> just reading the datasheet, it can handle almost double the power of AXP806
<icenowy[m]> A80 devices use a AXP809+AXP806 combo
<icenowy[m]> P.S. Wink seems to confirm ATE is an AC200
<BenG83> ATE?
<silviop> IRQF_DISABLED could be removed without problems ?(is deprecated in mainline)
<apritzel> BenG83: "A"udit "T"V "E"thernet
<apritzel> "A"udio*
<KotCzarny> o.O
<icenowy[m]> Audio Codec, TVE, EPHY controller
<BenG83> ah ok
<BenG83> does H6 have a manegement core?
<icenowy[m]> ar100?
<icenowy[m]> yes
<BenG83> ok
<apritzel> BenG83: not even guessing this time about the meaning of ATE, it's spelled out in the manual
<wens> icenowy[m]: beware of hidden /2 post divider (new timing mode, always) for MMC clocks
gumblex has joined #linux-sunxi
chlorine has joined #linux-sunxi
goliath has joined #linux-sunxi
lurchi_ is now known as lurchi__
chlorine has quit [Ping timeout: 252 seconds]
freemangordon has quit [Quit: Leaving.]
lurchi__ is now known as lurchi_
yann has quit [Ping timeout: 248 seconds]
ariendj has joined #linux-sunxi
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 240 seconds]
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
reinforce has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
Hao has quit [Ping timeout: 240 seconds]
lurchi_ is now known as lurchi__
<KotCzarny> funny as it is nmap detected my opipc running 4.13.16 as OS details: Linux 3.11 - 3.14
<smaeul> apritzel: were you aware of https://github.com/smaeul/arm-trusted-firmware (trying to rebuild ATF port on top of upstream master)?
<smaeul> with that, cpu hotplug doesn't crash
massi has quit [Remote host closed the connection]
anarsoul|2 has quit [Quit: Leaving]
<apritzel> smaeul: ah, interesting, didn't know
<apritzel> I fixed CPU hotplug lately in my branch as well
<apritzel> smaeul: and great to see that you have an I2C driver, I wanted to add this on the weekend
lurchi__ has quit [Ping timeout: 248 seconds]
lurchi__ has joined #linux-sunxi
<smaeul> yeah, I developed this on opi pc2, then added a64 later once I got more hardware
JohnDoe_71Rus has joined #linux-sunxi
<apritzel> smaeul: In my port I have a plat/allwinner/sun50i-{a64,h6,common} directory scheme
<apritzel> since H6 and A64 have a completely different memory map, this seems to be the best approach, with different _def.h files for each
<apritzel> smaeul: I2C, RSB and stuff would be in plat/allwinner/common/drivers then
<apritzel> smaeul: and H5 and A64 can share a directory
<smaeul> right
<smaeul> apritzel: one thing to consider/build consensus on:
<smaeul> my current project is writing an arisc firmware that implements scpi
<smaeul> but that means there's not enough space in SRAM A2 for bot
<smaeul> *both
<smaeul> so where to move ATF?
<apritzel> smaeul: just found your arisc port ;-)
<apritzel> I was always thinking of using SRAM A1
<smaeul> 1) is it possible for u-boot spl to load something over itself
<apritzel> SRAM C is probably of limits, because this is married to the DE
lamer15121493957 has joined #linux-sunxi
<smaeul> 2) I don't think A1 is large enough -- only 32k
<apritzel> 1) yeah, that would be interesting, but solvable somehow
<smaeul> I was never able to get ATF smaller than 52k because it has a bunch of page tables, and a page for locks
<apritzel> 2) mmh, is latest ATF so much bigger? The AW 1.0 port is only about 32K
DavidO_ has joined #linux-sunxi
enrico_ has quit [Quit: Bye]
<DavidO_> hey
<DavidO_> i need help
tkaiser has quit [Ping timeout: 248 seconds]
<DavidO_> how can i add support for orange pi prime on buildroot?
matthias_bgg has quit [Quit: Leaving]
<apritzel> smaeul: maybe we could start with loading ATF to SRAM A2, then relocate the *resident* part to A1
<apritzel> smaeul: which may be smaller than the whole ATF
<smaeul> apritzel: let me paste the map file
<apritzel> smaeul: and the arisc could be loaded somewhere else first, then moved to A2 after ATF is out of the way
<KotCzarny> isnt arisc able to use main memory too? slow but usable?
<smaeul> apritzel: i guess? arisc can't be anywhere else though, because of the power domains
<smaeul> KotCzarny: only when DRAM is on :)
<apritzel> smaeul: if you have the arisc doing power management (via SCPI, for instance), ATF would not need all those RSB/I2C drivers
<smaeul> apritzel: I found out that SRAM A1 is not accessible from ARISC at all
<DavidO_> is buildroot not yet compitable with the orangepi prime?
<DavidO_> i lost 3 weeks on this
<DavidO_> or im just dumb
<apritzel> smaeul: yeah, the arisc code would be loaded somewhere else first, then moved to A2 by ATF, after it's own relocation
aballier_ has quit [Ping timeout: 240 seconds]
<smaeul> apritzel: with -flto and -fno-common, and removing all of the power drivers, this is the map for my ATF http://sprunge.us/XJii, so 52k minimum
<smaeul> is there a good reason not to put ATF in DRAM?
<smaeul> other than that the TZASC doesn't work in non-secure mode
<apritzel> smaeul: is a release build any better?
<smaeul> that's with absolutely all logging turned off
aballier has joined #linux-sunxi
aballier has joined #linux-sunxi
chlorine has joined #linux-sunxi
lamer15121493957 has quit [Quit: jIRCii - http://www.oldschoolirc.com]
vagrantc has joined #linux-sunxi
chlorine has quit [Ping timeout: 258 seconds]
my123 has quit [Read error: Connection reset by peer]
my123 has joined #linux-sunxi
my123 has quit [Changing host]
my123 has joined #linux-sunxi
tom_nov has quit [Quit: Leaving]
tllim has joined #linux-sunxi
apritzel has quit [Ping timeout: 250 seconds]
Pe3ucTop has joined #linux-sunxi
lurchi__ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
tkaiser has joined #linux-sunxi
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
<DavidO_> hey
<DavidO_> is anyone here
<DavidO_> i need help
<DavidO_> pls
Putti has joined #linux-sunxi
<DavidO_> hey putti
<DavidO_> bro
<DavidO_> do you know to work with buildroot
<Putti> DavidO_, little bit
<DavidO_> do you know how can i apply patch
<Putti> no I don't
<Putti> DavidO_, do you know if buildroot community has their own irc channel? You could try it if they have
Pe3ucTop has quit [Ping timeout: 240 seconds]
Pe3ucTop has joined #linux-sunxi
<DavidO_> no one is
<DavidO_> alive there
<DavidO_> afk is all
<KotCzarny> why do you need buildroot?
<DavidO_> to make my own linux
<DavidO_> own packages
afaerber has quit [Quit: Leaving]
<DavidO_> custom loading screen
<DavidO_> basically my own linux
<KotCzarny> you know that you only need kernel and uboot?
<DavidO_> ?
<KotCzarny> otherwise it will work with any arm software?
<DavidO_> i do not
<DavidO_> explain more pls
<DavidO_> i have kernel and uboot
<KotCzarny> the only specific bits that are required to run os is kernel and uboot
<KotCzarny> if you have arm os, just apply those two and it's done
<KotCzarny> any arm os
<KotCzarny> (as long it's linux based ofc)
fkluknav has quit [Ping timeout: 246 seconds]
<KotCzarny> be it debian, arch, gentoo, whatever
<DavidO_> yeah but
<DavidO_> i wish to modify the os
<KotCzarny> then grab armbian build script and work from there
<DavidO_> and restribute it
<KotCzarny> it will build you the image
<DavidO_> is it possible
<DavidO_> to change packages
<DavidO_> um
<DavidO_> custom loading screen
<KotCzarny> that's why it's a build script, not install
<KotCzarny> sure
<DavidO_> i'm a complete dummy as of right now
<DavidO_> could you lead me where to learn
<DavidO_> how to modify it
<DavidO_> the official documentation they have on arm
<DavidO_> they don't show you anything
chomwitt has joined #linux-sunxi
gnufan has quit [Ping timeout: 250 seconds]
Pe3ucTop has quit [Ping timeout: 248 seconds]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
yann has joined #linux-sunxi
gnufan has joined #linux-sunxi
<tkaiser> Crazy: H5 board with everything (Gigabit Ethernet included) on pin headers: http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Core2#Hardware_Spec
tl_lim has joined #linux-sunxi
smaeul has quit [Ping timeout: 276 seconds]
tllim has quit [Ping timeout: 255 seconds]
Mr__Anderson has joined #linux-sunxi
a|3x has quit [Quit: Leaving]
lurchi_ is now known as lurchi__
P_C is now known as Poeticode
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
datagutt has quit [Ping timeout: 240 seconds]
tl_lim has quit [Ping timeout: 252 seconds]
tl_lim has joined #linux-sunxi
datagutt has joined #linux-sunxi
datagutt has quit [Changing host]
datagutt has joined #linux-sunxi
lurchi__ is now known as lurchi_
Andy-D has joined #linux-sunxi
fkluknav has joined #linux-sunxi
mfa298_ is now known as mfa298
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 4.9.2, revision: git-7212-g33fcac555, build type: debug, sources date: 20160102, built on: 2017-11-06 01:25:43 UTC git-7212-g33fcac555 http://www.kvirc.net/]
<miasma> tkaiser: is that new?
scream has joined #linux-sunxi
ernestask has quit [Quit: ernestask]
vagrantc has quit [Quit: leaving]
<tkaiser> miasma: NEO Core and Core 2?
<miasma> yea
<tkaiser> Yes, they revealed the existence before (.dts on Github) but today official wiki pages appeared.
f0xx has quit [Ping timeout: 276 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
<tkaiser> FriendleELEC will also provide a 'Mini shield' in RPi form factor for them: https://forum.armbian.com/topic/5035-nanopi-duo-plus-mini-shield/?do=findComment&comment=38574
<miasma> i realized when asking for a friend to 3d print a case for my opi that the size reported in the wiki/cnx-software blog are pretty useless
<miasma> sometimes the measurements show the pcb size (e.g. opi zero), sometimes they don't (opi+2e)
vagrantc has joined #linux-sunxi
gzamboni has joined #linux-sunxi
fkluknav has quit [Ping timeout: 248 seconds]
apritzel has joined #linux-sunxi
clemens3 has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
iamfrankenstein has quit [Quit: iamfrankenstein]
iamfrankenstein has joined #linux-sunxi
iamfrankenstein has quit [Client Quit]
reinforce has quit [Quit: Leaving.]
gzamboni has quit [Ping timeout: 268 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
souther has quit [Remote host closed the connection]
souther has joined #linux-sunxi
Putti has quit [Ping timeout: 255 seconds]
tgaz has quit [Ping timeout: 240 seconds]
ariendj has quit [Remote host closed the connection]
tl_lim has quit [Ping timeout: 252 seconds]
tl_lim has joined #linux-sunxi
tkaiser has quit [Quit: jIRCii - http://www.oldschoolirc.com]
Andy-D has quit [Ping timeout: 260 seconds]
apritzel has left #linux-sunxi [#linux-sunxi]
Ntemis has quit [Remote host closed the connection]
iamfrankenstein has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
smaeul has joined #linux-sunxi
tl_lim has quit [Quit: Leaving]
goliath has quit [Quit: Leaving]
ariendj has joined #linux-sunxi
lurchi_ is now known as lurchi__
chlorine has joined #linux-sunxi