From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Date: Mon, 26 Oct 2015 14:29:30 +0000 From: Lee Jones To: Alim Akhtar Cc: broonie@kernel.org, k.kozlowski@samsung.com, mturquette@baylibre.com, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Thomas Abraham Subject: Re: [PATCH v2 2/5] mfd: sec: Add support for S2MPS15 PMIC Message-ID: <20151026142930.GJ597@x1> References: <1445855803-26973-1-git-send-email-alim.akhtar@samsung.com> <1445855803-26973-3-git-send-email-alim.akhtar@samsung.com> <20151026110611.GH597@x1> <562E1F84.2000105@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <562E1F84.2000105@samsung.com> List-ID: On Mon, 26 Oct 2015, Alim Akhtar wrote: > Hi Lee, > Thanks for looking into this. > > On 10/26/2015 04:36 PM, Lee Jones wrote: > >On Mon, 26 Oct 2015, Alim Akhtar wrote: > > > >>From: Thomas Abraham > >> > >>Add support for S2MPS15 PMIC which is similar to S2MPS11 PMIC. The S2MPS15 > >>PMIC supports 27 LDO regulators, 10 buck regulators, RTC, three 32.768KHz > >>clock outputs and battery charger. This patch adds initial support for > >>LDO and buck regulators of S2MPS15 device. > >> > >>Signed-off-by: Thomas Abraham > >>Signed-off-by: Alim Akhtar > >>[Alim: Added s2mps15_devs like rtc and clk and related changes] > >>Reviewed-by: Krzysztof Kozlowski > >>--- > >> drivers/mfd/sec-core.c | 31 +++++++ > >> drivers/mfd/sec-irq.c | 8 ++ > >> include/linux/mfd/samsung/core.h | 1 + > >> include/linux/mfd/samsung/s2mps15.h | 161 +++++++++++++++++++++++++++++++++++ > >> 4 files changed, 201 insertions(+) > >> create mode 100644 include/linux/mfd/samsung/s2mps15.h > >> > >>diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c > >>index 2626fc0b5b8c..db3d4d4ff805 100644 > >>--- a/drivers/mfd/sec-core.c > >>+++ b/drivers/mfd/sec-core.c > >>@@ -29,6 +29,7 @@ > >> #include > >> #include > >> #include > >>+#include > >> #include > >> #include > >> #include > >>@@ -96,6 +97,17 @@ static const struct mfd_cell s2mps14_devs[] = { > >> } > >> }; > >> > >>+static const struct mfd_cell s2mps15_devs[] = { > >>+ { > >>+ .name = "s2mps15-pmic", > >>+ }, { > >>+ .name = "s2mps15-rtc", > >>+ }, { > > > >Why don't these have compatibles? > > > s2mps15-pmic does have compatible below in sec_dt_match[]. Woah!! What's going on here? You're matching the MFD and Regulator drivers with the same compatible string. And then registering the Regulator device as an MFD. That's a bit confusing don't you think? > s2mps15-rtc does not need one as rtc driver does not support OF yet. > So no DT node for this as of now. [...] -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com. [2a00:1450:400c:c05::234]) by gmr-mx.google.com with ESMTPS id bn7si473955wib.0.2015.10.26.07.29.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Oct 2015 07:29:34 -0700 (PDT) Received: by mail-wi0-x234.google.com with SMTP id q8so167455045wik.1 for ; Mon, 26 Oct 2015 07:29:34 -0700 (PDT) Date: Mon, 26 Oct 2015 14:29:30 +0000 From: Lee Jones To: Alim Akhtar Cc: broonie@kernel.org, k.kozlowski@samsung.com, mturquette@baylibre.com, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Thomas Abraham Subject: [rtc-linux] Re: [PATCH v2 2/5] mfd: sec: Add support for S2MPS15 PMIC Message-ID: <20151026142930.GJ597@x1> References: <1445855803-26973-1-git-send-email-alim.akhtar@samsung.com> <1445855803-26973-3-git-send-email-alim.akhtar@samsung.com> <20151026110611.GH597@x1> <562E1F84.2000105@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <562E1F84.2000105@samsung.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On Mon, 26 Oct 2015, Alim Akhtar wrote: > Hi Lee, > Thanks for looking into this. >=20 > On 10/26/2015 04:36 PM, Lee Jones wrote: > >On Mon, 26 Oct 2015, Alim Akhtar wrote: > > > >>From: Thomas Abraham > >> > >>Add support for S2MPS15 PMIC which is similar to S2MPS11 PMIC. The S2MP= S15 > >>PMIC supports 27 LDO regulators, 10 buck regulators, RTC, three 32.768K= Hz > >>clock outputs and battery charger. This patch adds initial support for > >>LDO and buck regulators of S2MPS15 device. > >> > >>Signed-off-by: Thomas Abraham > >>Signed-off-by: Alim Akhtar > >>[Alim: Added s2mps15_devs like rtc and clk and related changes] > >>Reviewed-by: Krzysztof Kozlowski > >>--- > >> drivers/mfd/sec-core.c | 31 +++++++ > >> drivers/mfd/sec-irq.c | 8 ++ > >> include/linux/mfd/samsung/core.h | 1 + > >> include/linux/mfd/samsung/s2mps15.h | 161 ++++++++++++++++++++++++++= +++++++++ > >> 4 files changed, 201 insertions(+) > >> create mode 100644 include/linux/mfd/samsung/s2mps15.h > >> > >>diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c > >>index 2626fc0b5b8c..db3d4d4ff805 100644 > >>--- a/drivers/mfd/sec-core.c > >>+++ b/drivers/mfd/sec-core.c > >>@@ -29,6 +29,7 @@ > >> #include > >> #include > >> #include > >>+#include > >> #include > >> #include > >> #include > >>@@ -96,6 +97,17 @@ static const struct mfd_cell s2mps14_devs[] =3D { > >> } > >> }; > >> > >>+static const struct mfd_cell s2mps15_devs[] =3D { > >>+ { > >>+ .name =3D "s2mps15-pmic", > >>+ }, { > >>+ .name =3D "s2mps15-rtc", > >>+ }, { > > > >Why don't these have compatibles? > > > s2mps15-pmic does have compatible below in sec_dt_match[]. Woah!! What's going on here? You're matching the MFD and Regulator drivers with the same compatible string. And then registering the Regulator device as an MFD. That's a bit confusing don't you think? > s2mps15-rtc does not need one as rtc driver does not support OF yet. > So no DT node for this as of now. [...] --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog --=20 --=20 You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. ---=20 You received this message because you are subscribed to the Google Groups "= rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.