0

device tree overlay - gpio
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: device tree overlay - gpio

by gururaj on Sat Nov 12, 2016 2:15 am

hi
Thank you for your reply..
Currently i am facing 2 issues, i am using BBB red industrial board with Debian GNU/Linux 7.8 (wheezy) os and madeto boot from SDcard and image date is BeagleBoard.org Debian Image 2015-03-01.
1) i need to load this load this GPIO OVER Lay by running command " echo VALVERS-IO > /sys/devices/bone_capemgr.*/slots" for 3 gpio pins, pins and address are like this
P8 - header 24 (GPIO1_1) address is 0x804/004
P8 - header 20 (GPIO1_31) address is 0x884/084
P8 - header 21 (GPIO1_30) address is 0x880/080 This pins are mux with mmc.
my requirement is i don't want to run this command manually every time bbb get rebooted. so as you suggested i pasted this command in uEnv.txt which is at /boot/uboot/uEnv.txt its look like this

cat uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_pa ... layout_2.0

uname_r=3.8.13-bone70
#dtb=
cmdline=quiet init=/lib/systemd/systemd

cape_enable=capemgr.enable_partno=VALVERS-IO

##Example
#cape_disable=capemgr.disable_partno=
cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5

##Disable HDMI/eMMC
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC
cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

##Audio Cape (needs HDMI Audio disabled)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02

##enable BBB: eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
------------------------------------------------------------------------------------------
and rebooted device..
results like this:

$cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5

dmesg command responce
$ dmesg | grep VALVERS*
nothing came...

if i add this command " echo VALVERS-IO > /sys/devices/bone_capemgr.*/slots" in bash rc i:e in "~/.bashrc " file and rebooted
$cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5
12: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO

and dmesg command responce
$dmesg
[ 56.751064] bone-capemgr bone_capemgr.9: part_number 'VALVERS-IO', version 'N/A'
[ 56.751243] bone-capemgr bone_capemgr.9: slot #12: generic override
[ 56.751287] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 12
[ 56.751335] bone-capemgr bone_capemgr.9: slot #12: 'Override Board Name,00A0,Override Manuf,VALVERS-IO'
[ 56.751579] bone-capemgr bone_capemgr.9: slot #12: Requesting part number/version based 'VALVERS-IO-00A0.dtbo
[ 56.751627] bone-capemgr bone_capemgr.9: slot #12: Requesting firmware 'VALVERS-IO-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 56.772375] bone-capemgr bone_capemgr.9: slot #12: dtbo 'VALVERS-IO-00A0.dtbo' loaded; converting to live tree
[ 56.772788] bone-capemgr bone_capemgr.9: slot #12: #2 overlays
[ 56.780789] bone-capemgr bone_capemgr.9: slot #12: Applied #2 overlays.


in this situation
if i open one more window using ssh to bbb and i do run command
$dmesg
[ 56.751064] bone-capemgr bone_capemgr.9: part_number 'VALVERS-IO', version 'N/A'
[ 56.751243] bone-capemgr bone_capemgr.9: slot #12: generic override
[ 56.751287] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 12
[ 56.751335] bone-capemgr bone_capemgr.9: slot #12: 'Override Board Name,00A0,Override Manuf,VALVERS-IO'
[ 56.751579] bone-capemgr bone_capemgr.9: slot #12: Requesting part number/version based 'VALVERS-IO-00A0.dtbo
[ 56.751627] bone-capemgr bone_capemgr.9: slot #12: Requesting firmware 'VALVERS-IO-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 56.772375] bone-capemgr bone_capemgr.9: slot #12: dtbo 'VALVERS-IO-00A0.dtbo' loaded; converting to live tree
[ 56.772788] bone-capemgr bone_capemgr.9: slot #12: #2 overlays
[ 56.780789] bone-capemgr bone_capemgr.9: slot #12: Applied #2 overlays.
[ 167.743354] bone-capemgr bone_capemgr.9: part_number 'VALVERS-IO', version 'N/A'
[ 167.743535] bone-capemgr bone_capemgr.9: slot #13: generic override
[ 167.743579] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 13
[ 167.743627] bone-capemgr bone_capemgr.9: slot #13: 'Override Board Name,00A0,Override Manuf,VALVERS-IO'
[ 167.743872] bone-capemgr bone_capemgr.9: slot #13: Requesting part number/version based 'VALVERS-IO-00A0.dtbo
[ 167.743920] bone-capemgr bone_capemgr.9: slot #13: Requesting firmware 'VALVERS-IO-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 167.743995] bone-capemgr bone_capemgr.9: slot #13: dtbo 'VALVERS-IO-00A0.dtbo' loaded; converting to live tree
[ 167.746775] bone-capemgr bone_capemgr.9: slot #13: #2 overlays
[ 167.746980] bone-capemgr bone_capemgr.9: slot #13: Applied #2 overlays.

