mfd: sec: Add clock cell for s2mps11
This patch adds clock to list of mfd cells for s2mps11 and DT documentation for clock part. Reviewed-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
44955ab50a
commit
3134bcae4f
2 changed files with 23 additions and 1 deletions
|
@ -16,6 +16,21 @@ Optional properties:
|
||||||
- interrupts: Interrupt specifiers for interrupt sources.
|
- interrupts: Interrupt specifiers for interrupt sources.
|
||||||
|
|
||||||
Optional nodes:
|
Optional nodes:
|
||||||
|
- clocks: s2mps11 provides three(AP/CP/BT) buffered 32.768 KHz outputs, so to
|
||||||
|
register these as clocks with common clock framework instantiate a sub-node
|
||||||
|
named "clocks". It uses the common clock binding documented in :
|
||||||
|
[Documentation/devicetree/bindings/clock/clock-bindings.txt]
|
||||||
|
- #clock-cells: should be 1.
|
||||||
|
|
||||||
|
- The following is the list of clocks generated by the controller. Each clock
|
||||||
|
is assigned an identifier and client nodes use this identifier to specify
|
||||||
|
the clock which they consume.
|
||||||
|
Clock ID
|
||||||
|
----------------------
|
||||||
|
32KhzAP 0
|
||||||
|
32KhzCP 1
|
||||||
|
32KhzBT 2
|
||||||
|
|
||||||
- regulators: The regulators of s2mps11 that have to be instantiated should be
|
- regulators: The regulators of s2mps11 that have to be instantiated should be
|
||||||
included in a sub-node named 'regulators'. Regulator nodes included in this
|
included in a sub-node named 'regulators'. Regulator nodes included in this
|
||||||
sub-node should be of the format as listed below.
|
sub-node should be of the format as listed below.
|
||||||
|
@ -55,6 +70,11 @@ Example:
|
||||||
compatible = "samsung,s2mps11-pmic";
|
compatible = "samsung,s2mps11-pmic";
|
||||||
reg = <0x66>;
|
reg = <0x66>;
|
||||||
|
|
||||||
|
s2m_osc: clocks{
|
||||||
|
#clock-cells = 1;
|
||||||
|
clock-output-names = "xx", "yy", "zz";
|
||||||
|
};
|
||||||
|
|
||||||
regulators {
|
regulators {
|
||||||
ldo1_reg: LDO1 {
|
ldo1_reg: LDO1 {
|
||||||
regulator-name = "VDD_ABB_3.3V";
|
regulator-name = "VDD_ABB_3.3V";
|
||||||
|
|
|
@ -61,7 +61,9 @@ static struct mfd_cell s5m8767_devs[] = {
|
||||||
static struct mfd_cell s2mps11_devs[] = {
|
static struct mfd_cell s2mps11_devs[] = {
|
||||||
{
|
{
|
||||||
.name = "s2mps11-pmic",
|
.name = "s2mps11-pmic",
|
||||||
},
|
}, {
|
||||||
|
.name = "s2mps11-clk",
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
|
|
Loading…
Add table
Reference in a new issue