Skip to content

Commit bc91453

Browse files
committed
Merge tag 'mfd-for-linus-4.4' of 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 ...
2 parents 54727e6 + 271bb17 commit bc91453

74 files changed

Lines changed: 2531 additions & 410 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/acpi/enumeration.txt‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,18 @@ For the first case, the MFD drivers do not need to do anything. The
347347
resulting child platform device will have its ACPI_COMPANION() set to point
348348
to the parent device.
349349

350-
If the ACPI namespace has a device that we can match using an ACPI id,
351-
the id should be set like:
350+
If the ACPI namespace has a device that we can match using an ACPI id or ACPI
351+
adr, the cell should be set like:
352+
353+
static struct mfd_cell_acpi_match my_subdevice_cell_acpi_match = {
354+
.pnpid = "XYZ0001",
355+
.adr = 0,
356+
};
352357

353358
static struct mfd_cell my_subdevice_cell = {
354359
.name = "my_subdevice",
355360
/* set the resources relative to the parent */
356-
.acpi_pnpid = "XYZ0001",
361+
.acpi_match = &my_subdevice_cell_acpi_match,
357362
};
358363

359364
The ACPI id "XYZ0001" is then used to lookup an ACPI device directly under
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Cirrus Logic Arizona class audio SoCs
2+
3+
These devices are audio SoCs with extensive digital capabilities and a range
4+
of analogue I/O.
5+
6+
This document lists Extcon specific bindings, see the primary binding document:
7+
../mfd/arizona.txt
8+
9+
Optional properties:
10+
11+
- wlf,hpdet-channel : Headphone detection channel.
12+
ARIZONA_ACCDET_MODE_HPL or 1 - Headphone detect mode is set to HPDETL
13+
ARIZONA_ACCDET_MODE_HPR or 2 - Headphone detect mode is set to HPDETR
14+
If this node is not mentioned or if the value is unknown, then
15+
headphone detection mode is set to HPDETL.

‎Documentation/devicetree/bindings/mfd/arizona.txt‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Required properties:
4444
Optional properties:
4545

4646
- wlf,reset : GPIO specifier for the GPIO controlling /RESET
47-
- wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA
4847

4948
- wlf,gpio-defaults : A list of GPIO configuration register values. Defines
5049
for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
@@ -67,21 +66,13 @@ Optional properties:
6766
present, the number of values should be less than or equal to the
6867
number of inputs, unspecified inputs will use the chip default.
6968

70-
- wlf,hpdet-channel : Headphone detection channel.
71-
ARIZONA_ACCDET_MODE_HPL or 1 - Headphone detect mode is set to HPDETL
72-
ARIZONA_ACCDET_MODE_HPR or 2 - Headphone detect mode is set to HPDETR
73-
If this node is not mentioned or if the value is unknown, then
74-
headphone detection mode is set to HPDETL.
75-
7669
- DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
7770
they are being externally supplied. As covered in
7871
Documentation/devicetree/bindings/regulator/regulator.txt
7972

80-
Optional subnodes:
81-
- ldo1 : Initial data for the LDO1 regulator, as covered in
82-
Documentation/devicetree/bindings/regulator/regulator.txt
83-
- micvdd : Initial data for the MICVDD regulator, as covered in
84-
Documentation/devicetree/bindings/regulator/regulator.txt
73+
Also see child specific device properties:
74+
Regulator - ../regulator/arizona-regulator.txt
75+
Extcon - ../extcon/extcon-arizona.txt
8576

8677
Example:
8778

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
* Device tree bindings for Atmel Flexcom (Flexible Serial Communication Unit)
2+
3+
The Atmel Flexcom is just a wrapper which embeds a SPI controller, an I2C
4+
controller and an USART. Only one function can be used at a time and is chosen
5+
at boot time according to the device tree.
6+
7+
Required properties:
8+
- compatible: Should be "atmel,sama5d2-flexcom"
9+
- reg: Should be the offset/length value for Flexcom dedicated
10+
I/O registers (without USART, TWI or SPI registers).
11+
- clocks: Should be the Flexcom peripheral clock from PMC.
12+
- #address-cells: Should be <1>
13+
- #size-cells: Should be <1>
14+
- ranges: Should be one range for the full I/O register region
15+
(including USART, TWI and SPI registers).
16+
- atmel,flexcom-mode: Should be one of the following values:
17+
- <1> for USART
18+
- <2> for SPI
19+
- <3> for I2C
20+
21+
Required child:
22+
A single available child device of type matching the "atmel,flexcom-mode"
23+
property.
24+
25+
The phandle provided by the clocks property of the child is the same as one for
26+
the Flexcom parent.
27+
28+
For other properties, please refer to the documentations of the respective
29+
device:
30+
- ../serial/atmel-usart.txt
31+
- ../spi/spi_atmel.txt
32+
- ../i2c/i2c-at91.txt
33+
34+
Example:
35+
36+
flexcom@f8034000 {
37+
compatible = "atmel,sama5d2-flexcom";
38+
reg = <0xf8034000 0x200>;
39+
clocks = <&flx0_clk>;
40+
#address-cells = <1>;
41+
#size-cells = <1>;
42+
ranges = <0x0 0xf8034000 0x800>;
43+
atmel,flexcom-mode = <2>;
44+
45+
spi@400 {
46+
compatible = "atmel,at91rm9200-spi";
47+
reg = <0x400 0x200>;
48+
interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
49+
pinctrl-names = "default";
50+
pinctrl-0 = <&pinctrl_flx0_default>;
51+
#address-cells = <1>;
52+
#size-cells = <0>;
53+
clocks = <&flx0_clk>;
54+
clock-names = "spi_clk";
55+
atmel,fifo-size = <32>;
56+
57+
mtd_dataflash@0 {
58+
compatible = "atmel,at25f512b";
59+
reg = <0>;
60+
spi-max-frequency = <20000000>;
61+
};
62+
};
63+
};

