ikarso has quit [Quit: Connection closed for inactivity]
<set_>
whatever happened to the PWM peripheral on the am335x w/ the BBB?
<set_>
Just some background...
<set_>
I looked through u-boot, the fs on the actual board, and the .dtsi/.dts files.
<set_>
I found it on am335x-boneblack.dts but my pwm files are not around...
<set_>
the am335x-boneblack.dts I found is located in the kernel, though. Hmm.
buzzmarshall has quit [Quit: Konversation terminated!]
Shadyman has joined #beagle
vagrantc has quit [Quit: leaving]
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #beagle
renrelkha has quit [Server closed connection]
renrelkha has joined #beagle
tin_ has quit [Server closed connection]
tin_ has joined #beagle
aussetg has quit [Remote host closed the connection]
aussetg has joined #beagle
darkapex has joined #beagle
russ has quit [Ping timeout: 240 seconds]
ikarso has joined #beagle
Tamarinen has joined #beagle
Shadyman has quit [Quit: Leaving.]
johanhenselmans has quit [Quit: johanhenselmans]
johanhenselmans has joined #beagle
<Tamarinen>
I have a PRU problem. I'd like to read a non-PRU GPIO pin using PRU 1. That should be doable via OCP, but when I try, the PRU locks up. It can be stopped and started, but won't accept new firmware until reset using prudebug.
<Tamarinen>
Code TL;DR:
<Tamarinen>
config-pin P9_22 gpio
<Tamarinen>
/ Base address and offset for GPIO0
<Tamarinen>
#define GPIO0 0x44E09000
<Tamarinen>
#define GPIO_DATAIN 0x138 // Offset for reading GPIO data
<Tamarinen>
I've tried usin gpio2 instead, with the same result. I suspect I don't treat the OCP correctly, and something doesn't translate as it should there, but I haven't been able to find examples reading GPIO pins, just writing them.
russ has joined #beagle
ft has quit [Quit: leaving]
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
ikarso has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook has joined #beagle
mayab has joined #beagle
SJFriedl has joined #beagle
samnob has quit [Ping timeout: 240 seconds]
samnob has joined #beagle
samnob has quit [Ping timeout: 240 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
samnob has joined #beagle
<dinuxbg>
Tamarinen: You need to allow OCP access to PRU. Something like: CT_CFG.SYSCFG_bit.STANDBY_INIT = 0
<Tamarinen>
Excellent, I'll take a look right away.
vagrantc has joined #beagle
florian has quit [Quit: Ex-Chat]
<Tamarinen>
dinuxbg: It doesn't lock up anymore, thanks a lot! Would have taken me ages to find that out myself.
<Tamarinen>
Now I'll have to find out why it doesn't seem to react to P9_22 going low. I suspect it is because gpioinfo says it is in use, and what is using it is probably UART2, which according to Internet wisdom should be possible to disable by not enabling the universal cape in uEnv.txt. Doesn't seem to make any difference, though. Maybe I'll have to mess with the dtbs to disable it and free that pin for gpio use?
jfsimon1981_c is now known as jfsimon
ikarso has joined #beagle
<dinuxbg>
Tamarinen: There used to be a user space tool to configure pinmux. Check if this works: sudo config-pin P9.22 gpio_input
<dinuxbg>
But yes, you are correct that the proper method to disable UART2 and tweak the pin-ctrl would be DTS.
vagrantc has quit [Quit: leaving]
mayab has quit [Quit: Connection closed for inactivity]
ft has joined #beagle
brook has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
mayab has joined #beagle
mvaittin has quit [Ping timeout: 240 seconds]
SJFriedl has quit [Read error: Connection reset by peer]