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],
51 * shutdown request to the EC. Once the EC detects it, it will
57 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 0);
59 gpiod_direction_output(ddata->off_gpios->desc[EC_GPIO_WAVE], 1);
80 { .name = "dell-wyse-ariel-led", },
81 { .name = "dell-wyse-ariel-power", },
89 return i2c_smbus_write_word_data(ddata->client, EC_RAM_OUT,
99 ret = i2c_smbus_write_word_data(ddata->client, EC_RAM_IN, reg);
103 ret = i2c_smbus_read_word_data(ddata->client, EC_DATA_IN);
124 struct device *dev = &client->dev;
125 struct device_node *np = dev->of_node;
132 return -ENOMEM;
135 ddata->client = client;
138 ddata->ram_regmap = devm_regmap_init(dev, NULL, ddata,
140 if (IS_ERR(ddata->ram_regmap))
141 return PTR_ERR(ddata->ram_regmap);
143 ret = regmap_read(ddata->ram_regmap, EC_MODEL, &model);
147 /* Currently we only support the cells present on Dell Ariel model. */
150 return -ENODEV;
160 if (of_property_read_bool(np, "system-power-controller")) {
161 ddata->off_gpios =
163 if (IS_ERR(ddata->off_gpios))
164 return PTR_ERR(ddata->off_gpios);
165 if (ddata->off_gpios && ddata->off_gpios->ndescs < 2) {
166 dev_err(dev, "invalid off-gpios property\n");
167 return -EINVAL;
171 if (ddata->off_gpios) {
184 if (ddata->off_gpios) {
202 .name = "ene-kb3930",