KREYREN has quit [Remote host closed the connection]
brook has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
<set_>
Do not bother with whatever I was typing early this morning. I think I found a way in/out.
KREYREN has joined #beagle
Shadyman has joined #beagle
ikarso has joined #beagle
rob_w has joined #beagle
KREYREN has quit [*.net *.split]
ft has quit [Quit: leaving]
<blathijs>
Anyone know if enabling internal pullups through the gpiod API should work on a BBB? I've tried running `gpiomon --bias pull-up <chipnum> <linenum>` and that does show "pull-up" in `gpioinfo`, but the pin reads as 0 continuously, and measuring the pin also shows 0V. I've tested with a bare BBB board, and also checked that this pin (P8_17 / GPIO0_17) has nothing else connected on the BBB schematic
<blathijs>
either...
<blathijs>
The debugfs pinmux-pins file for this pin says: `pin 11 (PIN11): ocp:P8_17_pinmux (GPIO UNCLAIMED) function pinmux_P8_17_default_pin group pinmux_P8_17_default_pin`, but I'm not sure how to read that. I'm wondering if the pin might be pin muxed for non-gpio use. If I add an external pullup, I can read the pin as expected, but maybe GPIO read works even with a different pin mux setting?
florian has joined #beagle
Shadyman has quit [Quit: Leaving.]
<blathijs>
Hm, seems indeed that the ocp driver / universal cape overlay is controlling the pull state, if I run `echo gpio_pu | sudo tee /sys/devices/platform/ocp/ocp:P8_17_pinmux/state` (which is what config-pin would run, but I do not have that), then the pullup is enabled as expected.
<blathijs>
Could it be that the GPIO controller bias/pullup state is not propagated to the right place? Can I change some devicetree or other param to have that propagate properly? I'd prefer to manage pull state for gpios through the gpiod interface, and not have another (BBB-specific) setup to do..
<blathijs>
Digging in the kernel sources, there does seem to be machinery in place for this - the omap4-gpio driver calls gpiochip_generic_config() which calls into the pinmux set_config callback, which should set the bias config. It also seems the the gpio-ranges config is set up as expected...
brook_ has quit [Remote host closed the connection]
mvaittin has joined #beagle
brook has joined #beagle
rob_w has quit [Remote host closed the connection]
<blathijs>
Ok, confirmed that was the problem. Adding this overlay makes gpiod control of pullup/pulldown work (almost - disabling does not work, I copied these values from the pocketbeagle, but the disable values are wrong): https://gist.github.com/matthijskooijman/1632bb60c4349697ba73e04477a428ea
brook_ has joined #beagle
brook has quit [Ping timeout: 272 seconds]
brook_ has quit [Ping timeout: 246 seconds]
<blathijs>
rcn-ee: ^^ See above - I would like to add "pinctrl-single,bias-pullup/down" properties to the "am335x-bone-uboot-univ.dtb" DT shipped with your images, but I cannot quite find where the source for that DT file lives. Can you point me in the right direction?
mvaittin has quit [Ping timeout: 256 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<blathijs>
q
<blathijs>
w00ps
<blathijs>
Also, any pointers about what kernel sources and config are used for the builds? Seems there is also a bug in the pinctrl-single driver that I might want to try and fix, but that requires rebuilding the BBB kernel.
vagrantc has joined #beagle
Stat_headcrabed has joined #beagle
Stat_headcrabed has quit [Client Quit]
Stat_headcrabed has joined #beagle
brook has joined #beagle
florian has quit [Quit: Ex-Chat]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
vigneshr has quit [Quit: Connection closed for inactivity]
brook has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
ft has joined #beagle
brook_ has quit [Ping timeout: 268 seconds]
brook has joined #beagle
zjason` has quit [Read error: Connection reset by peer]
zjason` has joined #beagle
jfsimon has quit [Remote host closed the connection]
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Read error: Connection reset by peer]