rellla 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 - *only registered users can talk*
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
RichardG867 has quit [Ping timeout: 245 seconds]
AneoX has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 264 seconds]
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-sunxi
nuuuciano has quit [Read error: Connection reset by peer]
nuuuciano has joined #linux-sunxi
RichardG867 has joined #linux-sunxi
TheSeven has quit [Ping timeout: 252 seconds]
TheSeven has joined #linux-sunxi
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-sunxi
popolon has quit [Quit: WeeChat 2.3]
tl_lim has quit [Ping timeout: 260 seconds]
tl_lim has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
vagrantc-pb has joined #linux-sunxi
victhor has quit [Remote host closed the connection]
Andy-D has quit [Ping timeout: 272 seconds]
Andy-D has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 264 seconds]
BenG83 has quit [Remote host closed the connection]
Arx-zer0 has joined #linux-sunxi
BenG83 has joined #linux-sunxi
vagrantc-pb has quit [Ping timeout: 268 seconds]
LargePrime has quit [Ping timeout: 250 seconds]
<smaeul> is there a good (mainline) linux .config somewhere for the pinebook? or a list of things to enable to get display + battery
<smaeul> CONFIG_DRM_SUN4I, CONFIG_DRM_SUN8I_DW_HDMI, CONFIG_DRM_SUN8I_MIXER, CONFIG_DRM_ANALOGIX_ANX78XX, CONFIG_BACKLIGHT_PWM, CONFIG_BATTERY_AXP20X, CONFIG_CHARGER_AXP20X, CONFIG_INPUT_AXP20X_PEK, anything else?
<anarsoul> smaeul: one min...
<anarsoul> smaeul: here's config I use for my 4.19 branch: https://gist.github.com/anarsoul/aff9f4d045cf6c06e04e2f359032f570
megi has quit [Ping timeout: 272 seconds]
<JuniorJPDJ> I've audio_para with PL04, how to name that port in dts?
<JuniorJPDJ> it is NOT `<&pio 11 4 GPIO_ACTIVE_HIGH>`
<JuniorJPDJ> my soc is a31s
<vagrantc> are the battery patches for the pinebook in linux next or linux master yet?
<MoeIcenowy> JuniorJPDJ: <&r_pio 0 4 GPIO_ACTIVE_HIGH>
<JuniorJPDJ> thx
lurchi_ is now known as lurchi__
<anarsoul> vagrantc: they aren't merged yet
<vagrantc> ah well
<vagrantc> i've been using the pinebook regularly with good results
<vagrantc> got pinebook added to u-boot-sunxi in debian, and have been working on packaging arm-trusted-firmware from upstream git, which is working as well or better than the old atf-allwinner fork
<vagrantc> the battery support is the one thing i'd really hate to miss for the next debian release, but i've been running the patches on 4.19
<vagrantc> also working on adding support to guix, fwiw :)
<wens> anarsoul: well, the point is that they are marked always-on for pinebook and sopine :)
<anarsoul> wens: yeah. And for my pine64 I have a patch to enable wifi
<anarsoul> vagrantc: well, it takes time to clean up patches to the state that satisfies maintainers
<vagrantc> it suspends and wakes from suspend successfully ... although the power draw doesn't seem to change at all hardly
<anarsoul> and I guess all devs are doing it in their spare time
<anarsoul> vagrantc: because it's not real suspend
<vagrantc> anarsoul: yeah, i know. just always checking in to make sure i haven't missed it :)
<anarsoul> also it doesn't disable display power
<wens> is emmc really using eldo1 though? the schematics show NC between vcc-pc and eldo1, and 0R between vcc-pc and dcdc1
<vagrantc> ah, the display is probably well over half the power...
<wens> anarsoul: ah, nevermind
<anarsoul> wens: I think it should, otherwise hs200 wouldn't work
<anarsoul> IIRC it requires 1.8v
<wens> the battery patches seem to have stalled on mfd :/
tl_lim has quit [Ping timeout: 252 seconds]
<anarsoul> vagrantc: yeah, I think implementing suspend callbacks for sun4i drm and anx6345 drivers will save some power for sure
tl_lim has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 252 seconds]
tllim has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
anarsoul|2 has joined #linux-sunxi
[7] has joined #linux-sunxi
camh has quit [Ping timeout: 250 seconds]
kelvan has quit [Remote host closed the connection]
merlin1991 has quit [Remote host closed the connection]
merlin1991 has joined #linux-sunxi
kelvan has joined #linux-sunxi
camh has joined #linux-sunxi
random_yanek has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 246 seconds]
night199uk has quit [Ping timeout: 240 seconds]
night199uk has joined #linux-sunxi
reinforce has joined #linux-sunxi
IgorPec has joined #linux-sunxi
leviathanch has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 268 seconds]
f0xx has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 250 seconds]
anarsoul|2 has quit [Ping timeout: 240 seconds]
IgorPec has quit [Ping timeout: 264 seconds]
heatfanjohn has quit [Remote host closed the connection]
heatfanjohn has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
IgorPec has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
tl_lim has quit [Ping timeout: 276 seconds]
tl_lim has joined #linux-sunxi
m4ssi has joined #linux-sunxi
clemens3 has joined #linux-sunxi
arete74 has quit [Ping timeout: 240 seconds]
alexxy has quit [Remote host closed the connection]
tl_lim has quit [Ping timeout: 264 seconds]
tl_lim has joined #linux-sunxi
<anonus> a33 with axp223 keeps usb host port powered on after shutdown, can i do something about it on a kernel level without poking sysfs every time system shuts down?
tl_lim has quit [Quit: Leaving]
<plaes> driver needs to be fixed so it tears down the regulator
matthias_bgg has joined #linux-sunxi
BenG83 has quit [Ping timeout: 268 seconds]
<anonus> also is there a way to get battery gauge for axp223?
<anonus> only option is to poke i2c or is there other options?
<anonus> *option
<plaes> you need to chek whether this driver is implemented, if it is then you just need to add device-specific device tree bits
bbrezillon has quit [Quit: WeeChat 1.9.1]
bbrezillon has joined #linux-sunxi
msimpson has joined #linux-sunxi
<anonus> there are some stuff for axp22x, no stuff called "battery gauge", but can it just be under "power supply"?
clemens3 has quit [Remote host closed the connection]
<plaes> not really sure, AXP20X also has some AXP22X functionality
<plaes> but not sure whether it also has enabled battery power features
<plaes> although, axp20x_battery.c says "MODULE_DESCRIPTION("Battery power supply driver for AXP20X and AXP22X PMICs");
<plaes> Kconfig file needs to be updated
<anonus> but it should appear as battery device under /sys/class/power_supply/, shouldn't it?
<plaes> do you have device tree bits enabled?
<anonus> nope
<plaes> well :)
<anonus> well, it has axp223 section for power regulation, should i add anything else?
<wens> the battery driver is called "axp20x_battery"
<wens> and the device node label is battery_power_supply
<plaes> but it doesn't seem to have axp223 support. :S
<anonus> or does it...
<wens> should be covered by axp221
<plaes> oh, ok
<wens> we are lazy, not adding every compatible string for every model
<anonus> actually does it stop me from using battery at all?
<anonus> i mean it works now
<wens> it mostly gives you operational details
<anonus> right
<anonus> &battery_power_supply { status = "okay"; } should do it?
<anonus> it present already in axp22x.dtsi which is included
<plaes> hmm
<anonus> it is present but "status=disabled"
<plaes> ah.. yes you need status = "okay";
<anonus> /sys/class/power_supply/axp20x-battery/
<anonus> present
<anonus> yey
BenG83 has joined #linux-sunxi
<anonus> thanks
Arx-zer0 has quit [Ping timeout: 252 seconds]
clemens3 has joined #linux-sunxi
vpeter has quit [Remote host closed the connection]
Andy-D has quit [Ping timeout: 268 seconds]
Andy-D has joined #linux-sunxi
<Wizzup> plaes: ok, going to try with olimex' u-boot and then try again with mainline u-boot and a delay of 4
<Wizzup> plaes: did you have issues only in 100mbit mode?
<plaes> yes
<Wizzup> ok
<anonus> so what is the right way to shut down usb instead of suspending every device before shutdown? Is there control over axp223 regulators exposed in sysfs?
<anonus> i mean right way without changing kernel code
vpeter has joined #linux-sunxi
ceng has quit [Ping timeout: 245 seconds]
Andy-D has quit [Ping timeout: 250 seconds]
Andy-D has joined #linux-sunxi
<Wizzup> plaes: just took u-boot from olimex on github, branch olimex, used lime2 defconfig, and I still get no ethernet on rev K
<Wizzup> tried several devices
<Wizzup> I'm surprised it does work for you
* Wizzup goes to check config
<Wizzup> plaes: ok, enabling the micrel phys and setting the delay to 4 helped
<Wizzup> now I'll see if it also works with delay set to default value... (since olimex code should set it)
<Wizzup> delay to 4 is definitely required
<Wizzup> plaes: hrm, ok, I think it works for me in mainline now too.
IgorPec has quit [Ping timeout: 250 seconds]
alexxy has joined #linux-sunxi
megi has joined #linux-sunxi
<plaes> so you needed to enable micrel phy for 100mbit?
selfbg has joined #linux-sunxi
<Wizzup> plaes: no, will test that next. I needed to set delay, and I also enabled mikrel phys in config, now gbit works, will test 100mbit next
<Wizzup> I first tried to see if this config worked on all previous boards I had - and it did, although this u-boot still has my other phy net patches (forward ported patch from olimex)
<Wizzup> (which is why it works with the delay globally set to 4, I'm assuming it sets it to 0 and 2 for other boards)
<Wizzup> s/boards/revisions/
<Wizzup> brb
msimpson has quit [Remote host closed the connection]
msimpson has joined #linux-sunxi
libv_ is now known as libv
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 268 seconds]
matthias_bgg has quit [Ping timeout: 252 seconds]
jaganteki has joined #linux-sunxi
afaerber has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
msimpson has quit [Remote host closed the connection]
leviathanch has quit [Remote host closed the connection]
msimpson has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 268 seconds]
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 276 seconds]
<Wizzup> plaes: 100mbit seems to work for me
dddddd has joined #linux-sunxi
IgorPec has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
<Wizzup> plaes: I forced it to 100mbit mode with ethtool, though. Not sure how you tested?
<plaes> I had a 100mbit router :P
<Wizzup> *nod* don't have that here
<plaes> although, maybe I did something wrong
<plaes> too many issues currently at my table :S
wasutton3_mobile has joined #linux-sunxi
leviathanch has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
<jaganteki> Hi mripard.
LargePrime has joined #linux-sunxi
selfbg has quit [Remote host closed the connection]
aalm has quit [Ping timeout: 246 seconds]
vagrantc has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Amcio has joined #linux-sunxi
Amcio has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
reinforce has joined #linux-sunxi
tllim has joined #linux-sunxi
HeavyMetal has quit [Ping timeout: 264 seconds]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
nuuuciano_ has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 272 seconds]
HeavyMetal has joined #linux-sunxi
HeavyMetal has joined #linux-sunxi
clemens3 has quit [Ping timeout: 246 seconds]
m4ssi has quit [Remote host closed the connection]
wasutton3_mobile has quit [Ping timeout: 246 seconds]
anarsoul|2 has joined #linux-sunxi
heatfanjohn has quit [Ping timeout: 268 seconds]
<anarsoul|2> jaganteki: hi, could you review https://patchwork.ozlabs.org/project/uboot/list/?series=75141
<anarsoul|2> it's been pending for 10 days already
<jaganteki> anarsoul, will look in to it tomorrow. busy with spi changes.
Mr__Anderson has joined #linux-sunxi
aib has quit [Quit: ZNC - http://znc.in]
<anarsoul|2> hooray, v6 of battery patches :)
aalm has joined #linux-sunxi
heatfanjohn has joined #linux-sunxi
Andy-D has quit [Remote host closed the connection]
wasutton3_mobile has joined #linux-sunxi
HeavyMetal has quit [Ping timeout: 252 seconds]
HeavyMetal has joined #linux-sunxi
HeavyMetal has joined #linux-sunxi
heatfanjohn has quit [Ping timeout: 245 seconds]
afaerber has quit [Quit: Leaving]
barul11 has joined #linux-sunxi
barul11 has quit [Remote host closed the connection]
sparks1x has joined #linux-sunxi
paulliu has quit [Remote host closed the connection]
HeavyMetal has quit [Ping timeout: 264 seconds]
HeavyMetal has joined #linux-sunxi
HeavyMetal has joined #linux-sunxi
Andy-D has joined #linux-sunxi
random_yanek has quit [Quit: random_yanek]
random_yanek has joined #linux-sunxi
random_yanek has quit [Max SendQ exceeded]
heatfanjohn has joined #linux-sunxi
jaganteki has quit [Ping timeout: 256 seconds]
tllim has quit [Read error: Connection reset by peer]
clemens3 has joined #linux-sunxi
afaerber has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
netlynx has quit [Quit: Ex-Chat]
night199uk has quit [Changing host]
night199uk has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
victhor has joined #linux-sunxi
clemens3 has quit [Ping timeout: 246 seconds]
hanni76 has joined #linux-sunxi
hanni76 has quit [Client Quit]
IgorPec has quit [Ping timeout: 250 seconds]
wingrime2 has joined #linux-sunxi
wingrime2 has quit [Client Quit]
leviathanch has quit [Remote host closed the connection]
popolon has joined #linux-sunxi
tllim has joined #linux-sunxi
LargePrime has quit [Ping timeout: 276 seconds]
lkcl has quit [Read error: Connection reset by peer]
LargePrime has joined #linux-sunxi
Putti has quit [Ping timeout: 245 seconds]
lkcl has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
wasutton3_mobile has quit [Ping timeout: 268 seconds]
reinforce has quit [Quit: Leaving.]
f0xx has quit [Ping timeout: 244 seconds]
florianH has quit [Quit: Connection closed for inactivity]
sparks1x has quit [Ping timeout: 252 seconds]
swiftgeek is now known as Anon
Anon is now known as swiftgeek
swiftgeek is now known as Anon
tl_lim has joined #linux-sunxi
<anarsoul|2> wens: I had some time during lunch break and looked into adding regulator support into simple-amplifier
<anarsoul|2> wens: I don't see how to add optional regulator supply, if I declare new supply widget via SND_SOC_DAPM_REGULATOR_SUPPLY it'll fail if regulator isn't here.
<anarsoul|2> wens: any ideas?
tllim has quit [Ping timeout: 250 seconds]
Anon is now known as swiftgeek
<anarsoul|2> OK, Mark says it should be fine - dummy regulator will be used instead
matthias_bgg has quit [Ping timeout: 268 seconds]