ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
radxanaoki has joined #linux-sunxi
hexdump02 has quit [Ping timeout: 480 seconds]
<wens> apritzel: HS200
Daanct12 has joined #linux-sunxi
hexdump02 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
jgfh has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
warpme has quit []
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
jnn is now known as jn
<wens> we probably need to introduce per-controller clock phase settings through the DT
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
evgeny_boger1 has joined #linux-sunxi
evgeny_boger has quit [Read error: Connection reset by peer]
jernej- has joined #linux-sunxi
jernej has quit [Remote host closed the connection]
evgeny_boger1 has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
radxanaoki has quit [Quit: radxanaoki]
evgeny_boger has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest24463
dsimic has joined #linux-sunxi
Guest24463 has quit [Ping timeout: 480 seconds]
warpme has quit []
warpme has joined #linux-sunxi
<apritzel> paulk: I added a "gpio" command to sunxi-tools, using the changes I did for the SPI flash rework (PR #224). Does that look useful? https://github.com/apritzel/sunxi-tools/commits/gpio-cmd/
Daanct12 has quit [Quit: WeeChat 4.7.0]
<dlan> apritzel: I'd say, it's very useful! any possible to add a "state" command, to just retrieve gpio current status without actually set or write gpio registers
<apritzel> dlan: that's what "input" does
<apritzel> it output 0 or 1
<dlan> let me think, it's probably enough..
<dlan> it only read data reg,, I thought also to print the gpio output or input info
<dlan> btw, does sunxi-fel or u-boot support spi flash with spif IP (spi flash controller) or just the generic spi controller?
cnxsoft has quit [Ping timeout: 480 seconds]
warpme has quit []
<wens> apritzel: I'm looking at the a523 ccu code, and for the pll's there's an input divider defined, but it's not in the datasheet?
<apritzel> wens: they are mentioned in the A523 user manual, and I think someone mentioned they are in the BSP as well
<apritzel> dlan: do you mean to print the configuration, so whether a particular pin is configured as input or output?
<dlan> yes, print the configuration, so know currently it's in input or output mode, the use case I can think of, use sunxi-fel to check when return FEL from SPL
Schimsalabim has quit [Ping timeout: 480 seconds]
<wens> apritzel: the periph plls don't have a divider
<wens> the base pll that is
<apritzel> wens: which ones, exactly?
<wens> .m = _SUNXI_CCU_DIV(1, 1), /* input divider */ # this setting seems to be bogus across the board
<wens> I'm looking at a523 manual v1.4, and none of the PLLs have anything defined in bit 1
<apritzel> both PLL_PERI0 and PLL_PERI1 mention bit 1 as an input divider in the A523 manual v1.2
<wens> that's weird as hell...
<apritzel> this is the time where the people with those oscilloscopes can shine (HINT HINT)
<apritzel> the CLK_FANOUT pins can use a divided-down source from PLL_PERI0 as their source
<apritzel> probably best done in U-Boot: "mw.l 0x2001f3c 0x00e000a7"
<apritzel> should enable all three fanout clocks, at different frequencies
gsz has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<apritzel> well, it's only FANOUT0 exposed on PH16, which is connected to the PHY
evgeny_boger has joined #linux-sunxi
<apritzel> actually there is a much simpler way to check this, and I think I even tried this before: since MMC0 is clocked by PLL_PERI0, the read performance from an SD card should change when flipping bit 1
<wens> also , I see a couple (memory related) clocks that use MP but have "no P"
<wens> seems a bit weird
<paulk> apritzel: yes gpio support is very nice!
<paulk> apritzel: btw not sure you saw it yesterday, there's a new a133 board with proper schematics available
<paulk> and friendlier connectors compared to the liontron's jst ones
<paulk> and they also sell a lvds display for it
<apritzel> yeah, saw it, thanks, but the A133 is just "meh", if you ask me, so not super excited about it, sorry!
<apritzel> wens: any particular reasons for those clock checks? Is that about the eMMC? I did check the clocks already (that's how I found the 800MHz issue)
<apritzel> and at least with SD cards I could confirm they are right: I got the expected 23 MB/s, and tweaking some clock bits gave me the expected doubling/halving of read performance
<paulk> apritzel: yes I get it, but I think it has a future for industrial applications and there's lots of low-hanging fruits
<apritzel> sure, I was about to order proper connectors for the Liontron board, to test (and enable) SPI and other missing peripherals
ftg has joined #linux-sunxi
<wens> apritzel: I'm writing the mcu clock driver and using the ccu driver as a reference for macros and stuff
<apritzel> ah, nice one, many thanks!
<apritzel> wens: and yeah, writing clock drivers for Allwinner, with newly found bits, hacks, and patchy documentation is always fun!
<wens> apritzel: yeah, there's a couple clocks that aren't in the manual, and there's also no information for their users (such as dsp or tzma)
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.6, revision: 5.2.6+git-7614-6f23368f1, build type: debug, sources date: 20160102, built on: 2025-03-30 13:34:35 UTC 5.2.6+git-7614-]
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
apritzel has joined #linux-sunxi
<wens> blah, rtc seems driven by internal osc by default
apritzel has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
gsz has quit [Ping timeout: 480 seconds]
BroderTuck has joined #linux-sunxi
<BroderTuck> wens: yeah, the android boot log from my h728 tv box has this message: "sunxi:rtc-7090000.rtc:[WARN]: Warning: Using internal RC 16M clock source. Time may be inaccurate!"
apritzel has joined #linux-sunxi
BroderTuc1 has joined #linux-sunxi
BroderTuck has quit [Ping timeout: 480 seconds]
indy_ has joined #linux-sunxi
indy has quit [Ping timeout: 480 seconds]
BroderTuc1 has quit [Ping timeout: 480 seconds]
<apritzel> wens: yes, confirmed: if I set bit 1 in the PLL_PERI0 register, SD card read speed exactly halves, so M1 is a thing. Bit 0 has no effect.
jgfh has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
hentai has joined #linux-sunxi
hentai has left #linux-sunxi [#linux-sunxi]
dfas has joined #linux-sunxi
jgfh has quit [Ping timeout: 480 seconds]
jgfh has joined #linux-sunxi
dfas has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]