00:06
djakov has quit [Ping timeout: 276 seconds]
00:07
djakov has joined #linux-sunxi
00:17
djakov has quit [Ping timeout: 276 seconds]
00:19
djakov has joined #linux-sunxi
00:34
gaston1980 has quit [Quit: Konversation terminated!]
00:54
TheSeven has quit [Ping timeout: 240 seconds]
00:54
TheSeven has joined #linux-sunxi
01:39
kaspter has quit [Ping timeout: 265 seconds]
01:39
camus has joined #linux-sunxi
01:41
camus is now known as kaspter
01:54
NeuroScr has quit [Quit: NeuroScr]
03:48
dddddd has quit [Remote host closed the connection]
03:57
vagrantc has quit [Quit: leaving]
04:13
Gerwin_J has joined #linux-sunxi
04:14
megi has quit [Ping timeout: 245 seconds]
04:59
cnxsoft has joined #linux-sunxi
05:21
cnxsoft has quit [Quit: cnxsoft]
05:27
florian has joined #linux-sunxi
05:52
NeuroScr has joined #linux-sunxi
05:55
gsz has joined #linux-sunxi
05:57
gsz has quit [Client Quit]
06:08
reinforce has joined #linux-sunxi
06:30
ldevulder__ has joined #linux-sunxi
06:34
ldevulder_ has quit [Ping timeout: 276 seconds]
06:38
tllim has quit [Read error: Connection reset by peer]
06:52
gsz has joined #linux-sunxi
07:08
tdebrouw has joined #linux-sunxi
07:12
cnxsoft has joined #linux-sunxi
07:20
NeuroScr has quit [Quit: NeuroScr]
07:31
aloo_shu has quit [Read error: Connection reset by peer]
07:38
aloo_shu has joined #linux-sunxi
07:40
jailbox has quit [Ping timeout: 276 seconds]
07:41
ldevulder__ is now known as ldevulder
07:53
hlauer has joined #linux-sunxi
07:53
TheSeven has quit [Ping timeout: 245 seconds]
07:56
TheSeven has joined #linux-sunxi
07:58
yann|work has quit [Ping timeout: 265 seconds]
08:01
jailbox has joined #linux-sunxi
08:07
diego_r has joined #linux-sunxi
08:08
msevo has quit [Quit: Leaving]
08:40
yann|work has joined #linux-sunxi
08:45
mhlavink has joined #linux-sunxi
08:49
hellsenberg has quit [Quit: CPU triple-faulted.]
08:51
nexgen has joined #linux-sunxi
09:13
hellsenberg has joined #linux-sunxi
09:19
msevo has joined #linux-sunxi
09:42
Mangy_Dog has joined #linux-sunxi
09:59
msevo has quit [Quit: Leaving]
10:15
aalm has quit [Quit: xyz 2.3]
10:33
TheSeven has quit [Read error: Connection reset by peer]
10:39
Da_Coynul has joined #linux-sunxi
10:41
TheSeven has joined #linux-sunxi
10:42
Da_Coynul has quit [Client Quit]
10:46
AneoX has joined #linux-sunxi
10:48
dddddd has joined #linux-sunxi
11:13
megi has joined #linux-sunxi
11:15
gaston1980 has joined #linux-sunxi
11:17
sunshavi has quit [Ping timeout: 240 seconds]
12:00
xcko has quit [Ping timeout: 240 seconds]
12:01
AneoX has quit [Ping timeout: 276 seconds]
12:02
AneoX has joined #linux-sunxi
12:05
sunshavi has joined #linux-sunxi
13:02
niceplace has joined #linux-sunxi
13:09
deesix has quit [Ping timeout: 240 seconds]
13:10
dddddd has quit [Ping timeout: 245 seconds]
13:11
dddddd has joined #linux-sunxi
13:11
deesix has joined #linux-sunxi
13:12
sunilmohan has quit [Ping timeout: 268 seconds]
13:13
sunilmohan has joined #linux-sunxi
13:13
sunilmohan has quit [Changing host]
13:13
sunilmohan has joined #linux-sunxi
13:57
tllim has joined #linux-sunxi
13:59
aloo_shu has quit [Read error: Connection reset by peer]
14:07
nexgen has quit [Quit: Leaving]
14:07
Danct12_ has joined #linux-sunxi
14:12
Danct12_ has quit [Remote host closed the connection]
14:23
JohnDoe_71Rus has joined #linux-sunxi
14:37
reinforce has quit [Quit: Leaving.]
15:24
hlauer has quit [Ping timeout: 264 seconds]
15:31
marekbelisko_ has joined #linux-sunxi
15:37
marekbelisko_ has quit [Quit: This computer has gone to sleep]
15:40
marekbelisko_ has joined #linux-sunxi
15:41
marekbelisko_ has quit [Client Quit]
15:50
megi has quit [Ping timeout: 265 seconds]
15:58
deesix has quit [Ping timeout: 245 seconds]
15:59
dddddd has quit [Ping timeout: 245 seconds]
16:00
deesix has joined #linux-sunxi
16:00
dddddd has joined #linux-sunxi
16:00
yann|work has quit [Ping timeout: 240 seconds]
16:01
marekbelisko_ has joined #linux-sunxi
16:12
marekbelisko_ has quit [Quit: This computer has gone to sleep]
16:15
aalm has joined #linux-sunxi
16:15
reinforce has joined #linux-sunxi
16:22
dddddd has quit [Ping timeout: 276 seconds]
16:22
deesix has quit [Ping timeout: 265 seconds]
16:23
deesix has joined #linux-sunxi
16:32
reinforce has quit [Quit: Leaving.]
16:33
megi has joined #linux-sunxi
16:34
dddddd has joined #linux-sunxi
16:38
marekbelisko_ has joined #linux-sunxi
16:38
vagrantc has joined #linux-sunxi
16:42
marekbelisko_ has quit [Client Quit]
16:43
florian has quit [Ping timeout: 240 seconds]
17:00
dddddd has quit [Ping timeout: 240 seconds]
17:01
deesix has quit [Ping timeout: 265 seconds]
17:03
deesix has joined #linux-sunxi
17:07
gnufan_home has joined #linux-sunxi
17:13
marekbelisko_ has joined #linux-sunxi
17:13
dddddd has joined #linux-sunxi
17:14
arnidg has joined #linux-sunxi
17:17
diego_r has quit [Ping timeout: 240 seconds]
17:18
gnufan_home has quit [Ping timeout: 240 seconds]
17:22
netlynx has joined #linux-sunxi
17:22
netlynx has joined #linux-sunxi
17:27
marekbelisko_ has quit [Quit: This computer has gone to sleep]
17:50
marekbelisko_ has joined #linux-sunxi
18:02
armessia has joined #linux-sunxi
18:09
niceplace has joined #linux-sunxi
18:13
marekbelisko_ has quit [Quit: This computer has gone to sleep]
18:20
<
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.
18:20
<
wasutton3 >
s/can/can't
18:20
<
wasutton3 >
if dts can't instantiate it, how can it be instantiated?
18:20
<
megi >
via machine_setup
18:20
<
megi >
and platform data
18:20
<
megi >
or from other drivers
18:22
tdebrouw has quit [Quit: Leaving.]
18:22
<
wasutton3 >
and that would cause files/regulators to appear in /sys/devices/platform/soc..../regulator/regulator.$val ?
18:23
<
megi >
it would be visible as a platform device
18:23
<
megi >
in sysfs, yes
18:23
<
wasutton3 >
so that part is working
18:24
marekbelisko_ has joined #linux-sunxi
18:26
<
megi >
for example, I see it in sysfs as /sys/class/regulator/regulator.25/reg-userspace-consumer-vcc-vb/state
18:27
<
megi >
at state is writable
18:27
<
megi >
it's not really a regulator driver, but a driver that uses a regulator and has it's own state attribute in sysfs
18:29
<
wasutton3 >
i don't have the reg-userspace-consumer-vcc-vb folder
18:29
<
wasutton3 >
but /sys/class/regulator/regulator.15/state is there, but its read only
18:30
<
megi >
that's normal
18:31
<
wasutton3 >
ultimately, swiching it from disabled -> enabled and back is what I want to accomplish (thereby turning the regulator on and off)
18:31
<
megi >
there's no way to chabnge state/status on regulator from userspace directly
18:32
<
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
18:32
<
wasutton3 >
right, and we were toying with debugfs, which isn't something i think i want to keep running
18:33
<
wasutton3 >
looks like i need to recompile to get that driver enabled?
18:34
<
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/
18:35
<
megi >
or add DT support to the driver so that it can be used from DTS
18:35
<
wasutton3 >
that first options seems to be more supported.
18:35
<
megi >
what options?
18:37
<
wasutton3 >
instantiating the driver in machine setup, rather than modifying the driver itself?
18:37
<
megi >
it's both somewhat complicated
18:37
<
megi >
modifying the driver would probably be easier
18:38
<
wasutton3 >
i've never actually done that before.
18:42
gnarface has quit [Quit: Leaving]
18:48
AneoX has quit [Ping timeout: 240 seconds]
18:50
AneoX has joined #linux-sunxi
18:56
yann|work has joined #linux-sunxi
19:09
lkcl has quit [Ping timeout: 240 seconds]
19:18
gsz has quit [Quit: Konversation terminated!]
19:21
gnarface has joined #linux-sunxi
19:28
arete74 has quit [Ping timeout: 268 seconds]
19:30
arete74 has joined #linux-sunxi
19:56
<
wasutton3 >
megi, so the device can actually be set to "always on" or "on in boot" mode from the device tree already.
19:56
<
wasutton3 >
its just the value is set at boot time.
20:03
Gerwin_J has quit [Quit: Gerwin_J]
20:05
marekbelisko_ has quit [Quit: This computer has gone to sleep]
20:13
marekbelisko_ has joined #linux-sunxi
20:17
marekbelisko_ has quit [Client Quit]
20:21
florian has joined #linux-sunxi
20:37
<
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/\
20:37
NeuroScr has joined #linux-sunxi
20:48
netlynx has quit [Quit: Ex-Chat]
20:54
<
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
21:00
<
megi >
it's just a quick hack, not compiled/tested
21:01
<
wasutton3 >
thanks megi. I'll try that tomorrow whe I get into work.
21:01
<
megi >
in dts you just need to add reg-consumer { comatible = "custom,reg-userspace-consumer", controlled-supply = <&refernece_to_regulator_you_want_to_control> }
21:02
<
megi >
and som semicolons I forgot
21:09
reinforce has joined #linux-sunxi
21:10
gaston1980 has quit [Ping timeout: 240 seconds]
21:22
reinforce has quit [Quit: Leaving.]
21:37
florian has quit [Ping timeout: 240 seconds]
22:12
gnufan_home has joined #linux-sunxi
22:39
Da_Coynul has joined #linux-sunxi
22:45
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
22:46
Da_Coynul has joined #linux-sunxi
22:50
vagrantc has quit [Quit: leaving]
23:01
gnufan_home has quit [Ping timeout: 240 seconds]
23:15
Mangy_Dog has quit [Ping timeout: 240 seconds]