On Tue, Jun 9, 2015 at 2:05 PM, Robert Nelson <[email protected]> wrote:
> On Tue, Jun 9, 2015 at 1:07 PM, Jonathan Ross <[email protected]> wrote:
>> Is it possible to have an I2C bus and uart1 enabled simultaneously?
>> I2C1 on pins 17 and 18 is clear of the uarts, but then the 2 bus pins appear
>> repeated on pins 24 and 26, which are used for uart1.
>> Is there a way to only enable I2C1 on pins 17 and 18, and not 24 and 26 -
>> either using capemanager or device tree?
>
> Should be no problem with v4.1.0:
>
> https://github.com/beagleboard/bb.org-overlays
>
> bone_capemgr.enable_partno=BB-UART1,BB-I2C1

Works quite well:

debian@beaglebone:~$ uname -r
4.1.0-rc7-bone7

debian@beaglebone:~$ dmesg | grep cape
[    0.000000] Kernel command line: console=ttyO0,115200n8
bone_capemgr.enable_partno=BB-UART1,BB-I2C1
root=UUID=a55f99f7-87e9-4af6-86fc-d90989cde10b ro rootfstype=ext4
rootwait fixrtc coherent_pool=1M quiet
[    3.239892] bone_capemgr bone_capemgr: Baseboard:
'A335BNLT,0A5B,2313BBBK3313'
[    3.239912] bone_capemgr bone_capemgr:
compatible-baseboard=ti,beaglebone-black
[    3.292391] bone_capemgr bone_capemgr: slot #0: No cape found
[    3.352398] bone_capemgr bone_capemgr: slot #1: No cape found
[    3.412378] bone_capemgr bone_capemgr: slot #2: No cape found
[    3.472379] bone_capemgr bone_capemgr: slot #3: No cape found
[    3.478420] bone_capemgr bone_capemgr: enabled_partno PARTNO
'BB-UART1' VER 'N/A' PR '0'
[    3.478430] bone_capemgr bone_capemgr: slot #4: override
[    3.478443] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[    3.478457] bone_capemgr bone_capemgr: slot #4: 'Override Board
Name,00A0,Override Manuf,BB-UART1'
[    3.478539] bone_capemgr bone_capemgr: enabled_partno PARTNO
'BB-I2C1' VER 'N/A' PR '0'
[    3.478548] bone_capemgr bone_capemgr: slot #5: override
[    3.478557] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[    3.478569] bone_capemgr bone_capemgr: slot #5: 'Override Board
Name,00A0,Override Manuf,BB-I2C1'
[    3.478840] bone_capemgr bone_capemgr: initialized OK.
[    3.503261] bone_capemgr bone_capemgr: slot #4: dtbo
'BB-UART1-00A0.dtbo' loaded; overlay id #0
[    4.546370] bone_capemgr bone_capemgr: slot #5: dtbo
'BB-I2C1-00A0.dtbo' loaded; overlay id #1

debian@beaglebone:~$ dmesg | grep serial
[    3.065243] omap_uart 44e09000.serial: no wakeirq for uart0
[    3.065411] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 154,
base_baud = 3000000) is a OMAP UART0
[    3.495054] omap_uart 48022000.serial: no wakeirq for uart1
[    3.495218] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 180,
base_baud = 3000000) is a OMAP UART1

debian@beaglebone:~$ dmesg | grep i2c
[    2.710047] omap_i2c 44e0b000.i2c: could not find pctldev for node
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins,
deferring probe
[    2.710088] omap_i2c 4819c000.i2c: could not find pctldev for node
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins,
deferring probe
[    3.085983] i2c /dev entries driver
[    3.231961] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    3.233535] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    4.546274] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz

debian@beaglebone:~$ cat /proc/cmdline
console=ttyO0,115200n8 bone_capemgr.enable_partno=BB-UART1,BB-I2C1
root=UUID=a55f99f7-87e9-4af6-86fc-d90989cde10b ro rootfstype=ext4
rootwait fixrtc coherent_pool=1M quiet

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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to