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
xes has joined #linux-sunxi
Ntemis has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
ssvb has quit [Ping timeout: 240 seconds]
tkaiser has joined #linux-sunxi
ssvb has joined #linux-sunxi
tkaiser has quit [Ping timeout: 268 seconds]
lurchi__ is now known as lurchi_
Andy-D has joined #linux-sunxi
jrg has joined #linux-sunxi
<MoeIcenowy> BenG83: I think CHIP is 8723BS and CHIP Pro is 8723DS
<MoeIcenowy> no CS in CHIP series
IRCFrEAK has joined #linux-sunxi
IRCFrEAK has left #linux-sunxi [#linux-sunxi]
<FergusL> just got the friendlyarm DAC for nanopiair working with armbian!
<FergusL> going to post about it in forum
<BenG83> MoeIcenowy, I tried using the Iwfinger firmware loader with 8723CS firmware I found on the Android images from AW
<BenG83> firmware upload protocol works, but claims there is version mismatch
<BenG83> I checked the dts for the reset and IRQ pins
<MoeIcenowy> FW version mismatch?
<BenG83> yes
<MoeIcenowy> so are you sure you loaded 8723CS firmware?
<BenG83> there were three variants of 8723cs firmware on the android image
<BenG83> I tried all of them
<BenG83_PB> maybe I am missing something
<BenG83_PB> Realtek Bluetooth ERROR: lmp_version is 8703, project_id is 0, does not match!!!
<BenG83_PB> I use that same fw loader on the normal pine boards and it worked so far
<BenG83_PB> with the 8723bs
<BenG83_PB> http://pastebin.ubuntu.com/24031092/ firmware images I found on the AW image
tkaiser has joined #linux-sunxi
tkaiser has quit [Ping timeout: 240 seconds]
<MoeIcenowy> BenG83_PB: try to modify 0x1200 to 0x8703 in hciattach_rtk.c ?
chomwitt has quit [Ping timeout: 260 seconds]
wzyy2 has joined #linux-sunxi
<BenG83> MoeIcenowy, yeah I might try that, can you make any sense of the different firmware versions?
<MoeIcenowy> The 8723bs loader contains no support for the CS firmware
<MoeIcenowy> what firmware pair did you used on 8723cs?
<BenG83> I use the xx version at the moment
<BenG83> I can maybe find out what Android uses
<wens> from what i heard from friends at realtek, the abcd difference is mostly on the RF side
cnxsoft has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
apritzel has quit [Ping timeout: 260 seconds]
tkaiser has joined #linux-sunxi
Andy-D has quit [Ping timeout: 260 seconds]
tkaiser has quit [Ping timeout: 240 seconds]
ninolein_ has joined #linux-sunxi
ninolein has quit [Ping timeout: 255 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
lkcl has joined #linux-sunxi
tkaiser has joined #linux-sunxi
lkcl has quit [Remote host closed the connection]
tkaiser has quit [Ping timeout: 268 seconds]
lurchi_ is now known as lurchi__
victhor has quit [Ping timeout: 240 seconds]
terra854 has joined #linux-sunxi
madgoat has joined #linux-sunxi
madgoat has left #linux-sunxi [#linux-sunxi]
pg12 has quit [Ping timeout: 240 seconds]
IgorPec4 has joined #linux-sunxi
pg12 has joined #linux-sunxi
tkaiser has joined #linux-sunxi
tkaiser has quit [Ping timeout: 240 seconds]
leviathan has joined #linux-sunxi
IgorPec has joined #linux-sunxi
IgorPec4 has quit [Ping timeout: 240 seconds]
laj has quit [Quit: Page closed]
tkaiser has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
tkaiser has quit [Ping timeout: 260 seconds]
quinward has quit [Quit: WeeChat 1.5]
gzamboni has quit [Ping timeout: 240 seconds]
leviathan has quit [Remote host closed the connection]
TheSeven has quit [Ping timeout: 240 seconds]
[7] has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
chomwitt has joined #linux-sunxi
gzamboni has joined #linux-sunxi
muvlon has quit [Ping timeout: 240 seconds]
f0xx has joined #linux-sunxi
tkaiser has joined #linux-sunxi
muvlon has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
tkaiser has quit [Ping timeout: 240 seconds]
vishnup has quit [Ping timeout: 240 seconds]
chomwitt has quit [Ping timeout: 240 seconds]
IgorPec has quit [Ping timeout: 240 seconds]
mossroy has joined #linux-sunxi
jernej has quit [Ping timeout: 260 seconds]
IgorPec4 has joined #linux-sunxi
tkaiser has joined #linux-sunxi
IgorPec4 has quit [Ping timeout: 240 seconds]
mossroy has quit [Quit: Leaving]
IgorPec4 has joined #linux-sunxi
ninolein_ has quit [Ping timeout: 240 seconds]
ninolein has joined #linux-sunxi
IgorPec has joined #linux-sunxi
IgorPec4 has quit [Quit: Nettalk6 - www.ntalk.de]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 260 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Client Quit]
Mr__Anderson has joined #linux-sunxi
Mr__Anderson has quit [Client Quit]
orly_owl_ has joined #linux-sunxi
orly_owl has quit [Disconnected by services]
orly_owl_ is now known as orly_owl
orly_owl has quit [Changing host]
orly_owl has joined #linux-sunxi
florianH has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 260 seconds]
matthias_bgg has joined #linux-sunxi
tkaiser has quit [Quit: jIRCii - http://www.oldschoolirc.com]
Leepty has joined #linux-sunxi
Pepe has quit [Read error: Connection reset by peer]
Pepe has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
Pepe has quit [Read error: Connection reset by peer]
Pepe has joined #linux-sunxi
leviathancn has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
Mr__Anderson has quit [Ping timeout: 268 seconds]
Gerwin_J has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 240 seconds]
Mr__Anderson has joined #linux-sunxi
Andy-D has joined #linux-sunxi
vickycq has quit [Ping timeout: 240 seconds]
cnxsoft1 has joined #linux-sunxi
<Wizzup> for the pine64 special usb-a male to usb-a male cable, do I connect the 5v as well?
cnxsoft has quit [Ping timeout: 240 seconds]
cnxsoft1 is now known as cnxsoft
<NiteHawk> Wizzup: yes. pre-made cables do, and i think the +5v is needed to have the pine port detect / go into OTG mode
<Wizzup> I'm making it now
popolon has joined #linux-sunxi
<NiteHawk> (Note that this won't power the pine, it's just needed to prevent the port from being treated as a standard 'host' one. You still need to supply power to the Pine via PWR micro usb, or GPIO pins.)
f0xx has quit [Ping timeout: 268 seconds]
LargePrime has quit [Ping timeout: 268 seconds]
vickycq has joined #linux-sunxi
LargePrime has joined #linux-sunxi
lemonzest has joined #linux-sunxi
<Wizzup> ack
Andy-D has quit [Ping timeout: 268 seconds]
<MoeIcenowy> NiteHawk: no there's no any detect.
<Wizzup> NiteHawk: works
<Wizzup> MoeIcenowy: so should I cut the 5v wire now? ;)
<MoeIcenowy> 5v do not affect
Gerwin_J has quit [Quit: Gerwin_J]
<Wizzup> MoeIcenowy: as in, don't want to connect vcc to vcc, but it seems to work, so ...
Gerwin_J has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
ErwinH has joined #linux-sunxi
f0xx has joined #linux-sunxi
fl_0 has quit [Ping timeout: 260 seconds]
fl_0 has joined #linux-sunxi
ErwinH has quit [Remote host closed the connection]
<MoeIcenowy> montjoie: ping
<MoeIcenowy> can you read the backlog I wrote on ~15:00 UTC?
<MoeIcenowy> about dwmac-sun8i on V3s
<MoeIcenowy> no PHY is probed (V3s supports and only supports integrated PHY
ErwinH has joined #linux-sunxi
BenG83 has quit [Quit: Leaving]
ErwinH has quit [Ping timeout: 255 seconds]
<montjoie> MoeIcenowy: which compatible dt do you use
<MoeIcenowy> h3
<MoeIcenowy> only H3 compatible supports internal PHY
<montjoie> could you paste dmesg ?
<montjoie> no user manual for v3s ?
wzyy2 has quit [Ping timeout: 260 seconds]
<MoeIcenowy> there is.
<MoeIcenowy> the user manual is in datasheet
ErwinH has joined #linux-sunxi
<montjoie> in DT, what address is set for phy ? (try 0)
LargePrime has quit [Ping timeout: 268 seconds]
<MoeIcenowy> I'm rearranging R40 patchset now, may test it several minutes later
<wens> iirc, the address programmed in the syscon has to match
<wens> though maybe you could make the driver probe the address found in the DT into the syscon :p
<MoeIcenowy> the register is at 0x30 according to the DT.
<MoeIcenowy> (syscon EPHY configuration register
<wens> MoeIcenowy: montjoie means the "register" property in the phy node under dwmac, not the syscon
<montjoie> yes reg = <1>;
<montjoie> 0 is for PHY DHCP:)
<muvlon> is it time to make a wiki page for the R40 yet?
klarrt has joined #linux-sunxi
<wens> probably yes
<muvlon> I don't have a bpi m2 ultra yet, so I can only scrape info off the net
IgorPec has quit [Quit: Nettalk6 - www.ntalk.de]
<muvlon> but the device seems very interesting
ErwinH has quit [Ping timeout: 260 seconds]
techping has joined #linux-sunxi
techping has left #linux-sunxi [#linux-sunxi]
IgorPec has joined #linux-sunxi
<MoeIcenowy> but BPi is now a not-so-good vendor.
<muvlon> I don't like them either
<MoeIcenowy> montjoie: I used 1 for phy reg
<MoeIcenowy> as you used in H3
<muvlon> but dealing with shitty vendors is most of the reason this community exists
<muvlon> allwinner itself is a not-so-good vendor
<MoeIcenowy> P.S. the user manual still features "PHY select" bit at 0x30 syscon, but there's no PD pin group on V3s
BenG83 has joined #linux-sunxi
<MoeIcenowy> (V3s is packaged with TQFP, and much smaller than A13, means it have very few GPIOs
<muvlon> MoeIcenowy, are there any other (planned or released) devices with R40?
<MoeIcenowy> unfortunately, nope.
techping has joined #linux-sunxi
<montjoie> MoeIcenowy: do you have compared value set in syscon by BSP and mine ?
ErwinH has joined #linux-sunxi
<MoeIcenowy> I have even no BSP built.
<wens> bpi's don't come with BSP images burned in
interrobangd has joined #linux-sunxi
<montjoie> I mean BSP code
<montjoie> source
<wens> maybe just get an image from bpi (hoping it works), boot it, and dump the register value
Gerwin_J has quit [Ping timeout: 260 seconds]
<MoeIcenowy> oh there's a libgeth in BSP
<MoeIcenowy> weird, weird and weird
<MoeIcenowy> a blob that haven't be found before
Gerwin_J has joined #linux-sunxi
<wens> allwinner's github repo has sources to build it
ErwinH has quit [Ping timeout: 240 seconds]
<wens> it's just the glue layer for v1 and v2 GMAC (normal vs reordered)
<MoeIcenowy> so it proves sun8i gmac is a obfuscated stmmac ;-)
<wens> i didn't make the connection back then
<wens> as it had callbacks for almost everything
<MoeIcenowy> montjoie: when will the CLK_BUS_EPHY and RST_BUS_EPHY be passed?
<MoeIcenowy> when I'm testing it, the clk_summary in debugfs says CLK_BUS_EPHY is still gated
ErwinH has joined #linux-sunxi
<montjoie> in sun8i-h3 emac node
<montjoie> the internal phy is modeled in it
<MoeIcenowy> will it be passed only when the PHY is probed?
<montjoie> it is enabled by sun8i_dwmac_power_internal_phy if internal_phy flag is set
<MoeIcenowy> montjoie: P.S. in BSP source code something is read from SID then written to clk register...
ErwinH has quit [Ping timeout: 240 seconds]
<MoeIcenowy> but it only sets the lowest 4 bits
<MoeIcenowy> montjoie: https://pastebin.anthonos.org/view/5692bdd4 here's the kernel log
ErwinH has joined #linux-sunxi
<MoeIcenowy> the default value of the clk register in syscon is 0x58000 according to V3s DS , the same as your code of H3.
<rah> wens: btw, your clock patch for my bad HDMI output does seem to work for some kernel configurations
<rah> wens: I'm in the process of trying to get a grip on what's going on
<rah> mripard: ^
<wens> thanks
<MoeIcenowy> montjoie: maybe something wrong prevents sun8i_power_phy being called?
ErwinH has quit [Ping timeout: 255 seconds]
Mr__Anderson has quit [Quit: Leaving.]
ErwinH has joined #linux-sunxi
<BenG83_PB> MoeIcenowy, adding the missing id to the iwfinger firmware loader worked
<BenG83_PB> got BT on the 8723cs
<MoeIcenowy> really working?
<MoeIcenowy> can scan and connect?
ErwinH has quit [Ping timeout: 240 seconds]
<BenG83_PB> I dont know about all device classes
<BenG83_PB> but I just pulled files of my phone
<MoeIcenowy> and your nick shows you are on Pinebook, right?
<BenG83_PB> yes
<MoeIcenowy> congrats ;-)
<BenG83_PB> I am still not clear what the different firmware variants do
<MoeIcenowy> you please make a fork of rtl8723bs_bt with cs support ;-)
<MoeIcenowy> and I think this modified version of loader shouldn't be used on bs
<BenG83_PB> they added the id for the DS
<BenG83_PB> and that seems to be all
<BenG83_PB> yeah I will fork that and add it to the build-pine64-image repo or sth
ErwinH has joined #linux-sunxi
<montjoie> MoeIcenowy: add pr_info to my code
<MoeIcenowy> where?
<montjoie> in all phy functions
techping has quit [Ping timeout: 268 seconds]
ErwinH has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
<MoeIcenowy> montjoie: sun8i_power_phy is not called at all
ErwinH has quit [Ping timeout: 260 seconds]
<MoeIcenowy> should I check into "net: stmmac add optional init_phy function" ?
leviathancn has quit [Remote host closed the connection]
ErwinH has joined #linux-sunxi
<montjoie> you need it yes
ErwinH has quit [Ping timeout: 260 seconds]
BenG83_PB has quit [Quit: Leaving]
BenG83_PB has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
techping has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
tkaiser has joined #linux-sunxi
<tkaiser> Too funny. BPi folks decided to release another Banana Pi M2, this time it's BPi M2 Magic (M2M). Ships with brand new kernel 3.4.39: https://github.com/BPI-SINOVOIP/BPI-files/commit/ce642ad1b36f2b38e66d1591182e6ae7f3df5a08
ErwinH has joined #linux-sunxi
<tkaiser> That's what the Internet of Things needs: devices featuring more vulnerabilities than features.
wzyy2 has joined #linux-sunxi
<MoeIcenowy> tkaiser: BPi M2M is just BPi R16
<tkaiser> MoeIcenowy: I know
<MoeIcenowy> montjoie: stmmac_init_phy is even not called...
<techping> Wow,new device
<MoeIcenowy> oh when the device is accessed, the PHY will finally be inited...
ErwinH has quit [Ping timeout: 240 seconds]
<jelle> doesn't look that pretty
cptG_ has quit [Ping timeout: 260 seconds]
cptG has joined #linux-sunxi
<tkaiser> jelle: Has PMIC + battery support. That's the only interesting feature. Everything else is more or less the same as NanoPi Air (A33 vs. H3 though)
<jelle> oh that's nice
<tkaiser> jelle: And LCD/TS support like Olimex' A33 board.
<MoeIcenowy> the LCD is unfortunately MIPI-DSI
<wens> probably same as a83t
<wens> bpi does have rgb/dsi dual interface lcd panels
<montjoie> MoeIcenowy: yes the init phy is done when netdev is "opened"
<montjoie> MoeIcenowy: so it works now ?
<MoeIcenowy> now it's sun8i-dwmac 1c30000.ethernet eth0: Could not attach to PHY
<MoeIcenowy> do not work.
<MoeIcenowy> but the BUS_CLK_EPHY is passed
<MoeIcenowy> maybe I should set phy's reg back?
<montjoie> you could try
ErwinH has joined #linux-sunxi
<MoeIcenowy> still Could not attach to PHY.
<techping> http://linux-sunxi.org/Mainline_U-Boot said that H3 EMAC Ethernet uboot support is working in progress,is it means H3 uboot don't support the ethernet?
aballier has quit [Ping timeout: 260 seconds]
<MoeIcenowy> techping: some boards supports
ErwinH has quit [Ping timeout: 268 seconds]
<techping> MoeIcenowy:some H3 boards support?
<MoeIcenowy> at least I think so
<jelle> techping: worked on my orange pi one/pc and nanopi neo
<techping> My Orange Pi Zero's U-Boot said 'No ethernet found'
<jelle> well zero is h2 :P
<techping> yes
<techping> it's similar ,right?
<MoeIcenowy> techping: which version?
<techping> the newest
<swabbles> apritzel: SPI driver also works on Pine64+ (using your sunxi64-beta branch + my patches)
<MoeIcenowy> I think 2017.03 have opi zero's ethernet support added by apritzel
* jelle keeps looking for arch/arm/boot/dts in u-boot
<swabbles> lol
<jelle> yup it has an emac node
<techping> <MoeIcenowy> let me see
tkaiser has quit [Quit: jIRCii - http://www.oldschoolirc.com]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
zzeroo has quit [Quit: WeeChat 1.3]
zzeroo has joined #linux-sunxi
ErwinH has joined #linux-sunxi
pg12 has quit [Ping timeout: 260 seconds]
pg12 has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
interrobangd has quit [Read error: Connection reset by peer]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 268 seconds]
BenG83_PB has quit [Ping timeout: 260 seconds]
chomwitt has joined #linux-sunxi
BenG83_PB has joined #linux-sunxi
leviathan has joined #linux-sunxi
ErwinH has joined #linux-sunxi
BenG83_PB has quit [Client Quit]
IgorPec has quit [Ping timeout: 240 seconds]
BenG83_PB has joined #linux-sunxi
aballier has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
<MoeIcenowy> montjoie: what will you consider about this bug?
<montjoie> go in mdio_read of stmmac_ethtool and add a pr_info to print all reads
IgorPec has joined #linux-sunxi
<montjoie> sorry mdio.c
<montjoie> patch incming:)
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<montjoie> and paste the resulting dmesg
<montjoie> with that we see what mdio see
<montjoie> set reg = <0> also
<montjoie> for dumping all address
chlorine has joined #linux-sunxi
freemangordon has quit [Remote host closed the connection]
<MoeIcenowy> montjoie: no any debug output...
freemangordon has joined #linux-sunxi
cptG_ has joined #linux-sunxi
f0xx has quit [Ping timeout: 240 seconds]
victhor has joined #linux-sunxi
cptG has quit [Ping timeout: 240 seconds]
ErwinH has joined #linux-sunxi
<montjoie> oh
<MoeIcenowy> P.S. the errno in log is -19
<montjoie> without MDIO read, no PHY can be found
<MoeIcenowy> "eth0: stmmac_open: Cannot attach to PHY (error: -19)"
<MoeIcenowy> -19 means ENODEV
ErwinH has quit [Remote host closed the connection]
chlorine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<montjoie> could you regive me a link to your nodes ? (seeing all your emac node)
<MoeIcenowy> so why is there no MDIO read?
f0xx has joined #linux-sunxi
<montjoie> perhaps the DT node are not well set
cnxsoft has quit [Quit: cnxsoft]
<montjoie> and nodes on the board DT ?
ErwinH has joined #linux-sunxi
techping has quit [Remote host closed the connection]
<MoeIcenowy> it's 3 files
<montjoie> its look good otherwise
<MoeIcenowy> in board dts I have only &emac {        status = "okay"; };
<montjoie> try this
<terra854> You guys testing the stmmac-sun8i-wip tree//
ErwinH has quit [Ping timeout: 240 seconds]
<terra854> ?
<wens> they are testing it for r40
<MoeIcenowy> terra854: I'm testing dwmac-sun8i on V3s SoC
<MoeIcenowy> wens: now not for r40, but for v3s
<MoeIcenowy> but soon I will start R40 work
codekipper has joined #linux-sunxi
<codekipper> terra854: I've tested it on H3 and A64
ErwinH has joined #linux-sunxi
xiaolu has joined #linux-sunxi
xiaolu has quit [Remote host closed the connection]
xiaolu has joined #linux-sunxi
<MoeIcenowy> montjoie: (null) of_phy_connect
phil42 has quit [Remote host closed the connection]
<montjoie> :) forget to add __func__, but at least phy_node exists
<montjoie> and no init_phy ?
<terra854> And does ethernet works?
<terra854> Also, does usb/mmc works too?
<MoeIcenowy> there is init_phy.
<MoeIcenowy> terra854: on what SoC?
<terra854> A64
ErwinH has quit [Remote host closed the connection]
<MoeIcenowy> 4.11-rc will have A64 usb/mmc work.
<terra854> I see
<terra854> Then 4.12 has ethernet?
<MoeIcenowy> terra854: no one can promise this
<MoeIcenowy> and I think we can get eth at least in 4.13
<terra854> Just an estimate
<MoeIcenowy> patch reviewing takes time
<swabbles> nice.
<swabbles> apritzel: your sunxi64-beta branch also works on A64 OLinuXino with pine64 dts files.
<MoeIcenowy> montjoie: no new debug infos
<montjoie> oh
ErwinH has joined #linux-sunxi
<montjoie> so mdio bus is not registered
ErwinH has quit [Ping timeout: 240 seconds]
<MoeIcenowy> the function is not entered.
<montjoie> interesting
<montjoie> put a pr_info in all calling chain
<montjoie> stmmac_probe_config_dt
Mr__Anderson has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Remote host closed the connection]
techping has joined #linux-sunxi
<codekipper> MoeIcenowy: what platform you building for?
<MoeIcenowy> codekipper: ?
<MoeIcenowy> currently I'm WIP on V3s
<codekipper> are you having problems with the new eth driver?
<MoeIcenowy> yes
<codekipper> is it being built?
Da_Coynul has joined #linux-sunxi
<MoeIcenowy> of course, in mainline usually driver won't trap into non-buildable problem on new SoCs
mzki has quit [Ping timeout: 240 seconds]
<codekipper> It's just that I had a similar issue with the A64 over the weekend....then saw that it wasn't being built into the image
mzki has joined #linux-sunxi
<MoeIcenowy> montjoie: sorry I seek for wrong place...
<MoeIcenowy> stmmac_dt_phy c3dfd790
<MoeIcenowy> and stmmac_mdio_read log is stmmac_mdio_read 1 2 ffff
<MoeIcenowy> stmmac_mdio_read 1 3 ffff
<MoeIcenowy> this seems to be problem: we used mdio to access ephy before its clock is passed
<montjoie> MoeIcenowy: and with reg = <0>
<montjoie> MoeIcenowy: the clock is enabled before in init_phy
<MoeIcenowy> nope
<MoeIcenowy> the clock is enabled only when opening netdev
<MoeIcenowy> but the stmmac_mdio_read is called when probing
<montjoie> init_phy is called before
codekipper has quit [Quit: Page closed]
<montjoie> add pr_info for be sure
<montjoie> but at least on opic it works
<MoeIcenowy> nope init_phy is not called before.
<MoeIcenowy> it's called when trying to access eth0
<montjoie> if you have only two stmmac_mdio_read reg is not 0
leviathan has quit [Remote host closed the connection]
<montjoie> MoeIcenowy: could you paste dmesg ?
<MoeIcenowy> ok I will paste a full log
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MoeIcenowy> for reg changed to 0 "stmmac_mdio_read 0 2 ffff" "stmmac_mdio_read 0 3 ffff" and nothing more
ErwinH has joined #linux-sunxi
<MoeIcenowy> montjoie: on opipc I think u-boot gained emac support before linux
<MoeIcenowy> and u-boot enables ephy
<MoeIcenowy> or I will try to use md to enable ephy before boot
<montjoie> try it
<montjoie> and yeah probably init_phy is not early enought
leviathan has joined #linux-sunxi
<MoeIcenowy> this time phy seems to be attached
<MoeIcenowy> after running "mw 01c20070 1" "mw 01c202c8 4" in u-boot
<montjoie> attached on which address ?
reinforce has quit [Quit: Leaving.]
<MoeIcenowy> currently 0
<MoeIcenowy> will soon test 1
<montjoie> you could see on mdio prints
<montjoie> which one is non ffff
<MoeIcenowy> of course it's attached on 0 ;-)
<MoeIcenowy> as I specified 0 in dt
<montjoie> no 30 lines od mdio print ?
<MoeIcenowy> ?
<MoeIcenowy> only 0 is accessed.
<montjoie> last time I set 0, mdio probe tried 1-15
<montjoie> my memory corruped probably
<MoeIcenowy> nope, only 0 is tried and success
<montjoie> normal, 0 is the catch all, I need to refind how to test 15 address
techping has quit [Remote host closed the connection]
<MoeIcenowy> but it shows that you should pass ephy clk/rst as early as possible
<montjoie> if you do not know phy address
<MoeIcenowy> on netdev_open it's very late
<montjoie> when you will find the good reg, perhaps it is not necessary
<MoeIcenowy> I think it will always be necessary
<montjoie> I will think on how to move init_phy
<MoeIcenowy> you cannot communite with a phy with reset asserted and clock gated
<wens> montjoie: use -1 to test all addresses
<montjoie> yes, before mdio bus is registered
<MoeIcenowy> I think the best solution is to allow some waste -- keep ephy enabled on SoCs with ephy
<montjoie> wens: didnt remember to have use -1
<MoeIcenowy> but as we know where's the fault now, I will take a rest on V3s and come to R40 again
<montjoie> MoeIcenowy: I a interested to know if you put the good reg=<>, does it work woithout modification
<MoeIcenowy> nope
<MoeIcenowy> the only working reg is 0
<montjoie> did you try 2 3 4 ?
<MoeIcenowy> didn't
<MoeIcenowy> but I think it do not make any sense
<montjoie> you have 15 choice
<montjoie> I am puzzled why my opipc works
<MoeIcenowy> check the u-boot output of your opipc
<MoeIcenowy> if it have ethernet enabled
<wens> montjoie: i just remember there's some magic value if you want stmmac to scan the mdio bus, i think it was -1
<wens> or maybe just don't give the reg, and it will scan
<MoeIcenowy> usually clocks enabled in u-boot will not be gated
<MoeIcenowy> or we should say they're finally collected and gated by ccu driver
<montjoie> MoeIcenowy: I will retest without uboot/EMAC
JohnDoe_71Rus has joined #linux-sunxi
<MoeIcenowy> try to use an old enough u-boot
<MoeIcenowy> or I may first got EMAC working on R40
<MoeIcenowy> as EMAC driver has already been mainlined
<MoeIcenowy> and allwinner adopted the mainlined sun4i-emac.c as the driver for R40 emac
<montjoie> if they use sun4i-emac.c its clearly not dwmac-su8ni related
<MoeIcenowy> R40 have two MACs
<MoeIcenowy> one EMAC and one GMAC
<MoeIcenowy> GMAC seems to be dwmac-sun8i
<montjoie> cubieboard2 gmac is dwmac-sunXi
<montjoie> (A20)
<MoeIcenowy> you may mean cb3... cb2 seems to be using emac, not gmac
<montjoie> what give you clues that they changed GMAC IP ?
<montjoie> no I am sure that cubieboard2 use stmmac, I use it for test
<MoeIcenowy> oh... but I remember cb2 have only 100Mbps eth
<montjoie> for testing stmmac chanegs on non-dwmac-sun8i
<montjoie> yes only 100
<MoeIcenowy> good problem... we just asserted R40 uses dwmac-sun8i
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
phil42 has joined #linux-sunxi
LargePrime has joined #linux-sunxi
<wens> montjoie: cb2 is gmac with 100mbps phy
<MoeIcenowy> wens: you should say this to me ;-)
<MoeIcenowy> as I'm the one confused ;-)
<wens> oops
LargePrime has quit [Ping timeout: 240 seconds]
f0xx has quit [Ping timeout: 260 seconds]
leviathan has quit [Read error: No route to host]
Da_Coynul has joined #linux-sunxi
xiaolu has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
leviathan has joined #linux-sunxi
LargePrime has joined #linux-sunxi
<MoeIcenowy> montjoie: support for PHYRSTB is also needed in dwmac-sun8i
<MoeIcenowy> (P.S. this pin is also set and the kept in newest Pine64 U-Boot
reinforce has joined #linux-sunxi
<montjoie> by support you means ?
LargePrime has quit [Read error: Connection reset by peer]
<MoeIcenowy> toggle it at a status when initializing dwmac-sun8i
<MoeIcenowy> (before PHY probing
<wens> there should be some support for that in stmmac-platform
ErwinH has quit [Remote host closed the connection]
<wens> snps,reset-gpios or something
<MoeIcenowy> oh see it
<beeble> yes, that works
<beeble> i'm using it with our phy
ErwinH has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ErwinH has quit [Ping timeout: 260 seconds]
LargePrime has joined #linux-sunxi
<MoeIcenowy> montjoie: I'm now testing on R40 -- PHY is now properly probed, but "EMAC reset timeout"
<rellla> swabbles: please try to keep the new_device_page scheme as a template in place (sunxi support ...) even if some topics are not filled yet
afaerber has quit [Quit: Leaving]
Andy-D has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
mzki has quit [Quit: leaving]
IgorPec has quit [Ping timeout: 240 seconds]
\\Mr_C\\ has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
afaerber has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
nemunaire has quit [Quit: quit]
nemunaire has joined #linux-sunxi
nemunaire has quit [Remote host closed the connection]
bfree_ has joined #linux-sunxi
nemunaire has joined #linux-sunxi
Wizzup_ has joined #linux-sunxi
Wizzup_ has quit [Client Quit]
Pepe has quit [Ping timeout: 240 seconds]
cyrozap has quit [Ping timeout: 240 seconds]
lemonzest has quit [Ping timeout: 240 seconds]
Wizzup has quit [Ping timeout: 240 seconds]
bfree has quit [Ping timeout: 240 seconds]
cyrozap-ZNC has joined #linux-sunxi
Pepe has joined #linux-sunxi
lemonzest has joined #linux-sunxi
Wizzup has joined #linux-sunxi
Wizzup_ has joined #linux-sunxi
<MoeIcenowy> can AP621x work without OOB interrupt?
<MoeIcenowy> Use something on AXP as OOB interrupt is very silly
scream has joined #linux-sunxi
jernej has joined #linux-sunxi
<MoeIcenowy> montjoie: when after boot, the content of 0x01c50004 is 0x08000001 (according to Allwinner's DT R40 GMAC is at 0x01c50000
<MoeIcenowy> and cannot be changed
IgorPec has joined #linux-sunxi
<MoeIcenowy> P.S. for AP6212 the firmware in linux-firmware cannot, instead https://github.com/BPI-SINOVOIP/BPI_WiFi_Firmware/raw/master/ap6212/fw_bcm43438a0.bin should be used
<MoeIcenowy> oh sorry the firmware is not in linux-firmware but added by my distro...
chomwitt has quit [Ping timeout: 260 seconds]
ganbold_ has quit [Remote host closed the connection]
The_Loko has joined #linux-sunxi
komunista has joined #linux-sunxi
Mr__Anderson has quit [Quit: Leaving.]
netlynx has joined #linux-sunxi
netlynx_ has joined #linux-sunxi
netlynx_ has quit [Client Quit]
gzamboni has quit [Ping timeout: 240 seconds]
Da_Coynul has joined #linux-sunxi
florianH has quit [Quit: Connection closed for inactivity]
mossroy has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mossroy has quit [Client Quit]
mossroy has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 260 seconds]
<swabbles> rellla: is it OK if I add the same sections (u-boot mainline/sunxi + kernel mainline/sunxi) with TODO for all four of them?
<swabbles> I'll be able to make some further progress on Wednesday (booting a sunxi kernel)
<MoeIcenowy> I think for newer SOCs you can just drop sunxi parts
<MoeIcenowy> only leave mainline parts
<swabbles> Basically everything else should mostly be in the same state as Pine+ 64 (I think).
<swabbles> Just haven't tested anything other than the u-boot sunxi64-beta branch from apritzel, thus far.
<MoeIcenowy> you can test a linux-next kernel
<MoeIcenowy> but I think some tweaks are needed for eMMC
|Jeroen| has joined #linux-sunxi
mossroy has quit [Quit: Leaving]
<swabbles> MoeIcenowy: ah cool, I will try to look at that on Wednesday then :).
wzyy2 has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
<BenG83_PB> is there a way to hide/mask mixer controls for ALSA? trying to get a more sane alsamixer setup for my A64 audiocodec
<MoeIcenowy> asound.conf?
afaerber has quit [Quit: Leaving]
wzyy2 has joined #linux-sunxi
Wizzup_ has quit [Quit: leaving]
wzyy2 has quit [Read error: Connection reset by peer]
<MoeIcenowy> rellla: sorry but I cannot accept making N/A blocks black on status matrix
wzyy2 has joined #linux-sunxi
<MoeIcenowy> it's scaring
<MoeIcenowy> oh I mean scary
BenG83_PB has quit [Ping timeout: 260 seconds]
BenG83_PB has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
lemonzest has quit [Quit: Leaving]
netlynx has quit [Quit: Ex-Chat]
Da_Coynul has joined #linux-sunxi
<rellla> swabbles: sure :) just keep the original template and for the other topics, too (if there were some)
<rellla> and drop sunxi like MoeIcenowy said ...
<rellla> MoeIcenowy: it was ..... a test :)
<rellla> now i'm not sure anymore, that it made it better ... better said, i think it's more worse now :)
<rellla> feel free to revert :p
wzyy2 has joined #linux-sunxi
muvlon has quit [Quit: Leaving]
atsampson has quit [Ping timeout: 240 seconds]
atsampson has joined #linux-sunxi
terra854 has quit [Quit: Connection closed for inactivity]
ErwinH has joined #linux-sunxi
ErwinH has quit [Remote host closed the connection]
ErwinH_ has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
afaerber has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
ErwinH_ has quit [Remote host closed the connection]
Gerwin_J has quit [Ping timeout: 260 seconds]
wzyy2 has quit [Read error: Connection reset by peer]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
Gerwin_J has joined #linux-sunxi
chomwitt has joined #linux-sunxi
ErwinH has joined #linux-sunxi
cajg has quit [Ping timeout: 252 seconds]
ErwinH has quit [Ping timeout: 240 seconds]
wzyy2 has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leviathan has quit [Remote host closed the connection]
Da_Coynul has joined #linux-sunxi
<plaes> rellla: yeah, MoeIcenowy is right
<plaes> gray would be better
cajg has joined #linux-sunxi
|Jeroen| has quit [Quit: dada]
apritzel has joined #linux-sunxi
ErwinH has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
ErwinH has quit [Ping timeout: 240 seconds]
reinforce has quit [Quit: Leaving.]
<rellla> plaes: i must admit you both were right. bah. ;)
Gerwin_J has quit [Ping timeout: 260 seconds]
<plaes> oh.. come on.. you just updated it :)
<plaes> I got edit conflict ;P
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
ErwinH has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BenG83_PB has quit [Remote host closed the connection]
ErwinH has quit [Ping timeout: 260 seconds]
BenG83_PB has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
<rellla> sry o_o
Da_Coynul has joined #linux-sunxi
<paulk-collins> hi
<paulk-collins> is there any cpufreq scaling support for h3 with mainline linux?
<paulk-collins> as far as I could see, that was done with the help of the axp, which is not there on h3
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<paulk-collins> ah looks like it's WIP
<willmore> paulk-collins, I think it's still in -next. What does the mainlining status matrix say?
<paulk-collins> willmore, it says WIP
<beeble> willmore: still doing your dual io spi stuff?
<willmore> beeble, I'm clearing out space in my office for it. :)
<willmore> It's a bit crowded in there right now.
<beeble> willmore: just as heads up. we have some code working and will have patches soon
<willmore> beeble, if you want a guinea pig...
<willmore> Hmm, I wonder if I have a logic analyzer that'll understand dual-SPI. I bet they don't do that. I may have to code something up for sigrok.
Da_Coynul has joined #linux-sunxi
<willmore> err, pulseview.
<beeble> without optimization we get about 1.5 times the speed of single io
<beeble> tested with 1mb nor flash reads
nemunaire has quit [Quit: quit]
<willmore> beeble, that's great. How big of transfers are you using?
<willmore> What SoC was this with? Did you have to do anything special for the wiring?
<beeble> fifo limit i guess. can't check the code now as i'm already home
<beeble> a64
<beeble> no special wiring required
<beeble> in dual mode miso and mosi gets bidirectional
<willmore> Okay, so 64 byte transfers--which probably include some command overhead, etc. That's not bad.
<beeble> yeah, quite some overhead in uboot
<beeble> ah, and you can only do reads in dual mode. so no benefits for writes
<willmore> Meh, writes take so long to do, the transfer part of it isn't a big deal.
<beeble> for flash yes
<willmore> Yep. I guess if you were using an SPI SRAM..
<beeble> but if you would configure a fpga for example higher write speeds would be nice
<willmore> Sure.
<willmore> Did you mess with the clock speed any or leave it at the default 6MHz?
<beeble> i only measured the clock in relation to the clocking changes we did. no real testing on transfer speeds
<beeble> but 50mhz clock rate is no issue
<willmore> Very nice. This is starting to sound more practical.
<beeble> at higher speeds i only tested it with my scope decoding. no real device attached
<willmore> I guess the scope doesn't need to be able to decode dual-SPI anyway. Since all of the protocol happens at single wire mode and just bulk data transfers happen in dual mode.
<beeble> the only thing on the a64 is, you lose most of the benefits of higher transfer rates in the time it takes the BROM to load the spl from nor in the first place :)
<beeble> right
<willmore> Darn Amdahl!
<willmore> How long does that take?
<willmore> Do we need to look into a dual stage booter? Some little stub that gets loaded by the BROM and that stub just knows how to load the next chunk at a faster speed?
komunista has quit [Quit: Leaving.]
<beeble> have not timed it yet. but it checkes the sdcard and emmc first. and that takes some time you can feel
<beeble> we already have a dual stage loader
<willmore> True. I assume those have to timeout.
<willmore> The SPL itself, you mean?
<willmore> BROM->SPL->uBoot->kernel
<beeble> even if present the check of the eGON header takes a lot of time it seems
<willmore> Oh, well. Not much we can do about the BROM
<beeble> yes. brom loads the 32kbytes of spl. that one loads the uboot second stage (and dtb and atf if you have the full stack) and that one loads the rest
<apritzel> beeble: "a lot of time" sounds really awful, you should really put this into perspective
<beeble> at least as long as you don't burn any fuses. you should be able to limit the bootsource to spi
<willmore> So, you're saying that the time from powerup to the 32K of SPL being done reading is a long time?
<Wizzup> apritzel: btw, with the pine64 dts I was able to get u-boot to run on the A64 OLinuXino w/ swabbles
<beeble> apritzel: will measure it for real numbers. but at first i thought we had a software issue until i noticed it realy takes that long to load the spl
<beeble> ok i should put it into perspective. long is about a seconds. so depends on your definition of long :)
<willmore> beeble, is this with a board with a uSD slot and a card (without a header) in it?
<apritzel> well, it's less than a second for me here
<willmore> Just wondering what the speed difference is between uSD present and not.
<willmore> One second is pretty quick.
<apritzel> the SPL boots almost instantaneously, then you see it load U-Boot and ATF for about half a second
<willmore> Oh, that's plenty fast.
<beeble> apritzel: a second is long if you are talking about optimizing loading a payload at factor 1.5
<beeble> it's just not instant on
<apritzel> instant what?
<apritzel> U-Boot?
<beeble> no spl exececution
<apritzel> seriously: I don't get what the issue here, really
<willmore> beeble is just bemoaning Ahmdals law.
<beeble> it's no real issue
<apritzel> loading Linux takes much longer anyway
<apritzel> the longest delay is the 2 second timeout in U-Boot for me
<willmore> If we're going to suck a kernel over that SPI, +/- 1 second isn't going to be noticiable.
<beeble> it's just to put willmores expection for higher spi transfer speeds into relation
<willmore> Understood here.
<beeble> so that there is no real benefit of doing dual io reads
<willmore> beeble, for the kernel there is.
<apritzel> beeble: but the SPL and BROM load pretty conservatively anyway
scream has quit [Remote host closed the connection]
<apritzel> is it 3 MHz SPI clock?
<willmore> 6, IIRC.
<apritzel> most flash chips can do much faster
<willmore> But the SoC and the SPI chips claim they can do 100MHz. ;) In a perfect world...
<apritzel> so yeah, just set the clock to something higher in the SPL
<willmore> If we just use something more reasonable like 50MHz and get the 1.5x speedup from the dual-SPI, then kernel loads become way more reasonable.
* apritzel wasn't aware that all problems with the A64 are apparently solved already so that we can now spend time on shaving off 100 ms on boot times ;-)
<beeble> as i said. its not an issue. just that you lose some time at the start
<willmore> Now you understand!
<beeble> apritzel: not the reason we are doing it :)
<apritzel> so for the kernel it's noticeable, though not too bad
<beeble> just enhancing the spi driver
<apritzel> but most boards will come with 2MB only anyway, so no kernel in SPI ...
<willmore> apritzel, true. But some of us are crazy and will put other chips on boards.
<beeble> at least i don't see a benefit in it. as we have pleanty of emmc thats also faster
<willmore> maybe one of those silly NAND SPI flash chips that's large enough for a filesystem on it, too....
<apritzel> and which SPI driver are we talking about, seriously?
<willmore> uboot
<apritzel> we should get that upstream first before caring about performance improvements
<beeble> apritzel: patches incoming
<apritzel> I am afraid the (unwritten) rules of Open Source projects say that the first poster wins
<apritzel> so feel free to comment and review swabbles's and Wizzup's driver
vishnup has joined #linux-sunxi
<beeble> will have too
<beeble> at least we have dm as a benefit. even if i still get the feeling dm is a bit hated on the list...
<apritzel> beeble: you haven't met the real DM opponents yet ;-)
<beeble> hope i can avoid that encounter :)
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<beeble> my d20 throws are mostly misses
The_Loko has quit [Quit: Leaving]
Da_Coynul has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BenG83_PB has quit [Quit: Leaving]
BenG83_PB has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]