Skip to content

Commit e5744ab

Browse files
committed
Merge tag 'mfd-for-linus-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
Pull MFD updates from Lee Jones: "Changes to existing drivers: - Use of managed resources - omap, twl4030, ti_am335x_tscadc - Advanced error handling - omap - Rework clk management - omap - Device Tree (re-)work - tc3589x, pm8921, da9055, sec - IRC management overhaul and !BROKEN - pm8921 - Convert to regmap - ssbi, pm8921 - Use simple power-management ops - ucb1x00 - Include file clean-up - adp5520, cs5535, janz, lpc_ich, - lpc_sch, max14577, mcp-sa11x0, pcf50633-adc, rc5t583, rdc321x-southbridge, retu, smsc-ece1099, ti-ssp, ti_am335x_tscadc, tps65912, vexpress-config, wm8350, ywm8350 - Various bug fixes across the subsystem - NULL/invalid pointer dereference prevention - Resource leak mitigation, - Variable used initialised - Staticise various containers - Enforce return value checks New drivers/supported devices: - Add support for s2mps14 and s2mpa01 to sec - Add support for da9063 (v5) to da9063 - Add support for atom-c2000 to gpio-ich - Add support for come-{mbt10,cbt6,chl6} to kempld - Add support for da9053 to da9052 - Add support for itco-wdt (v3) and baytrail to lpc_ich - Add new drivers for tps65218, rtsx_usb, bcm590xx (Re-)moved drivers: - twl4030 ==> drivers/iio - ti-ssp ==> /dev/null" * tag 'mfd-for-linus-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (103 commits) mfd: wm5110: Correct default for HEADPHONE_DETECT_1 mfd: arizona: Correct small errors in the DT binding documentation mfd: arizona: Mark DSP clocking register as volatile mfd: devicetree: bindings: Add pm8xxx RTC description mfd: kempld-core: Fix potential hang-up during boot mfd: sec-core: Fix uninitialized 'regmap_rtc' on S2MPA01 mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail mfd: tps65910: Fix possible invalid pointer dereference on regmap_add_irq_chip fail mfd: sec-core: Fix I2C dummy device resource leak on probe failure mfd: sec-core: Add of_compatible strings for clock MFD cells mfd: Remove obsolete ti-ssp driver Documentation: mfd: s2mps11: Describe S5M8767 and S2MPS14 clocks mfd: bcm590xx: Fix type argument for module device table mfd: lpc_ich: Add support for Intel Bay Trail SoC mfd: lpc_ich: Add support for NM10 GPIO mfd: lpc_ich: Change Avoton to iTCO v3 watchdog: iTCO_wdt: Add support for v3 silicon mfd: lpc_ich: Add support for iTCO v3 mfd: lpc_ich: Remove lpc_ich_cfg struct use mfd: lpc_ich: Only configure watchdog or GPIO when present ...
2 parents c29aa15 + 2d28ca7 commit e5744ab

92 files changed

Lines changed: 3958 additions & 1588 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
* TWL4030 Monitoring Analog to Digital Converter (MADC)
2+
3+
The MADC subsystem in the TWL4030 consists of a 10-bit ADC
4+
combined with a 16-input analog multiplexer.
5+
6+
Required properties:
7+
- compatible: Should contain "ti,twl4030-madc".
8+
- interrupts: IRQ line for the MADC submodule.
9+
- #io-channel-cells: Should be set to <1>.
10+
11+
Optional properties:
12+
- ti,system-uses-second-madc-irq: boolean, set if the second madc irq register
13+
should be used, which is intended to be used
14+
by Co-Processors (e.g. a modem).
15+
16+
Example:
17+
18+
&twl {
19+
madc {
20+
compatible = "ti,twl4030-madc";
21+
interrupts = <3>;
22+
#io-channel-cells = <1>;
23+
};
24+
};

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ of analogue I/O.
55

66
Required properties:
77

8-
- compatible : one of the following chip-specific strings:
9-
"wlf,wm5102"
10-
"wlf,wm5110"
8+
- compatible : One of the following chip-specific strings:
9+
"wlf,wm5102"
10+
"wlf,wm5110"
11+
"wlf,wm8997"
1112
- reg : I2C slave address when connected using I2C, chip select number when
1213
using SPI.
1314

@@ -25,8 +26,9 @@ Required properties:
2526
- #gpio-cells : Must be 2. The first cell is the pin number and the
2627
second cell is used to specify optional parameters (currently unused).
2728

28-
- AVDD1-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply, CPVDD-supply,
29-
SPKVDDL-supply, SPKVDDR-supply : power supplies for the device, as covered
29+
- AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110),
30+
CPVDD-supply, SPKVDDL-supply (wm5102, wm5110), SPKVDDR-supply (wm5102,
31+
wm5110), SPKVDD-supply (wm8997) : Power supplies for the device, as covered
3032
in Documentation/devicetree/bindings/regulator/regulator.txt
3133

