1 // SPDX-License-Identifier: GPL-2.0+
5 #include <power/pmic.h>
7 static int axp_pmic_reg_count(struct udevice *dev)
9 /* TODO: Get the specific value from driver data. */
13 static struct dm_pmic_ops axp_pmic_ops = {
14 .reg_count = axp_pmic_reg_count,
16 .write = dm_i2c_write,
19 static const struct udevice_id axp_pmic_ids[] = {
20 { .compatible = "x-powers,axp152" },
21 { .compatible = "x-powers,axp202" },
22 { .compatible = "x-powers,axp209" },
23 { .compatible = "x-powers,axp221" },
24 { .compatible = "x-powers,axp223" },
25 { .compatible = "x-powers,axp803" },
26 { .compatible = "x-powers,axp806" },
27 { .compatible = "x-powers,axp809" },
28 { .compatible = "x-powers,axp813" },
32 U_BOOT_DRIVER(axp_pmic) = {
35 .of_match = axp_pmic_ids,
36 .bind = dm_scan_fdt_dev,