Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 May 2014 08:59:28 +0300
From:      "Sulev-Madis Silber (ketas)" <madis555@hot.ee>
To:        Winston Smith <smith.winston.101@gmail.com>
Cc:        FreeBSD ARM <freebsd-arm@freebsd.org>
Subject:   BBB/I2C: Read PMIC data
Message-ID:  <53633440.3070702@hot.ee>
In-Reply-To: <CADH-AwGbnqzGqbzpV9YMgdOciLpoy3fqxF1RtCmMPZtgc%2BAcXg@mail.gmail.com>
References:  <CADH-AwGbnqzGqbzpV9YMgdOciLpoy3fqxF1RtCmMPZtgc%2BAcXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-05-01 20:12, Winston Smith wrote:
> Continuing on with working with the I2C interface on the BBB I wrote a
> utility to read the BBB's 28 byte system EEPROM on iic0, address 0x50
> which contains the model and serial numbers.  See pastebin here:
> 
> http://pastebin.com/p7XwKUGZ
> 
> However, when I run the utility:
> 
> root@beaglebone:~ # ./bbb_eeprom
> Read from slave 50 on /dev/iic0, signature=AA:55:33:EE
> Model:  A335BNLT0A6A
> Serial: 0214BBBK4321
> 
> 
> I see the following warning on the console:
> 
> interrupt storm detected on "intr70:"; throttling interrupt source
> 
> 
> Does this mean anything, or is it just a spurious warning.
> 
> BTW: This is with FreeBSD 11-CURRENT r265163.
> 
> 
> -W


Could you look into reading data from PMIC? I tried... there is all the
code that shows power status on boot... there are PMIC I2C specs...
there is your code... however I clearly can't write C enough to get that
one byte out of PMIC and displayed in human-readable form.

And I would want to see this code ending up in base. So I could read
that serial and live power status (+ other things from PMIC) from
somewhere. PMIC also has power button monitoring and interrupt firing on
power input status change. Also battery-related stuff. I wish the
onboard PMIC could also measure voltages of inputs and battery. But
sadly you need external components to get those functions.

While you're there, try not to blow up system by reconfiguring PMIC
output voltages... :P although those are protected a bit.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53633440.3070702>