On Thu, Dec 19, 2019 at 10:20 AM p.c.s.laurie.58 via BeagleBoard <[email protected]> wrote: > > We're trying to set up BBB to run our own cape using UIO for speed. > I'm running Debian 2-12-19 > > We're using the .dtbo file that worked with the Slots scheme: > > /dts-v1/; > /plugin/; > > / { > compatible = "ti,beaglebone", "ti,beaglebone-black"; > > part-number = "EBB-PRU-ADC"; > version = "00A0trf4"; > > /* This overlay uses the following resources */ > exclusive-use = > "P9.25","P9.27", "P9.28", "P9.29", "P9.30", "P9.31", "P8.46", > "pru0", "pru1"; > > fragment@0 { > target = <&am33xx_pinmux>; > __overlay__ { > > pru_pru_pins: pinmux_pru_pru_pins { // The PRU pin modes > pinctrl-single,pins = < > // See Table 6-7, no pull up/down resistors enabled. TRF > MISO1 added > 0x1ac 0x2e // MISO_2 P9_25 pr1_pru0_pru_r31_7, MODE6 | > INPUT | DIS 00101110=0x2e > 0x1a4 0x0d // CS P9_27 pr1_pru0_pru_r30_5, MODE5 | > OUTPUT | DIS 00001101=0x0d > 0x19c 0x2e // MISO_0 P9_28 pr1_pru0_pru_r31_3, MODE6 | > INPUT | DIS 00101110=0x2e > 0x194 0x2e // MISO_1 P9_29 pr1_pru0_pru_r31_1, MODE6 | > INPUT | DIS 00101110=0x2e > 0x198 0x0d // CLK P9_30 pr1_pru0_pru_r30_2, MODE5 | > OUTPUT | DIS 00001101=0x0d > 0x190 0x2e // MISO_3 P9_31 pr1_pru0_pru_r31_0, MODE6 | > INPUT | DIS 00101110=0x2e > // This is for PRU1, the sample clock -- debug only > 0x0a4 0x0d // SAMP P8_46 pr1_pru1_pru_r30_1, MODE5 | > OUTPUT | DIS 00001101=0x0d > >; > }; > }; > }; > > fragment@1 > { // kernel 4.14 - error to do this > target = <&pruss>; > __overlay__ { > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <&pru_pru_pins>; > }; > }; > > }; > > This file compiled clean but for these warnings: > EBB-PRU-ADC4-00A1.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a > unit name, but no reg property > EBB-PRU-ADC4-00A1.dtbo: Warning (unit_address_vs_reg): Node /fragment@1 has a > unit name, but no reg property > -------------------------------------------------------------------------------------- > The uEnv.txt file is: > uname_r=4.14.71-ti-r80 > #uuid= > #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 > ### > ###Additional custom capes > #uboot_overlay_addr4=/lib/firmware/<file4>.dtbo > uboot_overlay_addr4=/lib/firmware/EBB-PRU-ADC4-00A1.dtbo > #uboot_overlay_addr5=/lib/firmware/<file5>.dtbo > #uboot_overlay_addr6=/lib/firmware/<file6>.dtbo > #uboot_overlay_addr7=/lib/firmware/<file7>.dtbo > ### > ###Custom Cape > #dtb_overlay=/lib/firmware/<file8>.dtbo > ### > ###Disable auto loading of virtual capes (emmc/video/wireless/adc) > #disable_uboot_overlay_emmc=1 > disable_uboot_overlay_video=1 > disable_uboot_overlay_audio=1 > disable_uboot_overlay_wireless=1 > disable_uboot_overlay_adc=1 > ### > ###PRUSS OPTIONS > ###pru_rproc (4.4.x-ti kernel) > #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo > ###pru_rproc (4.14.x-ti kernel) > #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo > ###pru_uio (4.4.x-ti, 4.14.x-ti & mainline/bone kernel) > uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo > ### > ###Cape Universal Enable > #enable_uboot_cape_universal=1 > ### > ###Debug: disable uboot autoload of Cape > #disable_uboot_overlay_addr0=1 > #disable_uboot_overlay_addr1=1 > #disable_uboot_overlay_addr2=1 > #disable_uboot_overlay_addr3=1 > ### > ###U-Boot fdt tweaks... (60000 = 384KB) > #uboot_fdt_buffer=0x60000 > ###U-Boot Overlays### > > cmdline=coherent_pool=1M net.ifnames=0 quiet > > #In the event of edid real failures, uncomment this next line: > #cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e > > #Use an overlayfs on top of a read-only root filesystem: > #cmdline=coherent_pool=1M net.ifnames=0 quiet overlayroot=tmpfs > > ##enable Generic eMMC Flasher: > #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh > ---------------------------------------- > > Pin 9_27 is one of ours. I woul hope that it was set up at reboot, but:: > > config-pin -q P9.27 > P9_27 pinmux file not found! > Cannot read pinmux file: /sys/devices/platform/ocp/ocp*P9_27_pinmux/state > -------------------------------------------- > Can anyone see what we're doing wrong?
You defined P9_27 in the overlay.. and enable_uboot_cape_universal is disabled in your /boot/uEnv.txt #enable_uboot_cape_universal=1 Thus config-pin can't access P9.27 thru /sys/devices/platform/ocp/ocp*P9_27_pinmux/state 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/CAOCHtYicPxA31OiQ4%3DJNnU1EcsJgEMdnTtQDg1GZgHUPn-s%3DvQ%40mail.gmail.com.
