ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
vicencb has quit [Quit: Leaving.]
kevery has joined #linux-rockchip
BenG83 has quit [Quit: Leaving]
kevery has quit [Remote host closed the connection]
kevery has joined #linux-rockchip
warpme_ has quit [Quit: Connection closed for inactivity]
field^Mop has quit [Ping timeout: 276 seconds]
ccaione has quit [Ping timeout: 252 seconds]
steev has quit [Ping timeout: 252 seconds]
daniels has quit [Ping timeout: 250 seconds]
ccaione has joined #linux-rockchip
anarsoul|c has quit [Ping timeout: 252 seconds]
narmstrong has quit [Ping timeout: 252 seconds]
steev has joined #linux-rockchip
narmstrong has joined #linux-rockchip
anarsoul|c has joined #linux-rockchip
daniels has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
lkcl has quit [Ping timeout: 252 seconds]
pozzoni has quit [Read error: No route to host]
pozzoni has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 245 seconds]
kevery1 is now known as kevery
<anarsoul> kevery: mmind00: is it safe to assume that i2c0 clock and pinctrl is always configured if we're using rk808?
<kevery> both clock and pinctrl are configured in dts and handled by clock/pinctrl driver framwork, isn't it?
<anarsoul> not in ATF
<anarsoul> mainline kernel can't power off any rk3399-based board with rk808 PMU
<anarsoul> because it tries to power it off via PSCI which provides power off function
<anarsoul> but ATF doesn't implement it
<anarsoul> well, it's implemented as while (1) {}
<anarsoul> so I'm working on i2c driver for ATF
<kevery> we never have rk808 driver in ATF, we always power off the rk808 in kernel side.
<kevery> Do you know how other soc implement this power off feature with psci enable?
<anarsoul> kevery: A64 implements it in ATF
<anarsoul> allwinner A64
<kevery> We don't want to add too much driver in ATF
<anarsoul> so does pretty much any other allwinner-based soc supported by ATF
<anarsoul> kevery: well, then talk to upstream on how to handle that
<anarsoul> I'm 99% sure that they'll recommend to implement it in ATF just like everyone else does
<anarsoul> kevery: google boards actually can power off properly via PSCI since they don't use rk808 and they have some GPIOs for reset and power off
<anarsoul> kevery: do you want me to start mail thread?
<anarsoul> kevery: btw, i2c-rk3x driver in linux doesn't have atomic xfer function so it's not safe to use it for poweroff either
_whitelogger has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
elektrinis has joined #linux-rockchip
adjtm has joined #linux-rockchip
Depau_ has joined #linux-rockchip
mearon_ has joined #linux-rockchip
<kevery> I'm not expert at pmic/i2c, but I can sync with my colleague,
<anarsoul> please do
<anarsoul> power off is currently broken and it would be nice to fix it
<anarsoul> (btw reboot is also broken for me but I don't know why yet)
<kevery> The mainline kernel is not out main platform now, so not sure if they can spend much time on it :(
<kevery> I think reboot is always work...
<anarsoul> kevery: again it's done through PSCI, so likely something's broken in ATF
ayaka_ has joined #linux-rockchip
elektirnis has quit [*.net *.split]
drrrty has quit [*.net *.split]
return0e has quit [*.net *.split]
nashpa has quit [*.net *.split]
ayaka has quit [*.net *.split]
adjtm_ has quit [*.net *.split]
levd has quit [*.net *.split]
Kwiboo has quit [*.net *.split]
mearon has quit [*.net *.split]
Depau has quit [*.net *.split]
micken has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
hanetzer has quit [*.net *.split]
ayaka_ is now known as ayaka
leming has quit [*.net *.split]
azend|vps has quit [*.net *.split]
samueldr has quit [*.net *.split]
azend|vps has joined #linux-rockchip
leming has joined #linux-rockchip
samueldr has joined #linux-rockchip
levd has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 240 seconds]
return0e has joined #linux-rockchip
drrrty has joined #linux-rockchip
Kwiboo has joined #linux-rockchip
hanetzer has joined #linux-rockchip
micken has joined #linux-rockchip
nashpa has joined #linux-rockchip
drrrty has quit [*.net *.split]
return0e has quit [*.net *.split]
nashpa has quit [*.net *.split]
Kwiboo has quit [*.net *.split]
micken has quit [*.net *.split]
hanetzer has quit [*.net *.split]
drrrty has joined #linux-rockchip
return0e has joined #linux-rockchip
micken has joined #linux-rockchip
nashpa has joined #linux-rockchip
Kwiboo has joined #linux-rockchip
hanetzer has joined #linux-rockchip
return0e has quit [Ping timeout: 268 seconds]
return0e has joined #linux-rockchip
<phh> anarsoul: so this i2c bus must be dedicated to pmic? what's the idea for non trivial pmic? like multiple dcdc channel, 32kHz output, pmic GPIO for power button, etc.? recode all features in ATF and have a passthrough from Linux to ATF?
matthias_bgg has quit [Quit: Leaving]
kevery has quit [Ping timeout: 246 seconds]
kevery has joined #linux-rockchip
ldevulder_ is now known as ldevulder
matthias_bgg has joined #linux-rockchip
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-rockchip
return0e_ has joined #linux-rockchip
return0e has quit [Ping timeout: 245 seconds]
matthias_bgg has quit [Ping timeout: 245 seconds]
vicencb has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
kevery has quit [Ping timeout: 250 seconds]
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
stikonas has joined #linux-rockchip
<mmind00> phh: I think it's only about the pweroff function of the i2c-connected pmic ...
<mearon_> Has anybody been able to adjust the speaker volume via alsa on kevin?
nsaenz has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-rockchip
nlhowell has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 276 seconds]
Esmil has joined #linux-rockchip
eballetbo has joined #linux-rockchip
return0e_ has quit [Read error: Connection reset by peer]
return0e_ has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
field^Mop has joined #linux-rockchip
return0__ has joined #linux-rockchip
return0e_ has quit [Ping timeout: 252 seconds]
vicencb has quit [Ping timeout: 245 seconds]
nsaenz has joined #linux-rockchip
vicencb has joined #linux-rockchip
vicencb has quit [Client Quit]
nlhowell has quit [Ping timeout: 250 seconds]
nsaenz has quit [Quit: Leaving]
nsaenz has joined #linux-rockchip
return0__ has quit [Read error: Connection reset by peer]
return0e_ has joined #linux-rockchip
stikonas has joined #linux-rockchip
<sigmaris> anarsoul: This might be of interest - reboot wasn't working for me with ATF master, though it did work with ATF v2.1
<sigmaris> there's a part of ATF code which treats a NULL return value from plat_get_rockchip_gpio_reset() as indicating that GPIO reset shouldn't be used
<sigmaris> but after that commit, plat_get_rockchip_gpio_reset() returns a valid pointer even if GPIO isn't meant to be used for reset
<sigmaris> so ATF always tries to reset using GPIO, even on e.g. rockpro64 where it should just reset using CRU
<fALSO> ix
<phh> mmind00: so i2c bus is shared between linux and atf?
<mmind00> phh: in that special case the kernel will be already finished with the i2c bus when it calls into psci to shutdown
<mmind00> phh: if more pmic handling is necessary this will probably not work though
matthias_bgg has quit [Ping timeout: 252 seconds]
<robmur01> the worst case is when an emergency shutdown triggers while the I2C bus is wedged and the controller is halfway through a transfer to a different chip and the world is on fire etc.
<robmur01> the potential complexity of getting things back to a known good state is the main argument for keeping it out of ATF
EmilKarlson has joined #linux-rockchip
psydroid has joined #linux-rockchip
eballetbo[m] has joined #linux-rockchip
thefloweringash has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
<anarsoul> robmur01: OK, any suggestions how to fix power off without adding i2c and rk808 drivers to ATF?
stikonas has joined #linux-rockchip
<robmur01> anarsoul: sadly, no :(
<robmur01> I've just got used to holding down the button for however long
<anarsoul> *sigh*
<anarsoul> add DT property to rk808 to indicate that it's preferred power off method and override pm_power_off regardless of whether it's set or not?
<anarsoul> sigmaris: thanks, I'll look into it
lkcl has joined #linux-rockchip
<robmur01> hmm, shouldn't ATF be able to shutdown by yanking NRESPWRON?
<robmur01> I know it does the equivalent for RK805 with RK3328
<robmur01> (although Linux is currently missing the ability to switch the configuration between suspend and poweroff as appropriate)
<anarsoul> it's not wired to gpio
<robmur01> ah, OK, well ultimately that's just a busted board design
<robmur01> complicated workarounds ahoy!
<anarsoul> we have what we have :)
<robmur01> hmm, actually it looks like the RK808 SLEEP pin might be able to do double-duty as on RK805
drrrty is now known as drrty
imsherlock has quit []
<robmur01> no, scratch that, I'm completely misreading things :(
vicencb has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
nsaenz has quit [Ping timeout: 252 seconds]
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 246 seconds]
matthias_bgg has joined #linux-rockchip
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<anarsoul> sigmaris: I fixed it with https://github.com/ARM-software/arm-trusted-firmware/pull/1936 and now it gets back to u-boot
<anarsoul> but subsequent linux boot hangs
<anarsoul> looks like it boots big CPUs before configuring regulators for them :\
hmuller has joined #linux-rockchip
inode has quit [Quit: ]
stikonas has quit [Remote host closed the connection]
inode has joined #linux-rockchip
<anarsoul> syr82x (aka fan53555) doesn't work with i2c driver in u-boot :\
<anarsoul> read always returns the same (wrong) value
ldevulder__ has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 250 seconds]
ldevulder_ has quit [Ping timeout: 240 seconds]