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*
Putti has quit [Ping timeout: 255 seconds]
tllim has joined #linux-sunxi
<gnarface> arc_phasor: in case nobody who actually knows what they're doing answers you, i heard of some python library for handling GPIO
<gnarface> it should be pretty simple to use if you know python, and there are probably a lot of examples to go with it for doing stuff like you want
lurchi_ is now known as lurchi__
victhor has joined #linux-sunxi
dev1990 has quit [Quit: Konversation terminated!]
lurchi__ is now known as lurchi_
Rafael1980 has quit [Quit: Konversation terminated!]
paulliu has quit [Quit: Leaving.]
tllim has quit [Ping timeout: 245 seconds]
<smaeul> arc_phasor: when using the gpio-keys driver, you specify the keycode in the device tree. for example:
<smaeul> then you can bind the key to arbitrary actions with a hotkey daemon (or maybe something like acpid)
<smaeul> or you can set it directly to a "power button", like here: https://github.com/megous/linux/commit/77beb2050edb4ead79c323f3cfb1d472d71e6921
victhor has quit [Ping timeout: 258 seconds]
<arc_phasor> woah nice, that's exactly what i was wondering. So if i set it to a power button, do things magically happen when i hit it?
<smaeul> no nothing magic. something in userspace has to handle that. most of the time that's acpid or systemd-logind
<arc_phasor> gotcha gotcha
<smaeul> in other words, exactly the same thing happens as when you press the power button on an x86 desktop, because Linux sees them the same
<arc_phasor> oh so i would be tieing this gpio to a keycode, so to the OS it looks like just another key was pressed?
<arc_phasor> is that how the keyboard works too? just sends out a bunch of keycodes
<smaeul> yes, it shows up like a keyboard
lynxis has quit [Remote host closed the connection]
<smaeul> real keyboards are a bit more complicated because they have modifiers -- they send scancodes, which are translated by Linux into keycodes using your keyboard map
<smaeul> er, keyboard layout
<arc_phasor> incredible.
<arc_phasor> i want to also do something if the button is held down for say 3 seconds
<arc_phasor> how would that look from linux standpoint / how could i handle that?
<smaeul> that would look to your userspace daemon as 1) receive a "key down" event 2) don't receive a "key up" event for 3 seconds
<arc_phasor> oh cool!
<arc_phasor> that's super awesome
<arc_phasor> a userspace daemon being basically any long running process i start with systemd right?
<smaeul> yes
<arc_phasor> i love it. thanks so much
<gnarface> (systemd not strictly required)
<gnarface> (userspace daemon is just any long-running process regardless of what starts it. systemd is just the typical case)
<gnarface> (and even that is a relatively new development)
<arc_phasor> understood. thanks everyone
xes_ has quit [Ping timeout: 250 seconds]
Andy-D has quit [Ping timeout: 246 seconds]
Andy-D has joined #linux-sunxi
lynxis has joined #linux-sunxi
lurchi_ is now known as lurchi__
arc_phasor has quit [Quit: Page closed]
rej has quit [Ping timeout: 246 seconds]
rej has joined #linux-sunxi
rej has quit [Changing host]
rej has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
agraf has quit [Ping timeout: 257 seconds]
agraf has joined #linux-sunxi
Andy-D has quit [Ping timeout: 268 seconds]
gamelaster has quit [Ping timeout: 255 seconds]
willmore has quit [Quit: Leaving]
willmore has joined #linux-sunxi
penpatde has quit [Ping timeout: 264 seconds]
penpatde has joined #linux-sunxi
shfil has quit [Quit: Connection closed for inactivity]
vagrantc has quit [Quit: leaving]
chewitt has joined #linux-sunxi
TheSeven has quit [Ping timeout: 264 seconds]
[7] has joined #linux-sunxi
megi has quit [Ping timeout: 246 seconds]
f0xx has joined #linux-sunxi
rexxster has quit [Ping timeout: 268 seconds]
rexxster has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 272 seconds]
dddddd has quit [Remote host closed the connection]
chewitt has quit [Quit: Zzz..]
selfbg has joined #linux-sunxi
paulliu has joined #linux-sunxi
reinforce has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 245 seconds]
IgorPec has joined #linux-sunxi
jaganteki has joined #linux-sunxi
<jaganteki> wens: I have TLV733 regulator whose input is 5V, DCIN from axp803(pin 57, 58) along with enable gpio and it produces 3.3v and fe to CAN VDD
<jaganteki> wens: can you help how to feed this into vdd-supply
<jaganteki> wens: I have created reg_5v5 with 5.5v min and max along with gpio pin enable property but it's not working
<wens> what part isn't working? can you test the voltage levels of the input/output/enable pins of the regulator?
<wens> and what the heck is CAN VDD?
<wens> you need to provide more context along with your problem
<jaganteki> wens: MPC2515 can connected on SPI1
wwilly has quit [Remote host closed the connection]
wwilly has joined #linux-sunxi
<jaganteki> chip is not detecting, probe continously defered with 517 return val
<jaganteki> VDD is one of MPC2515 pin
<jaganteki> which is handle via vdd-supply in driver, drivers/net/can/spi/mcp251x.c
<jaganteki> wens: hope I provide enough information.
IgorPec has quit [Ping timeout: 268 seconds]
<wens> so add a fixed regulator device node?
<wens> it seems more likely that if you already have it in place, then it's the regulator that's not being probed
xes has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
<jaganteki> wens: Yes, I did that similar, fyi: https://paste.ubuntu.com/p/wZ8QJmgdqM/
<wens> looks ok. you're going to have to dive into the driver to figure out where it's returning the error
<jaganteki> wens: thanks for the time, will dig to driver.
f0xx has quit [Ping timeout: 245 seconds]
zoums has quit [Ping timeout: 246 seconds]
zoums has joined #linux-sunxi
clemens3 has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 250 seconds]
camus is now known as kaspter
f0xx has joined #linux-sunxi
arete74 has quit [Ping timeout: 240 seconds]
AneoX has joined #linux-sunxi
msimpson has joined #linux-sunxi
IgorPec has joined #linux-sunxi
airwind has joined #linux-sunxi
victhor has joined #linux-sunxi
yann has joined #linux-sunxi
Boris80 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 255 seconds]
IgorPec has joined #linux-sunxi
pmpp has quit [Disconnected by services]
pmpp_ has joined #linux-sunxi
tnovotny has joined #linux-sunxi
\\Mr_C\\ has quit [Read error: Connection reset by peer]
\\Mr_C\\ has joined #linux-sunxi
pmpp_ has quit [Ping timeout: 245 seconds]
agraf has quit [Ping timeout: 246 seconds]
pmpp has joined #linux-sunxi
agraf has joined #linux-sunxi
zzeroo has quit [Ping timeout: 245 seconds]
KotCzarny has quit [Ping timeout: 245 seconds]
Nyuutwo has quit [Remote host closed the connection]
\\Mr_C\\ has quit [Ping timeout: 245 seconds]
\\Mr-C\\ has joined #linux-sunxi
camh has quit [Ping timeout: 245 seconds]
indy has quit [Ping timeout: 245 seconds]
Nyuutwo has joined #linux-sunxi
camh has joined #linux-sunxi
indy has joined #linux-sunxi
\\Mr-C\\ has quit [Remote host closed the connection]
kaspter has quit [Read error: Connection reset by peer]
<plaes> so.. how do the device tree overlays work? :D
<s_frit> devicetree.org has the docs
<s_frit> i think mostly it's a matter of overwriting existing nodes, node parameters, and deleting nodes and node parameters (*probably not the correct names)
megi has joined #linux-sunxi
kaspter has joined #linux-sunxi
Andy-D has joined #linux-sunxi
leviathanch has joined #linux-sunxi
zzeroo has joined #linux-sunxi
shfil has joined #linux-sunxi
victhor has quit [Ping timeout: 257 seconds]
wigyori has quit [Changing host]
wigyori has joined #linux-sunxi
AneoX has quit [Ping timeout: 250 seconds]
AneoX has joined #linux-sunxi
Rafael1980 has joined #linux-sunxi
KotCzarny has joined #linux-sunxi
Bortolino has quit [Ping timeout: 256 seconds]
<buZz> plaes: confusing and complex :P
<buZz> but it does work
AneoX_ has joined #linux-sunxi
messpl has joined #linux-sunxi
AneoX has quit [Ping timeout: 246 seconds]
<messpl> Hello, I have a question related to pin configuration in DTS and exporting pins in linux environment. Is it possible to use UART TX pin in dual mode e.g. export it as GPIO out, toggle it's state and then unexport it and get back to UART TX mode?
subz has joined #linux-sunxi
<plaes> messpl: maybe it's possible with devicetree overlay..
tnovotny has quit [Quit: Leaving]
<mru> if a driver has a claimed a pin, its function can't be changed until it is released
<mru> you'd have to unbind the uart driver before using the pin for something else
<mru> it can be done, but I wouldn't recommend it
<wens> the only way is to side-step the kernel and access the registers directly
<wens> don't do it. you've been warned :p
<messpl> I am running some tests right now, and I see that I am able to export UART TX pin when port is not busy. The problem is that when I unexport pin and start talking through UART i do not see any data on TX pin. I expect that even I unexported the pin, it's function is overwritten.
Gerwin_J has joined #linux-sunxi
fkluknav_ has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 245 seconds]
return0e_ has joined #linux-sunxi
subzz has joined #linux-sunxi
clemens3_ has joined #linux-sunxi
Net147 has joined #linux-sunxi
GrimKriegor_ has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
AneoX has joined #linux-sunxi
marble_visions_ has joined #linux-sunxi
foxx_ has joined #linux-sunxi
alexxy[home] has joined #linux-sunxi
lykt_ has joined #linux-sunxi
igraltis1 has joined #linux-sunxi
diego71_ has joined #linux-sunxi
wigyori_ has joined #linux-sunxi
a|3xx has joined #linux-sunxi
FergusL has quit [Ping timeout: 246 seconds]
CoconutCrab has quit [Ping timeout: 246 seconds]
igraltist has quit [Ping timeout: 246 seconds]
marble_visions has quit [Ping timeout: 246 seconds]
bbrezillon has quit [Ping timeout: 246 seconds]
Net147_ has quit [Ping timeout: 246 seconds]
pgreco has quit [Ping timeout: 246 seconds]
diego71 has quit [Ping timeout: 246 seconds]
wigyori has quit [Ping timeout: 246 seconds]
mnemoc has quit [Ping timeout: 246 seconds]
subz has quit [Ping timeout: 246 seconds]
zzeroo has quit [Ping timeout: 246 seconds]
yann has quit [Ping timeout: 246 seconds]
xes has quit [Ping timeout: 246 seconds]
lurchi_ has quit [Ping timeout: 246 seconds]
alexxy has quit [Ping timeout: 246 seconds]
GrimKriegor has quit [Ping timeout: 246 seconds]
beeble has quit [Ping timeout: 246 seconds]
parazyd has quit [Ping timeout: 246 seconds]
ctgriffiths has quit [Ping timeout: 246 seconds]
a|3x has quit [Ping timeout: 246 seconds]
pgreco has joined #linux-sunxi
rej_ has joined #linux-sunxi
pgreco has quit [Changing host]
pgreco has joined #linux-sunxi
parazyd_ has joined #linux-sunxi
Mr__Anderson1 has quit [Ping timeout: 255 seconds]
lykt has quit [Ping timeout: 255 seconds]
freemangordon has quit [Ping timeout: 255 seconds]
agraf has quit [Ping timeout: 255 seconds]
f0xx has quit [Ping timeout: 255 seconds]
clemens3 has quit [Ping timeout: 255 seconds]
rej has quit [Ping timeout: 255 seconds]
vpeter has quit [Ping timeout: 255 seconds]
willmore has quit [Ping timeout: 255 seconds]
masterdonx has quit [Ping timeout: 255 seconds]
fkluknav has quit [Ping timeout: 255 seconds]
return0e has quit [Ping timeout: 255 seconds]
xes_ has joined #linux-sunxi
beeble has joined #linux-sunxi
ctgriffiths has joined #linux-sunxi
FergusL has joined #linux-sunxi
MasterdonY has joined #linux-sunxi
mnemoc has joined #linux-sunxi
yann has joined #linux-sunxi
bbrezillon has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
agraf has joined #linux-sunxi
willmore has joined #linux-sunxi
zzeroo has joined #linux-sunxi
vpeter has joined #linux-sunxi
parazyd_ has quit [Client Quit]
<mru> wait, did the kernel let you export a gpio while a driver was bound to the device?
parazyd has joined #linux-sunxi
CoconutCrab has joined #linux-sunxi
tnovotny has joined #linux-sunxi
<mru> indeed, it does
<mru> that's not good
<mru> advice remains the same, don't do it
rej_ has quit [Quit: Reconnecting]
rej has joined #linux-sunxi
rej has quit [Changing host]
rej has joined #linux-sunxi
subz has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
subzz has quit [Quit: Leaving]
subz has quit [Quit: Page closed]
subz has joined #linux-sunxi
subz has quit [Ping timeout: 256 seconds]
subz has joined #linux-sunxi
zoums has quit [Ping timeout: 250 seconds]
\\Mr_C\\ has joined #linux-sunxi
zoums has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 272 seconds]
dddddd has joined #linux-sunxi
subz has quit [Quit: Leaving]
subz has joined #linux-sunxi
subz has quit [Quit: Leaving]
shfil has quit [Quit: Connection closed for inactivity]
slowly has joined #linux-sunxi
<wens> plaes: dt overlay syntax is much better now, with & references to labels and &{/foo/bar} style references to paths
<plaes> is there a reason we are missing overlay support in sunxi_defconfig? :P
<wens> I don't think in-kernel overlay support is ready
<wens> most people use u-boot to apply overlays
Amit_T has joined #linux-sunxi
lurchi__ is now known as lurchi_
return0e has joined #linux-sunxi
leviathanch has quit [Remote host closed the connection]
return0e_ has quit [Ping timeout: 250 seconds]
Putti has joined #linux-sunxi
<mru> people are overly lazy
<mru> that's why
zoums has quit [Ping timeout: 244 seconds]
zoums has joined #linux-sunxi
foxx_ has quit [Ping timeout: 245 seconds]
IgorPec has quit [Ping timeout: 245 seconds]
zoums has quit [Ping timeout: 258 seconds]
zoums has joined #linux-sunxi
Gerwin_J has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
lurchi_ is now known as lurchi__
penpatde has quit [Ping timeout: 264 seconds]
penpatde has joined #linux-sunxi
shfil has joined #linux-sunxi
selfbg has quit [Remote host closed the connection]
<plaes> wens: are you sure this pin-bank regulator stuff works with 5.0-rc8?
<plaes> I can see that when I export bank pin as output and set value, voltage properly appears
<plaes> but when I try to enable uart at the same bank, it fails:
<wens> that's just a deferred probe
<wens> the last two lines show success
<plaes> ah.. ok :)
<plaes> confusing :(
slowly has quit [Ping timeout: 256 seconds]
reinforce has quit [Quit: Leaving.]
IgorPec has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
Gerwin_J has joined #linux-sunxi
IgorPec has quit [Ping timeout: 246 seconds]
\\Mr_C\\ has quit [Ping timeout: 244 seconds]
giomba has joined #linux-sunxi
sunshavi has quit [Ping timeout: 250 seconds]
RichardG867 has quit [Ping timeout: 245 seconds]
sunshavi has joined #linux-sunxi
netlynx has joined #linux-sunxi
reinforce has joined #linux-sunxi
Boris80 has quit [Ping timeout: 246 seconds]
msimpson has quit [Quit: Leaving]
zoums has quit [Ping timeout: 255 seconds]
zoums has joined #linux-sunxi
RichardG867 has joined #linux-sunxi
f0xx has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
giomba has quit [Ping timeout: 240 seconds]
tuxillo has quit [Remote host closed the connection]
tuxillo has joined #linux-sunxi
giomba has joined #linux-sunxi
yann has quit [Ping timeout: 255 seconds]
\\Mr_C\\ has quit [Ping timeout: 255 seconds]
tnovotny has quit [Quit: Leaving]
\\Mr_C\\ has joined #linux-sunxi
giomba has quit [Remote host closed the connection]
giomba has joined #linux-sunxi
dev1990 has joined #linux-sunxi
Andy-D has quit [Remote host closed the connection]
gnarface has quit [Ping timeout: 250 seconds]
clemens3_ has quit [Ping timeout: 250 seconds]
BenG83 has joined #linux-sunxi
gnarface has joined #linux-sunxi
gnarface is now known as Guest57832
giomba has quit [Ping timeout: 246 seconds]
vagrantc has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
lkcl has joined #linux-sunxi
pgreco_ has joined #linux-sunxi
CoconutC1ab has joined #linux-sunxi
pgreco has quit [Ping timeout: 246 seconds]
zzeroo has quit [Ping timeout: 246 seconds]
CoconutCrab has quit [Ping timeout: 246 seconds]
FergusL has quit [Ping timeout: 246 seconds]
beeble has joined #linux-sunxi
beeble has quit [Ping timeout: 255 seconds]
zzeroo has joined #linux-sunxi
willmore has quit [Ping timeout: 255 seconds]
willmore has joined #linux-sunxi
dddddd has quit [Ping timeout: 255 seconds]
FergusL has joined #linux-sunxi
dddddd has joined #linux-sunxi
Amit_T has quit [Quit: Leaving]
pgreco_ is now known as pgreco
<plaes> forgot to mention that indeed, it worked
chewitt has joined #linux-sunxi
jaganteki has quit [Ping timeout: 256 seconds]
BenG83 has quit [Quit: Leaving]
f0xx has quit [Ping timeout: 240 seconds]
zoums has quit [Ping timeout: 246 seconds]
zoums has joined #linux-sunxi
nashpa_ has joined #linux-sunxi
nashpa has quit [Ping timeout: 272 seconds]
victhor has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
egbert has quit [Ping timeout: 272 seconds]
egbert has joined #linux-sunxi
yann has joined #linux-sunxi
quark_ has quit [Ping timeout: 250 seconds]
Putti has quit [Remote host closed the connection]
netlynx has quit [Quit: Ex-Chat]
yann has quit [Ping timeout: 250 seconds]
chewitt has quit [Quit: Adios!]
yann has joined #linux-sunxi
wigyori_ has left #linux-sunxi [#linux-sunxi]
wigyori has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
iamfrankenstein has joined #linux-sunxi
iamfrankenstein has quit [Client Quit]
Nyuutwo has quit [Read error: Connection reset by peer]
Nyuutwo has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
Guest57832 has left #linux-sunxi [#linux-sunxi]
gnarface has joined #linux-sunxi
random_yanek has quit [Ping timeout: 245 seconds]
random_yanek has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
nuuuciano has quit [Ping timeout: 240 seconds]
Andy-D has joined #linux-sunxi
random_yanek has quit [Ping timeout: 246 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
Rafael1980 has quit [Quit: Konversation terminated!]
return0e has quit [Ping timeout: 240 seconds]
random_yanek has joined #linux-sunxi
lurchi__ is now known as lurchi_