Re: [beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-28 Thread Aparna Velampudi
Okay turns out there was an another error that arose:


One of the can channels isn't working: can1 (of the three on TT3201-001-05)

dmesg | grep spi

mcp251x spi2.0  mode 0, cs 0, irq 0, awake 1, clkout 1, oscillator
frequency 3000
mcp251x spi2.0  MCP251x didn't enter in conf mode after reset
mcp251x spi2.0  hw probe failed
mcp251x spi2.0  probe failed
mcp251x spi2.1  mode 0, cs 1, irq 0, awake 1, clkout 0, oscillator
frequency 3000
mcp251x spi2.1  MCP251x didn't enter in conf mode after reset
mcp251x spi2.1  hw probe failed
mcp251x spi2.1  probe failed
mcp251x spi2.0  mode 0, cs 0, irq 0, awake 1, clkout 1, oscillator
frequency 3000
mcp251x spi2.1  mode 0, cs 1, irq 0, awake 1, clkout 0, oscillator
frequency 3000

In my code window, the following error shows up:

2016-10-27 14:23:29,488 - can.socketcan.native - INFO - Created a socket
2016-10-27 14:23:29,492 - can.socketcan.native - DEBUG - Binding socket to
chann el=can1
2016-10-27 14:23:29,495 - can.socketcan.native - DEBUG - Bound socket.
2016-10-27 14:23:29,498 - Receiver - DEBUG - can0
2016-10-27 14:23:29,502 - can.socketcan.native - INFO - Created a socket
2016-10-27 14:23:29,505 - can.socketcan.native - DEBUG - Binding socket to
chann el=can0
2016-10-27 14:23:29,508 - can.socketcan.native - DEBUG - Bound socket.
2016-10-27 14:23:29,513 - can.socketcan.native - ERROR - [Errno 100]
Network is down Exception in thread Thread-3: Traceback (most recent call
last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
 self.run() File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args,
**self._kwargs)
File "/home/v7/v7.2/can/notifier.py", line 34, in rx_thread msg =
self.bus.recv(self.timeout)
File "/home/v7/v7.2/can/interfaces/socketcan_native.py", line 309, in
recv packet
= capturePacket(self.socket)
File "/home/v7/v7.2/can/interfaces/socketcan_native.py", line 242, in
captureP acket can_id, can_dlc, data = dissect_can_frame(cf) UnboundLocalError:
local variable 'cf' referenced before assignment

On Fri, Oct 28, 2016 at 12:08 PM, Aparna Velampudi <
aparnavelamp...@gmail.com> wrote:

> Thank you!
>
> This worked for me. I guess the other .dts file was using the  universaln
> standard and this one was using universala.
>
>
>
> On Fri, Oct 28, 2016 at 9:47 AM, Robert Nelson 
> wrote:
>
>> On Fri, Oct 28, 2016 at 8:03 AM, Aparna Velampudi
>>  wrote:
>> > I tried doing that and this happened.
>> >
>> >
>> > [0.00] Kernel command line: console=ttyO0,115200n8
>> > root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4
>> rootwait
>> > coherent_pool=1M quiet cape_universal=enable
>> > [3.925552] bone_capemgr bone_capemgr: Baseboard:
>> > 'A335BNLT,BBG1,BBG116044309'
>> > [3.925587] bone_capemgr bone_capemgr:
>> > compatible-baseboard=ti,beaglebone-black - #slots=4
>> > [3.967034] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE-
>> > 4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
>> > [4.022910] bone_capemgr bone_capemgr: slot #1: No cape found
>> > [4.082877] bone_capemgr bone_capemgr: slot #2: No cape found
>> > [4.112856] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus
>> > Cape,05,TowerTech,TT3201-001'
>> > [4.113369] bone_capemgr bone_capemgr: initialized OK.
>> > [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve
>> tree
>> > [4.169402] bone_capemgr bone_capemgr: slot #3: Failed to resolve
>> tree
>> > [4.177396] bone_capemgr bone_capemgr: slot #0: dtbo
>> > 'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
>> > [4.184870] bone_capemgr bone_capemgr: loader: failed to load slot-3
>> > TT3201-001:05 (prio 0)
>> > [   14.661534] bone_capemgr bone_capemgr: part_number 'GPIO-Test',
>> version
>> > 'N/A'
>> > [   14.661571] bone_capemgr bone_capemgr: slot #4: override
>> > [   14.661588] bone_capemgr bone_capemgr: Using override eeprom data at
>> slot
>> > 4
>> > [   14.661605] bone_capemgr bone_capemgr: slot #4: 'Override Board
>> > Name,00A0,Override Manuf,GPIO-Test'
>> >
>> >
>> > It also shows the following error:
>> >
>> > [4.130051] of_resolve_phandles: Could not find symbol 'gpio4'
>> > [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve
>> tree
>> >
>> > .DTS file for TT3201-001-05:
>> >
>> > (with P9.27 as itself -- on the LCD overlay, i've changed it to P9.11)
>> >
>> > /*
>> > * Copyright (C) 2013 Tower Technologies
>> > * Written by Alessandro Zummo 
>> > *
>> > * This program is free software; you can redistribute it and/or modify
>> > * it under the terms of the GNU General Public License version 2 as
>> > * published by the Free Software Foundation.
>> > */
>> > /dts-v1/;
>> > /plugin/;
>> >
>> >
>> > / {
>> > compatible = "ti,beaglebone", "ti,beaglebone-black";
>> > part-number = "TT3201-001";
>> > version = "01";
>> >
>> > /* state the resources this cape uses */
>> > exclusive-use =
>> > /* the pin 

Re: [beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-28 Thread Aparna Velampudi
Thank you!

This worked for me. I guess the other .dts file was using the  universaln
standard and this one was using universala.



On Fri, Oct 28, 2016 at 9:47 AM, Robert Nelson 
wrote:

> On Fri, Oct 28, 2016 at 8:03 AM, Aparna Velampudi
>  wrote:
> > I tried doing that and this happened.
> >
> >
> > [0.00] Kernel command line: console=ttyO0,115200n8
> > root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4
> rootwait
> > coherent_pool=1M quiet cape_universal=enable
> > [3.925552] bone_capemgr bone_capemgr: Baseboard:
> > 'A335BNLT,BBG1,BBG116044309'
> > [3.925587] bone_capemgr bone_capemgr:
> > compatible-baseboard=ti,beaglebone-black - #slots=4
> > [3.967034] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE-
> > 4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
> > [4.022910] bone_capemgr bone_capemgr: slot #1: No cape found
> > [4.082877] bone_capemgr bone_capemgr: slot #2: No cape found
> > [4.112856] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus
> > Cape,05,TowerTech,TT3201-001'
> > [4.113369] bone_capemgr bone_capemgr: initialized OK.
> > [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
> > [4.169402] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
> > [4.177396] bone_capemgr bone_capemgr: slot #0: dtbo
> > 'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
> > [4.184870] bone_capemgr bone_capemgr: loader: failed to load slot-3
> > TT3201-001:05 (prio 0)
> > [   14.661534] bone_capemgr bone_capemgr: part_number 'GPIO-Test',
> version
> > 'N/A'
> > [   14.661571] bone_capemgr bone_capemgr: slot #4: override
> > [   14.661588] bone_capemgr bone_capemgr: Using override eeprom data at
> slot
> > 4
> > [   14.661605] bone_capemgr bone_capemgr: slot #4: 'Override Board
> > Name,00A0,Override Manuf,GPIO-Test'
> >
> >
> > It also shows the following error:
> >
> > [4.130051] of_resolve_phandles: Could not find symbol 'gpio4'
> > [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
> >
> > .DTS file for TT3201-001-05:
> >
> > (with P9.27 as itself -- on the LCD overlay, i've changed it to P9.11)
> >
> > /*
> > * Copyright (C) 2013 Tower Technologies
> > * Written by Alessandro Zummo 
> > *
> > * This program is free software; you can redistribute it and/or modify
> > * it under the terms of the GNU General Public License version 2 as
> > * published by the Free Software Foundation.
> > */
> > /dts-v1/;
> > /plugin/;
> >
> >
> > / {
> > compatible = "ti,beaglebone", "ti,beaglebone-black";
> > part-number = "TT3201-001";
> > version = "01";
> >
> > /* state the resources this cape uses */
> > exclusive-use =
> > /* the pin header uses */
> > "P9.27", /* spi irq: gpio3_19 */
> > "P9.23", /* spi irq: gpio1_17 */
> > "P9.31", /* spi: spi1_sclk */
> > "P9.29", /* spi: spi1_d0 */
> > "P9.30", /* spi: spi1_d1 */
> > "P9.28", /* spi: spi1_cs0 */
> > "P9.42", /* spi: spi1_cs1 */
> > "P9.26", /* dcan1: dcan1_tx */
> > "P9.24", /* dcan1: dcan1_rx */
> > /* the hardware IP uses */
> > "gpio3_19",
> > "gpio1_17",
> > "spi1",
> > "dcan1";
> >
> > fragment@0 {
> > target = <_pinmux>;
> > __overlay__ {
> >
> > bone_tt3201_dcan1_pins: bone_tt3201_dcan1_pins {
> > pinctrl-single,pins = <
> > 0x180 0x02  /* uart1_rxd.d_can1_tx", OUTPUT | MODE2 */
> > 0x184 0x32  /* uart1_txd.d_can1_rx", INPUT_PULLUP | MODE2 */
> >>;
> > };
> >
> > bone_tt3201_spi1_pins: pinmux_bone_tt3201_spi1_pins {
> > pinctrl-single,pins = <
> > 0x190 0x33  /* mcasp0_aclkx.spi1_sclk, RX_ENABLED | PULLUP | MODE3 */
> > 0x194 0x33  /* mcasp0_fsx.spi1_d0, RX_ENABLED | PULLUP | MODE3 */
> > 0x198 0x13  /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
> > 0x19c 0x13  /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
> > 0x164 0x12 /* ecap0_in_pwm0_out.spi1_cs1, OUTPUT_PULLUP | MODE2 */
> >>;
> > };
> >
> > bone_tt3201_mcp2515_0_pins: pinmux_bone_tt3201_0_mcp2515_pins {
> > pinctrl-single,pins = <
> > 0x1a4 0x37 /* mcasp0_fsr.gpio3_19, RX_ENABLED | PULLUP | MODE7 */
> >>;
> > };
> >
> > bone_tt3201_mcp2515_1_pins: pinmux_bone_tt3201_1_mcp2515_pins {
> > pinctrl-single,pins = <
> > 0x044 0x37 /* gpmc_a1.gpio1_17, RX_ENABLED | PULLUP | MODE7 */
> >>;
> > };
> > };
> > };
> >
> > fragment@1 {
> >  target = <>;
> >
> > __overlay__ {
> > #address-cells = <1>;
> > #size-cells = <0>;
> >
> > status  = "okay";
> > pinctrl-names   = "default";
> > pinctrl-0   = <_tt3201_spi1_pins>;
> >
> > cs-gpios = < 17 0>, < 7 0>;
>
> double check these...
>
> >
> > mcp2515@0 {
> >
> > compatible = "microchip,mcp2515";
> > reg = <1>; /* cs1 */
> > mode = <0>;
> >
> > spi-max-frequency = <1000>;
> >
> > pinctrl-names = "default";
> > pinctrl-0 = <_tt3201_mcp2515_1_pins>;
> >
> > interrupt-parent = <>;
>
> interrupt-parent = <>;
>
> > interrupts = <17>;
> >
> > mcp251x,oscillator-frequency = <1600>;
> > mcp251x,irq-gpios = < 17 0>;
>
> 

Re: [beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-28 Thread Robert Nelson
On Fri, Oct 28, 2016 at 8:03 AM, Aparna Velampudi
 wrote:
> I tried doing that and this happened.
>
>
> [0.00] Kernel command line: console=ttyO0,115200n8
> root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4 rootwait
> coherent_pool=1M quiet cape_universal=enable
> [3.925552] bone_capemgr bone_capemgr: Baseboard:
> 'A335BNLT,BBG1,BBG116044309'
> [3.925587] bone_capemgr bone_capemgr:
> compatible-baseboard=ti,beaglebone-black - #slots=4
> [3.967034] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE-
> 4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
> [4.022910] bone_capemgr bone_capemgr: slot #1: No cape found
> [4.082877] bone_capemgr bone_capemgr: slot #2: No cape found
> [4.112856] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus
> Cape,05,TowerTech,TT3201-001'
> [4.113369] bone_capemgr bone_capemgr: initialized OK.
> [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
> [4.169402] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
> [4.177396] bone_capemgr bone_capemgr: slot #0: dtbo
> 'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
> [4.184870] bone_capemgr bone_capemgr: loader: failed to load slot-3
> TT3201-001:05 (prio 0)
> [   14.661534] bone_capemgr bone_capemgr: part_number 'GPIO-Test', version
> 'N/A'
> [   14.661571] bone_capemgr bone_capemgr: slot #4: override
> [   14.661588] bone_capemgr bone_capemgr: Using override eeprom data at slot
> 4
> [   14.661605] bone_capemgr bone_capemgr: slot #4: 'Override Board
> Name,00A0,Override Manuf,GPIO-Test'
>
>
> It also shows the following error:
>
> [4.130051] of_resolve_phandles: Could not find symbol 'gpio4'
> [4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
>
> .DTS file for TT3201-001-05:
>
> (with P9.27 as itself -- on the LCD overlay, i've changed it to P9.11)
>
> /*
> * Copyright (C) 2013 Tower Technologies
> * Written by Alessandro Zummo 
> *
> * This program is free software; you can redistribute it and/or modify
> * it under the terms of the GNU General Public License version 2 as
> * published by the Free Software Foundation.
> */
> /dts-v1/;
> /plugin/;
>
>
> / {
> compatible = "ti,beaglebone", "ti,beaglebone-black";
> part-number = "TT3201-001";
> version = "01";
>
> /* state the resources this cape uses */
> exclusive-use =
> /* the pin header uses */
> "P9.27", /* spi irq: gpio3_19 */
> "P9.23", /* spi irq: gpio1_17 */
> "P9.31", /* spi: spi1_sclk */
> "P9.29", /* spi: spi1_d0 */
> "P9.30", /* spi: spi1_d1 */
> "P9.28", /* spi: spi1_cs0 */
> "P9.42", /* spi: spi1_cs1 */
> "P9.26", /* dcan1: dcan1_tx */
> "P9.24", /* dcan1: dcan1_rx */
> /* the hardware IP uses */
> "gpio3_19",
> "gpio1_17",
> "spi1",
> "dcan1";
>
> fragment@0 {
> target = <_pinmux>;
> __overlay__ {
>
> bone_tt3201_dcan1_pins: bone_tt3201_dcan1_pins {
> pinctrl-single,pins = <
> 0x180 0x02  /* uart1_rxd.d_can1_tx", OUTPUT | MODE2 */
> 0x184 0x32  /* uart1_txd.d_can1_rx", INPUT_PULLUP | MODE2 */
>>;
> };
>
> bone_tt3201_spi1_pins: pinmux_bone_tt3201_spi1_pins {
> pinctrl-single,pins = <
> 0x190 0x33  /* mcasp0_aclkx.spi1_sclk, RX_ENABLED | PULLUP | MODE3 */
> 0x194 0x33  /* mcasp0_fsx.spi1_d0, RX_ENABLED | PULLUP | MODE3 */
> 0x198 0x13  /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
> 0x19c 0x13  /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
> 0x164 0x12 /* ecap0_in_pwm0_out.spi1_cs1, OUTPUT_PULLUP | MODE2 */
>>;
> };
>
> bone_tt3201_mcp2515_0_pins: pinmux_bone_tt3201_0_mcp2515_pins {
> pinctrl-single,pins = <
> 0x1a4 0x37 /* mcasp0_fsr.gpio3_19, RX_ENABLED | PULLUP | MODE7 */
>>;
> };
>
> bone_tt3201_mcp2515_1_pins: pinmux_bone_tt3201_1_mcp2515_pins {
> pinctrl-single,pins = <
> 0x044 0x37 /* gpmc_a1.gpio1_17, RX_ENABLED | PULLUP | MODE7 */
>>;
> };
> };
> };
>
> fragment@1 {
>  target = <>;
>
> __overlay__ {
> #address-cells = <1>;
> #size-cells = <0>;
>
> status  = "okay";
> pinctrl-names   = "default";
> pinctrl-0   = <_tt3201_spi1_pins>;
>
> cs-gpios = < 17 0>, < 7 0>;

double check these...

>
> mcp2515@0 {
>
> compatible = "microchip,mcp2515";
> reg = <1>; /* cs1 */
> mode = <0>;
>
> spi-max-frequency = <1000>;
>
> pinctrl-names = "default";
> pinctrl-0 = <_tt3201_mcp2515_1_pins>;
>
> interrupt-parent = <>;

interrupt-parent = <>;

> interrupts = <17>;
>
> mcp251x,oscillator-frequency = <1600>;
> mcp251x,irq-gpios = < 17 0>;

mcp251x,irq-gpios = < 17 0>;

> mcp251x,stay-awake = <1>;
> };
>
> mcp2515@1 {
>
> compatible = "microchip,mcp2515";
> reg = <0>; /* cs0 */
> mode = <0>;
>
> spi-max-frequency = <1000>;
>
> pinctrl-names = "default";
> pinctrl-0 = <_tt3201_mcp2515_0_pins>;
>
> interrupt-parent = <>;

interrupt-parent = <>;

> interrupts = <19>;
>
> mcp251x,oscillator-frequency = <1600>;
> mcp251x,irq-gpios = < 19 0>;

mcp251x,irq-gpios = < 19 0>;

> mcp251x,stay-awake = <1>;
> mcp251x,enable-clkout = <1>;
> };
> };
> };
>

Re: [beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-28 Thread Aparna Velampudi
I tried doing that and this happened.


[0.00] Kernel command line: console=ttyO0,115200n8
root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4 rootwait
coherent_pool=1M quiet cape_universal=enable
[3.925552] bone_capemgr bone_capemgr: Baseboard:
'A335BNLT,BBG1,BBG116044309'
[3.925587] bone_capemgr bone_capemgr:
compatible-baseboard=ti,beaglebone-black - #slots=4
[3.967034] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE-
4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
[4.022910] bone_capemgr bone_capemgr: slot #1: No cape found
[4.082877] bone_capemgr bone_capemgr: slot #2: No cape found
[4.112856] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus
Cape,05,TowerTech,TT3201-001'
[4.113369] bone_capemgr bone_capemgr: initialized OK.
[4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
[4.169402] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree
[4.177396] bone_capemgr bone_capemgr: slot #0: dtbo
'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
[4.184870] bone_capemgr bone_capemgr: loader: failed to load slot-3
TT3201-001:05 (prio 0)
[   14.661534] bone_capemgr bone_capemgr: part_number 'GPIO-Test', version
'N/A'
[   14.661571] bone_capemgr bone_capemgr: slot #4: override
[   14.661588] bone_capemgr bone_capemgr: Using override eeprom data at
slot 4
[   14.661605] bone_capemgr bone_capemgr: slot #4: 'Override Board
Name,00A0,Override Manuf,GPIO-Test'


It also shows the following error:

[4.130051] of_resolve_phandles: Could not find symbol 'gpio4'
[4.136126] bone_capemgr bone_capemgr: slot #3: Failed to resolve tree

.DTS file for TT3201-001-05:

(with P9.27 as itself -- on the LCD overlay, i've changed it to P9.11)

/*
* Copyright (C) 2013 Tower Technologies
* Written by Alessandro Zummo 
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;


/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "TT3201-001";
version = "01";

/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.27", /* spi irq: gpio3_19 */
"P9.23", /* spi irq: gpio1_17 */
"P9.31", /* spi: spi1_sclk */
"P9.29", /* spi: spi1_d0 */
"P9.30", /* spi: spi1_d1 */
"P9.28", /* spi: spi1_cs0 */
"P9.42", /* spi: spi1_cs1 */
"P9.26", /* dcan1: dcan1_tx */
"P9.24", /* dcan1: dcan1_rx */
/* the hardware IP uses */
"gpio3_19",
"gpio1_17",
"spi1",
"dcan1";

fragment@0 {
target = <_pinmux>;
__overlay__ {

bone_tt3201_dcan1_pins: bone_tt3201_dcan1_pins {
pinctrl-single,pins = <
0x180 0x02  /* uart1_rxd.d_can1_tx", OUTPUT | MODE2 */
0x184 0x32  /* uart1_txd.d_can1_rx", INPUT_PULLUP | MODE2 */
>;
};

bone_tt3201_spi1_pins: pinmux_bone_tt3201_spi1_pins {
pinctrl-single,pins = <
0x190 0x33  /* mcasp0_aclkx.spi1_sclk, RX_ENABLED | PULLUP | MODE3 */
0x194 0x33  /* mcasp0_fsx.spi1_d0, RX_ENABLED | PULLUP | MODE3 */
0x198 0x13  /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
0x19c 0x13  /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
0x164 0x12 /* ecap0_in_pwm0_out.spi1_cs1, OUTPUT_PULLUP | MODE2 */
>;
};

bone_tt3201_mcp2515_0_pins: pinmux_bone_tt3201_0_mcp2515_pins {
pinctrl-single,pins = <
0x1a4 0x37 /* mcasp0_fsr.gpio3_19, RX_ENABLED | PULLUP | MODE7 */
>;
};

bone_tt3201_mcp2515_1_pins: pinmux_bone_tt3201_1_mcp2515_pins {
pinctrl-single,pins = <
0x044 0x37 /* gpmc_a1.gpio1_17, RX_ENABLED | PULLUP | MODE7 */
>;
};
};
};

fragment@1 {
 target = <>;

__overlay__ {
#address-cells = <1>;
#size-cells = <0>;

status  = "okay";
pinctrl-names   = "default";
pinctrl-0   = <_tt3201_spi1_pins>;

cs-gpios = < 17 0>, < 7 0>;

mcp2515@0 {

compatible = "microchip,mcp2515";
reg = <1>; /* cs1 */
mode = <0>;

spi-max-frequency = <1000>;

pinctrl-names = "default";
pinctrl-0 = <_tt3201_mcp2515_1_pins>;

interrupt-parent = <>;
interrupts = <17>;

mcp251x,oscillator-frequency = <1600>;
mcp251x,irq-gpios = < 17 0>;
mcp251x,stay-awake = <1>;
};

mcp2515@1 {

compatible = "microchip,mcp2515";
reg = <0>; /* cs0 */
mode = <0>;

spi-max-frequency = <1000>;

pinctrl-names = "default";
pinctrl-0 = <_tt3201_mcp2515_0_pins>;

interrupt-parent = <>;
interrupts = <19>;

mcp251x,oscillator-frequency = <1600>;
mcp251x,irq-gpios = < 19 0>;
mcp251x,stay-awake = <1>;
mcp251x,enable-clkout = <1>;
};
};
};

fragment@2 {
target = <>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <_tt3201_dcan1_pins>;
};
};
};


GENERAL QUESTION: If I modify the overlay without changing anything in the
EEPROM, will the cape still work?







On Thu, Oct 27, 2016 at 9:57 AM, Robert Nelson 
wrote:

> On Thu, Oct 27, 2016 at 8:03 AM, Aparna Velampudi
>  wrote:
> > I'm using a Beaglebone Green and trying to interface with both an LCD7
> > (4DCAPE-70T) which 

Re: [beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-27 Thread Robert Nelson
On Thu, Oct 27, 2016 at 8:03 AM, Aparna Velampudi
 wrote:
> I'm using a Beaglebone Green and trying to interface with both an LCD7
> (4DCAPE-70T) which is based off of the BB-BONE-LCD7-01:00A3 revision and the
> CAN Cape (TT3201-001:05 revision).
>
> The LCD cape comes with an expansion header (all the pins that aren't used
> by the LCD cape are ported to the header -- look at the data sheet linked
> above to get the idea). Both capes work perfectly individually, but when I
> try to use  them together, I get the following output.
>
>
> root@beaglebone:~# dmesg | grep cape
> [0.00] Kernel command line: console=ttyO0,115200n8
> root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4 rootwait
> coherent_pool=1M quiet cape_universal=enable
> [3.925280] bone_capemgr bone_capemgr: Baseboard:
> 'A335BNLT,BBG1,BBG116044309'
> [3.925315] bone_capemgr bone_capemgr:
> compatible-baseboard=ti,beaglebone-black - #slots=4
> [3.967132] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE-
> 4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
> [4.023037] bone_capemgr bone_capemgr: slot #1: No cape found
> [4.082948] bone_capemgr bone_capemgr: slot #2: No cape found
> [4.112954] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus
> Cape,05,TowerTech,TT3201-001'
> [4.113486] bone_capemgr bone_capemgr: initialized OK.
> [4.130310] bone_capemgr bone_capemgr: slot #3: TT3201-001 conflict P9.27
> (#0:BB-BONE-LCD7-01)
> [4.139161] bone_capemgr bone_capemgr: slot #3: Failed verification
> [4.154974] bone_capemgr bone_capemgr: slot #3: TT3201-001 conflict P9.27
> (#0:BB-BONE-LCD7-01)
> [4.165624] bone_capemgr bone_capemgr: slot #0: dtbo
> 'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
> [4.170778] bone_capemgr bone_capemgr: slot #3: Failed verification
> [4.183178] bone_capemgr bone_capemgr: loader: failed to load slot-3
> TT3201-001:05 (prio 0)
> [   14.366425] bone_capemgr bone_capemgr: part_number 'GPIO-Test', version
> 'N/A'
> [   14.366464] bone_capemgr bone_capemgr: slot #4: override
> [   14.366482] bone_capemgr bone_capemgr: Using override eeprom data at slot
> 4
> [   14.366499] bone_capemgr bone_capemgr: slot #4: 'Override Board
> Name,00A0,Override Manuf,GPIO-Test'
>
>
> I'm using Debian with  the following kernel:
>
> root@beaglebone:~# uname -r
> 4.1.15-ti-rt-r43
>
>
> I've tried doing the obvious thing by taking the conflict pin  (P9_27)
> entirely out of the LCD .dts file by changing it to P9_11 (which isn't used
> by either) (then compiled and put  the .dtbo in /lib/firmware) but that
> doesn't work. This is the .dts file for BB-BONE-LCD7-01-00A3

after you "copy" it to /lib/firmware/

run:

sudo update-initramfs -uk `uname -r`

and reboot...

to update the version of the *.dtbo stored in the initramfs..

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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjL8-djhYYdoZLsjKD9givbFNqK63n%3DB_u47kq3igmpaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Beaglebone Green + LCD (BB-BONE-LCD7-01-00A3) + CAN cape (TT3201 - 001 - 05)

2016-10-27 Thread Aparna Velampudi
I'm using a Beaglebone Green and trying to interface with both an LCD7 
(4DCAPE-70T) 
 
which 
is based off of the BB-BONE-LCD7-01:00A3 revision and the CAN Cape (
TT3201-001:05 
 
revision).

The LCD cape comes with an expansion header (all the pins that aren't used 
by the LCD cape are ported to the header -- look at the data sheet linked 
above to get the idea). Both capes work perfectly individually, but when I 
try to use  them together, I get the following output.


root@beaglebone:~# dmesg | grep cape
[0.00] Kernel command line: console=ttyO0,115200n8 
root=UUID=5df5404c-a947-481b-8730-2a4bb771d33e ro rootfstype=ext4 rootwait 
coherent_pool=1M quiet cape_universal=enable
[3.925280] bone_capemgr bone_capemgr: Baseboard: 
'A335BNLT,BBG1,BBG116044309'
[3.925315] bone_capemgr bone_capemgr: 
compatible-baseboard=ti,beaglebone-black - #slots=4
[3.967132] bone_capemgr bone_capemgr: slot #0: '4D 7.0 LCD CAPE- 
4DCAPE-70T ,00A3,4D SYSTEMS  ,BB-BONE-LCD7-01'
[4.023037] bone_capemgr bone_capemgr: slot #1: No cape found
[4.082948] bone_capemgr bone_capemgr: slot #2: No cape found
[4.112954] bone_capemgr bone_capemgr: slot #3: 'TT3201 CAN Bus 
Cape,05,TowerTech,TT3201-001'
[4.113486] bone_capemgr bone_capemgr: initialized OK.
[4.130310] bone_capemgr bone_capemgr: slot #3: TT3201-001 conflict 
P9.27 (#0:BB-BONE-LCD7-01)
[4.139161] bone_capemgr bone_capemgr: slot #3: Failed verification
[4.154974] bone_capemgr bone_capemgr: slot #3: TT3201-001 conflict 
P9.27 (#0:BB-BONE-LCD7-01)
[4.165624] bone_capemgr bone_capemgr: slot #0: dtbo 
'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0
[4.170778] bone_capemgr bone_capemgr: slot #3: Failed verification
[4.183178] bone_capemgr bone_capemgr: loader: failed to load slot-3 
TT3201-001:05 (prio 0)
[   14.366425] bone_capemgr bone_capemgr: part_number 'GPIO-Test', version 
'N/A'
[   14.366464] bone_capemgr bone_capemgr: slot #4: override
[   14.366482] bone_capemgr bone_capemgr: Using override eeprom data at 
slot 4
[   14.366499] bone_capemgr bone_capemgr: slot #4: 'Override Board 
Name,00A0,Override Manuf,GPIO-Test'


I'm using Debian with  the following kernel:

root@beaglebone:~# uname -r
4.1.15-ti-rt-r43


I've tried doing the obvious thing by taking the conflict pin  (P9_27) 
entirely out of the LCD .dts file by changing it to P9_11 (which isn't used 
by either) (then compiled and put  the .dtbo in /lib/firmware) but that 
doesn't work. This is the .dts file for BB-BONE-LCD7-01-00A3

/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;
/plugin/;

#include 
#include 
#include 

/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";

/* identification */
part-number = "BB-BONE-LCD7-01";
version = "00A3";

/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P8.45", /* lcd: lcd_data0 */
"P8.46", /* lcd: lcd_data1 */
"P8.43", /* lcd: lcd_data2 */
"P8.44", /* lcd: lcd_data3 */
"P8.41", /* lcd: lcd_data4 */
"P8.42", /* lcd: lcd_data5 */
"P8.39", /* lcd: lcd_data6 */
"P8.40", /* lcd: lcd_data7 */
"P8.37", /* lcd: lcd_data8 */
"P8.38", /* lcd: lcd_data9 */
"P8.36", /* lcd: lcd_data10 */
"P8.34", /* lcd: lcd_data11 */
"P8.35", /* lcd: lcd_data12 */
"P8.33", /* lcd: lcd_data13 */
"P8.31", /* lcd: lcd_data14 */
"P8.32", /* lcd: lcd_data15 */
"P8.27", /* lcd: lcd_vsync */
"P8.29", /* lcd: lcd_hsync */
"P8.28", /* lcd: lcd_pclk */
"P8.30", /* lcd: lcd_ac_bias_en */
"P9.11", /* lcd: gpio3_19 DISPEN */
"P9.12", /* led: gpio1_28 LED */
"P9.14", /* pwm: ehrpwm1a PWM_BL */
"P9.15", /* keys: gpio1_16 LEFT */
"P9.23", /* keys: gpio1_17 RIGHT */
"P9.16", /* keys: gpio1_19 UP */
"P9.30", /* keys: gpio3_16 DOWN */
"P9.21", /* keys: gpio0_3 ENTER */

"ehrpwm1a",
"gpio0_30", /* DISPEN */
"gpio1_28", /* LED */
"gpio1_16", /* LEFT */
"gpio1_17", /* RIGHT */
"gpio1_19", /* UP */
"gpio3_16", /* DOWN */
"gpio0_3", /* ENTER */
"lcdc",
"tscadc";

fragment@0 {
target = <_pinmux>;
__overlay__ {

bb_lcd_led_pins: pinmux_bb_lcd_led_pins {
pinctrl-single,pins = <
BONE_P9_12 (PIN_INPUT | MUX_MODE7) /* gpmc_ben1.gpio1_28, INPUT | PULLDIS | 
MODE7 */
>;
};

bb_lcd_pwm_backlight_pins: pinmux_bb_lcd_pwm_backlight_pins {
pinctrl-single,pins = <
BONE_P9_14 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpmc_a2.ehrpwm1a */
>;
};

bb_lcd_lcd_pins: pinmux_bb_lcd_lcd_pins {
pinctrl-single,pins = <
BONE_P9_11 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* mcasp0_fsr.gpio3_19 */

BONE_P8_45 (PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
BONE_P8_46 (PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
BONE_P8_43 (PIN_OUTPUT | MUX_MODE0) /*