and cat /sys/device/bone_capemgr.*/slots responce as below
$cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5
12: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO
13: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO

if i keep login by using ssh the GPIOpins tree overlay keep increases like this
$cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5
12: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO
13: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO
14: ff:P-O-L Override Board Name,00A0,Override Manuf,VALVERS-IO

Any suggestion for this.. Is this wrong behaviour.. but by adding "cape_enable=capemgr.enable_partno=VALVERS-IO" command in uEnv.txt BBB didn't changed pins function.

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by gururaj on Sat Nov 12, 2016 4:02 am

hi,
2nd issue is that related to network.
i set Static IP to bbb-Red board which is in /etc/network/interface file and its look like this...
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
auto eth0
iface eth0 inet static
address 192.109.209.70
netmask 255.255.255.0
network 192.109.209.0
gateway 192.109.209.176
dns-nameservers 8.8.8.8
dns-nameservers 8.8.4.4
# The secondary network interface
#auto eth1
#iface eth1 inet dhcp

# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
# wpa-ssid "essid"
# wpa-psk "password"

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
#iface usb0 inet static
#address 192.168.7.2
#netmask 255.255.255.0
#network 192.168.7.0
#gateway 192.168.7.1

after rebooting bbb, its fine i can see and can do ssh to the BBB. After that i keep device on for the over night and when i came back at morning, i can't do ssh / ping.
with using static ip of bbb then i did use debug port to find out its issues
then i found its ip address changed to other.
Can you tell why this is happing...??

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by drewfustini on Sat Nov 12, 2016 4:34 am

I think the issue with uEnv.txt is that there are two cape_enable=capemgr.enable_partno lines:
cape_enable=capemgr.enable_partno=VALVERS-IO

cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5


I think the VALVERS-IO should be appended to the second line:
cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5,VALVERS-IO

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: device tree overlay - gpio

by drewfustini on Sat Nov 12, 2016 4:46 am

For the networking issue, I'm not sure what the solution is, so I'd suggest posting about it on the BeagleBoard.org mailing list:
https://groups.google.com/forum/#!forum/beagleboard

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: device tree overlay - gpio

by gururaj on Sat Nov 12, 2016 4:52 am

hi,
Thank you very much for your valuable reply..
i appended this VALVERS-IO in that cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5,VALVERS-IO and removed the above line and rebooted..
now i got this results..
my uEnv.txt looks like this...

cat /boot/uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_pa ... layout_2.0

uname_r=3.8.13-bone70
#dtb=
cmdline=quiet init=/lib/systemd/systemd

#cape_enable=capemgr.enable_partno=VALVERS-IO

##Example
#cape_disable=capemgr.disable_partno=
cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5,VALVERS-IO

##Disable HDMI/eMMC
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC
cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

##Audio Cape (needs HDMI Audio disabled)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02


##enable BBB: eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5

and Dmesg results...