3234
Optional properties:
@@ -46,17 +48,18 @@ codec: wm5102@1a {
4648
compatible = "wlf,wm5102";
4749
reg = <0x1a>;
4850
interrupts = <347>;
51+
interrupt-controller;
4952
#interrupt-cells = <2>;
5053
interrupt-parent = <&gic>;
5154

5255
gpio-controller;
5356
#gpio-cells = <2>;
5457

5558
wlf,gpio-defaults = <
56-
0x00000000, /* AIF1TXLRCLK */
57-
0xffffffff,
58-
0xffffffff,
59-
0xffffffff,
60-
0xffffffff,
59+
0x00000000 /* AIF1TXLRCLK */
60+
0xffffffff
61+
0xffffffff
62+
0xffffffff
63+
0xffffffff
6164
>;
6265
};
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
-------------------------------
2+
BCM590xx Power Management Units
3+
-------------------------------
4+
5+
Required properties:
6+
- compatible: "brcm,bcm59056"
7+
- reg: I2C slave address
8+
- interrupts: interrupt for the PMU. Generic interrupt client node bindings
9+
are described in interrupt-controller/interrupts.txt
10+
11+
------------------
12+
Voltage Regulators
13+
------------------
14+
15+
Optional child nodes:
16+
- regulators: container node for regulators following the generic
17+
regulator binding in regulator/regulator.txt
18+
19+
The valid regulator node names for BCM59056 are:
20+
rfldo, camldo1, camldo2, simldo1, simldo2, sdldo, sdxldo,
21+
mmcldo1, mmcldo2, audldo, micldo, usbldo, vibldo,
22+
csr, iosr1, iosr2, msr, sdsr1, sdsr2, vsr
23+
24+
Example:
25+
pmu: bcm59056@8 {
26+
compatible = "brcm,bcm59056";
27+
reg = <0x08>;
28+
interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
29+
regulators {
30+
rfldo_reg: rfldo {
31+
regulator-min-microvolt = <1200000>;
32+
regulator-max-microvolt = <3300000>;
33+
};
34+
35+
...
36+
};
37+
};
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
* Dialog DA9055 Power Management Integrated Circuit (PMIC)
2+
3+
DA9055 consists of a large and varied group of sub-devices (I2C Only):
4+
5+
Device Supply Names Description
6+
------ ------------ -----------
7+
da9055-gpio : : GPIOs
8+
da9055-regulator : : Regulators
9+
da9055-onkey : : On key
10+
da9055-rtc : : RTC
11+
da9055-hwmon : : ADC
12+
da9055-watchdog : : Watchdog
13+
14+
The CODEC device in DA9055 has a separate, configurable I2C address and so
15+
is instantiated separately from the PMIC.
16+
17+
For details on accompanying CODEC I2C device, see the following:
18+
Documentation/devicetree/bindings/sound/da9055.txt
19+
20+
======
21+
22+
Required properties:
23+
- compatible : Should be "dlg,da9055-pmic"
24+
- reg: Specifies the I2C slave address (defaults to 0x5a but can be modified)
25+
- interrupt-parent: Specifies the phandle of the interrupt controller to which
26+
the IRQs from da9055 are delivered to.
27+
- interrupts: IRQ line info for da9055 chip.
28+
- interrupt-controller: da9055 has internal IRQs (has own IRQ domain).
29+
- #interrupt-cells: Should be 1, is the local IRQ number for da9055.
30+
31+
Sub-nodes:
32+
- regulators : Contain the regulator nodes. The DA9055 regulators are
33+
bound using their names as listed below:
34+
35+
buck1 : regulator BUCK1
36+
buck2 : regulator BUCK2
37+
ldo1 : regulator LDO1
38+
ldo2 : regulator LDO2
39+
ldo3 : regulator LDO3
40+
ldo4 : regulator LDO4
41+
ldo5 : regulator LDO5
42+
ldo6 : regulator LDO6
43+
44+
The bindings details of individual regulator device can be found in:
45+
Documentation/devicetree/bindings/regulator/regulator.txt
46+
47+
48+
Example:
49+
50+
pmic: da9055-pmic@5a {
51+
compatible = "dlg,da9055-pmic";
52+
reg = <0x5a>;
53+
interrupt-parent = <&intc>;
54+
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
55+
interrupt-controller;
56+
#interrupt-cells = <1>;
57+
58+
regulators {
59+
buck1: BUCK1 {
60+
regulator-min-microvolt = <725000>;
61+
regulator-max-microvolt = <2075000>;
62+
};
63+
buck2: BUCK2 {
64+
regulator-min-microvolt = <925000>;
65+
regulator-max-microvolt = <2500000>;
66+
};
67+
ldo1: LDO1 {
68+
regulator-min-microvolt = <900000>;
69+
regulator-max-microvolt = <3300000>;
70+
};
71+
};
72+
};

