Device migrations, driver migrations and more (#575)

This commit is contained in:
Ken Van Hoeylandt
2026-07-20 23:43:17 +02:00
committed by GitHub
parent 2d768ef3a1
commit 2fbc44466a
221 changed files with 8824 additions and 3652 deletions
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <tactility/error.h>
@@ -13,6 +14,12 @@ extern "C" {
struct Ina226Config {
uint8_t address;
uint16_t shunt_milliohms;
/** Expose a power-supply child device that reports battery voltage/capacity off the bus voltage reading */
bool power_supply;
/** Battery voltage (mV) considered 100% capacity, used to derive POWER_SUPPLY_PROP_CAPACITY */
uint32_t power_supply_reference_voltage_mv;
/** Battery voltage (mV) considered 0% capacity, used to derive POWER_SUPPLY_PROP_CAPACITY */
uint32_t power_supply_min_voltage_mv;
};
/** Bus voltage in volts (1.25 mV/LSB) */