[ 0.932951] udevd[99]: starting version 175
[ 1.067331] bone-capemgr bone_capemgr.9: failed to load firmware 'BB-UART0-00A0.dtbo'
[ 1.075639] bone-capemgr bone_capemgr.9: loader: failed to load slot-7 BB-UART0:00A0 (prio 0)
[ 1.084614] bone-capemgr bone_capemgr.9: slot #8: Requesting part number/version based 'BB-UART1-00A0.dtbo
[ 1.084633] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware 'BB-UART1-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 1.084659] bone-capemgr bone_capemgr.9: slot #8: dtbo 'BB-UART1-00A0.dtbo' loaded; converting to live tree
[ 1.084850] bone-capemgr bone_capemgr.9: slot #8: #2 overlays
[ 1.085784] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 1.085819] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 1.085846] bone-capemgr bone_capemgr.9: slot #9: Requesting part number/version based 'BB-UART2-00A0.dtbo
[ 1.085861] bone-capemgr bone_capemgr.9: slot #9: Requesting firmware 'BB-UART2-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 1.085885] bone-capemgr bone_capemgr.9: slot #9: dtbo 'BB-UART2-00A0.dtbo' loaded; converting to live tree
[ 1.086046] bone-capemgr bone_capemgr.9: slot #9: #2 overlays
[ 1.086659] bone-capemgr bone_capemgr.9: slot #10: Requesting part number/version based 'BB-UART4-00A0.dtbo
[ 1.086678] bone-capemgr bone_capemgr.9: slot #10: Requesting firmware 'BB-UART4-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 1.086698] bone-capemgr bone_capemgr.9: slot #10: dtbo 'BB-UART4-00A0.dtbo' loaded; converting to live tree
[ 1.086841] bone-capemgr bone_capemgr.9: slot #10: #2 overlays
[ 1.087474] bone-capemgr bone_capemgr.9: slot #11: Requesting part number/version based 'BB-UART5-00A0.dtbo
[ 1.087493] bone-capemgr bone_capemgr.9: slot #11: Requesting firmware 'BB-UART5-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 1.087512] bone-capemgr bone_capemgr.9: slot #11: dtbo 'BB-UART5-00A0.dtbo' loaded; converting to live tree
[ 1.087670] bone-capemgr bone_capemgr.9: slot #11: #2 overlays
[ 1.088187] bone-capemgr bone_capemgr.9: slot #12: Requesting part number/version based 'VALVERS-IO-00A0.dtbo
[ 1.088206] bone-capemgr bone_capemgr.9: slot #12: Requesting firmware 'VALVERS-IO-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 1.091024] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.091465] bone-capemgr bone_capemgr.9: slot #11: Applied #2 overlays.
[ 1.091482] bone-capemgr bone_capemgr.9: loader: done slot-11 BB-UART5:00A0 (prio 0)
[ 1.091609] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 1.091635] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 1.091745] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.092070] bone-capemgr bone_capemgr.9: slot #8: Applied #2 overlays.
[ 1.092085] bone-capemgr bone_capemgr.9: loader: done slot-8 BB-UART1:00A0 (prio 0)
[ 1.092167] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 1.092187] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 1.092305] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.092597] bone-capemgr bone_capemgr.9: slot #10: Applied #2 overlays.
[ 1.092612] bone-capemgr bone_capemgr.9: loader: done slot-10 BB-UART4:00A0 (prio 0)
[ 1.092689] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 1.092712] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 1.092868] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.093180] bone-capemgr bone_capemgr.9: slot #9: Applied #2 overlays.
[ 1.093195] bone-capemgr bone_capemgr.9: loader: done slot-9 BB-UART2:00A0 (prio 0)
[ 1.093273] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 1.093295] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 2.060531] bone-capemgr bone_capemgr.9: failed to load firmware 'VALVERS-IO-00A0.dtbo'
[ 2.069012] bone-capemgr bone_capemgr.9: loader: failed to load slot-12 VALVERS-IO:00A0 (prio 0)
[ 2.078251] bone-capemgr bone_capemgr.9: loader: check slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 2.078271] bone-capemgr bone_capemgr.9: loader: after slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 2.078295] bone-capemgr bone_capemgr.9: slot #5: Requesting firmware 'cape-boneblack-hdmi-00A0.dtbo' for board-name 'Bone-Black-HDMI', version '00A0'
[ 2.078324] bone-capemgr bone_capemgr.9: slot #5: dtbo 'cape-boneblack-hdmi-00A0.dtbo' loaded; converting to live tree
[ 2.078754] bone-capemgr bone_capemgr.9: slot #5: BB-BONELT-HDMI conflict P8.37 (#11:BB-UART5)
[ 2.087826] bone-capemgr bone_capemgr.9: slot #5: Failed verification
[ 2.094578] bone-capemgr bone_capemgr.9: loader: failed to load slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 2.104053] bone-capemgr bone_capemgr.9: loader: check slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 2.104069] bone-capemgr bone_capemgr.9: loader: after slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 2.104090] bone-capemgr bone_capemgr.9: slot #6: Requesting firmware 'cape-boneblack-hdmin-00A0.dtbo' for board-name 'Bone-Black-HDMIN', version '00A0'
[ 2.104108] bone-capemgr bone_capemgr.9: slot #6: dtbo 'cape-boneblack-hdmin-00A0.dtbo' loaded; converting to live tree
[ 2.104337] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.37 (#11:BB-UART5)
[ 2.113453] bone-capemgr bone_capemgr.9: slot #6: Failed verification
[ 2.120218] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2)


