Lines Matching +full:vdd_io +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
29 static const char reg_vdd_io[] = "Vdd_IO";
35 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
36 lis3->regulators); in lis3_reg_ctrl()
38 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
39 lis3->regulators); in lis3_reg_ctrl()
48 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_write()
54 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_read()
62 struct i2c_client *c = lis3->bus_priv; in lis3_i2c_blockread()
74 lis3->read(lis3, WHO_AM_I, &reg); in lis3_i2c_init()
75 if (reg != lis3->whoami) in lis3_i2c_init()
79 ret = lis3->read(lis3, CTRL_REG1, &reg); in lis3_i2c_init()
83 if (lis3->whoami == WAI_3DLH) in lis3_i2c_init()
88 return lis3->write(lis3, CTRL_REG1, reg); in lis3_i2c_init()
106 struct lis3lv02d_platform_data *pdata = client->dev.platform_data; in lis3lv02d_i2c_probe()
109 if (of_match_device(lis3lv02d_i2c_dt_ids, &client->dev)) { in lis3lv02d_i2c_probe()
110 lis3_dev.of_node = client->dev.of_node; in lis3lv02d_i2c_probe()
119 if ((pdata->driver_features & LIS3_USE_BLOCK_READ) && in lis3lv02d_i2c_probe()
120 (i2c_check_functionality(client->adapter, in lis3lv02d_i2c_probe()
124 if (pdata->axis_x) in lis3lv02d_i2c_probe()
125 lis3lv02d_axis_map.x = pdata->axis_x; in lis3lv02d_i2c_probe()
127 if (pdata->axis_y) in lis3lv02d_i2c_probe()
128 lis3lv02d_axis_map.y = pdata->axis_y; in lis3lv02d_i2c_probe()
130 if (pdata->axis_z) in lis3lv02d_i2c_probe()
131 lis3lv02d_axis_map.z = pdata->axis_z; in lis3lv02d_i2c_probe()
133 if (pdata->setup_resources) in lis3lv02d_i2c_probe()
134 ret = pdata->setup_resources(); in lis3lv02d_i2c_probe()
140 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe()
141 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe()
142 ret = regulator_bulk_get(&client->dev, in lis3lv02d_i2c_probe()
154 lis3_dev.irq = client->irq; in lis3lv02d_i2c_probe()
156 lis3_dev.pm_dev = &client->dev; in lis3lv02d_i2c_probe()
175 if (pdata && pdata->release_resources) in lis3lv02d_i2c_probe()
176 pdata->release_resources(); in lis3lv02d_i2c_probe()
183 struct lis3lv02d_platform_data *pdata = client->dev.platform_data; in lis3lv02d_i2c_remove()
185 if (pdata && pdata->release_resources) in lis3lv02d_i2c_remove()
186 pdata->release_resources(); in lis3lv02d_i2c_remove()
191 regulator_bulk_free(ARRAY_SIZE(lis3->regulators), in lis3lv02d_i2c_remove()
202 if (lis3->pdata && lis3->pdata->wakeup_flags) { in lis3lv02d_i2c_suspend()
218 if (lis3->pdata && lis3->pdata->wakeup_flags) { in lis3lv02d_i2c_resume()