Lines Matching +full:wyse +full:- +full:ariel +full:- +full:ec
1 // SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later
16 /* I2C registers that are multiplexing access to the EC RAM. */
23 /* EC RAM registers. */
46 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_OFF_MODE], in kb3930_off()
51 * shutdown request to the EC. Once the EC detects it, it will in kb3930_off()
57 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 0); in kb3930_off()
59 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 1); in kb3930_off()
80 { .name = "dell-wyse-ariel-led", },
81 { .name = "dell-wyse-ariel-power", },
89 return i2c_smbus_write_word_data(ddata->client, EC_RAM_OUT, in kb3930_ec_ram_reg_write()
99 ret = i2c_smbus_write_word_data(ddata->client, EC_RAM_IN, reg); in kb3930_ec_ram_reg_read()
103 ret = i2c_smbus_read_word_data(ddata->client, EC_DATA_IN); in kb3930_ec_ram_reg_read()
124 struct device *dev = &client->dev; in kb3930_probe()
125 struct device_node *np = dev->of_node; in kb3930_probe()
132 return -ENOMEM; in kb3930_probe()
135 ddata->client = client; in kb3930_probe()
138 ddata->ram_regmap = devm_regmap_init(dev, NULL, ddata, in kb3930_probe()
140 if (IS_ERR(ddata->ram_regmap)) in kb3930_probe()
141 return PTR_ERR(ddata->ram_regmap); in kb3930_probe()
143 ret = regmap_read(ddata->ram_regmap, EC_MODEL, &model); in kb3930_probe()
147 /* Currently we only support the cells present on Dell Ariel model. */ in kb3930_probe()
150 return -ENODEV; in kb3930_probe()
160 if (of_property_read_bool(np, "system-power-controller")) { in kb3930_probe()
161 ddata->off_gpios = in kb3930_probe()
163 if (IS_ERR(ddata->off_gpios)) in kb3930_probe()
164 return PTR_ERR(ddata->off_gpios); in kb3930_probe()
165 if (ddata->off_gpios->ndescs < 2) { in kb3930_probe()
166 dev_err(dev, "invalid off-gpios property\n"); in kb3930_probe()
167 return -EINVAL; in kb3930_probe()
171 if (ddata->off_gpios) { in kb3930_probe()
184 if (ddata->off_gpios) { in kb3930_remove()
202 .name = "ene-kb3930",