‎Documentation/devicetree/bindings/mfd/cros-ec.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Required properties (LPC):
3434
- compatible: "google,cros-ec-lpc"
3535
- reg: List of (IO address, size) pairs defining the interface uses
3636

37+
Optional properties (all):
38+
- google,has-vbc-nvram: Some implementations of the EC include a small
39+
nvram space used to store verified boot context data. This boolean flag
40+
is used to specify whether this nvram is present or not.
3741

3842
Example for I2C:
3943

‎Documentation/devicetree/bindings/mfd/da9150.txt‎

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Device Description
66
------ -----------
77
da9150-gpadc : General Purpose ADC
88
da9150-charger : Battery Charger
9+
da9150-fg : Battery Fuel-Gauge
910

1011
======
1112

@@ -16,13 +17,13 @@ Required properties:
1617
the IRQs from da9150 are delivered to.
1718
- interrupts: IRQ line info for da9150 chip.
1819
- interrupt-controller: da9150 has internal IRQs (own IRQ domain).
19-
(See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
20+
(See ../interrupt-controller/interrupts.txt for
2021
further information relating to interrupt properties)
2122

2223
Sub-devices:
23-
- da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt
24-
- da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt
25-
24+
- da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
25+
- da9150-charger: See ../power/da9150-charger.txt
26+
- da9150-fg: See ../power/da9150-fg.txt
2627

2728
Example:
2829

@@ -34,10 +35,28 @@ Example:
3435
interrupt-controller;
3536

3637
gpadc: da9150-gpadc {
37-
...
38+
compatible = "dlg,da9150-gpadc";
39+
#io-channel-cells = <1>;
40+
};
41+
42+
charger {
43+
compatible = "dlg,da9150-charger";
44+
45+
io-channels = <&gpadc 0>,
46+
<&gpadc 2>,
47+
<&gpadc 8>,
48+
<&gpadc 5>;
49+
io-channel-names = "CHAN_IBUS",
50+
"CHAN_VBUS",
51+
"CHAN_TJUNC",
52+
"CHAN_VBAT";
3853
};
3954

40-
da9150-charger {
41-
...
55+
fuel-gauge {
56+
compatible = "dlg,da9150-fuel-gauge";
57+
58+
dlg,update-interval = <10000>;
59+
dlg,warn-soc-level = /bits/ 8 <15>;
60+
dlg,crit-soc-level = /bits/ 8 <5>
4261
};
4362
};

‎Documentation/devicetree/bindings/mfd/s2mps11.txt‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11

2-
* Samsung S2MPS11, S2MPS13, S2MPS14 and S2MPU02 Voltage and Current Regulator
2+
* Samsung S2MPS11/13/14/15 and S2MPU02 Voltage and Current Regulator
33

44
The Samsung S2MPS11 is a multi-function device which includes voltage and
55
current regulators, RTC, charger controller and other sub-blocks. It is
66
interfaced to the host controller using an I2C interface. Each sub-block is
77
addressed by the host system using different I2C slave addresses.
88

99
Required properties:
10-
- compatible: Should be "samsung,s2mps11-pmic" or "samsung,s2mps13-pmic"
11-
or "samsung,s2mps14-pmic" or "samsung,s2mpu02-pmic".
10+
- compatible: Should be one of the following
11+
- "samsung,s2mps11-pmic"
12+
- "samsung,s2mps13-pmic"
13+
- "samsung,s2mps14-pmic"
14+
- "samsung,s2mps15-pmic"
15+
- "samsung,s2mpu02-pmic".
1216
- reg: Specifies the I2C slave address of the pmic block. It should be 0x66.
1317

1418
Optional properties:
1519
- interrupt-parent: Specifies the phandle of the interrupt controller to which
1620
the interrupts from s2mps11 are delivered to.
1721
- interrupts: Interrupt specifiers for interrupt sources.
22+
- samsung,s2mps11-wrstbi-ground: Indicates that WRSTBI pin of PMIC is pulled
23+
down. When the system is suspended it will always go down thus triggerring
24+
unwanted buck warm reset (setting buck voltages to default values).
1825

1926
Optional nodes:
20-
- clocks: s2mps11, s2mps13 and s5m8767 provide three(AP/CP/BT) buffered 32.768
27+
- clocks: s2mps11, s2mps13, s2mps15 and s5m8767 provide three(AP/CP/BT) buffered 32.768
2128
KHz outputs, so to register these as clocks with common clock framework
2229
instantiate a sub-node named "clocks". It uses the common clock binding
2330
documented in :
@@ -30,12 +37,13 @@ Optional nodes:
3037
the clock which they consume.
3138
Clock ID Devices
3239
----------------------------------------------------------
33-
32KhzAP 0 S2MPS11, S2MPS13, S2MPS14, S5M8767
34-
32KhzCP 1 S2MPS11, S2MPS13, S5M8767
35-
32KhzBT 2 S2MPS11, S2MPS13, S2MPS14, S5M8767
40+
32KhzAP 0 S2MPS11, S2MPS13, S2MPS14, S2MPS15, S5M8767
41+
32KhzCP 1 S2MPS11, S2MPS13, S2MPS15, S5M8767
42+
32KhzBT 2 S2MPS11, S2MPS13, S2MPS14, S2MPS15, S5M8767
3643

3744
- compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps13-clk",
3845
"samsung,s2mps14-clk", "samsung,s5m8767-clk"
46+
The s2msp15 uses the same compatible as s2mps13, as both provides similar clocks.
3947

4048
- regulators: The regulators of s2mps11 that have to be instantiated should be
4149
included in a sub-node named 'regulators'. Regulator nodes included in this
@@ -83,13 +91,15 @@ as per the datasheet of s2mps11.
8391
- S2MPS11: 1 to 38
8492
- S2MPS13: 1 to 40
8593
- S2MPS14: 1 to 25
94+
- S2MPS15: 1 to 27
8695
- S2MPU02: 1 to 28
8796
- Example: LDO1, LDO2, LDO28
8897
- BUCKn
8998
- valid values for n are:
9099
- S2MPS11: 1 to 10
91100
- S2MPS13: 1 to 10
92101
- S2MPS14: 1 to 5
102+
- S2MPS15: 1 to 10
93103
- S2MPU02: 1 to 7
94104
- Example: BUCK1, BUCK2, BUCK9
95105

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Dialog Semiconductor DA9150 Fuel-Gauge Power Supply bindings
2+
3+
Required properties:
4+
- compatible: "dlg,da9150-fuel-gauge" for DA9150 Fuel-Gauge Power Supply
5+
6+
Optional properties:
7+
- dlg,update-interval: Interval time (milliseconds) between battery level checks.
8+
- dlg,warn-soc-level: Battery discharge level (%) where warning event raised.
9+
[1 - 100]
10+
- dlg,crit-soc-level: Battery discharge level (%) where critical event raised.
11+
This value should be lower than the warning level.
12+
[1 - 100]
13+
14+
15+
Example:
16+
17+
fuel-gauge {
18+
compatible = "dlg,da9150-fuel-gauge";
19+
20+
dlg,update-interval = <10000>;
21+
dlg,warn-soc-level = /bits/ 8 <15>;
22+
dlg,crit-soc-level = /bits/ 8 <5>;
23+
};

‎MAINTAINERS‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7162,7 +7162,6 @@ F: drivers/media/i2c/mt9v032.c
71627162
F: include/media/mt9v032.h
71637163

71647164
MULTIFUNCTION DEVICES (MFD)
7165-
M: Samuel Ortiz <sameo@linux.intel.com>
71667165
M: Lee Jones <lee.jones@linaro.org>
71677166
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
71687167
S: Supported
@@ -11567,6 +11566,9 @@ T: git https://github.com/CirrusLogic/linux-drivers.git
1156711566
W: https://github.com/CirrusLogic/linux-drivers/wiki
1156811567
S: Supported
1156911568
F: Documentation/hwmon/wm83??
11569+
F: Documentation/devicetree/bindings/extcon/extcon-arizona.txt
11570+
F: Documentation/devicetree/bindings/regulator/arizona-regulator.txt
11571+
F: Documentation/devicetree/bindings/mfd/arizona.txt
1157011572
F: arch/arm/mach-s3c64xx/mach-crag6410*
1157111573
F: drivers/clk/clk-wm83*.c
1157211574
F: drivers/extcon/extcon-arizona.c

‎drivers/mfd/88pm80x.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ static struct pm80x_chip_mapping chip_mapping[] = {
3333
{0x3, CHIP_PM800},
3434
/* 88PM805 chip id number */
3535
{0x0, CHIP_PM805},
36+
/* 88PM860 chip id number */
37+
{0x4, CHIP_PM860},
3638
};
3739

3840
/*

0 commit comments

Comments
 (0)