‎Documentation/devicetree/bindings/mfd/omap-usb-host.txt‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,29 @@ Optional properties:
3232
- single-ulpi-bypass: Must be present if the controller contains a single
3333
ULPI bypass control bit. e.g. OMAP3 silicon <= ES2.1
3434

35+
- clocks: a list of phandles and clock-specifier pairs, one for each entry in
36+
clock-names.
37+
38+
- clock-names: should include:
39+
For OMAP3
40+
* "usbhost_120m_fck" - 120MHz Functional clock.
41+
42+
For OMAP4+
43+
* "refclk_60m_int" - 60MHz internal reference clock for UTMI clock mux
44+
* "refclk_60m_ext_p1" - 60MHz external ref. clock for Port 1's UTMI clock mux.
45+
* "refclk_60m_ext_p2" - 60MHz external ref. clock for Port 2's UTMI clock mux
46+
* "utmi_p1_gfclk" - Port 1 UTMI clock mux.
47+
* "utmi_p2_gfclk" - Port 2 UTMI clock mux.
48+
* "usb_host_hs_utmi_p1_clk" - Port 1 UTMI clock gate.
49+
* "usb_host_hs_utmi_p2_clk" - Port 2 UTMI clock gate.
50+
* "usb_host_hs_utmi_p3_clk" - Port 3 UTMI clock gate.
51+
* "usb_host_hs_hsic480m_p1_clk" - Port 1 480MHz HSIC clock gate.
52+
* "usb_host_hs_hsic480m_p2_clk" - Port 2 480MHz HSIC clock gate.
53+
* "usb_host_hs_hsic480m_p3_clk" - Port 3 480MHz HSIC clock gate.
54+
* "usb_host_hs_hsic60m_p1_clk" - Port 1 60MHz HSIC clock gate.
55+
* "usb_host_hs_hsic60m_p2_clk" - Port 2 60MHz HSIC clock gate.
56+
* "usb_host_hs_hsic60m_p3_clk" - Port 3 60MHz HSIC clock gate.
57+
3558
Required properties if child node exists:
3659

3760
- #address-cells: Must be 1

‎Documentation/devicetree/bindings/mfd/omap-usb-tll.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ Required properties:
77
- interrupts : should contain the TLL module's interrupt
88
- ti,hwmod : must contain "usb_tll_hs"
99

10+
Optional properties:
11+
12+
- clocks: a list of phandles and clock-specifier pairs, one for each entry in
13+
clock-names.
14+
15+
- clock-names: should include:
16+
* "usb_tll_hs_usb_ch0_clk" - USB TLL channel 0 clock
17+
* "usb_tll_hs_usb_ch1_clk" - USB TLL channel 1 clock
18+
* "usb_tll_hs_usb_ch2_clk" - USB TLL channel 2 clock
19+
1020
Example:
1121

