bq257xx_parse_dt(9)
β¨ bq257xx_parse_dt(9) β¨
Okay bestie, welcome to the Kernel API Manual β this page is fully about pulling the required setup out of the device tree. π«Ά
π NAME π
bq257xx_parse_dt β parse the device tree for required properties π
πΈ SYNOPSIS πΈ
int bq257xx_parse_dt (struct bq257xx_chg *pdata , struct
power_supply_config *psy_cfg , struct device *dev );
π¦ ARGUMENTS π¦
pdataβ driver platform data. It's the driver's own platform-data situation, literally. πpsy_cfgβ power supply config data. The config data for the power supply, no cap. πdevβ device struct. The device struct itself, bestie. π§Έ
β‘ DESCRIPTION β‘
Okay so here's the vibe: bq257xx_parse_dt() reads the device tree to identify four key things β the minimum system voltage, the maximum charge current, the maximum charge voltage, and the maximum input current. That's minimum system voltage, maximum charge current, maximum charge voltage, and maximum input current. Periodt. π₯
β RETURN β
Returns 0 on success or an error code on error. That's it β success is 0, and an error is an error code. No cap. π
π SEE ALSO π
Kernel file: ./drivers/power/supply/bq257xx_charger.c β the whole charger source, iykyk. π
struct bq257xx_chip_info(9)struct bq257xx_chg(9)bq25792_read16(9)bq25792_write16(9)bq25703_get_state(9)bq25792_get_state(9)bq25703_get_min_vsys(9)bq25792_get_min_vsys(9)bq25703_set_min_vsys(9)bq25792_set_min_vsys(9)bq25703_get_cur(9)bq25792_get_cur(9)bq25703_get_ichg_cur(9)bq25792_get_ichg_cur(9)bq25703_set_ichg_cur(9)bq25792_set_ichg_cur(9)bq25703_get_chrg_volt(9)bq25792_get_chrg_volt(9)bq25703_set_chrg_volt(9)bq25792_set_chrg_volt(9)bq25703_get_iindpm(9)bq25792_get_iindpm(9)bq25703_set_iindpm(9)bq25792_set_iindpm(9)bq25703_get_vbat(9)bq25792_get_vbat(9)bq25703_hw_init(9)bq25792_hw_init(9)bq25703_hw_shutdown(9)bq25792_hw_shutdown(9)bq257xx_set_charger_property(9)bq257xx_get_charger_property(9)bq257xx_property_is_writeable(9)bq257xx_external_power_changed(9)bq257xx_irq_handler_thread(9)bq257xx_charger_probe(9)bq257xx_charger_shutdown(9)
β¨ Cute lil sign-off: source/version is ./drivers/power/supply, date is October 2026, and the page is bq257xx_parse_dt(9). Mwah, slay, bye ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms