| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * I2C driver for the X-Powers' Power Management ICs |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | * Copyright (C) 2014 Carlo Caione |
|---|
| 11 | 12 | * |
|---|
| 12 | 13 | * Author: Carlo Caione <carlo@caione.org> |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 15 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 16 | | - * published by the Free Software Foundation. |
|---|
| 17 | 14 | */ |
|---|
| 18 | 15 | |
|---|
| 19 | 16 | #include <linux/acpi.h> |
|---|
| .. | .. |
|---|
| 65 | 62 | { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, |
|---|
| 66 | 63 | { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID }, |
|---|
| 67 | 64 | { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID }, |
|---|
| 65 | + { .compatible = "x-powers,axp223", .data = (void *)AXP223_ID }, |
|---|
| 66 | + { .compatible = "x-powers,axp803", .data = (void *)AXP803_ID }, |
|---|
| 68 | 67 | { .compatible = "x-powers,axp806", .data = (void *)AXP806_ID }, |
|---|
| 69 | 68 | { }, |
|---|
| 70 | 69 | }; |
|---|
| .. | .. |
|---|
| 75 | 74 | { "axp202", 0 }, |
|---|
| 76 | 75 | { "axp209", 0 }, |
|---|
| 77 | 76 | { "axp221", 0 }, |
|---|
| 77 | + { "axp223", 0 }, |
|---|
| 78 | + { "axp803", 0 }, |
|---|
| 78 | 79 | { "axp806", 0 }, |
|---|
| 79 | 80 | { }, |
|---|
| 80 | 81 | }; |
|---|
| 81 | 82 | MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); |
|---|
| 82 | 83 | |
|---|
| 84 | +#ifdef CONFIG_ACPI |
|---|
| 83 | 85 | static const struct acpi_device_id axp20x_i2c_acpi_match[] = { |
|---|
| 84 | 86 | { |
|---|
| 85 | 87 | .id = "INT33F4", |
|---|
| .. | .. |
|---|
| 88 | 90 | { }, |
|---|
| 89 | 91 | }; |
|---|
| 90 | 92 | MODULE_DEVICE_TABLE(acpi, axp20x_i2c_acpi_match); |
|---|
| 93 | +#endif |
|---|
| 91 | 94 | |
|---|
| 92 | 95 | static struct i2c_driver axp20x_i2c_driver = { |
|---|
| 93 | 96 | .driver = { |
|---|