Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499Ab3GPLxF (ORCPT ); Tue, 16 Jul 2013 07:53:05 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:63662 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104Ab3GPLxC (ORCPT ); Tue, 16 Jul 2013 07:53:02 -0400 X-AuditID: cbfee691-b7fef6d000002d62-2e-51e5341d2506 From: Yadwinder Singh Brar To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, sbkim73@samsung.com, sameo@linux.intel.com, mturquette@linaro.org, lee.jones@linaro.org, broonie@kernel.org, yadi.brar01@gmail.com, Yadwinder Singh Brar Subject: [PATCH 2/3] mfd: sec: Add clock cell for s2mps11 Date: Sun, 07 Jul 2013 17:14:21 +0530 Message-id: <1373197462-4033-3-git-send-email-yadi.brar@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1373197462-4033-1-git-send-email-yadi.brar@samsung.com> References: <1373197462-4033-1-git-send-email-yadi.brar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42JZI2JSpytr8jTQ4P4rHoupD5+wWdz/epTR YtPja6wWl3fNYbN4OuEim8XpblaLiyu+MFnM/d3IajFn+jsmB06PnbPusntsWtXJ5nHn2h42 j3knAz02L6n36NuyitHj8ya5APYoLpuU1JzMstQifbsErox1xxayFBwUrLh1OK6B8RNvFyMn h4SAicSsdTMZIWwxiQv31rN1MXJxCAksZZQ4++EWK0zRyq9r2SES0xkl5p65ywThtDFJPPl6 CKiKg4NNwEji1TE7kAYRAQWJzb3PWEFqmAUeMEo8fLcZbJKwgKXErXddbCA2i4CqxIvjTWCr eQVcJJ49ncYMsU1BonXZIXYQm1PAVeL0keXsIPOFgGpmnpIAmSkhsItdYl7nMlaIOQIS3yYf YgGpkRCQldh0AGqMpMTBFTdYJjAKL2BkWMUomlqQXFCclF5k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v84th1eeC3h3njN4bP3tW6OTX3vrsediMRTLWi2ak7nyp0iRq5vj+ /bTA4vdvzt9rSlCWe5m3RyWkUlr97bqzZ3+q628Pmfn3QrPvpYnpsScPak8Urd2qXB0txnbj VKToeSWW4oxEQy3mouJEAHdwjbz2AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2421 Lines: 70 This patch adds clock to list of mfd cells for s2mps11 and DT documentation for clock part. Signed-off-by: Yadwinder Singh Brar --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 20 ++++++++++++++++++++ drivers/mfd/sec-core.c | 4 +++- 2 files changed, 23 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt index 36269c4..e41dd16 100644 --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt @@ -16,6 +16,21 @@ Optional properties: - interrupts: Interrupt specifiers for interrupt sources. 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 included in a sub-node named 'regulators'. Regulator nodes included in this sub-node should be of the format as listed below. @@ -55,6 +70,11 @@ Example: compatible = "samsung,s2mps11-pmic"; reg = <0x66>; + s2m_osc: clocks{ + #clock-cells = 1; + clock-output-names = "xx", "yy", "zz"; + }; + regulators { ldo1_reg: LDO1 { regulator-name = "VDD_ABB_3.3V"; diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 760da8a..eaee5ec 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -58,7 +58,9 @@ static struct mfd_cell s5m8767_devs[] = { static struct mfd_cell s2mps11_devs[] = { { .name = "s2mps11-pmic", - }, + }, { + .name = "s2mps11-clk", + } }; #ifdef CONFIG_OF -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/