- 07 10月, 2014 1 次提交
-
-
由 Doug Anderson 提交于
If someone sends a EC_CMD_REBOOT_EC to the EC, the EC will likely be unresponsive for quite a while. Add a delay to the end of the command to prevent random failures of future commands. NOTES: * This could be optimized a bit by simply delaying the next command sent, but EC_CMD_REBOOT_EC is such a rare command that the extra complexity doesn't seem worth it. * This is a bit of an "ugly hack" since the SPI driver is effectively snooping on the communication and making a lot of assumptions. It would be nice to architect in some better solution long term. * This same logic probably needs to be applied to the i2c driver. Signed-off-by: NDoug Anderson <dianders@chromium.org> Reviewed-by: NRandall Spangler <rspangler@chromium.org> Reviewed-by: NVadim Bendebury <vbendeb@chromium.org> Signed-off-by: NJavier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 26 9月, 2014 39 次提交
-
-
由 Andreas Werner 提交于
Added maintainer for the following MEN F21BMC drivers: - menf21bmc (MFD) - menf21bmc_wdt (Watchdog) - menf21bmc_hwmon (HWMON) - leds-menf21bmc (LED) Signed-off-by: NAndreas Werner <andreas.werner@men.de> Acked-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NBryan Wu <cooloney@gmail.com> Acked-by: NWim Van Sebroeck <wim@iguana.be> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Charles Keepax 提交于
Currently the mask for the external capacitor bit is missing when writing the MICBIAS config meaning it will never be set this patch fixes this. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Mika Westerberg 提交于
If an MFD device is backed by ACPI namespace, we should allow subdevice drivers to access their corresponding ACPI companion devices through normal means (e.g using ACPI_COMPANION()). This patch adds such support to the MFD core. If the MFD parent device does not specify any ACPI _HID/_CID for the child device, the child device will share the parent ACPI companion device. Otherwise the child device will be assigned with the corresponding ACPI companion, if found in the namespace below the parent. Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Charles Keepax 提交于
This reverts commit d9d03496. It seems this commit was applied twice, once through ASoC and once through MFD: commit 4c9bb8bc mfd: wm5102: Manually apply register patch commit d9d03496 mfd: wm5102: Manually apply register patch This has lead to a small piece of duplicate code. It is harmless hence how it has gone unoticed for so long. This patch reverts one of the two commits removing the unneeded code. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Jeff Lance 提交于
The logic in AFE_Pen_Ctrl bitmask in the CTRL register is different for five wire versus four or eight wire touschscreens. This patch should fix this for five-wire touch screens. There should be no change needed here for four and eight wire tousch screens. Signed-off-by: NJeff Lance <j-lance1@ti.com> [bigeasy: keep the change mfd only] Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Cc: boris.brezillon@free-electrons.com Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Cc: Stanimir Varbanov <svarbanov@mm-sol.com> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Boris BREZILLON 提交于
dma_mask and dma_parms are already inherited from the parent device but dma_coherent_mask was left uninitialized (set to zero thanks to kzalloc). Set sub-device coherent_dma_mask to its parent value to simplify sub-drivers making use of dma coherent helper functions (those drivers currently have to explicitly set the dma coherent mask using dma_set_coherent_mask function). Signed-off-by: NBoris BREZILLON <boris.brezillon@free-electrons.com> Acked-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Stanimir Varbanov 提交于
Document DT bindings used to describe the Qualcomm SPMI PMICs. Signed-off-by: NStanimir Varbanov <svarbanov@mm-sol.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Josh Cartwright 提交于
The Qualcomm SPMI PMIC chips are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI regmap for children devices described in device tree. Signed-off-by: NJosh Cartwright <joshc@codeaurora.org> Signed-off-by: NStanimir Varbanov <svarbanov@mm-sol.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Stanimir Varbanov 提交于
The rtc driver now supports PM8941 PMIC device, reflect this in the binding document. Signed-off-by: NStanimir Varbanov <svarbanov@mm-sol.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Maxime Ripard 提交于
Now that the regulator code get its parent supplies purely from the DT, we can drop the parent supplies resources in the MFD driver. Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Nishanth Menon 提交于
ti,system-power-controller is more or less the standard way of indicating that the PMIC is the system wide power controller and hence may be used to switch off the system. Almost ALL TI PMIC drivers and many Maxim PMIC drivers follow the same style. So support 'ti,system-power-controller' in addition to the usual 'ti,use_poweroff' to indicate that the PMIC instance has control for switching off the system. Signed-off-by: NNishanth Menon <nm@ti.com> Acked-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Nishanth Menon 提交于
ti,system-power-controller is more or less the standard way of indicating that the PMIC is the system wide power controller and hence may be used to switch off the system. Almost ALL TI PMIC drivers and many Maxim PMIC drivers follow the same style. So support 'ti,system-power-controller' in addition to the usual 'ti,use_poweroff' to indicate that the PMIC instance has control for switching off the system. Signed-off-by: NNishanth Menon <nm@ti.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Boris BREZILLON 提交于
The GPBR block provides a set of battery-backed registers that can be used to save data which need to be kept when the system is powered down and VDD-core is maintained by an external battery. A typical usage is the RTT block (when used as an RTC) which needs one of those registers to save the current time. Signed-off-by: NBoris BREZILLON <boris.brezillon@free-electrons.com> Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com> Acked-by: NJohan Hovold <johan@kernel.org> Acked-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Doug Anderson 提交于
Let's define the voltatile registers (those that can't be cached) and enable caching. The rk808 is accessed almost constantly with cpufreq so this is really nice. As measured by ftrace: before this change: cpu0_set_target() => ~2200us after this change: cpu0_set_target() => ~500us Signed-off-by: NDoug Anderson <dianders@chromium.org> Reviewed-by: NChris Zhong <zyw@rock-chips.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Charles Keepax 提交于
We use a dummy IRQ chip to dispatch interrupts to the two seperate IRQ domains on the Arizona devices. This is just a simple software IRQ chip and thus the current handle_edge_irq is unnecessary for its needs. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Krzysztof Kozlowski 提交于
The max14577 MFD cells do not have any resources so the IRQ domain passed to mfd_add_devices is not used. Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Sean Cross 提交于
STMPE now supports using a GPIO as an IRQ source. Document the device tree binding for this option. Signed-off-by: NSean Cross <xobs@kosagi.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Sean Cross 提交于
The stmpe_platform_data has a irq_over_gpio field, which allows the system to read STMPE events whenever an IRQ occurs on a GPIO pin. This patch adds the ability to configure this field and to use a GPIO as an IRQ source for boards configuring the STMPE in device tree. Signed-off-by: NSean Cross <xobs@kosagi.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Jaewon Kim 提交于
This patch fix warning message with CONFIG_PM_SLEEP disabled If CONFIG_PM_SLEEP is not enabled we receive the following warning message: drivers/mfd/intel_soc_pmic_core.c:118:12: warning: 'intel_soc_pmic_suspend' defined but not used Signed-off-by: NJaewon Kim <jaewon02.kim@samsung.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Chris Ball 提交于
pci_enable_msi() can return failure with both positive and negative integers -- it returns 0 for success -- but is only tested here for "if (ret < 0)". This causes us to try to use MSI on the RTS5249 SD reader in the Dell XPS 11 when enabling MSI failed, causing: [ 1.737110] rtsx_pci: probe of 0000:05:00.0 failed with error -110 Cc: stable <stable@vger.kernel.org> Reported-by: ND. Jared Dominguez <Jared_Dominguez@Dell.com> Tested-by: ND. Jared Dominguez <Jared_Dominguez@Dell.com> Signed-off-by: NChris Ball <chris@printf.net> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
In the resume path, the ADC invokes am335x_tsc_se_set_cache() with 0 as the steps argument if continous mode is not in use. This in turn disables all steps and so the TSC is not working until one ADC sampling is performed. This patch fixes it by writing the current cached mask instead of the passed steps. Fixes: 7ca6740c ("mfd: input: iio: ti_amm335x: Rework TSC/ADCA synchronization") Cc: stable@vger.kernel.org # v3.13+ Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Mark Brown 提交于
Allow regmap to provide debugfs access to the register map by telling it what registers are valid. Signed-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Markus Pargmann 提交于
Setup the PMIC to make a restart when a watchdog interrupt occures. If this is not configured, the PMIC will shut down the power supply without a restart. Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Andy Shevchenko 提交于
When dump a content of the registers let's use snprintf() directly with %*ph specifier. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Guodong Xu 提交于
This adds driver to support HiSilicon Hi6421 PMIC. Hi6421 includes multi- functions, such as regulators, codec, ADCs, Coulomb counter, etc. This driver includes core APIs _only_. Drivers for individul components, like voltage regulators, are implemented in corresponding driver directories and files. Registers in Hi6421 are memory mapped, so using regmap-mmio API. Signed-off-by: NGuodong Xu <guodong.xu@linaro.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Guodong Xu 提交于
Add documentation for HiSilicon Hi6421 PMIC DT binding. Signed-off-by: NGuodong Xu <guodong.xu@linaro.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Andy Shevchenko 提交于
This patch removes FSF address because it can be changed. While here, update the copyright lines by adding Intel Corp. to them. There is no functional change. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Andy Shevchenko 提交于
Intel Quark X1000 SoC supports IRQ based GPIO. This patch will enable MFD support for Quark X1000 and provide IRQ resources to Quark X1000 GPIO device driver. Signed-off-by: NChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Tested-by: NChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Josef Ahmad 提交于
This patch adds the PCI id for Intel Quark ILB. It will be used for GPIO and Multifunction device driver. Signed-off-by: NJosef Ahmad <josef.ahmad@intel.com> Acked-by: NBjorn Helgaas <bhelgaas@google.com> Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Andy Shevchenko 提交于
This patch refactors the driver to use helper functions instead of copy'n'pasted pieces of code. It also introduces an additional struct to hold a chipset info. The chipset info will be used to store features that are supported by specific processor or chipset. LPC_SCH supports SMBUS, GPIO and WDT features. As this code base might expand further to support more processors, this implementation will help to keep code base clean and manageable. The patch is partially based on the work done by Chang Rebecca Swee Fun. Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: NChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Chris Zhong 提交于
The RK808 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clkout The RK808 core driver is registered as a platform driver and provides communication through I2C with the host device for the different components. Signed-off-by: NChris Zhong <zyw@rock-chips.com> Signed-off-by: NZhang Qing <zhangqing@rock-chips.com> Tested-by: NHeiko <heiko@sntech.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Chris Zhong 提交于
Add device tree bindings documentation and a header file for rockchip's RK808 pmic. Signed-off-by: NDoug Anderson <dianders@chromium.org> Signed-off-by: NChris Zhong <zyw@rock-chips.com> Signed-off-by: NZhang Qing <zhangqing@rock-chips.com> Tested-by: NHeiko <heiko@sntech.de> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Axel Lin 提交于
Current code init regmap with &da9052_regmap_config for both da9052-spi and da9052-i2c drivers. da9052-spi sets the read_flag_mask. The same setting may be applied for da9052-i2c if da9052-spi driver is loaded first because they actually use the same regmap_config setting. Fix this issue by using a local variable for regmap_config in da9052-spi driver, so the settings in spi driver won't impact the settings in i2c driver. Also makes da9052_regmap_config const to avoid similar issue. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Acked-by: NAdam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Charles Keepax 提交于
If one of the internal Arizona IRQs is set as a wake source this needs to be propogated back to the actual IRQ line that the Arizona device is attached to. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Inha Song 提交于
This patch update DT binding to support INn_MODE init_data. Each input signal path can be configurated either as a Analogue or Digital using the INn_MODE registers. Signed-off-by: NInha Song <ideal.song@samsung.com> Reviewed-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Inha Song 提交于
Some boards need to set the INn_MODE[1:0] register to change the input signal patch. This wlf,inmode property is optional. If present, values must be specified less than or equal to the number of input singals. If values less than the number of input signals, elements that has not been specifed are set to 0 by default. Example: - wlf,inmode = <2 0 2>; /* IN1, IN3 use DMIC */ Signed-off-by: NInha Song <ideal.song@samsung.com> Reviewed-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Charles Keepax 提交于
Some arizona devices have a second asynchronous sample rate, add the registers necessary to support this. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: NMark Brown <broonie@linaro.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-