16 Mar, 2016
13 commits
-
This patch adds support for the Active-semi ACT8945A PMIC.
It is a Multi Function Device with the following subdevices:
- Regulator
- ChargerIt is interfaced to the host controller using I2C interface,
ACT8945A is a child device of the I2C.Signed-off-by: Wenyou Yang
Reviewed-by: Krzysztof Kozlowski
Acked-by: Peter Korsgaard
Signed-off-by: Lee Jones -
s/cros_ec_register/cros_ec_query_all
Signed-off-by: Tomeu Vizoso
Signed-off-by: Lee Jones -
MFD_ARIZONA_I2C and MFD_ARIZONA_SPI both select MFD_ARIZONA and all
three of those select MFD_CORE, this makes the selects of MFD_CORE in
MFD_ARIZONA_I2C and MFD_ARIZONA_SPI redundant, so we remove them.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
My automated test is back and now can check defaults against the actual
hardware. This patch updates the defaults array for the differences
detected and removes a couple of completely unused registers.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
My automated test is back and now can check defaults against the actual
hardware. This patch updates the defaults array for the differences
detected and removes a couple of completely unused registers.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
My automated test is back and now can check defaults against the actual
hardware. This patch updates the defaults array for the differences
detected and removes a couple of completely unused registers.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
My automated test is back and now can check defaults against the actual
hardware. This patch updates the defaults array for the differences
detected and removes a couple of completely unused registers.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
The help text had a copy and paste error and refers to I2C in the SPI
section. This patch corrects this typo.Signed-off-by: Charles Keepax
Signed-off-by: Lee Jones -
syscon_regmap_config can be made const if syscon_probe() creates a local
copy on the stack, just like syscon_register() does.Signed-off-by: Philipp Zabel
Signed-off-by: Lee Jones -
Determine the regmap max_register configuration from the io resource size
and the reg-io-width device tree property.Signed-off-by: Philipp Zabel
Acked-by: Arnd Bergmann
Signed-off-by: Lee Jones -
The prcmu_config_clkout() function ensures that the 'clkout' argument
can only be '0' or '1' using an appropriate BUG_ON(), so the compiler
should know that the div_mask, mask, and bits variables are always
initialized later on. However, it doesn't understand this in gcc-5.2
and produces a false positive warning instead:drivers/mfd/db8500-prcmu.c: In function 'prcmu_config_clkout':
drivers/mfd/db8500-prcmu.c:762:10: error: 'div_mask' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (val & div_mask) {
^
drivers/mfd/db8500-prcmu.c:769:13: error: 'mask' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if ((val & mask & ~div_mask) != bits) {
^
drivers/mfd/db8500-prcmu.c:757:7: error: 'bits' may be used uninitialized in this function [-Werror=maybe-uninitialized]Replacing the switch() statement with an equivalent if() lets
gcc figure this out reliably and avoids the warnings.Signed-off-by: Arnd Bergmann
Acked-by: Linus Walleij
Signed-off-by: Lee Jones -
Add support for the TPS65912 device. It provides communication
through I2C and contains the following components:- Regulators
- Load switches
- GPO controllerSigned-off-by: Andrew F. Davis
Signed-off-by: Lee Jones -
The TPS65086 PMIC contains several regulators and a GPO controller.
Add bindings for the TPS65086 PMIC.Signed-off-by: Andrew F. Davis
Acked-by: Rob Herring
Signed-off-by: Lee Jones
09 Mar, 2016
6 commits
-
Add PCI IDs for Intel Broxton B-Step platform, which have same
LPSS devices with A-Step.Signed-off-by: Huiquan Zhong
Signed-off-by: Qipeng Zha
cked-by: Mika Westerberg
Signed-off-by: Lee Jones -
These drivers can be built as module, so make them depend on I2C rather
than I2C=y.Signed-off-by: Axel Lin
Acked-by: Adam Thomson
Signed-off-by: Lee Jones -
We forgot to remove the clock tree if something goes wrong in ->probe(). Add a
call to intel_lpss_unregister_clock() on error path in ->probe() to fix the
potential issue.Fixes: 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)
Signed-off-by: Andy Shevchenko
Acked-by: Mika Westerberg
Signed-off-by: Lee Jones -
tps65010 driver's initcall cannot succeed when the driver is built-in,
because it expects that the I2C probe is completed at initcall time;
this cannot happen as MFD is initialized before I2C. Also on systems
where the chip is not present there is unnecessary 30 ms delay during
the boot.Instead of waiting for probe to finish, just register the I2C device.
If some boards need retry mechanism for startup glitches, that should be
done in the actual probe function. Also delete the driver banner message.The patch allows to use tps65010 again with OMAP1 (where it's required
to be built-in) and enables e.g. USB and LED functionality on OMAP5912 OSK.Signed-off-by: Aaro Koskinen
Signed-off-by: Lee Jones -
…and 'ib-mfd-regulator-gpio-4.6' into ibs-for-mfd-merged
-
The newly added driver uses do_div() to device a 32-bit number, which now
provokes a warning:drivers/iio/adc/fsl-imx25-gcq.c: In function 'mx25_gcq_setup_cfgs':
include/asm-generic/div64.h:207:28: warning: comparison of distinct pointer types lacks a cast
(void)(((typeof((n)) *)0) == ((uint64_t *)0)); \This replaces the do_div() call with a straight division operator.
Signed-off-by: Arnd Bergmann
Fixes: 6df2e98c3ea5 ("iio: adc: Add imx25-gcq ADC driver")
Signed-off-by: Lee Jones
12 Feb, 2016
13 commits
-
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs.
It is functionally identical to AXP221; only the regulator default
voltage/status and the external host interface are different.Signed-off-by: Chen-Yu Tsai
Reviewed-by: Mark Brown
Signed-off-by: Lee Jones -
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs.
It is functionally identical to AXP221; only the regulator default
voltage/status and the external host interface are different.Signed-off-by: Chen-Yu Tsai
Signed-off-by: Lee Jones -
This fixes some leftover code style issues in the axp20x core.
Signed-off-by: Chen-Yu Tsai
Signed-off-by: Lee Jones -
The axp20x driver assumes the device is i2c based. This is not the
case with later chips, which use a proprietary 2 wire serial bus
by Allwinner called "Reduced Serial Bus".This patch follows the example of mfd/wm831x and splits it into
an interface independent core, and an i2c specific glue layer.
MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate
symbols, allowing the driver to be built as modules.Whitespace and other style errors in the moved i2c specific code
have been fixed. Included but unused header files are removed as
well.Signed-off-by: Chen-Yu Tsai
Signed-off-by: Lee Jones -
Supply a backdated copyright notice.
Signed-off-by: Chen-Yu Tsai
Acked-by: Carlo Caione
Signed-off-by: Lee Jones -
In axp20x_match_device(), match the of_device_id table bound to the
device driver instead of pointing to axp20x_of_match directly. This
will allow us to keep axp20x_match_device() unmodified when we expand
the axp20x driver into multiple ones covering different interface
types.of_device_get_match_data() cannot be used here as we need to know if
it failed to get a match, or if the match data value just happened to
be 0, as it is for the AXP152.Signed-off-by: Chen-Yu Tsai
Signed-off-by: Lee Jones -
The first argument passed to axp20x_match_device(), struct axp20x_dev *,
already contains a pointer to the device. By rearranging some code,
moving the assignment of the pointer before axp20x_match_device() is
called, we can eliminate the second parameter.Suggested-by: Andy Shevchenko
Signed-off-by: Chen-Yu Tsai
Signed-off-by: Lee Jones -
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs.
It is functionally identical to AXP221; only the regulator default
voltage/status and the external host interface are different.Signed-off-by: Chen-Yu Tsai
Acked-by: Maxime Ripard
Acked-by: Rob Herring
Signed-off-by: Lee Jones -
This patch adds support for the TPS65912 PMIC GPIOs.
TPS65912 has five configurable GPIOs that can be used for several
purposes.Signed-off-by: Andrew F. Davis
Reviewed-by: Linus Walleij
Signed-off-by: Lee Jones -
This patch adds support for TPS65912 PMIC regulators.
The regulators set consists of 4 DCDCs and 10 LDOs. The output
voltages are configurable and are meant to supply power to the
main processor and other components.Signed-off-by: Andrew F. Davis
Acked-by: Mark Brown
Signed-off-by: Lee Jones -
This patch adds support for TPS65912 PMIC MFD core. It provides
communication through the I2C and SPI interfaces. It contains
the following components:- Regulators
- GPIO controllerSigned-off-by: Andrew F. Davis
Signed-off-by: Lee Jones -
The old tps65912 driver is being replaced, delete old driver.
Signed-off-by: Andrew F. Davis
Acked-by: Mark Brown
Acked-by: Linus Walleij
Signed-off-by: Lee Jones -
The TPS65912 PMIC contains several regulators and a GPIO controller.
Add bindings for the TPS65912 PMIC.Signed-off-by: Andrew F. Davis
Acked-by: Rob Herring
Acked-by: Linus Walleij
Signed-off-by: Lee Jones
11 Feb, 2016
7 commits
-
This is a driver for the imx25 ADC/TSC module. It controls the
touchscreen conversion queue and creates a touchscreen input device.
The driver currently only supports 4 wire touchscreens. The driver uses
a simple conversion queue of precharge, touch detection, X measurement,
Y measurement, precharge and another touch detection.This driver uses the regmap from the parent to setup some touch specific
settings in the core driver and setup a idle configuration with touch
detection.Signed-off-by: Markus Pargmann
Signed-off-by: Denis Carikli
[fix clock's period calculation]
[fix calculation of the 'settling' value]
Signed-off-by: Juergen Borleis
Acked-by: Dmitry Torokhov
Signed-off-by: Lee Jones -
This is a conversion queue driver for the mx25 SoC. It uses the central
ADC which is used by two seperate independent queues. This driver
prepares different conversion configurations for each possible input.
For a conversion it creates a conversionqueue of one item with the
correct configuration for the chosen channel. It then executes the queue
once and disables the conversion queue afterwards.The reference voltages are configurable through devicetree subnodes,
depending on the connections of the ADC inputs.Signed-off-by: Markus Pargmann
Signed-off-by: Denis Carikli
Acked-by: Jonathan Cameron
Signed-off-by: Lee Jones -
This is the core driver for imx25 touchscreen/adc driver. The module
has one shared ADC and two different conversion queues which use the
ADC. The two queues are identical. Both can be used for general purpose
ADC but one is meant to be used for touchscreens.This driver is the core which manages the central components and
registers of the TSC/ADC unit. It manages the IRQs and forwards them to
the correct components.Signed-off-by: Markus Pargmann
Signed-off-by: Denis Carikli
[ensure correct ADC clock depending on the IPG clock]
Signed-off-by: Juergen Borleis
Acked-by: Jonathan Cameron
Signed-off-by: Lee Jones -
This is the touchscreen conversion queue binding documentation. It uses
the shared imx25 ADC.Signed-off-by: Markus Pargmann
Acked-by: Rob Herring
Signed-off-by: Lee Jones -
The documentation describes the bindings for the imx25 GCQ unit which is
essentially a generic conversion queue using the imx25 ADC.Signed-off-by: Markus Pargmann
Acked-by: Rob Herring
Acked-by: Jonathan Cameron
Signed-off-by: Lee Jones -
This documentation describes the devicetree bindings for the
ADC/Touchscreen unit of the i.MX25 SoC.Signed-off-by: Markus Pargmann
Acked-by: Jonathan Cameron
Acked-by: Rob Herring
Signed-off-by: Lee Jones -
Convert this driver to use clkdev_create() instead of
clk_register_clkdevs(). The latter API is only used by this driver,
although this driver only allocates one clk to add anyway.
Furthermore, this driver allocates the clk_lookup structure with
devm, but clkdev_drop() will free that structure when passed,
leading to a double free when this driver is removed. Clean it
all up and pave the way for the removal of clk_register_clkdevs().Cc: Andy Shevchenko
Cc: Russell King
Signed-off-by: Stephen Boyd
Signed-off-by: Lee Jones
01 Feb, 2016
1 commit