Lines Matching +full:vddl +full:- +full:supply

12  *  Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
13 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
14 * Copyright (c) 2007-2008 Oliver Neukum
15 * Copyright (c) 2006-2010 Jiri Kosina
31 #include "i2c-hid.h"
44 struct device *dev = &ihid_of->client->dev; in i2c_hid_of_power_up()
47 ret = regulator_bulk_enable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_up()
48 ihid_of->supplies); in i2c_hid_of_power_up()
54 if (ihid_of->post_power_delay_ms) in i2c_hid_of_power_up()
55 msleep(ihid_of->post_power_delay_ms); in i2c_hid_of_power_up()
64 regulator_bulk_disable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_down()
65 ihid_of->supplies); in i2c_hid_of_power_down()
71 struct device *dev = &client->dev; in i2c_hid_of_probe()
77 ihid_of = devm_kzalloc(&client->dev, sizeof(*ihid_of), GFP_KERNEL); in i2c_hid_of_probe()
79 return -ENOMEM; in i2c_hid_of_probe()
81 ihid_of->ops.power_up = i2c_hid_of_power_up; in i2c_hid_of_probe()
82 ihid_of->ops.power_down = i2c_hid_of_power_down; in i2c_hid_of_probe()
84 ret = of_property_read_u32(dev->of_node, "hid-descr-addr", &val); in i2c_hid_of_probe()
86 dev_err(&client->dev, "HID register address not provided\n"); in i2c_hid_of_probe()
87 return -ENODEV; in i2c_hid_of_probe()
90 dev_err(&client->dev, "Bad HID register address: 0x%08x\n", in i2c_hid_of_probe()
92 return -EINVAL; in i2c_hid_of_probe()
96 if (!device_property_read_u32(&client->dev, "post-power-on-delay-ms", in i2c_hid_of_probe()
98 ihid_of->post_power_delay_ms = val; in i2c_hid_of_probe()
100 ihid_of->supplies[0].supply = "vdd"; in i2c_hid_of_probe()
101 ihid_of->supplies[1].supply = "vddl"; in i2c_hid_of_probe()
102 ret = devm_regulator_bulk_get(&client->dev, in i2c_hid_of_probe()
103 ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_probe()
104 ihid_of->supplies); in i2c_hid_of_probe()
108 return i2c_hid_core_probe(client, &ihid_of->ops, in i2c_hid_of_probe()
113 { .compatible = "hid-over-i2c" },
120 { "hid-over-i2c", 0 },