1222
usbhstll: usbhstll@4a062000 {
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
Qualcomm PM8xxx PMIC multi-function devices
2+
3+
The PM8xxx family of Power Management ICs are used to provide regulated
4+
voltages and other various functionality to Qualcomm SoCs.
5+
6+
= PROPERTIES
7+
8+
- compatible:
9+
Usage: required
10+
Value type: <string>
11+
Definition: must be one of:
12+
"qcom,pm8058"
13+
"qcom,pm8921"
14+
15+
- #address-cells:
16+
Usage: required
17+
Value type: <u32>
18+
Definition: must be 1
19+
20+
- #size-cells:
21+
Usage: required
22+
Value type: <u32>
23+
Definition: must be 0
24+
25+
- interrupts:
26+
Usage: required
27+
Value type: <prop-encoded-array>
28+
Definition: specifies the interrupt that indicates a subdevice
29+
has generated an interrupt (summary interrupt). The
30+
format of the specifier is defined by the binding document
31+
describing the node's interrupt parent.
32+
33+
- #interrupt-cells:
34+
Usage: required
35+
Value type : <u32>
36+
Definition: must be 2. Specifies the number of cells needed to encode
37+
an interrupt source. The 1st cell contains the interrupt
38+
number. The 2nd cell is the trigger type and level flags
39+
encoded as follows:
40+
41+
1 = low-to-high edge triggered
42+
2 = high-to-low edge triggered
43+
4 = active high level-sensitive
44+
8 = active low level-sensitive
45+
46+
- interrupt-controller:
47+
Usage: required
48+
Value type: <empty>
49+
Definition: identifies this node as an interrupt controller
50+
51+
= SUBCOMPONENTS
52+
53+
The PMIC contains multiple independent functions, each described in a subnode.
54+
The below bindings specify the set of valid subnodes.
55+
56+
== Real-Time Clock
57+
58+
- compatible:
59+
Usage: required
60+
Value type: <string>
61+
Definition: must be one of:
62+
"qcom,pm8058-rtc"
63+
"qcom,pm8921-rtc"
64+
65+
- reg:
66+
Usage: required
67+
Value type: <prop-encoded-array>
68+
Definition: single entry specifying the base address of the RTC registers
69+
70+
- interrupts:
71+
Usage: required
72+
Value type: <prop-encoded-array>
73+
Definition: single entry specifying the RTC's alarm interrupt
74+
75+
- allow-set-time:
76+
Usage: optional
77+
Value type: <empty>
78+
Definition: indicates that the setting of RTC time is allowed by
79+
the host CPU
80+
81+
= EXAMPLE
82+
83+
pmicintc: pmic@0 {
84+
compatible = "qcom,pm8921";
85+
interrupts = <104 8>;
86+
#interrupt-cells = <2>;
87+
interrupt-controller;
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
91+
rtc@11d {
92+
compatible = "qcom,pm8921-rtc";
93+
reg = <0x11d>;
94+
interrupts = <0x27 0>;
95+
};
96+
};

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

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,25 @@ Optional properties:
1616
- interrupts: Interrupt specifiers for interrupt sources.
1717

1818
Optional nodes:
19-
- clocks: s2mps11 provides three(AP/CP/BT) buffered 32.768 KHz outputs, so to
20-
register these as clocks with common clock framework instantiate a sub-node
21-
named "clocks". It uses the common clock binding documented in :
19+
- clocks: s2mps11 and s5m8767 provide three(AP/CP/BT) buffered 32.768 KHz
20+
outputs, so to register these as clocks with common clock framework
21+
instantiate a sub-node named "clocks". It uses the common clock binding
22+
documented in :
2223
[Documentation/devicetree/bindings/clock/clock-bindings.txt]
24+
The s2mps14 provides two (AP/BT) buffered 32.768 KHz outputs.
2325
- #clock-cells: should be 1.
2426

2527
- The following is the list of clocks generated by the controller. Each clock
2628
is assigned an identifier and client nodes use this identifier to specify
2729
the clock which they consume.
28-
Clock ID
29-
----------------------
30-
32KhzAP 0
31-
32KhzCP 1
32-
32KhzBT 2
30+
Clock ID Devices
31+
----------------------------------------------------------
32+
32KhzAP 0 S2MPS11, S2MPS14, S5M8767
33+
32KhzCP 1 S2MPS11, S5M8767
34+
32KhzBT 2 S2MPS11, S2MPS14, S5M8767
35+
36+
- compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps14-clk",
37+
"samsung,s5m8767-clk"
3338

3439
- regulators: The regulators of s2mps11 that have to be instantiated should be
3540
included in a sub-node named 'regulators'. Regulator nodes included in this
@@ -75,7 +80,8 @@ Example:
7580
compatible = "samsung,s2mps11-pmic";
7681
reg = <0x66>;
7782

78-
s2m_osc: clocks{
83+
s2m_osc: clocks {
84+
compatible = "samsung,s2mps11-clk";
7985
#clock-cells = 1;
8086
clock-output-names = "xx", "yy", "zz";
8187
};

‎arch/arm/boot/dts/omap4.dtsi‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,12 @@
733733
#address-cells = <1>;
734734
#size-cells = <1>;
735735
ranges;
736+
clocks = <&init_60m_fclk>,
737+
<&xclk60mhsp1_ck>,
738+
<&xclk60mhsp2_ck>;
739+
clock-names = "refclk_60m_int",
740+
"refclk_60m_ext_p1",
741+
"refclk_60m_ext_p2";
736742

737743
usbhsohci: ohci@4a064800 {
738744
compatible = "ti,ohci-omap3";

‎arch/arm/boot/dts/omap5.dtsi‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,12 @@
814814
#address-cells = <1>;
815815
#size-cells = <1>;
816816
ranges;
817+
clocks = <&l3init_60m_fclk>,
818+
<&xclk60mhsp1_ck>,
819+
<&xclk60mhsp2_ck>;
820+
clock-names = "refclk_60m_int",
821+
"refclk_60m_ext_p1",
822+
"refclk_60m_ext_p2";
817823

818824
usbhsohci: ohci@4a064800 {
819825
compatible = "ti,ohci-omap3";

0 commit comments

Comments
 (0)