forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'mfd-for-linus-4.7' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/lee/mfd Pull MFD updates from Lee Jones: "New Drivers: - Add new driver for MAXIM MAX77620/MAX20024 PMIC - Add new driver for Hisilicon HI665X PMIC New Device Support: - Add support for AXP809 in axp20x-rsb - Add support for Power Supply in axp20x New core features: - devm_mfd_* managed resources Fix-ups: - Remove unused code (da9063-irq, wm8400-core, tps6105x, smsc-ece1099, twl4030-power) - Improve clean-up in error path (intel_quark_i2c_gpio) - Explicitly include headers (syscon.h) - Allow building as modules (max77693) - Use IS_ENABLED() instead of rolling your own (dm355evm_msp, wm8400-core) - DT adaptions (axp20x, hi655x, arizona, max77620) - Remove CLK_IS_ROOT flag (intel-lpss, intel_quark) - Move to gpiochip API (asic3, dm355evm_msp, htc-egpio, htc-i2cpld, sm501, tc6393xb, tps65010, ucb1x00, vexpress) - Make use of devm_mfd_* calls (act8945a, as3711, atmel-hlcdc, bcm590xx, hi6421-pmic-core, lp3943, menf21bmc, mt6397, rdc321x, rk808, rn5t618, rt5033, sky81452, stw481x, tps6507x, tps65217, wm8400) Bug Fixes" - Fix ACPI child matching (mfd-core) - Fix start-up ordering issues (mt6397-core, arizona-core) - Fix forgotten register state on resume (intel-lpss) - Fix Clock related issues (twl6040) - Fix scheduling whilst atomic (omap-usb-tll) - Kconfig changes (vexpress)" * tag 'mfd-for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (73 commits) mfd: hi655x: Add MFD driver for hi655x mfd: ab8500-debugfs: Trivial fix of spelling mistake on "between" mfd: vexpress: Add !ARCH_USES_GETTIMEOFFSET dependency mfd: Add device-tree binding doc for PMIC MAX77620/MAX20024 mfd: max77620: Add core driver for MAX77620/MAX20024 mfd: arizona: Add defines for GPSW values that can be used from DT mfd: omap-usb-tll: Fix scheduling while atomic BUG mfd: wm5110: ARIZONA_CLOCK_CONTROL should be volatile mfd: axp20x: Add a cell for the ac power_supply part of the axp20x PMICs mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly mfd: wl1273-core: Use devm_mfd_add_devices() for mfd_device registration mfd: tps65910: Use devm_mfd_add_devices and devm_regmap_add_irq_chip mfd: sec: Use devm_mfd_add_devices and devm_regmap_add_irq_chip mfd: rc5t583: Use devm_mfd_add_devices and devm_request_threaded_irq mfd: max77686: Use devm_mfd_add_devices and devm_regmap_add_irq_chip mfd: as3722: Use devm_mfd_add_devices and devm_regmap_add_irq_chip mfd: twl4030-power: Remove driver path in file comment MAINTAINERS: Add entry for X-Powers AXP family PMIC drivers mfd: smsc-ece1099: Remove unnecessarily remove callback mfd: Use IS_ENABLED(CONFIG_FOO) instead of checking FOO || FOO_MODULE ...
- Loading branch information
Showing
68 changed files
with
1,856 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Documentation/devicetree/bindings/mfd/hisilicon,hi655x.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Hisilicon Hi655x Power Management Integrated Circuit (PMIC) | ||
|
||
The hardware layout for access PMIC Hi655x from AP SoC Hi6220. | ||
Between PMIC Hi655x and Hi6220, the physical signal channel is SSI. | ||
We can use memory-mapped I/O to communicate. | ||
|
||
+----------------+ +-------------+ | ||
| | | | | ||
| Hi6220 | SSI bus | Hi655x | | ||
| |-------------| | | ||
| |(REGMAP_MMIO)| | | ||
+----------------+ +-------------+ | ||
|
||
Required properties: | ||
- compatible: Should be "hisilicon,hi655x-pmic". | ||
- reg: Base address of PMIC on Hi6220 SoC. | ||
- interrupt-controller: Hi655x has internal IRQs (has own IRQ domain). | ||
- pmic-gpios: The GPIO used by PMIC IRQ. | ||
|
||
Example: | ||
pmic: pmic@f8000000 { | ||
compatible = "hisilicon,hi655x-pmic"; | ||
reg = <0x0 0xf8000000 0x0 0x1000>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
pmic-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
MAX77620 Power management IC from Maxim Semiconductor. | ||
|
||
Required properties: | ||
------------------- | ||
- compatible: Must be one of | ||
"maxim,max77620" | ||
"maxim,max20024". | ||
- reg: I2C device address. | ||
|
||
Optional properties: | ||
------------------- | ||
- interrupts: The interrupt on the parent the controller is | ||
connected to. | ||
- interrupt-controller: Marks the device node as an interrupt controller. | ||
- #interrupt-cells: is <2> and their usage is compliant to the 2 cells | ||
variant of <../interrupt-controller/interrupts.txt> | ||
IRQ numbers for different interrupt source of MAX77620 | ||
are defined at dt-bindings/mfd/max77620.h. | ||
|
||
Optional subnodes and their properties: | ||
======================================= | ||
|
||
Flexible power sequence configurations: | ||
-------------------------------------- | ||
The Flexible Power Sequencer (FPS) allows each regulator to power up under | ||
hardware or software control. Additionally, each regulator can power on | ||
independently or among a group of other regulators with an adjustable power-up | ||
and power-down delays (sequencing). GPIO1, GPIO2, and GPIO3 can be programmed | ||
to be part of a sequence allowing external regulators to be sequenced along | ||
with internal regulators. 32KHz clock can be programmed to be part of a | ||
sequence. | ||
|
||
The flexible sequencing structure consists of two hardware enable inputs | ||
(EN0, EN1), and 3 master sequencing timers called FPS0, FPS1 and FPS2. | ||
Each master sequencing timer is programmable through its configuration | ||
register to have a hardware enable source (EN1 or EN2) or a software enable | ||
source (SW). When enabled/disabled, the master sequencing timer generates | ||
eight sequencing events on different time periods called slots. The time | ||
period between each event is programmable within the configuration register. | ||
Each regulator, GPIO1, GPIO2, GPIO3, and 32KHz clock has a flexible power | ||
sequence slave register which allows its enable source to be specified as | ||
a flexible power sequencer timer or a software bit. When a FPS source of | ||
regulators, GPIOs and clocks specifies the enable source to be a flexible | ||
power sequencer, the power up and power down delays can be specified in | ||
the regulators, GPIOs and clocks flexible power sequencer configuration | ||
registers. | ||
|
||
When FPS event cleared (set to LOW), regulators, GPIOs and 32KHz | ||
clock are set into following state at the sequencing event that | ||
corresponds to its flexible sequencer configuration register. | ||
Sleep state: In this state, regulators, GPIOs | ||
and 32KHz clock get disabled at | ||
the sequencing event. | ||
Global Low Power Mode (GLPM): In this state, regulators are set in | ||
low power mode at the sequencing event. | ||
|
||
The configuration parameters of FPS is provided through sub-node "fps" | ||
and their child for FPS specific. The child node name for FPS are "fps0", | ||
"fps1", and "fps2" for FPS0, FPS1 and FPS2 respectively. | ||
|
||
The FPS configurations like FPS source, power up and power down slots for | ||
regulators, GPIOs and 32kHz clocks are provided in their respective | ||
configuration nodes which is explained in respective sub-system DT | ||
binding document. | ||
|
||
There is need for different FPS configuration parameters based on system | ||
state like when system state changed from active to suspend or active to | ||
power off (shutdown). | ||
|
||
Optional properties: | ||
------------------- | ||
-maxim,fps-event-source: u32, FPS event source like external | ||
hardware input to PMIC i.e. EN0, EN1 or | ||
software (SW). | ||
The macros are defined on | ||
dt-bindings/mfd/max77620.h | ||
for different control source. | ||
- MAX77620_FPS_EVENT_SRC_EN0 | ||
for hardware input pin EN0. | ||
- MAX77620_FPS_EVENT_SRC_EN1 | ||
for hardware input pin EN1. | ||
- MAX77620_FPS_EVENT_SRC_SW | ||
for software control. | ||
|
||
-maxim,shutdown-fps-time-period-us: u32, FPS time period in microseconds | ||
when system enters in to shutdown | ||
state. | ||
|
||
-maxim,suspend-fps-time-period-us: u32, FPS time period in microseconds | ||
when system enters in to suspend state. | ||
|
||
-maxim,device-state-on-disabled-event: u32, describe the PMIC state when FPS | ||
event cleared (set to LOW) whether it | ||
should go to sleep state or low-power | ||
state. Following are valid values: | ||
- MAX77620_FPS_INACTIVE_STATE_SLEEP | ||
to set the PMIC state to sleep. | ||
- MAX77620_FPS_INACTIVE_STATE_LOW_POWER | ||
to set the PMIC state to low | ||
power. | ||
Absence of this property or other value | ||
will not change device state when FPS | ||
event get cleared. | ||
|
||
Here supported time periods by device in microseconds are as follows: | ||
MAX77620 supports 40, 80, 160, 320, 640, 1280, 2560 and 5120 microseconds. | ||
MAX20024 supports 20, 40, 80, 160, 320, 640, 1280 and 2540 microseconds. | ||
|
||
For DT binding details of different sub modules like GPIO, pincontrol, | ||
regulator, power, please refer respective device-tree binding document | ||
under their respective sub-system directories. | ||
|
||
Example: | ||
-------- | ||
#include <dt-bindings/mfd/max77620.h> | ||
|
||
max77620@3c { | ||
compatible = "maxim,max77620"; | ||
reg = <0x3c>; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <0 86 IRQ_TYPE_NONE>; | ||
|
||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
|
||
fps { | ||
fps0 { | ||
maxim,shutdown-fps-time-period-us = <1280>; | ||
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; | ||
}; | ||
|
||
fps1 { | ||
maxim,shutdown-fps-time-period-us = <1280>; | ||
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; | ||
}; | ||
|
||
fps2 { | ||
maxim,shutdown-fps-time-period-us = <1280>; | ||
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_SW>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12291,6 +12291,12 @@ F: include/linux/workqueue.h | |
F: kernel/workqueue.c | ||
F: Documentation/workqueue.txt | ||
|
||
X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS | ||
M: Chen-Yu Tsai <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
N: axp[128] | ||
|
||
X.25 NETWORK LAYER | ||
M: Andrew Hendry <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.