Skip to content

Commit ebcf5bb

Browse files
committed
Merge tag 'mfd-next-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
Pull MFD updates from Lee Jones: "Core Framework: - Document (kerneldoc) core mfd_add_devices() API New Drivers: - Altera SOCFPGA System Manager - Maxim MAX77650/77651 PMIC - Maxim MAX77663 PMIC - ST Multi-Function eXpander (STMFX) New Device Support: - LEDs support in Intel Cherry Trail Whiskey Cove PMIC - RTC support in SAMSUNG Electronics S2MPA01 PMIC - SAM9X60 support in Atmel HLCDC (High-end LCD Controller) - USB X-Powers AXP 8xx PMICs - Integrated Sensor Hub (ISH) in ChromeOS EC - USB PD Logger in ChromeOS EC - AXP223 in X-Powers AXP series PMICs - Power Supply in X-Powers AXP 803 PMICs - Comet Lake in Intel Low Power Subsystem - Fingerprint MCU in ChromeOS EC - Touchpad MCU in ChromeOS EC - Move TI LM3532 support to LED New Functionality: - max77650, max77620: Add/extend DT support - max77620 power-off - syscon clocking - croc_ec host sleep event Fix-ups: - Trivial; Formatting, spelling, etc; Kconfig, sec-core, ab8500-debugfs - Remove unused functionality; rk808, da9063-* - SPDX conversion; da9063-*, atmel-*, - Adapt/add new register definitions; cs47l35-tables, cs47l90-tables, imx6q-iomuxc-gpr - Fix-up DT bindings; ti-lmu, cirrus,lochnagar - Simply obtaining driver data; ssbi, t7l66xb, tc6387xb, tc6393xb Bug Fixes: - Fix incorrect defined values; max77620, da9063 - Fix device initialisation; twl6040 - Reset device on init; intel-lpss - Fix build warnings when !OF; sun6i-prcm - Register OF match tables; tps65912-spi - Fix DMI matching; intel_quark_i2c_gpio" * tag 'mfd-next-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (65 commits) mfd: Use dev_get_drvdata() directly mfd: cros_ec: Instantiate properly CrOS Touchpad MCU device mfd: cros_ec: Instantiate properly CrOS FP MCU device mfd: cros_ec: Update the EC feature codes mfd: intel-lpss: Add Intel Comet Lake PCI IDs mfd: lochnagar: Add links to binding docs for sound and hwmon mfd: ab8500-debugfs: Fix a typo ("deubgfs") mfd: imx6sx: Add MQS register definition for iomuxc gpr dt-bindings: mfd: LMU: Fix lm3632 dt binding example mfd: intel_quark_i2c_gpio: Adjust IOT2000 matching mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L mfd: tps65912-spi: Add missing of table registration mfd: axp20x: Add USB power supply mfd cell to AXP803 mfd: sun6i-prcm: Fix build warning for non-OF configurations mfd: intel-lpss: Set the device in reset state when init platform/chrome: Add support for v1 of host sleep event mfd: cros_ec: Add host_sleep_event_v1 command mfd: cros_ec: Instantiate the CrOS USB PD logger driver mfd: cs47l90: Make DAC_AEC_CONTROL_2 readable mfd: cs47l35: Make DAC_AEC_CONTROL_2 readable ...
2 parents 414147d + ed83513 commit ebcf5bb

79 files changed

Lines changed: 3745 additions & 219 deletions

Some content is hidden

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

‎Documentation/devicetree/bindings/arm/altera/socfpga-system.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ Example:
1111
reg = <0xffd08000 0x1000>;
1212
cpu1-start-addr = <0xffd080c4>;
1313
};
14+
15+
ARM64 - Stratix10
16+
Required properties:
17+
- compatible : "altr,sys-mgr-s10"
18+
- reg : Should contain 1 register range(address and length)
19+
for system manager register.
20+
21+
Example:
22+
sysmgr@ffd12000 {
23+
compatible = "altr,sys-mgr-s10";
24+
reg = <0xffd12000 0x228>;
25+
};

‎Documentation/devicetree/bindings/arm/stm32/stm32-syscon.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ Properties:
55
- " st,stm32mp157-syscfg " - for stm32mp157 based SoCs,
66
second value must be always "syscon".
77
- reg : offset and length of the register set.
8+
- clocks: phandle to the syscfg clock
89

