I have added an include to am335x-boneblack-4dcape-43t.dts (I have a 4DCape-43t) to configure my GPIO pins.
It compiles without issues.
I replaced the /boot/am335x-boneblack-4dcape-43t.dtb file with my own and it boots without complaint.
There is no cape manager yet for 3.14.
I'm not sure how to list the current pin mix configuration to validate my changes have taken effect.
Where are the output / input pins mapped in the file system? Should they show up under /sys/class/gpio/gpiochip(0, 32, 64, 96)?
I should have file system entries for PWM pins I have enabled in the device tree, but I see nothing under the /sys/class/pwm/ directory.
Is this where the entries should show up?
Obviously, I could use a good tutorial on how to configure the device tree and access the GPIO functions under kernel 3.14
Thanks for any help.
I must have something wrong in my rebuild of the dtb file.
I have no pin entries under /sys/class/gpio.
I'll look around in /sys/kernel/debug/pinctl to see what the current config settings are.
All my searches on this forum and the web turn up examples for the 3.8 kernel and cape manager.
I've found references to configuring the GPIO pins under 3.14, but no examples or explainations of where changes can be verified.
Cape Manager under 3.8 is documented very well.
I found the repository for config-pin, but apt-cache search turned up nothing for installing it.
Do I need to compile the source from the repo on the BBB to get config-pin?
Thanks for the info.
#apt-get install gcc g++ make device-tree-compiler
#git clone https://github.com/cdsteinkuehler/beaglebone-universal-io
#cd beaglebone-universal-io/
#make
#sudo make install
after that, I can change the mode of my pin
PIN 8 - P8-19 gpio0[22] 22 0x820 EHRPWM2A
to PWM with:
#config-pin p8.19 pwm
it changes the configuration, I can verify it by checking with
#config-pin -q p8.19
however, I can't export the pin using:
sudo cat 2 > /sys/class/pwm/export
it always comes back with permission denied
also, the /sys/class/pwm directory is empty, there should be something in there, right?
Any ideas what I need to do to get pwm working?
#sudo echo 2 > /sys/class/pwm/export
I thought that would export EHRPWM2 so I could configure it.
I have a LCD cape 4DSCape-43T
I'm loading am335x-boneblack-4dcape-43t.dtb
Do I need to load a different dtb to enable pwm?
No.. Someone actually had to figure out how to enable the pwm via the DTS in v3.14.x...
Hint I haven't much time on it nor figured it out.. Hence its not enabled by default.
--
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/KMIXJPa4IQI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/KMIXJPa4IQI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.