/dts-v1/;/plugin/;
/ { compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "EMS-PRU-CUSTOM"; version = "00A0";
/* This overlay uses the following resources */ exclusive-use = "P9.30", "P9.31", "P9.27", "P9.25", "P9.29", "P9.28", "P8.44", "P8.41", "P8.42", "pru0", "pru1", "pruss";
fragment@0 { target = <&am33xx_pinmux>; __overlay__ { pru_pru_pins: pinmux_pru_pru_pins { // The PRU pin modes pinctrl-single,pins = < 0x1a4 0x2e /* mcasp0_fsr, OMAP_MUX_MODE6 | AM33XX_PIN_INPUT, PRU CAPE SW1 */ 0x1ac 0x2e /* mcasp0_ahclkx, OMAP_MUX_MODE6 | AM33XX_PIN_INPUT, PRU CAPE SW2 */ 0x19c 0x05 /* mcasp0_ahclkr, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE Red LED */ 0x198 0x05 /* mcasp0_axr0, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE Orange LED */ 0x190 0x05 /* mcasp0_aclkx, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE Blue LED */ 0x194 0x05 /* mcasp0_fsx, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE Green LED */ 0x0ac 0x05 /* lcd_data3, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE RGB_0 LED, HDMI Conf. */ 0x0b0 0x05 /* lcd_data4, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE RGB_1 LED, HDMI Conf. */ 0x0b4 0x05 /* lcd_data5, OMAP_MUX_MODE5 | AM33XX_PIN_OUTPUT, PRU CAPE RGB_2 LED, HDMI Conf. */ >; }; }; };
fragment@1 { // Enable the PRUSS target = <&pruss>; __overlay__ { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&pru_pru_pins>; }; };
};
Small update:If we load cape-universala and run the following command in terminal the PRU seems to be able to toggle the pins in question:config-pin P9_31 pruoutThis is only a temporary solution until a final solution for the device tree can be found, It should be possible to use the overlay to configure the GPIO pinmux correctly no?Based on this I think we can conclude there is still some issue with the device tree overlay settings. But we have no clue what it would be at this point.
##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)
##BeagleBone Black: HDMI (Audio/Video) disabled:#dtb=am335x-boneblack-emmc-overlay.dtb
##BeagleBone Black: eMMC disabled:#dtb=am335x-boneblack-hdmi-overlay.dtb
##BeagleBone Black: HDMI Audio/eMMC disabled:#dtb=am335x-boneblack-nhdmi-overlay.dtb
##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
dtb=am335x-boneblack-overlay.dtb
##BeagleBone Black: wl1835#dtb=am335x-boneblack-wl1835mod.dtb
##BeagleBone Green: eMMC disabled#dtb=am335x-bonegreen-overlay.dtb
###U-Boot Overlays######Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays###Master Enable#enable_uboot_overlays=1###Overide capes with eeprom#uboot_overlay_addr0=/lib/firmware/<file0>.dtbo#uboot_overlay_addr1=/lib/firmware/<file1>.dtbo#uboot_overlay_addr2=/lib/firmware/<file2>.dtbo#uboot_overlay_addr3=/lib/firmware/<file3>.dtbo###Custom Cape#dtb_overlay=/lib/firmware/EBB-PRU-Custom-00A0.dtbo
###Disable auto loading of virtual capes (emmc/video/wireless)
disable_uboot_overlay_emmc=1#disable_uboot_overlay_video=1#disable_uboot_overlay_audio=1#disable_uboot_overlay_wireless=1###Cape Universal Enable#enable_uboot_cape_universal=1###U-Boot fdt tweaks...#uboot_fdt_buffer=0x60000###U-Boot Overlays###
cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=disable
#In the event of edid real failures, uncomment this next line:#cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable video=HDMI-A-1:1024x768@60e
##Example v3.8.x#cape_disable=capemgr.disable_partno=#cape_enable=capemgr.enable_partno=
##Example v4.1.x#cape_disable=bone_capemgr.disable_partno=#cape_enable=bone_capemgr.enable_partno=
##enable Generic eMMC Flasher:##make sure, these tools are installed: dosfstools rsync#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots 0: PF---- -1 1: PF---- -1 2: PF---- -1 3: PF---- -1root@beaglebone:~#
--
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 beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/d58b6891-5393-4a23-bf64-0636f03e0433%40googlegroups.com.