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*
djakov has quit [Ping timeout: 276 seconds]
djakov has joined #linux-sunxi
djakov has quit [Ping timeout: 276 seconds]
djakov has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
TheSeven has quit [Ping timeout: 240 seconds]
TheSeven has joined #linux-sunxi
kaspter has quit [Ping timeout: 265 seconds]
camus has joined #linux-sunxi
camus is now known as kaspter
NeuroScr has quit [Quit: NeuroScr]
dddddd has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
Gerwin_J has joined #linux-sunxi
megi has quit [Ping timeout: 245 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
florian has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
gsz has joined #linux-sunxi
gsz has quit [Client Quit]
reinforce has joined #linux-sunxi
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 276 seconds]
tllim has quit [Read error: Connection reset by peer]
gsz has joined #linux-sunxi
tdebrouw has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
aloo_shu has quit [Read error: Connection reset by peer]
aloo_shu has joined #linux-sunxi
jailbox has quit [Ping timeout: 276 seconds]
ldevulder__ is now known as ldevulder
hlauer has joined #linux-sunxi
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
yann|work has quit [Ping timeout: 265 seconds]
jailbox has joined #linux-sunxi
diego_r has joined #linux-sunxi
msevo has quit [Quit: Leaving]
mhlavink has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
yann|work has joined #linux-sunxi
mhlavink has joined #linux-sunxi
hellsenberg has quit [Quit: CPU triple-faulted.]
nexgen has joined #linux-sunxi
hellsenberg has joined #linux-sunxi
msevo has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
msevo has quit [Quit: Leaving]
aalm has quit [Quit: xyz 2.3]
TheSeven has quit [Read error: Connection reset by peer]
Da_Coynul has joined #linux-sunxi
TheSeven has joined #linux-sunxi
Da_Coynul has quit [Client Quit]
AneoX has joined #linux-sunxi
dddddd has joined #linux-sunxi
megi has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
sunshavi has quit [Ping timeout: 240 seconds]
xcko has quit [Ping timeout: 240 seconds]
AneoX has quit [Ping timeout: 276 seconds]
AneoX has joined #linux-sunxi
sunshavi has joined #linux-sunxi
niceplace has quit [Quit: ZNC 1.7.3 - https://znc.in]
niceplace has joined #linux-sunxi
deesix has quit [Ping timeout: 240 seconds]
dddddd has quit [Ping timeout: 245 seconds]
dddddd has joined #linux-sunxi
deesix has joined #linux-sunxi
sunilmohan has quit [Ping timeout: 268 seconds]
sunilmohan has joined #linux-sunxi
sunilmohan has quit [Changing host]
sunilmohan has joined #linux-sunxi
tllim has joined #linux-sunxi
aloo_shu has quit [Read error: Connection reset by peer]
nexgen has quit [Quit: Leaving]
Danct12_ has joined #linux-sunxi
Danct12_ has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
hlauer has quit [Ping timeout: 264 seconds]
marekbelisko_ has joined #linux-sunxi
marekbelisko_ has quit [Quit: This computer has gone to sleep]
marekbelisko_ has joined #linux-sunxi
marekbelisko_ has quit [Client Quit]
megi has quit [Ping timeout: 265 seconds]
deesix has quit [Ping timeout: 245 seconds]
dddddd has quit [Ping timeout: 245 seconds]
deesix has joined #linux-sunxi
dddddd has joined #linux-sunxi
yann|work has quit [Ping timeout: 240 seconds]
marekbelisko_ has joined #linux-sunxi
marekbelisko_ has quit [Quit: This computer has gone to sleep]
aalm has joined #linux-sunxi
reinforce has joined #linux-sunxi
dddddd has quit [Ping timeout: 276 seconds]
deesix has quit [Ping timeout: 265 seconds]
deesix has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
megi has joined #linux-sunxi
dddddd has joined #linux-sunxi
marekbelisko_ has joined #linux-sunxi
vagrantc has joined #linux-sunxi
marekbelisko_ has quit [Client Quit]
florian has quit [Ping timeout: 240 seconds]
dddddd has quit [Ping timeout: 240 seconds]
deesix has quit [Ping timeout: 265 seconds]
deesix has joined #linux-sunxi
gnufan_home has joined #linux-sunxi
arnidg has quit [Quit: ZNC - https://znc.in]
marekbelisko_ has joined #linux-sunxi
dddddd has joined #linux-sunxi
arnidg has joined #linux-sunxi
diego_r has quit [Ping timeout: 240 seconds]
gnufan_home has quit [Ping timeout: 240 seconds]
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
marekbelisko_ has quit [Quit: This computer has gone to sleep]
marekbelisko_ has joined #linux-sunxi
armessia has joined #linux-sunxi
niceplace has quit [Quit: ZNC 1.7.3 - https://znc.in]
niceplace has joined #linux-sunxi
marekbelisko_ has quit [Quit: This computer has gone to sleep]
<wasutton3> megi, you said a few days ago that there was an enable/disable interface available in sysfs. but it can be instantiated from dts.
<wasutton3> s/can/can't
<megi> yes
<wasutton3> if dts can't instantiate it, how can it be instantiated?
<megi> via machine_setup
<megi> and platform data
<megi> or from other drivers
tdebrouw has quit [Quit: Leaving.]
<wasutton3> and that would cause files/regulators to appear in /sys/devices/platform/soc..../regulator/regulator.$val ?
<megi> it would be visible as a platform device
<megi> in sysfs, yes
<wasutton3> ok
<wasutton3> so that part is working
<wasutton3> https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-regulator this says i should be able to "echo enabled > state" and turn it off and on then?
marekbelisko_ has joined #linux-sunxi
<megi> for example, I see it in sysfs as /sys/class/regulator/regulator.25/reg-userspace-consumer-vcc-vb/state
<megi> on my board
<megi> at state is writable
<megi> it's not really a regulator driver, but a driver that uses a regulator and has it's own state attribute in sysfs
<wasutton3> i don't have the reg-userspace-consumer-vcc-vb folder
<megi> well, sure
<wasutton3> but /sys/class/regulator/regulator.15/state is there, but its read only
<megi> that's normal
<wasutton3> ok.
<wasutton3> ultimately, swiching it from disabled -> enabled and back is what I want to accomplish (thereby turning the regulator on and off)
<wasutton3> right?
<megi> there's no way to chabnge state/status on regulator from userspace directly
<megi> that's why there's that userpsace-consumer.c driver there that can be used to consume regulators and allow to switch them from userspace
<wasutton3> right, and we were toying with debugfs, which isn't something i think i want to keep running
<wasutton3> looks like i need to recompile to get that driver enabled?
<megi> it's not enough, you also need to change the kernel so that the driver is instantiated from machine_setup in arch/arm/mach-sunxi/
<megi> or add DT support to the driver so that it can be used from DTS
<wasutton3> that first options seems to be more supported.
<megi> what options?
<wasutton3> instantiating the driver in machine setup, rather than modifying the driver itself?
<megi> it's both somewhat complicated
<megi> modifying the driver would probably be easier
<wasutton3> ooof
<wasutton3> i've never actually done that before.
gnarface has quit [Quit: Leaving]
AneoX has quit [Ping timeout: 240 seconds]
AneoX has joined #linux-sunxi
yann|work has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
gsz has quit [Quit: Konversation terminated!]
gnarface has joined #linux-sunxi
arete74 has quit [Ping timeout: 268 seconds]
arete74 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<wasutton3> megi, so the device can actually be set to "always on" or "on in boot" mode from the device tree already.
<wasutton3> its just the value is set at boot time.
<megi> yes
Gerwin_J has quit [Quit: Gerwin_J]
marekbelisko_ has quit [Quit: This computer has gone to sleep]
marekbelisko_ has joined #linux-sunxi
marekbelisko_ has quit [Client Quit]
florian has joined #linux-sunxi
<wasutton3> i guess i don't have enough prereq knowledge to know whats the missing piece. What board are you using that has the userspace support/\
<wasutton3> ?
NeuroScr has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
<megi> that will not probably help you as a good example, because in my case userspace-regulator is instantiated from a PMIC mfd driver, and it's sort of a weird use case
<megi> wasutton3: try this driver https://megous.com/dl/tmp/userspace-consumer-of.c
<megi> it's just a quick hack, not compiled/tested
<wasutton3> thanks megi. I'll try that tomorrow whe I get into work.
<megi> in dts you just need to add reg-consumer { comatible = "custom,reg-userspace-consumer", controlled-supply = <&refernece_to_regulator_you_want_to_control> }
<megi> and som semicolons I forgot
<wasutton3> ok.
reinforce has joined #linux-sunxi
gaston1980 has quit [Ping timeout: 240 seconds]
reinforce has quit [Quit: Leaving.]
florian has quit [Ping timeout: 240 seconds]
gnufan_home has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
gnufan_home has quit [Ping timeout: 240 seconds]
Mangy_Dog has quit [Ping timeout: 240 seconds]