aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/mfd/s2mps11.txt20
-rw-r--r--drivers/mfd/sec-core.c4
2 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt
index 36e051b223c8..c9332c626021 100644
--- a/Documentation/devicetree/bindings/mfd/s2mps11.txt
+++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt
@@ -16,6 +16,21 @@ Optional properties:
16- interrupts: Interrupt specifiers for interrupt sources. 16- interrupts: Interrupt specifiers for interrupt sources.
17 17
18Optional nodes: 18Optional 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 :
22 [Documentation/devicetree/bindings/clock/clock-bindings.txt]
23 - #clock-cells: should be 1.
24
25 - The following is the list of clocks generated by the controller. Each clock
26 is assigned an identifier and client nodes use this identifier to specify
27 the clock which they consume.
28 Clock ID
29 ----------------------
30 32KhzAP 0
31 32KhzCP 1
32 32KhzBT 2
33
19- regulators: The regulators of s2mps11 that have to be instantiated should be 34- regulators: The regulators of s2mps11 that have to be instantiated should be
20included in a sub-node named 'regulators'. Regulator nodes included in this 35included in a sub-node named 'regulators'. Regulator nodes included in this
21sub-node should be of the format as listed below. 36sub-node should be of the format as listed below.
@@ -55,6 +70,11 @@ Example:
55 compatible = "samsung,s2mps11-pmic"; 70 compatible = "samsung,s2mps11-pmic";
56 reg = <0x66>; 71 reg = <0x66>;
57 72
73 s2m_osc: clocks{
74 #clock-cells = 1;
75 clock-output-names = "xx", "yy", "zz";
76 };
77
58 regulators { 78 regulators {
59 ldo1_reg: LDO1 { 79 ldo1_reg: LDO1 {
60 regulator-name = "VDD_ABB_3.3V"; 80 regulator-name = "VDD_ABB_3.3V";
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 86a7d611f71b..f530e4b73f19 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -61,7 +61,9 @@ static struct mfd_cell s5m8767_devs[] = {
61static struct mfd_cell s2mps11_devs[] = { 61static struct mfd_cell s2mps11_devs[] = {
62 { 62 {
63 .name = "s2mps11-pmic", 63 .name = "s2mps11-pmic",
64 }, 64 }, {
65 .name = "s2mps11-clk",
66 }
65}; 67};
66 68
67#ifdef CONFIG_OF 69#ifdef CONFIG_OF