- 05 Nov, 2012 1 commit
-
-
Patil, Rachna authored
Add the mfd core driver which supports touchscreen and ADC. With this patch we are only adding infrastructure to support the MFD clients. Signed-off-by:
Patil, Rachna <rachna@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 05 Oct, 2012 1 commit
-
-
Andi Kleen authored
Signed-off-by:
Andi Kleen <ak@linux.intel.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 02 Oct, 2012 3 commits
-
-
Haojian Zhuang authored
The initilization of GPADC is moved from core driver to touch driver with DT support. Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Use irqdomain and allocating interrupts. It's necessary for supporting DT mode. Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 01 Oct, 2012 1 commit
-
-
Sourav Poddar authored
smsc ece1099 is a keyboard scan or gpio expansion device. The patch create keypad and gpio expander child for this multi function smsc driver. Cc: Benoit Cousson <b-cousson@ti.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by:
Sourav Poddar <sourav.poddar@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 28 Sep, 2012 4 commits
-
-
Ashish Jangam authored
This is the DA9055 MFD core driver that instantiate all the dependent component drivers and provides them the device access via I2C. This patch is functionally tested on Samsung SMDK6410. Signed-off-by:
David Dajun Chen <dchen@diasemi.com> Signed-off-by:
Ashish Jangam <ashish.jangam@kpitcummins.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Venu Byravarasu authored
Add RTC alarm interrupt details to TPS65910 MFD device list, to support RTC alarm events. Signed-off-by:
Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Mark Brown authored
It can misreport. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 24 Sep, 2012 2 commits
-
-
Matthias Kaehlcke authored
mfd: Add backlight as subdevice to the tps65217 Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Lee Jones authored
The PRCMU has its own USB, Thermal, GPIO, Modem, HSI and RTC drivers, amongst other things. This patch allows those subordinate devices to use it as an interrupt controller as and when they are DT enabled. Signed-off-by:
Lee Jones <lee.jones@linaro.org> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 23 Sep, 2012 6 commits
-
-
Fengguang Wu authored
This fixes: drivers/mfd/max8907.c:179:16: sparse: symbol 'max8907_pm_off' was not declared. Should it be static? Signed-off-by:
Fengguang Wu <fengguang.wu@intel.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Milo Kim authored
TI LP8788 PMU provides regulators, battery charger, ADC, RTC, backlight driver and current sinks. This MFD patch supports the I2C communication using the regmap, the interrupt handling using the linear IRQ domain and configurable platform data structures for each driver module. (Driver Architecture) < mfd devices > LP8788 HW .......... mfd .......... regulator drivers I2C power supply driver IRQs iio adc driver rtc driver backlight driver current sink drivers o regulators : LDOs and BUCKs o power supply : Battery charger o iio adc : Battery voltage/temperature o rtc : RTC and alarm o backlight o current sink : LED and vibrator All MFD device modules are registered by LP8788 MFD core driver. For sharing information such like the virtual IRQ number, MFD core driver uses the resource structure. Then each module can retrieve the specific IRQ number and detect it in the IRQ thread. Configurable platform data is handled in each driver module. Signed-off-by:
Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Michel Jaouen authored
The local timer clock is based on ARM subsystem clock. This patch obtains a more exact value of that clock by reading PRCMU registers. Using this increases the accuracy of the local timer events. Signed-off-by:
Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by:
Rickard Andersson <rickard.andersson@stericsson.com> Signed-off-by:
Michel Jaouen <michel.jaouen@stericsson.com> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Venu Byravarasu authored
Two variables named master_int and sleepseq_val, were just declared without initialization. Pointers to these variables were passed to mfd read function. After that these variables were used for some of the logical operations. Though logically there is nothing wrong, compiler is complaining that the variables may be used uninitialized. Hence fixing these warning messages by initializing them. Signed-off-by:
Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Graeme Gregory authored
Add device tree handling to the palmas MFD. This takes the values that can be set from platform data from the device tree nodes instead. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Graeme Gregory authored
Add the platform data and data structures for children that shall be added by a future set of commits. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 22 Sep, 2012 6 commits
-
-
Peter Ujfalusi authored
Support for loading the twl4030 audio module via devicetree. Sub devices for codec and vibra will be created as mfd devices once the core MFD driver is loaded when the kernel is booted with a DT blob. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Peter Ujfalusi authored
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Peter Ujfalusi authored
CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK frequency. Add possibility for users to get the configured rate based on this register. This register was configured during boot, without it the chip would not operate correctly, so we can trust on this information. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Peter Ujfalusi authored
To facilitate the device tree support the probe function need to be rearanged. Small cleanup in the APLL frequency selection part as well. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Peter Ujfalusi authored
To clean up the module probe and remove functions. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
Peter Ujfalusi authored
Place the MODULE_* lines in the same block and add MODULE_DESCRIPTION. Rearange the platform_driver structure at the same time. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by:
Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
-
- 21 Sep, 2012 8 commits
-
-
Graeme Gregory authored
Swith the palmas to linear domain in all cases so in future DT and non DT cases will work the same. With this patch children no longer need IRQ resources as it's easier for them to use regmap_get_virq. So we can remove the resources definitions. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Graeme Gregory authored
Improve the error exit path so that we correctly de-allocate resources that have been allocated upto the point where error occurs. Signed-off-by:
Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Lee Jones authored
Provide a compatible string for the AB8500 CODEC to aid in configuration property look-up from its associated Device Tree node. Signed-off-by:
Lee Jones <lee.jones@linaro.org> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Andreas Pretzsch authored
commit e7c706b1 migrated the allocation of struct mc13xxx to devm_* functions, but left a kfree(mc13xxx) in the mc13xxx_common_init error path. Remove it to prevent memory corruption. Signed-off-by:
Andreas Pretzsch <apr@cn-eng.de> Reviewed-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Shubhrajyoti D authored
Convert the struct i2c_msg initialization to C99 format. This makes maintaining and editing the code simpler. Also helps once other fields like transferred are added in future. Thanks to Julia Lawall <julia.lawall@lip6.fr> for automating the conversion Signed-off-by:
Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Keshava Munegowda authored
The TLL specific code such as channels clocks enable/disable, initialization functions are removed from the USBHS core driver. The hwmod of the usb tll is retrieved and omap device build is performed to created the platform device for the usb tll component. Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Reviewed-by:
Partha Basak <parthab@india.ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Keshava Munegowda authored
The usbhs driver invokes the enable/disable APIs of the usb tll driver in the runtime resume/suspend callbacks of the runtime get sync and put sync of the usbhs driver. Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Reviewed-by:
Partha Basak <parthab@india.ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Keshava Munegowda authored
The platform driver for the TLL component of the OMAP USB host controller is implemented. Depending on the TLL hardware revision , the TLL channels are configured. The USB HS core driver uses this driver through exported APIs from the TLL platform driver. usb_tll_enable and usb_tll_disble are the exported APIs of the USB TLL platform driver. Signed-off-by:
Keshava Munegowda <keshava_mgowda@ti.com> Reviewed-by:
Partha Basak <parthab@india.ti.com> Acked-by:
Felipe Balbi <balbi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
- 20 Sep, 2012 2 commits
-
-
Anton Vorontsov authored
Sparse complains: CHECK drivers/power/88pm860x_battery.c drivers/power/88pm860x_battery.c:128:5: warning: symbol 'array_soc' was not declared. Should it be static? CHECK drivers/power/88pm860x_charger.c drivers/power/88pm860x_charger.c:640:3: warning: symbol 'pm860x_irq_descs' was not declared. Should it be static? CHECK drivers/mfd/88pm860x-core.c drivers/mfd/88pm860x-core.c:803:53: warning: incorrect type in assignment (different base types) drivers/mfd/88pm860x-core.c:803:53: expected struct charger_regulator *charger_regulators drivers/mfd/88pm860x-core.c:803:53: got struct regulator_bulk_data static [toplevel] * The issues are minor, except for the last one. We seemed to use 'regulator_bulk_data' struct (just as charger manager documentation wrongly tells us), but in real it should have been 'struct charger_regulator'. The only reason that it worked is because both 'supply' and 'regulator_name' struct members are the first in these structs. :-) Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Jett.Zhou authored
There are charger and battery measurement feature for 88pm860x PMIC. For charger, it can support pre-charge with small current when battery is nearly exausted and then changed into fast-charge with CC&CV mode. For battery monitor, it can support battery measurement such as vbat,vsys,vchg and ibat etc,it can aslo accumulating the Coulomb value charged or discharged from battery based on Conlomb Counter, we use it to estimate battery capacity. Signed-off-by:
Jett.Zhou <jtzhou@marvell.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
- 19 Sep, 2012 6 commits
-
-
Venu Byravarasu authored
Remove redundant check in is_volatile_reg(). Signed-off-by:
Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Move probe() and other functions from 88pm860x-i2c.c to 88pm860x-core.c. Since it could benefit to handle DT information. Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Since PREG regulator is the only one regulator in 88PM8606, and other regulators are in 88PM8607. Checking resource as identifying regulator is not a good way. We can use NULL resource to indentify PREG regulator. Signed-off-by:
Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Remove array in parent's platform data. Use struct regulator_init_data as regulator device's platform data directly. So a lot of pdata are added into parent's platform data. And voltage out register offset is used as IORESOURCE_REG to distinguish different regualtor devices. Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Haojian Zhuang authored
Remove the register offset definition. All these register offset are transfered as IORESOURCE_REG resources. Signed-off-by:
Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-
Peter Ujfalusi authored
Add needed platform data structure and code to be able to load the GPO child of twl6040. Update the devicetree binding documentation at the same time. Signed-off-by:
Sergio Aguirre <saaguirre@ti.com> Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by:
Samuel Ortiz <sameo@linux.intel.com>
-