On Tue, Jan 17, 2017 at 11:14 AM, Kevin Cox <[email protected]> wrote: > I am trying to toggle a GPIO pin (P8_11) using PRU0. I was able to load the > uio_pruss driver by using the steps below, when I do lsmod this looks > correct as well. I also am able to load a program successfully into the PRU > using the prussdrv_xxx interface. However it looks like I do not have my > overlay correct. I modified the uio_pruss_enable-A00.dts overlay file (see > below) based on the most current posts I could find. Yet my dmesg output > shows a "pins are not configured from the driver" error and > I do not see the correct value (6) for pin 15 in the pinmux file. I don't > understand when/how uio_pruss driver picks up the changes in the > uio_pruss_enable file or whether I have it in the correct format. There > seems to be multiple ways this file can be configured depending on kernel > and kernel version. > > modify uEnv.txt > dtb=am335x-boneblack-emmc-overlay.dtb > cape_enable=bone_capemgr.enable_partno=uio_pruss_enable > > modify am335x-boneblack-emmc-overlay.dtb > #include "am33xx-pruss-uio.dtsi" > > modify /etc/modprobe.d/pruss-blacklist.conf > blacklist pruss > blacklist pruss_intc > blacklist pru-rproc > > root@beaglebone:~# lsmod | grep pru > uio_pruss 5504 0 > uio 10524 2 uio_pruss,uio_pdrv_genirq > > uname -a > 4.4.30-ti-r64 > > /sys/kernel/debug/pinctrl/44e10800.pinmux/pins: > pin 15 (44e1083c.0) 00000027 pinctrl-single > > modified /opt/source/bb.org-overlays/src/arm/uio_pruss_enable-00A0.dts > /dts-v1/; > /plugin/; > / { > compatible = "ti,beaglebone", "ti,beaglebone-black", > "ti,beaglebone-green"; > // identification > part-number = "uio_pruss_enable"; > version = "00A0"; > > exclusive-use = > "P8.11", "pru0"; > > fragment@0 { > target = <&am33xx_pinmux>; > __overlay__ { > pru_pru_pins: pinmux_pru_pru_pins { > > pinctrl-single,pins = < > 0x34 0x06 > >; > }; > }; > }; > > fragment@1 { > target = <&ocp>; > __overlay__ { > test_helper: helper { > compatible = "bone-pinmux-helper"; > pinctrl-names = "default"; > pinctrl-0 = <&pru_pru_pins>; > status = "okay"; > }; > }; > }; > };
there's no pruss node^ see https://github.com/beagleboard/devicetree-source/blob/master/arch/arm/boot/dts/BB-BONE-PRU-01-00A0.dts Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYi5uJzVc4u1WGSgKMU9SD_k%3Dgxa%3DLvP6SLJFd-Tg7UaSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