910
Example:
1011
syscfg: syscon@50020000 {
1112
compatible = "st,stm32mp157-syscfg", "syscon";
1213
reg = <0x50020000 0x400>;
14+
clocks = <&rcc SYSCFG>;
1315
};
1416

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Onkey driver for MAX77650 PMIC from Maxim Integrated.
2+
3+
This module is part of the MAX77650 MFD device. For more details
4+
see Documentation/devicetree/bindings/mfd/max77650.txt.
5+
6+
The onkey controller is represented as a sub-node of the PMIC node on
7+
the device tree.
8+
9+
Required properties:
10+
--------------------
11+
- compatible: Must be "maxim,max77650-onkey".
12+
13+
Optional properties:
14+
- linux,code: The key-code to be reported when the key is pressed.
15+
Defaults to KEY_POWER.
16+
- maxim,onkey-slide: The system's button is a slide switch, not the default
17+
push button.
18+
19+
Example:
20+
--------
21+
22+
onkey {
23+
compatible = "maxim,max77650-onkey";
24+
linux,code = <KEY_END>;
25+
maxim,onkey-slide;
26+
};
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
LED driver for MAX77650 PMIC from Maxim Integrated.
2+
3+
This module is part of the MAX77650 MFD device. For more details
4+
see Documentation/devicetree/bindings/mfd/max77650.txt.
5+
6+
The LED controller is represented as a sub-node of the PMIC node on
7+
the device tree.
8+
9+
This device has three current sinks.
10+
11+
Required properties:
12+
--------------------
13+
- compatible: Must be "maxim,max77650-led"
14+
- #address-cells: Must be <1>.
15+
- #size-cells: Must be <0>.
16+
17+
Each LED is represented as a sub-node of the LED-controller node. Up to
18+
three sub-nodes can be defined.
19+
20+
Required properties of the sub-node:
21+
------------------------------------
22+
23+
- reg: Must be <0>, <1> or <2>.
24+
25+
Optional properties of the sub-node:
26+
------------------------------------
27+
28+
- label: See Documentation/devicetree/bindings/leds/common.txt
29+
- linux,default-trigger: See Documentation/devicetree/bindings/leds/common.txt
30+
31+
For more details, please refer to the generic GPIO DT binding document
32+
<devicetree/bindings/gpio/gpio.txt>.
33+
34+
Example:
35+
--------
36+
37+
leds {
38+
compatible = "maxim,max77650-led";
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
led@0 {
43+
reg = <0>;
44+
label = "blue:usr0";
45+
};
46+
47+
led@1 {
48+
reg = <1>;
49+
label = "red:usr1";
50+
linux,default-trigger = "heartbeat";
51+
};
52+
53+
led@2 {
54+
reg = <2>;
55+
label = "green:usr2";
56+
};
57+
};

‎Documentation/devicetree/bindings/mfd/atmel-hlcdc.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Required properties:
77
"atmel,sama5d2-hlcdc"
88
"atmel,sama5d3-hlcdc"
99
"atmel,sama5d4-hlcdc"
10+
"microchip,sam9x60-hlcdc"
1011
- reg: base address and size of the HLCDC device registers.
1112
- clock-names: the name of the 3 clocks requested by the HLCDC device.
1213
Should contain "periph_clk", "sys_clk" and "slow_clk".

‎Documentation/devicetree/bindings/mfd/cirrus,lochnagar.txt‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ And these documents for the required sub-node binding details:
1919
[4] Clock: ../clock/cirrus,lochnagar.txt
2020
[5] Pinctrl: ../pinctrl/cirrus,lochnagar.txt
2121
[6] Regulator: ../regulator/cirrus,lochnagar.txt
22+
[7] Sound: ../sound/cirrus,lochnagar.txt
23+
[8] Hardware Monitor: ../hwmon/cirrus,lochnagar.txt
2224

2325
Required properties:
2426

@@ -41,6 +43,11 @@ Optional sub-nodes:
4143
- Bindings for the regulator components, see [6]. Only available on
4244
Lochnagar 2.
4345

46+
- lochnagar-sc : Binding for the sound card components, see [7].
47+
Only available on Lochnagar 2.
48+
- lochnagar-hwmon : Binding for the hardware monitor components, see [8].
49+
Only available on Lochnagar 2.
50+
4451
Optional properties:
4552

4653
- present-gpios : Host present line, indicating the presence of a
@@ -65,4 +72,14 @@ lochnagar: lochnagar@22 {
6572
compatible = "cirrus,lochnagar-pinctrl";
6673
...
6774
};
75+
76+
lochnagar-sc {
77+
compatible = "cirrus,lochnagar2-soundcard";
78+
...
79+
};
80+
81+
lochnagar-hwmon {
82+
compatible = "cirrus,lochnagar2-hwmon";
83+
...
84+
};
6885
};

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Required properties:
44
-------------------
55
- compatible: Must be one of
66
"maxim,max77620"
7-
"maxim,max20024".
7+
"maxim,max20024"
8+
"maxim,max77663"
89
- reg: I2C device address.
910

