00:10
vagrantc has quit [Quit: leaving]
00:14
gaston1980 has quit [Quit: Konversation terminated!]
00:30
jstefanop has joined #linux-sunxi
00:34
jstefanop has quit [Ping timeout: 258 seconds]
00:58
souther has quit [Ping timeout: 245 seconds]
00:59
souther has joined #linux-sunxi
01:27
cnxsoft has joined #linux-sunxi
01:36
lurchi__ is now known as lurchi_
01:38
cnxsoft has quit [Quit: cnxsoft]
02:37
dddddd has quit [Remote host closed the connection]
03:02
kaspter has quit [Quit: kaspter]
03:06
lurchi_ is now known as lurchi__
03:07
TheSeven has quit [Ping timeout: 245 seconds]
03:07
[7] has joined #linux-sunxi
03:58
megi has quit [Ping timeout: 265 seconds]
04:30
jstefanop has joined #linux-sunxi
04:35
jstefanop has quit [Ping timeout: 265 seconds]
04:46
airwind has joined #linux-sunxi
04:57
lurchi_ has joined #linux-sunxi
05:00
lurchi__ has quit [Ping timeout: 268 seconds]
05:01
montjoie has quit [Quit: Lost terminal]
05:22
montjoie has joined #linux-sunxi
05:33
Gerwin_J has joined #linux-sunxi
06:15
[7] has quit [Ping timeout: 245 seconds]
06:15
arete74 has quit [Ping timeout: 240 seconds]
06:17
arete74 has joined #linux-sunxi
06:17
florian has joined #linux-sunxi
06:25
TheSeven has joined #linux-sunxi
06:49
quadjfet has quit [Quit: Leaving]
06:58
tdebrouw has joined #linux-sunxi
06:59
arete74 has quit [Ping timeout: 268 seconds]
07:00
arete74 has joined #linux-sunxi
07:06
tnovotny has joined #linux-sunxi
07:16
ldevulder_ is now known as ldevulder
07:22
yann has quit [Ping timeout: 265 seconds]
07:36
florian has quit [Ping timeout: 245 seconds]
07:36
<
tdebrouw >
I'm trying to use the emac (100MBit) interface on the V40. It should compatible with sun4i-emac.
07:36
<
tdebrouw >
I added the necessary nodes in my device tree & added sun4i-emac / mdio-sun4i to my config.
07:36
<
tdebrouw >
It isn't working yet. But I noticed that the mdio-sun4i gets loaded before the sun4i-emac.
07:36
<
tdebrouw >
The silicon uses the same clk, which is enabled by the sun4i-emac.
07:36
<
tdebrouw >
What would be the best way to load sun4i-emac before mdio-sun4i is loaded?
07:38
<
tdebrouw >
I assume this clk is often started in uboot (for other socs with sun4i-emac interfaces)
07:39
<
tdebrouw >
But I don't need it in uboot, hence, it isn't configured there.
07:43
<
montjoie >
tdebrouw: are you sure that V40 use sun4i-emac ?
07:43
<
montjoie >
since it is a modified R40, probably it uses the sun8i-emac
07:44
<
tdebrouw >
there are 2 interfaces
07:44
<
tdebrouw >
1 GMAC -> using sun8i-emac
07:44
<
wens >
tbueno: fix mdio-sun4i driver
07:45
<
tdebrouw >
1 EMAC -> using sun4i-emac
07:49
<
wens >
tdebrouw: fix the mdio-sun4i driver by having it enable the clocks as well
07:49
<
tdebrouw >
wens: ok
08:27
yann has joined #linux-sunxi
08:30
jernej has joined #linux-sunxi
08:30
florian has joined #linux-sunxi
08:35
cnxsoft has joined #linux-sunxi
08:37
tllim has quit [Read error: Connection reset by peer]
08:38
cnxsoft1 has joined #linux-sunxi
08:39
cnxsoft has quit [Ping timeout: 265 seconds]
08:48
kaspter has joined #linux-sunxi
08:54
<
tdebrouw >
wens: it's not possible to simply add the clocks (I tried)
08:55
<
tdebrouw >
since sun4i-emac is enabling the mii core
08:55
<
tdebrouw >
and setting it's clock
08:55
<
tdebrouw >
or I'm missing something (also possible)
08:57
<
wens >
I don't see it setting clock rates? only enabling/disabling
08:58
<
wens >
oh, the MII clock
09:02
<
tdebrouw >
and that one is on offset 7C -> outside of the reg range
09:02
<
wens >
oh wow, this is structured badly
09:02
<
tdebrouw >
of the mdio
09:03
<
tdebrouw >
I'm glad I'm not the only one thinking that
09:03
<
wens >
I guess the proper fix would be to merge the two devices, or fix the register range. both are problematic
09:04
<
tdebrouw >
merging makes more sense, IHMO
09:04
<
tdebrouw >
but I'm not really active here
09:04
<
tdebrouw >
so I'll let someone else decide ;)
09:04
<
tdebrouw >
I'm willing to put in some effort though
09:08
<
tdebrouw >
also, it seems like this change might have a lot of impact on several other devices
09:09
<
tdebrouw >
but I only have a V40
09:23
megi has joined #linux-sunxi
09:26
<
montjoie >
send a patch for review as RFC/RFT
09:30
AneoX has joined #linux-sunxi
09:43
kaspter has quit [Quit: kaspter]
09:53
cristian_c has quit [Ping timeout: 258 seconds]
10:15
Mangy_Dog has joined #linux-sunxi
10:28
<
KotCzarny >
montjoie: ^
10:29
<
KotCzarny >
oh, you have already answered
10:29
<
KotCzarny >
i need glasses
10:40
gaston1980 has joined #linux-sunxi
11:13
dddddd has joined #linux-sunxi
11:28
ganbold has quit [Ping timeout: 265 seconds]
11:48
ganbold has joined #linux-sunxi
11:54
ganbold has quit [Ping timeout: 265 seconds]
11:55
airwind has quit [Quit: airwind]
11:56
ganbold has joined #linux-sunxi
11:59
tnovotny has quit [Quit: Leaving]
12:03
gsz has joined #linux-sunxi
12:09
lurchi_ is now known as lurchi__
12:29
tdebrouw has quit [Quit: Leaving.]
12:47
aloo_shu has quit [Ping timeout: 245 seconds]
12:48
pg12_ has joined #linux-sunxi
12:49
pg12 has quit [Ping timeout: 250 seconds]
12:58
Gerwin_J has quit [Ping timeout: 264 seconds]
13:05
Gerwin_J has joined #linux-sunxi
13:31
aloo_shu has joined #linux-sunxi
13:43
diego71 has quit [Ping timeout: 245 seconds]
13:50
diego71 has joined #linux-sunxi
14:09
tuxillo has quit [Ping timeout: 268 seconds]
14:11
JohnDoe_71Rus has joined #linux-sunxi
14:11
JohnDoe_71Rus has quit [Changing host]
14:11
JohnDoe_71Rus has joined #linux-sunxi
14:11
tuxillo has joined #linux-sunxi
14:18
Perlovka_ has joined #linux-sunxi
14:19
Perlovka has quit [Ping timeout: 240 seconds]
14:45
jstefanop has joined #linux-sunxi
14:47
netlynx has joined #linux-sunxi
15:01
night199uk has quit [Ping timeout: 276 seconds]
15:04
megi has quit [Ping timeout: 245 seconds]
15:09
tllim has joined #linux-sunxi
15:19
return0e_ has joined #linux-sunxi
15:21
return0e has quit [Ping timeout: 265 seconds]
15:47
florian has quit [Quit: Leaving]
15:50
return0e has joined #linux-sunxi
15:51
return0e_ has quit [Ping timeout: 276 seconds]
16:01
<
anarsoul >
jernej: does DE2 support rotation?
16:04
lkcl has quit [Ping timeout: 240 seconds]
16:08
megi has joined #linux-sunxi
16:15
ganbold has quit [Remote host closed the connection]
16:20
yann has quit [Ping timeout: 240 seconds]
16:34
reinforce has joined #linux-sunxi
16:43
night199uk has joined #linux-sunxi
16:43
reinforce has quit [Quit: Leaving.]
16:45
reinforce has joined #linux-sunxi
16:47
<
jernej >
anarsoul: yes, but it is separate core, present mostly on A-series SoCs AFAIK
16:47
<
jernej >
it's not part of display pipeline, so you have to set input and output buffer
16:47
<
jernej >
so it's more appropriate to implement it as V4L2 M2M driver
16:47
<
jernej >
which was designed for exactly such cases
17:08
florian has joined #linux-sunxi
17:11
gaston1980 has quit [Quit: Konversation terminated!]
17:14
wasutton3 has joined #linux-sunxi
17:15
<
wasutton3 >
is there a repo for RSB tools to interact with an AXP PMIC? I'm seeing references directly in the kernel, but no utilities.
17:15
yann has joined #linux-sunxi
17:19
<
mru >
what do you want to do?
17:20
<
KotCzarny >
probably create a bomb
17:22
<
mru >
"they've set the pmic to overload! run!"
17:22
<
anarsoul >
jernej: it would be hard to wire it into x11/wayland if it's v4l2 m2m driver
17:23
<
wasutton3 >
lol, no i'd like to be able to toggle one of the regulators off and back on after reflashing a few devices attached to that regulator
17:24
<
KotCzarny >
wouldnt it affect whole soc?
17:24
<
mru >
does poking something under /sys/class/regulator not work?
17:24
<
mru >
KotCzarny: depends on which regulator
17:24
<
wasutton3 >
correct
17:26
<
wasutton3 >
DLDO4 would be my ideal choice. (A64+AXP803)
17:26
florian has quit [Ping timeout: 265 seconds]
17:31
<
anarsoul >
how do they use it in X11?
17:31
<
jernej >
let me try find exact code
17:32
<
megi >
wasutton3: you may try enabling regmap writing in debugfs and poke the AXP registers directly there
17:32
<
anarsoul >
jernej: I guess it's possible with a separate driver
17:34
<
megi >
you can export buffers from v4l2 and import them to drm, at least that's what I do in my camera app. rotation driver would be nice.
17:36
<
anarsoul >
megi: yet I'm not sure that you can do that in X11 or any wayland compositor without writing any code
17:36
<
megi >
I have some in-progress code for rotation driver for v4l2 m2m, for A83T, but I sort of lost interest when I realized the HW probably can't take YUYV or RGB565
17:36
<
megi >
I don't know, I don't use either
17:37
<
megi >
I write code :)
17:37
<
jernej >
anarsoul: I think they modified armsoc a bit, but currently I don't know where I saw that (it was long time ago)
17:37
<
jernej >
and I can't find it
17:37
<
wasutton3 >
megi, im not sure how to enable regmap. im running anarsoul's arch image fwiw
17:37
<
megi >
it's some hidden kernel option
17:37
<
megi >
you need to re-compile
17:38
<
anarsoul >
megi: thanks for cursors patches btw, they work fine on pinebook
17:38
<
megi >
regmap debugfs is probably enabled by default, but that's read-only
17:38
<
megi >
there's special option to allow for r/w access
17:38
<
megi >
or maybe it just ended as a patch on mailing list, I don't remember
17:38
<
wasutton3 >
megi, i guess the next question would be where to poke
17:38
<
megi >
it's dangerous
17:39
<
wasutton3 >
im very aware that it is
17:39
<
megi >
AXP datasheet :)
17:39
<
wasutton3 >
well i mean in terms of which bus to poke through
17:39
<
jernej >
but yes, juggling buffers between DRM and V4L2 is very common, for example Kodi does that for zero-copy playback
17:39
<
megi >
in debugfs you'll see registers file for AXP
17:40
<
megi >
you'll just write to that file
17:40
<
wasutton3 >
yep, i see it now
17:40
cristian_c has joined #linux-sunxi
17:40
<
wasutton3 >
0x00-0xed
17:42
quadjfet has joined #linux-sunxi
17:42
<
megi >
it's REGMAP_ALLOW_WRITE_DEBUGFS option btw
17:44
<
megi >
seems like it expects two values, address and a new register value
17:44
<
wasutton3 >
that sounds about right
17:45
<
wasutton3 >
almost like an assembly instruction
17:45
<
wasutton3 >
as expected
17:46
<
megi >
ahh, you have to enable it in code
17:46
<
megi >
#undef -> #define :)
17:47
florian has joined #linux-sunxi
17:48
Gerwin_J has quit [Quit: Gerwin_J]
17:48
quadjfet has quit [Quit: Leaving]
17:49
<
wasutton3 >
ok, so it looks like 0x12 is set to 0x89, which means DLDO4 is set to off, but a default value of 3.3V when turned on.
17:49
<
wasutton3 >
my multimeter agrees
17:49
<
wasutton3 >
therefore, i need to set 0x12 to 0xC9 to turn bit 6 from 0 -> 1
17:51
<
wasutton3 >
so it looks like the folder also has an access file, with the register values followed by "y y n n" or some combination.
17:58
<
wasutton3 >
so it looks like i need to write something in C to use the debugfs api
17:58
<
megi >
echo -n 'ab cd' > registers
17:58
<
wasutton3 >
oooh that works too
17:59
<
megi >
it better should :)
17:59
<
wasutton3 >
if registers has stuff in it already, won't that overwrite everything?
17:59
<
megi >
it's handled by that function I linked above
18:00
<
megi >
it will just do a single register write
18:00
<
wasutton3 >
hmmm bash: echo: write error: Invalid argument
18:01
<
megi >
did you recompile the kernel?
18:01
<
wasutton3 >
ah, that would be why
18:01
<
wasutton3 >
change undef to def
18:01
<
anarsoul >
wouldn't it be easier to add a regulator to dts?
18:02
<
megi >
anarsoul: you can't control that from userspace, no?
18:02
<
anarsoul >
and let axp803 driver deal with it
18:02
<
wasutton3 >
anarsoul, possibly, but then how would it be toggled? does DTS present that interface?
18:03
<
anarsoul >
dts is device tree
18:03
<
anarsoul >
it's a file
18:04
<
wasutton3 >
anarsoul, right, and isn't it loaded at boot time?
18:04
<
anarsoul >
megi: I guess it's possible to wire it up to rfkill if all you need is toggling it
18:04
<
megi >
wasutton3: anyway, expect that if you change registers behind the kernel driver's back, you may run into some fun results ;)
18:05
<
megi >
anarsoul: interesting, that would be cleaner
18:06
<
wasutton3 >
agreed, i like that rather than having to recompile a kernel
18:06
<
anarsoul >
you still need to change your dts and compile it :)
18:07
<
anarsoul >
(it == dts)
18:07
<
wasutton3 >
that i've done before
18:07
<
wasutton3 >
but wiring it into rfkill is soemthing new
18:11
<
wasutton3 >
i see the 'regulator-always-on;' flag, im wondering if there is a 'regulator-switchable;' or somethign simialr
18:12
<
megi >
you'd probably need to add node for rfkill and for the regulator, and link rfkill to the regulator. rfkill has userspace interface you can then use to control the regulator
18:13
<
megi >
you can probably find some examples in other dts files
18:13
<
megi >
if you grep a bit :)
18:13
<
wasutton3 >
yup, thats what im doing now
18:13
<
megi >
there's also docs in dt-bindings folder in kernel sources
18:13
<
megi >
with examples
18:15
<
megi >
well, maybe not :)
18:15
<
wasutton3 >
i was gonna say
18:22
<
wasutton3 >
great success there
18:24
<
megi >
there's regulator/userspace-consumer.c that offers interface to enable/disable regulator from userspace via sysfs
18:25
<
megi >
but you're out of luck, as it can't be instantiated from DTS
18:26
Nakaori has quit [Remote host closed the connection]
18:27
return0e has quit [Read error: Connection reset by peer]
18:27
Nakaori has joined #linux-sunxi
18:27
return0e has joined #linux-sunxi
18:28
ElBarto has quit [Read error: Connection reset by peer]
18:28
ElBarto has joined #linux-sunxi
18:29
jstefanop has quit [Remote host closed the connection]
18:30
jstefanop has joined #linux-sunxi
18:35
jstefanop has quit [Ping timeout: 268 seconds]
18:48
gsz has quit [Quit: Konversation terminated!]
18:56
tllim has quit [Read error: Connection reset by peer]
19:44
jstefanop has joined #linux-sunxi
19:49
jstefanop has quit [Ping timeout: 265 seconds]
19:57
lurchi__ is now known as lurchi_
20:04
jstefanop has joined #linux-sunxi
20:10
ed_peguillan_ has joined #linux-sunxi
20:11
ed_peguillan has quit [Disconnected by services]
20:11
ed_peguillan_ is now known as ed_peguillan
20:21
netlynx has quit [Quit: Ex-Chat]
20:26
ed_peguillan has quit [Ping timeout: 258 seconds]
20:26
ed_peguillan has joined #linux-sunxi
20:52
jstefanop has quit [Remote host closed the connection]
20:53
jstefanop has joined #linux-sunxi
20:55
jstefano_ has joined #linux-sunxi
20:59
lurchi_ is now known as lurchi__
20:59
jstefanop has quit [Ping timeout: 276 seconds]
21:00
jstefano_ has quit [Ping timeout: 265 seconds]
21:07
lurchi__ is now known as lurchi_
21:12
ldevulder_ has joined #linux-sunxi
21:16
ldevulder has quit [Ping timeout: 246 seconds]
21:28
gnufan_home has joined #linux-sunxi
21:30
quadjfet has joined #linux-sunxi
21:41
reinforce has quit [Quit: Leaving.]
21:51
jelly has quit [Ping timeout: 268 seconds]
22:04
anarsoul|c has quit [Quit: Connection closed for inactivity]
22:08
jelly-home has joined #linux-sunxi
22:08
gaston1980 has joined #linux-sunxi
22:13
florian has quit [Ping timeout: 240 seconds]
22:15
gaston1980 has quit [Quit: Konversation terminated!]
22:19
gnufan_home has quit [Quit: Leaving.]
22:47
ed_peguillan has quit [Read error: Connection reset by peer]
22:51
tllim has joined #linux-sunxi
23:10
lurchi_ is now known as lurchi__
23:17
lurchi__ is now known as lurchi_
23:25
Mangy_Dog has quit [Ping timeout: 240 seconds]