summaryrefslogtreecommitdiff
path: root/drivers/mfd (follow)
Commit message (Collapse)AuthorAge
...
* | mfd: qcom-i2c-pmic: add option to skip irq controlNicholas Troast2016-07-11
| | | | | | | | | | | | | | | | | | | | | | | | Some MFD PMIC configurations do not support interrupts. Make the interrupt controller optional to support these PMIC configrations. Without an interrupt controller this driver simply passes a regmap to its children. CRs-Fixed: 1037797 Change-Id: I52b909dd226494987c79ed106ffdf9892d966ef1 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | mfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using itMeng Wang2016-07-08
| | | | | | | | | | | | | | | | | | | | | | During SSR, wcd9xxx_res irq lock is destroyed as part of resource cleanup. If driver tries to access wcd9xxx_res irq lock before it's initialized, it could cause crash. Check if wcd9xxx_res irq is 0 before using it to avoid crash. CRs-Fixed: 1003482 Change-Id: I959caf7b305e965b84e8204168194bbfda72dc52 Signed-off-by: Meng Wang <mwang@codeaurora.org>
* | wcd9xxx: refactor wcd9xxx audio codec driversYeleswarapu Nagaradhesh2016-06-17
| | | | | | | | | | | | | | | | | | | | Refactor wcd9xxx audio codec driver for better handling of codec specific functionalities. CRs-fixed: 1028800 Change-Id: I229ee4a741c5a606e2eb045940f5ee3c4eabf512 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org> Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
* | mfd: introduce I2C PMIC controllerNicholas Troast2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The I2C PMIC Controller is used by multi-function PMIC devices which communicate over the I2C bus. The controller enumerates all child nodes as platform devices, and instantiates a regmap interface for them to communicate over the I2C bus. The controller also controls interrupts for all of the children platform devices. The controller handles the summary interrupt by deciphering which peripheral triggered the interrupt, and which of the peripheral interrupts were triggered. Finally, it calls the interrupt handlers for each of the virtual interrupts that were registered. CRs-Fixed: 975120 Change-Id: I5ebe6d0bcb7c097124ba9b35c56579815dda234f Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
* | ASoC: msmcobalt: Switch ground/mic swap GPIO control to pinctrlStephen Oglesby2016-06-13
| | | | | | | | | | | | | | | | | | | | Switch to swap ground and mic headset poles is controlled by a GPIO on the Apps processor instead of the PMIC, and therefore software logic must change to use pinctrl APIs CRs-fixed: 1019254 Change-Id: Ibccddc82b18614ddbe6ef9c9720b3de1ce00163e Signed-off-by: Stephen Oglesby <soglesby@codeaurora.org>
* | drivers: mfd: Set ANC gain register as volatileSurendar karka2016-06-13
| | | | | | | | | | | | | | | | | | ANC register values are not correct, so add ANC0, ANC1 registers to volatile register list. CRs-Fixed: 1017287 Change-Id: I40e12b9ce8d6751c0a6dc0bd3c780b92c499b7dc Signed-off-by: Surendar karka <sukark@codeaurora.org>
* | drivers: mfd: Move codec reset gpio config to early bootSudheer Papothi2016-04-22
| | | | | | | | | | | | | | | | | | | | | | WCD and WSA codecs uses MSM gpios that are accessed through pinctrl mechanism. Codec reset gpios need to be configured before master controller is initialized otherwise codec cannot be enumerated on the bus. Add a new platform device driver to update reset gpio configuration to valid state before bus initialization. Change-Id: I1e36f4a85334704652c6b50950f50b90224a472e Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | drivers: mfd: Allocate and register irq domain for codec interruptsSudheer Papothi2016-04-22
| | | | | | | | | | | | | | | | | | During codec interrupt controller probe, allocate and register irq domain for codec interrupts for mapping between hwirq and irq numbers. Change-Id: I3e32043499f2b1e2616cf74864969815e626a23b Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | drivers: mfd: Return EPROBE_DEFER during codec failurePhani Kumar Uppalapati2016-03-25
| | | | | | | | | | | | | | | | | | | | In case of any codec access failure, return -EPROBE_DEFER so that slimbus driver can probe the codec again to toggle codec reset and retry codec access. CRs-fixed: 969497 Change-Id: I570e7357a6d7810c495f56bbb626b8e823892837 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | driver: mfd: Mark RCO calibration registers are volatilePhani Kumar Uppalapati2016-03-25
| | | | | | | | | | | | | | | | | | | | | | RCO calibration codec registers are read only and they can be modified at any time during codec operation. Mark them as volatile so that reads to these registers always happen from hardware instead of cache. CRs-Fixed: 974785 Change-Id: I1fb66ca19d0889aa7e21f433f8722af7b527705c Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | drivers: mfd: Move codec reset gpio config to early bootPhani Kumar Uppalapati2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | Codec reset gpio configuration needs to be updated before slimbus master component is initialized otherwise codec cannot be enumerated on the bus. Add a new platform device driver to update the codec reset gpio configuration to valid state (output, drive-strength) before slimbus is initialized. CRs-Fixed: 968161 Change-Id: I7227212e6b846d58196718255aa4b0923352d120 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | mfd: wcd9xxx-core: Fix array sizeViraja Kommaraju2016-03-23
| | | | | | | | | | | | | | | | Add change to include correct array length for buffer. Change-Id: I9fd89b38b795401e7b6fdf848cb34fa20814a319 Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
* | drivers: mfd: use single read and write mode for i2c regmap configDeven Patel2016-03-23
| | | | | | | | | | | | | | | | | | i2c doesn't support bulk read and write. Enable the single read and write option in regmap configuration for audio codec to operate correctly in i2c mode. Change-Id: I8d27826fe634c660c848a2a8db78f8a31ba16ed0 Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
* | mfd: wcd9xxx: avoid slimbus read/write during ADSP resetBanajit Goswami2016-03-23
| | | | | | | | | | | | | | | | | | During ADSP subsystem restart, all slimbus read/write would fail as the bus is not available. Avoid codec read/write, until the slimbus master in ADSP is up. Change-Id: Iec1933d2625c1cd3dd700b2b3e2ffc7eae64880b Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
* | mfd: wcd9xxx: Make DMIC clock drive strength platform dependentBhalchandra Gajare2016-03-23
| | | | | | | | | | | | | | | | | | | | Digital microphone clock drive strength setting in the codec could be platform dependent based on the type of microphone, etc. Add support to make the DMIC clock drive strength configurable through device tree. CRs-fixed: 938006 Change-Id: I8b17d985052098b56d012081a77b6dfc94553eca Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | ASoC: Audio codec driver changes for kernel 4.4Sudheer Papothi2016-03-23
| | | | | | | | | | | | Audio codec driver changes for kernel 4.4. Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | ASoC: wcd: Add Audio codec drivers for MSM targetsSudheer Papothi2016-03-23
| | | | | | | | | | | | | | | | | | | | | | Add snapshot of audio codec drivers for MSM targets. The code is migrated from msm-3.18 kernel at the below commit/AU level- AU_LINUX_ANDROID_LA.HB.1.3.1.06.00.00.187.056 (e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1) (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | mfd: qcom-spmi-pmic: instantiate pmic peripherals at arch_initcallAbhijeet Dharmapurikar2016-03-01
| | | | | | | | | | | | | | | | | | | | | | The spmi_devices spawn platform devices for pmic peripherals. Some of these devices are required early on in the boot process. Initialize the driver at arch_initcall to avoid unnecessary probe deferrals. Change-Id: I38474bedcb284ed5a7df1ec8d26f680787f2c074 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* | spmi_devices: change to platform_devicesAbhijeet Dharmapurikar2016-03-01
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Change to using upstream spmi bus architecture. All the spmi devices, marked by spmi-dev-container, become platform devices. spmi-slave-container devices become spmi_devices each representing a slave. The read/write functions use regmap api's instead of calls to spmi_ext_register_read/write() implemented by the spmi bus. This regmap is instantiated per slave. The spmi bus helper functions like spmi_get_irq get changed to their platform bus equivalents. Change Kconfig files include * Remove dependence on OF_SPMI, MSM_QPNP_INT * There were few places where an earlier commit dcc2aedc80746acee589e4b47d3e6adf5d3ec253 missed adding dependence on SPMI along with MSM_SPMI. Fix them. * Add depends on ARCH_MSM. ARCH_MSM is used for internal builds. Change the nodes in DTSI files to confirm to the modified drivers. Update their binding docs to drop spmi-dev-container and spmi-slave-container; Finally update defconfig to use upstream SPMI. Change-Id: Ic85bff27c09c84b152cb38acbc3cadd05c0ec57a Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* Merge tag 'asm-generic-for-linus' of ↵Linus Torvalds2015-11-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic Pull asm-generic cleanups from Arnd Bergmann: "The asm-generic changes for 4.4 are mostly a series from Christoph Hellwig to clean up various abuses of headers in there. The patch to rename the io-64-nonatomic-*.h headers caused some conflicts with new users, so I added a workaround that we can remove in the next merge window. The only other patch is a warning fix from Marek Vasut" * tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: asm-generic: temporarily add back asm-generic/io-64-nonatomic*.h asm-generic: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations gpio-mxc: stop including <asm-generic/bug> n_tracesink: stop including <asm-generic/bug> n_tracerouter: stop including <asm-generic/bug> mlx5: stop including <asm-generic/kmap_types.h> hifn_795x: stop including <asm-generic/kmap_types.h> drbd: stop including <asm-generic/kmap_types.h> move count_zeroes.h out of asm-generic move io-64-nonatomic*.h out of asm-generic
* | mfd: avoid newly introduced compiler warningLinus Torvalds2015-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit b158b69a3765 ("mfd: rtsx: Simplify function return logic") removed the use of the 'err' variable, but left the variable itself around, resulting in gcc quite reasonably warning: drivers/mfd/rtsx_pcr.c: In function ‘rtsx_pci_set_pull_ctl’: drivers/mfd/rtsx_pcr.c:565:6: warning: unused variable ‘err’ [-Wunused-variable] int err; ^ Get rid of the unused variable, and avoid the new warning. Cc: Javier Martinez Canillas <javier@osg.samsung.com> Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* | Merge tag 'mfd-for-linus-4.4' of ↵Linus Torvalds2015-11-06
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd Pull MFD updates from Lee Jones: "New Device Support: - Add support for 88pm860; 88pm80x - Add support for 24c08 EEPROM; at24 - Add support for Broxton Whiskey Cove; intel* - Add support for RTS522A; rts5227 - Add support for I2C devices; intel_quark_i2c_gpio New Functionality: - Add microphone support; arizona - Add general purpose switch support; arizona - Add fuel-gauge support; da9150-core - Add shutdown support; sec-core - Add charger support; tps65217 - Add flexible serial communication unit support; atmel-flexcom - Add power button support; axp20x - Add led-flash support; rt5033 Core Frameworks: - Supply a generic macro for defining Regmap IRQs - Rework ACPI child device matching Fix-ups: - Use Regmap to access registers; tps6105x - Use DEFINE_RES_IRQ_NAMED() macro; da9150 - Re-arrange device registration order; intel_quark_i2c_gpio - Allow OF matching; cros_ec_i2c, atmel-hlcdc, hi6421-pmic, max8997, sm501 - Handle deferred probe; twl6040 - Improve accuracy of headphone detect; arizona - Unnecessary MODULE_ALIAS() removal; bcm590xx, rt5033 - Remove unused code; htc-i2cpld, arizona, pcf50633-irq, sec-core - Simplify code; kempld, rts5209, da903x, lm3533, da9052, arizona - Remove #iffery; arizona - DT binding adaptions; many Bug Fixes: - Fix possible NULL pointer dereference; wm831x, tps6105x - Fix 64bit bug; intel_soc_pmic_bxtwc - Fix signedness issue; arizona" * tag 'mfd-for-linus-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (73 commits) bindings: mfd: s2mps11: Add documentation for s2mps15 PMIC mfd: sec-core: Remove unused s2mpu02-rtc and s2mpu02-clk children extcon: arizona: Add extcon specific device tree binding document MAINTAINERS: Add binding docs for Cirrus Logic/Wolfson Arizona devices mfd: arizona: Remove bindings covered in new subsystem specific docs mfd: rt5033: Add RT5033 Flash led sub device mfd: lpss: Add Intel Broxton PCI IDs mfd: lpss: Add Broxton ACPI IDs mfd: arizona: Signedness bug in arizona_runtime_suspend() mfd: axp20x: Add a cell for the power button part of the, axp288 PMICs mfd: dt-bindings: Document pulled down WRSTBI pin on S2MPS1X mfd: sec-core: Disable buck voltage reset on watchdog falling edge mfd: sec-core: Dump PMIC revision to find out the HW mfd: arizona: Use correct type ID for device tree config mfd: arizona: Remove use of codec build config #ifdefs mfd: arizona: Simplify adding subdevices mfd: arizona: Downgrade type mismatch messages to dev_warn mfd: arizona: Factor out checking of jack detection state mfd: arizona: Factor out DCVDD isolation control mfd: Make TPS6105X select REGMAP_I2C ...
| * | mfd: sec-core: Remove unused s2mpu02-rtc and s2mpu02-clk childrenKrzysztof Kozlowski2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit 54e8827d5f0e ("mfd: sec-core: Add support for S2MPU02 device") added new MFD child devices for S2MPU02: RTC and clock provider (the clock provider with new compatible). However support for these devices was not added to existing drivers (rtc-s5m, clk-s2mps11). New drivers were not submitted neither. This means that the name of children devices is completely unused. The "samsung,s2mpu02-clk" compatible remains undocumented so it is unclear what is provided by that compatible. Clean up this by removing unused child devices and undocumented compatible. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: rt5033: Add RT5033 Flash led sub deviceIngi Kim2015-10-30
| | | | | | | | | | | | | | | | | | | | | This patch adds rt5033-led sub device to support it. Signed-off-by: Ingi Kim <ingi2.kim@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: lpss: Add Intel Broxton PCI IDsAndy Shevchenko2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Intel Broxton has the same LPSS block than Intel Sunrisepoint so add Broxton PCI IDs to the list. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: lpss: Add Broxton ACPI IDsMika Westerberg2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Intel Broxton has the same LPSS block than Intel Sunrisepoint so add Broxton ACPI IDs to the list. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Signedness bug in arizona_runtime_suspend()Dan Carpenter2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "jd_active" variable needs to be signed for the error handling to work. Fixes: 143e5887ae57 ('mfd: arizona: factor out checking of jack detection state') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: axp20x: Add a cell for the power button part of the, axp288 PMICsBorun Fu2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds the mfd cell info for axp288 power key device. Signed-off-by: Borun Fu <borun.fu@linux.intel.com> Signed-off-by: Fei Yang <fei.yang@intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: sec-core: Disable buck voltage reset on watchdog falling edgeKrzysztof Kozlowski2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WRSTBI bit (disabled by default but enabled by bootloader), when set, is responsible for resetting voltages to default values of certain bucks on falling edge of Warm Reset Input pin from AP. However on some boards (with S2MPS13) the pin is pulled down so any suspend will effectively trigger the reset of bucks supplying the power to the little and big cores. In the same time when resuming, these bucks must provide voltage greater or equal to voltage before suspend to match the frequency chosen by cpufreq. If voltage (default value of voltage after reset) is lower than one set by cpufreq before suspend, then system will hang during resuming. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reported-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Tested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: sec-core: Dump PMIC revision to find out the HWKrzysztof Kozlowski2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | There are different revisions of the same chipset. For example S2MPS13 has more than 2 revisions. They differ slightly in regulator constraints. Print the revision number to easily find which PMIC is used on the board. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Use correct type ID for device tree configRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of a device tree config the code uses the device ID from the DT entry to check which codec is required but when storing the ID into struct arizona it was always using the non-DT SPI device table to get an ID. This patch changes the code to store the correct ID into struct arizona. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Remove use of codec build config #ifdefsRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the use of #ifdefs around each case statement of the chip ID and type validation switches. We must ensure that the contained code still compiles to nothing if support for that codec was not built into the kernel, to prevent creation of link references to missing functions. So the ifdefs are replaced with a use of the IS_ENABLED() macro. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Simplify adding subdevicesRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code was using a switch on the code type to execute one of several mfd_add_devices() calls. We're already switching on the code type earlier in the function to select the correct patch function so we can roll selection of the mfd device table into the same switch. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Downgrade type mismatch messages to dev_warnRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the declared codec type doesn't match the detected type we issue a log message but carry on registering the device, so a dev_warn() is appropriate rather than a dev_err() Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Factor out checking of jack detection stateRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently runtime_suspend will fully power off the codec if the jack detection is not enabled. Not all future codecs will have jack detection so to prepare for these codecs this patch factors out the check so that it be called as needed in the existing codec-specific switch cases. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: arizona: Factor out DCVDD isolation controlRichard Fitzgerald2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently DCVDD isolation is enabled and disabled for runtime_suspend and runtime_resume. Future codecs will not have the isolation control so to prepare for these codecs this patch factors out the isolation control allowing it to be called as needed in the existing codec-specific switch cases. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: Make TPS6105X select REGMAP_I2CAxel Lin2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | This is required since commit 7e5071199355 ("mfd: tps6105x: Use i2c regmap to access registers"). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: lm3533: Fix unused variable build warningSudip Mukherjee2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were getting build warning about unused variable 'ret'. The commit c749db571dcf has removed the use of ret but missed removing the variable which is unused now. Fixes: c749db571dcf ("mfd: lm3533: Simplify function return logic") Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: rtsx: Add support for rts522AMicky Ching2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | rts522a(rts5227s) is derived from rts5227, and mainly same with rts5227. Add it to file mfd/rts5227.c to support this chip. Signed-off-by: Micky Ching <micky_ching@realsil.com.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: da9062-core: Rename get_device_type to da9062_get_device_typeAxel Lin2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | Rename get_device_type() to da9062_get_device_type(). This function is only used in this file so make it static. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: Kconfig: Compile MFD_STW481X with COMPILE_TESTLuis de Bethencourt2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver depends on ARCH_NOMADIK but there isn't a build dependency so it's a good idea to allow the driver to always be built when the COMPILE_TEST option is enabled. That way, the driver can be built with a config generated by make allyesconfig and check if a patch would break the build. Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: da9053: Addition of extra registers for GPIOs 8-13Steve Twiss2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Definitions for GPIO registers 8, 9, 10, 11, 12 and 13 are added into the register header file. - DA9052_GPIO_8_9_REG 25 - DA9052_GPIO_10_11_REG 26 - DA9052_GPIO_12_13_REG 27 A modification is also made to the MFD core code to define these registers as readable and writable. The functions for da9052_reg_readable() and da9052_reg_writeable() have had their case statements altered to include these new registers. Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: atmel-flexcom: Add a driver for Atmel Flexible Serial Communication UnitCyrille Pitchen2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which integrates one SPI controller, one I2C controller and one USART. Only one function can be enabled at a time. This driver selects the function once for all, when the Flexcom is probed, according to the value of the new "atmel,flexcom-mode" device tree property. This driver has chosen to present the Flexcom to the system as a MFD so the implementation is seamless for the existing Atmel SPI, I2C and USART drivers. Also the Flexcom embeds FIFOs: the latest patches of the SPI, I2C and USART drivers take advantage of this new feature. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: intel_soc_pmic_bxtwc: 64 bit bug in bxtwc_val_store()Dan Carpenter2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The call to kstrtoul() will corrupt memory on 64 bit systems because an int is 4 bytes and a long is 8. Also it's not a good idea to let users trigger a dev_err() because it just ends up flooding /var/log/messages so I removed the printk. Fixes: 2ddd2086ea9c ('mfd: add Intel Broxton Whiskey Cove PMIC driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: da9052: Simplify function return logicJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | The invoked functions already return zero on success or a negative errno code so there is no need to open code the logic in the caller. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: lm3533: Simplify function return logicJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | The invoked functions already return zero on success or a negative errno code so there is no need to open code the logic in the caller. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: da903x: Simplify function return logicJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | The invoked function already returns zero on success or a negative errno code so there is no need to open code the logic in the caller. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: rtsx: Simplify function return logicJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | The invoked functions already return zero on success or a negative errno code so there is no need to open code the logic in the caller. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: kempld-core: Simplify function return logicJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | The invoked functions already return zero on success or a negative errno code so there is no need to open code the logic in the caller. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: pcf50633: Remove unneded ret variableJavier Martinez Canillas2015-10-30
| | | | | | | | | | | | | | | | | | | | | | | | The ret variable is not needed since is not used in the function. Remove the variable and just return 0 instead. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>