Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement libswitch::power module #2

Closed
vbe0201 opened this issue Nov 2, 2019 · 0 comments
Closed

Implement libswitch::power module #2

vbe0201 opened this issue Nov 2, 2019 · 0 comments
Labels
component: libtegra Issues and Pull Requests pertaining to libtegra enhancement New feature or request help wanted Extra attention is needed

Comments

@vbe0201
Copy link
Member

vbe0201 commented Nov 2, 2019

This is the tracking issue for the libswitch::power module containing drivers for the Switch's TI BQ24193, the Maxim 17050, and the Maxim 77620.

Required to complete #1.

Implementation

Max77620 driver has the highest priority. The others are nice to have, however low priority at the moment.

BQ24193

This is used for battery charging and should provide at least a function to retrieve the value (i16) of one of the following device properties, represented in an enum:

/// Representation of the BQ24193 device properties.
pub enum Properties {
    InputVoltageLimit,
    InputCurrentLimit,
    SystemMinimumVoltage,
    FastChargeCurrentLimit,
    ChargeVoltageLimit,
    RechargeThreshold,
    ThermalRegulation,
    ChargeStatus,
    TempStatus,
    DevId,
    ProductNumber,
}

These are to be retrieved over I2C. See the Technical Reference for details.

Max17050

Used for fuel gauging. Similar to the BQ24193, this has a similar system of retrieving values for certain device properties. The enum would however contain different members (notably a whole bunch more) with different values. See Technical Reference for details.

Max77620

Used for PMIC stuff. Hence, the driver should contain an abstraction of the device that holds its ID and the corresponding methods for configuring and managing the regulators which is done via I2C.

Resources

@vbe0201 vbe0201 added enhancement New feature or request help wanted Extra attention is needed component: libtegra Issues and Pull Requests pertaining to libtegra labels Nov 2, 2019
@vbe0201 vbe0201 closed this as completed Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: libtegra Issues and Pull Requests pertaining to libtegra enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant