Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: simple-mfd-i2c: Add MAX77705 support

Add MAX77705 support - fuel gauge and hwmon devices.
Hwmon provides charger input and system bus measurements.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250123-starqltechn_integration_upstream-v17-4-8b06685b6612@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Dzmitry Sankouski and committed by
Lee Jones
7b591ef9 a6a494c8

+11
+11
drivers/mfd/simple-mfd-i2c.c
··· 83 83 .mfd_cell_size = ARRAY_SIZE(max5970_cells), 84 84 }; 85 85 86 + static const struct mfd_cell max77705_sensor_cells[] = { 87 + { .name = "max77705-battery" }, 88 + { .name = "max77705-hwmon", }, 89 + }; 90 + 91 + static const struct simple_mfd_data maxim_mon_max77705 = { 92 + .mfd_cell = max77705_sensor_cells, 93 + .mfd_cell_size = ARRAY_SIZE(max77705_sensor_cells), 94 + }; 95 + 86 96 static const struct of_device_id simple_mfd_i2c_of_match[] = { 87 97 { .compatible = "kontron,sl28cpld" }, 88 98 { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, 89 99 { .compatible = "maxim,max5970", .data = &maxim_max5970}, 90 100 { .compatible = "maxim,max5978", .data = &maxim_max5970}, 101 + { .compatible = "maxim,max77705-battery", .data = &maxim_mon_max77705}, 91 102 {} 92 103 }; 93 104 MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match);