]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: trf7970a: Add VIN voltage override support
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 8 Aug 2014 00:41:41 +0000 (17:41 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Aug 2014 22:06:55 +0000 (00:06 +0200)
commit78eca521c78a4c8ff0226f0e4fbf3124956a3ad8
treee2ac5c741d2df45154f0ab958b8a10fd0fb77c19
parentf850fbba04fdc7ff3cc1cb1d0a93bf6342e4bf03
NFC: trf7970a: Add VIN voltage override support

The trf7970a driver uses the voltage from the
power/regulator subsystem to determine what the
voltage on the VIN pin is.  Normally, this is
the right thing to do but sometimes the board
that the trf7970a is on may change the voltage.
This is the case for the trf7970atb board from
Texas Instruments where it boosts the VIN voltage
from 3.3V to 5V (see http://www.ti.com/tool/trf7970atb).

To handle this, add support for the 'vin-voltage-override'
device tree property which overrides the voltage value
given by the regulator subsystem.  When the DT property
is not present, the value from the regulator subsystem
is used.

The value of 'vin-voltage-override' is in uVolts.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c