plz can you suggest any things that i need those 3 gpio along with all 4-uarts very important for my project.

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by drewfustini on Sat Nov 12, 2016 5:06 am

I noticed this error in the dmesg output:
[ 2.060531] bone-capemgr bone_capemgr.9: failed to load firmware 'VALVERS-IO-00A0.dtbo'
[ 2.069012] bone-capemgr bone_capemgr.9: loader: failed to load slot-12 VALVERS-IO:00A0 (prio 0)


Does /lib/firmware/VALVERS-IO-00A0.dtbo exist?

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: device tree overlay - gpio

by gururaj on Sat Nov 12, 2016 5:37 am

hi,
i list all files in /lib/firmware and i remember that i pasted this file VALVERS-IO-00A0.dtbo and i found it...
but still i am getting same issues...

thank you for reply

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by drewfustini on Sat Nov 12, 2016 11:10 pm

I'm a bit stumped why it works when you echo to slots but not when added to uEnv.txt. I'd suggest changing the order so that VALVERS-IO is first:

cape_enable=capemgr.enable_partno=VALVERS-IO,BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5


Also, you may want to post on the BeagleBoard.org mailing list to see if someone else has encountered this issue:
https://groups.google.com/forum/#!forum/beagleboard

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: device tree overlay - gpio

by gururaj on Mon Nov 14, 2016 2:16 am

hi,
Even i tried by changing the order, when copy this command "cape_enable=capemgr.enable_partno=VALVERS-IO" in uEnv.txt after the UART cap enable..
BBB will enable and also load the HDMI caps instead of GPIO and UART.

cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

my uEnv.txt looks like this.. i tried copying command "cape_enable=capemgr.enable_partno=VALVERS-IO" but result is same as above mentioned.

cat uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_pa ... layout_2.0

uname_r=3.8.13-bone70
#dtb=
cmdline=quiet init=/lib/systemd/systemd

#cape_enable=capemgr.enable_partno=VALVERS-IO

##Example
#cape_disable=capemgr.disable_partno=
cape_enable=capemgr.enable_partno=BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5,VALVERS-IO

##Disable HDMI/eMMC
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC
cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

cape_enable=capemgr.enable_partno=VALVERS-IO

##Audio Cape (needs HDMI Audio disabled)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02


##enable BBB: eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by drewfustini on Mon Nov 14, 2016 10:13 pm

All the capes to enable should be all on one line like this:
cape_enable=capemgr.enable_partno=VALVERS-IO,BB-UART0,BB-UART1,BB-UART2,BB-UART4,BB-UART5

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: device tree overlay - gpio

by gururaj on Thu Jan 12, 2017 9:38 am

Hi,
Dear Friend..
I am using BB_Red board Bleaglebone-red industrial grid.
cat /etc/dogtag
BeagleBoard.org Debian Image 2015-11-12

cat /etc/debian_version
7.9

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.9 (wheezy)
Release: 7.9
Codename: wheezy

i am able to set SPI1 via running command
echo BB-SPIDEV1 > /sys/devices/bone_capemgr.*/slots

cat /sys/devices/bone_capemgr.*/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
8: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART2
9: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4
10: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART5
11: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPIDEV1

ls /dev/spi*
/dev/spidev1.0 /dev/spidev1.1

its got 2 files ls /dev/spi*
/dev/spidev1.0 /dev/spidev1.1

i don't understand which one i should use to drive SPI1 and can plz send me some good example for SPI for Beaglebone....??
my requrement is i need to interface Dot matrix SPI base LCD to Beaglebone.
plz send me some good example for SPI for Beaglebone....??
thank you regards

gururaj
 
Posts: 12
Joined: Sat Nov 05, 2016 7:11 am

Re: device tree overlay - gpio

by drewfustini on Thu Jan 12, 2017 10:59 pm

Our Adafruit_BBIO Python library does support SPI:
https://learn.adafruit.com/setting-up-i ... -black/spi

Here are the header pinouts for the SPI ports:
http://elinux.org/Beagleboard:Cape_Expa ... _SPI_Ports

If you have further questions about SPI on the BeagleBone, then please post a new topic to keep the discussion separate from this topic "device tree overlay - gpio"

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Please be positive and constructive with your questions and comments.