Sweetberry Configuration

Requirements

Sweetberry with firmware version sweetberry_v1.1.8453-11bd4c0f4 or higher

Background

  • physical bank: j2, j3, j4 the white banks physically on the sweetberry board
  • i2c port: the i2c port used for a reading
  • i2c address: the hex address to use on a given port
  • sweetberry config template: .py power template with config_type=‘sweetberry’

Intro

As explained in the README.INA.md file, sweetberry configuration using raw i2c addresses and ports is difficult. Each physical bank on the sweetberry board is wired to INAs on different i2c lines (thus using different ports) while some of those INAs have the same i2c slave address. Since most use cases in Chrome OS for sweetberry are with a medusa header, the user is more likely to easily know the physical bank, and the pins. generate_ina_controls.py allows for an alternative configuration using the pin numbers as a tuple (e.g. (1,3)) and the location variable to be the physical bank number. For completeness, please see the conversion table below. It explains how these values are connected, and can be used to write a sweetberry config template.

Sweetberry device layout

sweetberry layout

Layout of sweetberry configuration

key to interpret pin map:

pinsj2j3j4
xx,xxi2c-addr i2c-porti2c-addr i2c-porti2c-addr i2c-port

pin map:

pinsj2j3j4
1,30x40 30x44 30x48 3
2,40x40 10x44 10x48 1
6,80x40 20x44 20x48 2
7,90x40 00x44 00x48 0
11,130x41 30x45 30x49 3
12,140x41 10x45 10x49 1
16,180x41 20x45 20x49 2
17,190x41 00x45 00x49 0
21,230x42 30x46 30x4a 3
22,240x42 10x46 10x4a 1
26,280x42 20x46 20x4a 2
27,290x42 00x46 00x4a 0
31,330x43 30x47 30x4b 3
32,340x43 10x47 10x4b 1
36,380x43 20x47 20x4b 2
37,390x43 00x47 00x4b 0