1011
Optional properties:
@@ -17,6 +18,11 @@ Optional properties:
1718
IRQ numbers for different interrupt source of MAX77620
1819
are defined at dt-bindings/mfd/max77620.h.
1920

21+
- system-power-controller: Indicates that this PMIC is controlling the
22+
system power, see [1] for more details.
23+
24+
[1] Documentation/devicetree/bindings/power/power-controller.txt
25+
2026
Optional subnodes and their properties:
2127
=======================================
2228

@@ -105,6 +111,7 @@ Optional properties:
105111
Here supported time periods by device in microseconds are as follows:
106112
MAX77620 supports 40, 80, 160, 320, 640, 1280, 2560 and 5120 microseconds.
107113
MAX20024 supports 20, 40, 80, 160, 320, 640, 1280 and 2540 microseconds.
114+
MAX77663 supports 20, 40, 80, 160, 320, 640, 1280 and 2540 microseconds.
108115

109116
-maxim,power-ok-control: configure map power ok bit
110117
1: Enables POK(Power OK) to control nRST_IO and GPIO1
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
MAX77650 ultra low-power PMIC from Maxim Integrated.
2+
3+
Required properties:
4+
-------------------
5+
- compatible: Must be "maxim,max77650"
6+
- reg: I2C device address.
7+
- interrupts: The interrupt on the parent the controller is
8+
connected to.
9+
- interrupt-controller: Marks the device node as an interrupt controller.
10+
- #interrupt-cells: Must be <2>.
11+
12+
- gpio-controller: Marks the device node as a gpio controller.
13+
- #gpio-cells: Must be <2>. The first cell is the pin number and
14+
the second cell is used to specify the gpio active
15+
state.
16+
17+
Optional properties:
18+
--------------------
19+
gpio-line-names: Single string containing the name of the GPIO line.
20+
21+
The GPIO-controller module is represented as part of the top-level PMIC
22+
node. The device exposes a single GPIO line.
23+
24+
For device-tree bindings of other sub-modules (regulator, power supply,
25+
LEDs and onkey) refer to the binding documents under the respective
26+
sub-system directories.
27+
28+
For more details on GPIO bindings, please refer to the generic GPIO DT
29+
binding document <devicetree/bindings/gpio/gpio.txt>.
30+
31+
Example:
32+
--------
33+
34+
pmic@48 {
35+
compatible = "maxim,max77650";
36+
reg = <0x48>;
37+
38+
interrupt-controller;
39+
interrupt-parent = <&gpio2>;
40+
#interrupt-cells = <2>;
41+
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
42+
43+
gpio-controller;
44+
#gpio-cells = <2>;
45+
gpio-line-names = "max77650-charger";
46+
};
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
STMicroelectonics Multi-Function eXpander (STMFX) Core bindings
2+
3+
ST Multi-Function eXpander (STMFX) is a slave controller using I2C for
4+
communication with the main MCU. Its main features are GPIO expansion, main
5+
MCU IDD measurement (IDD is the amount of current that flows through VDD) and
6+
resistive touchscreen controller.
7+
8+
Required properties:
9+
- compatible: should be "st,stmfx-0300".
10+
- reg: I2C slave address of the device.
11+
- interrupts: interrupt specifier triggered by MFX_IRQ_OUT signal.
12+
Please refer to ../interrupt-controller/interrupt.txt
13+
14+
Optional properties:
15+
- drive-open-drain: configure MFX_IRQ_OUT as open drain.
16+
- vdd-supply: phandle of the regulator supplying STMFX.
17+
18+
Example:
19+
20+
stmfx: stmfx@42 {
21+
compatible = "st,stmfx-0300";
22+
reg = <0x42>;
23+
interrupts = <8 IRQ_TYPE_EDGE_RISING>;
24+
interrupt-parent = <&gpioi>;
25+
vdd-supply = <&v3v3>;
26+
};
27+
28+
Please refer to ../pinctrl/pinctrl-stmfx.txt for STMFX GPIO expander function bindings.

‎Documentation/devicetree/bindings/mfd/ti-lmu.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ lm3632@11 {
104104
regulators {
105105
compatible = "ti,lm363x-regulator";
106106

107-
ti,lcm-en1-gpio = <&pioC 0 GPIO_ACTIVE_HIGH>; /* PC0 */
108-
ti,lcm-en2-gpio = <&pioC 1 GPIO_ACTIVE_HIGH>; /* PC1 */
107+
enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
108+
<&pioC 1 GPIO_ACTIVE_HIGH>;
109109

110110
vboost {
111111
regulator-name = "lcd_boost";

0 commit comments

Comments
 (0)