Lines Matching +full:embedded +full:- +full:controller
1 // SPDX-License-Identifier: GPL-2.0+
3 * Acer Iconia Tab A500 Embedded Controller Driver
5 * Copyright 2020 GRATE-driver project
20 * Controller's firmware expects specific command opcodes to be used for the
46 while (retries-- > 0) { in a500_ec_read()
55 dev_err(&client->dev, "read 0x%x failed: %d\n", reg, ret); in a500_ec_read()
76 while (retries-- > 0) { in a500_ec_write()
85 dev_err(&client->dev, "write 0x%x failed: %d\n", reg, ret); in a500_ec_write()
136 { .name = "acer-a500-iconia-battery", },
137 { .name = "acer-a500-iconia-leds", },
145 regmap = devm_regmap_init(&client->dev, &a500_ec_regmap_bus, in a500_ec_probe()
150 err = devm_mfd_add_devices(&client->dev, PLATFORM_DEVID_AUTO, in a500_ec_probe()
154 dev_err(&client->dev, "failed to add sub-devices: %d\n", err); in a500_ec_probe()
158 if (of_device_is_system_power_controller(client->dev.of_node)) { in a500_ec_probe()
174 if (of_device_is_system_power_controller(client->dev.of_node)) { in a500_ec_remove()
183 { .compatible = "acer,a500-iconia-ec" },
190 .name = "acer-a500-embedded-controller",
198 MODULE_DESCRIPTION("Acer Iconia Tab A500 Embedded Controller driver");