lkml.org 
[lkml]   [2020]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v9 13/55] Input: atmel_mxt_ts - add regulator control support
From
Date
25.03.2020 16:32, Jiada Wang пишет:
> From: Nick Dyer <nick.dyer@itdev.co.uk>
>
> Allow the driver to optionally manage enabling/disable power to the touch
> controller itself. If the regulators are not present then use the deep
> sleep power mode instead.
>
> For a correct power on sequence, it is required that we have control over
> the RESET line.

...
> + data->reg_vdd = devm_regulator_get(dev, "vdd");
> + if (IS_ERR(data->reg_vdd)) {
> + error = PTR_ERR(data->reg_vdd);
> + dev_err(dev, "Error %d getting vdd regulator\n", error);
> + goto fail;
> + }
> +
> + data->reg_avdd = devm_regulator_get(dev, "avdd");
> + if (IS_ERR(data->reg_avdd)) {
> + error = PTR_ERR(data->reg_avdd);
> + dev_err(dev, "Error %d getting avdd regulator\n", error);
> + goto fail_release;
> + }

Hello Jiada,

The new regulator properties should be documented in the device-tree
binding.

\
 
 \ /
  Last update: 2020-03-25 20:05    [W:0.168 / U:7.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site