How to enable i2c bus on NSA325?

Install Arch Linux ARM on other devices.

How to enable i2c bus on NSA325?

Postby raumzeit » Mon Jun 03, 2013 11:30 am

Hi all,

I wonder which modules need to be loaded to get access to the NSA325 i2c bus. I read somewhere, that there is at least an rtc type pcf8563 and an lm85 device hooked up to the i2c bus. But I cant find any of them. Here is what lsmod tells me:

$this->bbcode_second_pass_code('', '
# lsmod
Module Size Used by
lm85 14856 0
hwmon_vid 1366 1 lm85
hwmon 1187 1 lm85
rtc_pcf8563 2187 0
i2c_dev 4824 0
i2c_core 15344 3 i2c_dev,rtc_pcf8563,lm85
nsa3xx_hwmon 389 0
nfsd 243917 13
mv_cesa 9128 0
nfs 283858 0
nfs_acl 2185 2 nfs,nfsd
auth_rpcgss 34590 2 nfs,nfsd
lockd 66145 2 nfs,nfsd
sunrpc 177891 21 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ipv6 259694 50
autofs4 22074 2
')

Although the kernel modules are loaded dmesg only shows

$this->bbcode_second_pass_code('', '[83589.708860] i2c /dev entries driver')

Still, I have dont know how to access the devices if they exist. Here is what was find tells me

$this->bbcode_second_pass_code('', '
# find /sys/ -name \*i2c\*
/sys/devices/platform/mv64xxx_i2c.0
/sys/bus/platform/devices/mv64xxx_i2c.0
/sys/bus/i2c
/sys/class/i2c-adapter
/sys/class/i2c-dev
/sys/module/i2c_core
/sys/module/i2c_core/holders/i2c_dev
/sys/module/i2c_core/drivers/i2c:dummy
/sys/module/i2c_dev
/sys/module/rtc_pcf8563/drivers/i2c:rtc-pcf8563
/sys/module/lm85/drivers/i2c:lm85
')

What can I do next? Does the hwmon driver need to be hacked for the NSA325?
Any help is appreciated

Best,

raumzeit
Acer CB5-311, Asus Flip, Tinker Board, Samsung ARM Chromebook, NSA 325, ix4-300d, WandBoard Quad, Raspberry Pi B, BeagleBoard ...and a dead Pandaboard :sad:
raumzeit
 
Posts: 73
Joined: Mon Oct 17, 2011 8:37 pm
Location: Vienna AT

Re: How to enable i2c bus on NSA325?

Postby raumzeit » Mon Jun 03, 2013 11:43 am

found the solution...

$this->bbcode_second_pass_code('', '
# modprobe i2c_mv64xxx
')

now at least the rtc seems to work ;)

$this->bbcode_second_pass_code('', '
# dmesg
...
[83589.708860] i2c /dev entries driver
[84935.456155] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[84935.467754] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
')

and

$this->bbcode_second_pass_code('', '
# find /sys/ -name \*i2c\*
/sys/devices/platform/mv64xxx_i2c.0
/sys/devices/platform/mv64xxx_i2c.0/i2c-0
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/i2c-dev
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/i2c-dev/i2c-0
/sys/bus/platform/devices/mv64xxx_i2c.0
/sys/bus/platform/drivers/mv64xxx_i2c
/sys/bus/platform/drivers/mv64xxx_i2c/mv64xxx_i2c.0
/sys/bus/i2c
/sys/bus/i2c/devices/i2c-0
/sys/class/i2c-adapter
/sys/class/i2c-adapter/i2c-0
/sys/class/i2c-dev
/sys/class/i2c-dev/i2c-0
/sys/module/i2c_core
/sys/module/i2c_core/holders/i2c_dev
/sys/module/i2c_core/holders/i2c_mv64xxx
/sys/module/i2c_core/drivers/i2c:dummy
/sys/module/i2c_mv64xxx
/sys/module/i2c_mv64xxx/drivers/platform:mv64xxx_i2c
/sys/module/i2c_dev
/sys/module/rtc_pcf8563/drivers/i2c:rtc-pcf8563
/sys/module/lm85/drivers/i2c:lm85
')
Acer CB5-311, Asus Flip, Tinker Board, Samsung ARM Chromebook, NSA 325, ix4-300d, WandBoard Quad, Raspberry Pi B, BeagleBoard ...and a dead Pandaboard :sad:
raumzeit
 
Posts: 73
Joined: Mon Oct 17, 2011 8:37 pm
Location: Vienna AT


Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 4 guests