* [PATCH v2 03/12] clocksource: sti: Provide 'use timer as sched clock' capability
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-27 12:40 ` Daniel Lezcano
2015-05-12 12:58 ` [PATCH v2 06/12] watchdog: bindings: Supply knowledge of a third supported device - clocksource Lee Jones
` (6 subsequent siblings)
7 siblings, 1 reply; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
drivers/clocksource/clksrc_st_lpc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/clocksource/clksrc_st_lpc.c b/drivers/clocksource/clksrc_st_lpc.c
index 1ad1714..90f5bb8 100644
--- a/drivers/clocksource/clksrc_st_lpc.c
+++ b/drivers/clocksource/clksrc_st_lpc.c
@@ -16,6 +16,7 @@
#include <linux/clocksource.h>
#include <linux/init.h>
#include <linux/of_address.h>
+#include <linux/sched_clock.h>
#include <linux/slab.h>
#include <dt-bindings/mfd/st-lpc.h>
@@ -38,6 +39,11 @@ static void st_clksrc_reset(void)
writel_relaxed(1, ddata.base + LPC_LPT_START_OFF);
}
+static u64 notrace st_clksrc_sched_clock_read(void)
+{
+ return (u64)readl_relaxed(ddata.base + LPC_LPT_LSB_OFF);
+}
+
static int __init st_clksrc_init(void)
{
unsigned long rate;
@@ -47,6 +53,8 @@ static int __init st_clksrc_init(void)
rate = clk_get_rate(ddata.clk);
+ sched_clock_register(st_clksrc_sched_clock_read, 32, rate);
+
ret = clocksource_mmio_init(ddata.base + LPC_LPT_LSB_OFF,
"clksrc-st-lpc", rate, 300, 32,
clocksource_mmio_readl_up);
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v2 03/12] clocksource: sti: Provide 'use timer as sched clock' capability
2015-05-12 12:58 ` [PATCH v2 03/12] clocksource: sti: Provide 'use timer as sched clock' capability Lee Jones
@ 2015-05-27 12:40 ` Daniel Lezcano
0 siblings, 0 replies; 18+ messages in thread
From: Daniel Lezcano @ 2015-05-27 12:40 UTC (permalink / raw)
To: Lee Jones, linux-arm-kernel, linux-kernel, devicetree, tglx, wim,
a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel
On 05/12/2015 02:58 PM, Lee Jones wrote:
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v2 06/12] watchdog: bindings: Supply knowledge of a third supported device - clocksource
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
2015-05-12 12:58 ` [PATCH v2 03/12] clocksource: sti: Provide 'use timer as sched clock' capability Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 07/12] rtc: st: Update IP layout information to include Clocksource Lee Jones
` (5 subsequent siblings)
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt
index 388c88a..039c5ca 100644
--- a/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/st_lpc_wdt.txt
@@ -1,9 +1,11 @@
STMicroelectronics Low Power Controller (LPC) - Watchdog
========================================================
-LPC currently supports Watchdog OR Real Time Clock functionality.
+LPC currently supports Watchdog OR Real Time Clock OR Clocksource
+functionality.
[See: ../rtc/rtc-st-lpc.txt for RTC options]
+[See: ../timer/st,stih407-lpc for Clocksource options]
Required properties
@@ -12,9 +14,11 @@ Required properties
- reg : LPC registers base address + size
- interrupts : LPC interrupt line number and associated flags
- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
-- st,lpc-mode : The LPC can run either one of two modes ST_LPC_MODE_RTC [0] or
- ST_LPC_MODE_WDT [1]. One (and only one) mode must be
- selected.
+- st,lpc-mode : The LPC can run either one of three modes:
+ ST_LPC_MODE_RTC [0]
+ ST_LPC_MODE_WDT [1]
+ ST_LPC_MODE_CLKSRC [2]
+ One (and only one) mode must be selected.
Required properties [watchdog mode]
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 07/12] rtc: st: Update IP layout information to include Clocksource
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
2015-05-12 12:58 ` [PATCH v2 03/12] clocksource: sti: Provide 'use timer as sched clock' capability Lee Jones
2015-05-12 12:58 ` [PATCH v2 06/12] watchdog: bindings: Supply knowledge of a third supported device - clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 08/12] rtc: bindings: Supply knowledge of a third supported device - clocksource Lee Jones
` (4 subsequent siblings)
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
Initial submission adding support for this IP only included Watchdog and
the Real-Time Clock. Now the third (and final) device is enabled this
trivial patch is required to update the comment in the RTC driver to
encompass Clocksource.
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
drivers/rtc/rtc-st-lpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st-lpc.c
index 3f9d0ac..74c0a33 100644
--- a/drivers/rtc/rtc-st-lpc.c
+++ b/drivers/rtc/rtc-st-lpc.c
@@ -208,7 +208,7 @@ static int st_rtc_probe(struct platform_device *pdev)
return -EINVAL;
}
- /* LPC can either run in RTC or WDT mode */
+ /* LPC can either run as a Clocksource or in RTC or WDT mode */
if (mode != ST_LPC_MODE_RTC)
return -ENODEV;
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 08/12] rtc: bindings: Supply knowledge of a third supported device - clocksource
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
` (2 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 07/12] rtc: st: Update IP layout information to include Clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 10/12] ARM: STi: DT: STih407: Switch LPC mode from RTC to Clocksource Lee Jones
` (3 subsequent siblings)
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt b/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt
index 73407f50..daf8826 100644
--- a/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt
+++ b/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt
@@ -1,20 +1,23 @@
STMicroelectronics Low Power Controller (LPC) - RTC
===================================================
-LPC currently supports Watchdog OR Real Time Clock functionality.
+LPC currently supports Watchdog OR Real Time Clock OR Clocksource
+functionality.
[See: ../watchdog/st_lpc_wdt.txt for Watchdog options]
+[See: ../timer/st,stih407-lpc for Clocksource options]
Required properties
-- compatible : Must be one of: "st,stih407-lpc" "st,stih416-lpc"
- "st,stih415-lpc" "st,stid127-lpc"
+- compatible : Must be: "st,stih407-lpc"
- reg : LPC registers base address + size
- interrupts : LPC interrupt line number and associated flags
- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
-- st,lpc-mode : The LPC can run either one of two modes ST_LPC_MODE_RTC [0] or
- ST_LPC_MODE_WDT [1]. One (and only one) mode must be
- selected.
+- st,lpc-mode : The LPC can run either one of three modes:
+ ST_LPC_MODE_RTC [0]
+ ST_LPC_MODE_WDT [1]
+ ST_LPC_MODE_CLKSRC [2]
+ One (and only one) mode must be selected.
Example:
lpc@fde05000 {
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 10/12] ARM: STi: DT: STih407: Switch LPC mode from RTC to Clocksource
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
` (3 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 08/12] rtc: bindings: Supply knowledge of a third supported device - clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 11/12] ARM: STi: Enable LPC Clocksource Lee Jones
` (2 subsequent siblings)
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
This aligns with the internal configuration.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/boot/dts/stih407-family.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index 2b2315d..bf1c7f5 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -354,7 +354,7 @@
reg = <0x8788000 0x1000>;
interrupts = <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>;
clocks = <&clk_s_d3_flexgen CLK_LPC_1>;
- st,lpc-mode = <ST_LPC_MODE_RTC>;
+ st,lpc-mode = <ST_LPC_MODE_CLKSRC>;
};
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 11/12] ARM: STi: Enable LPC Clocksource
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
` (4 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 10/12] ARM: STi: DT: STih407: Switch LPC mode from RTC to Clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 12/12] ARM: STi: Update platform level menuconfig 'help' Lee Jones
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
This timer can be used as the system (tick) timer.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/mach-sti/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-sti/Kconfig b/arch/arm/mach-sti/Kconfig
index 3b1ac46..cb886de 100644
--- a/arch/arm/mach-sti/Kconfig
+++ b/arch/arm/mach-sti/Kconfig
@@ -2,6 +2,7 @@ menuconfig ARCH_STI
bool "STMicroelectronics Consumer Electronics SOCs" if ARCH_MULTI_V7
select ARM_GIC
select ARM_GLOBAL_TIMER
+ select CLKSRC_ST_LPC
select PINCTRL
select PINCTRL_ST
select MFD_SYSCON
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 12/12] ARM: STi: Update platform level menuconfig 'help'
2015-05-12 12:58 [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
` (5 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 11/12] ARM: STi: Enable LPC Clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
7 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel, Lee Jones
Encompass newer STiH4{07,10} and STiH418 SoC based platforms.
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/mach-sti/Kconfig | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-sti/Kconfig b/arch/arm/mach-sti/Kconfig
index cb886de..2a3bfaa 100644
--- a/arch/arm/mach-sti/Kconfig
+++ b/arch/arm/mach-sti/Kconfig
@@ -16,11 +16,10 @@ menuconfig ARCH_STI
select PL310_ERRATA_769419 if CACHE_L2X0
select RESET_CONTROLLER
help
- Include support for STiH41x SOCs like STiH415/416 using the device tree
- for discovery
- More information at Documentation/arm/STiH41x and
- at Documentation/devicetree
-
+ Include support for STMicroelectronics' STiH415/416, STiH407/10 and
+ STiH418 family SoCs using the Device Tree for discovery. More
+ information can be found in Documentation/arm/sti/ and
+ Documentation/devicetree.
if ARCH_STI
--
1.9.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
[parent not found: <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* [PATCH v2 01/12] mfd: dt-bindings: Provide human readable define for Clocksource mode
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP Lee Jones
` (4 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ, Lee Jones
ST's Low Power Controller can now operate in three supported modes;
Watchdog, Real Time Clock and most recently as a Clocksource. This new
define will allow the LPC IP to be configured for Clocksource from DT.
Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
include/dt-bindings/mfd/st-lpc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/dt-bindings/mfd/st-lpc.h b/include/dt-bindings/mfd/st-lpc.h
index e3e6c75..d05894a 100644
--- a/include/dt-bindings/mfd/st-lpc.h
+++ b/include/dt-bindings/mfd/st-lpc.h
@@ -11,5 +11,6 @@
#define ST_LPC_MODE_RTC 0
#define ST_LPC_MODE_WDT 1
+#define ST_LPC_MODE_CLKSRC 2
#endif /* __DT_BINDINGS_ST_LPC_H__ */
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-05-12 12:58 ` [PATCH v2 01/12] mfd: dt-bindings: Provide human readable define for Clocksource mode Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 15:55 ` Thomas Gleixner
2015-05-26 12:39 ` [PATCH v2.1 " Lee Jones
2015-05-12 12:58 ` [PATCH v2 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device Lee Jones
` (3 subsequent siblings)
5 siblings, 2 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ, Lee Jones
This IP is shared with Watchdog and RTC functionality. All 3 of
these devices are mutually exclusive from one another i.e. Only 1
IP can be used at any given time. We use the device-driver model
combined with a DT 'mode' property to enforce this.
The ST LPC Clocksource IP can be used as the system (tick) timer.
Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/clocksource/Kconfig | 9 +++
drivers/clocksource/Makefile | 1 +
drivers/clocksource/clksrc_st_lpc.c | 121 ++++++++++++++++++++++++++++++++++++
3 files changed, 131 insertions(+)
create mode 100644 drivers/clocksource/clksrc_st_lpc.c
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 68161f7..01a07a6 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -250,4 +250,13 @@ config CLKSRC_PXA
help
This enables OST0 support available on PXA and SA-11x0
platforms.
+
+config CLKSRC_ST_LPC
+ bool
+ depends on ARCH_STI
+ select CLKSRC_OF if OF
+ help
+ Enable this option to use the Low Power controller timer
+ as clocksource.
+
endmenu
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index 752d5c7..e08da4d 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -51,3 +51,4 @@ obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o
obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o
obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o
obj-$(CONFIG_ASM9260_TIMER) += asm9260_timer.o
+obj-$(CONFIG_CLKSRC_ST_LPC) += clksrc_st_lpc.o
diff --git a/drivers/clocksource/clksrc_st_lpc.c b/drivers/clocksource/clksrc_st_lpc.c
new file mode 100644
index 0000000..1ad1714
--- /dev/null
+++ b/drivers/clocksource/clksrc_st_lpc.c
@@ -0,0 +1,121 @@
+/*
+ * Clocksource using the Low Power Timer found in the Low Power Controller (LPC)
+ *
+ * Copyright (C) 2015 STMicroelectronics – All Rights Reserved
+ *
+ * Author(s): Francesco Virlinzi <francesco.virlinzi-qxv4g6HH51o@public.gmane.org>
+ * Ajit Pal Singh <ajitpal.singh-qxv4g6HH51o@public.gmane.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <linux/clk.h>
+#include <linux/clocksource.h>
+#include <linux/init.h>
+#include <linux/of_address.h>
+#include <linux/slab.h>
+
+#include <dt-bindings/mfd/st-lpc.h>
+
+/* Low Power Timer */
+#define LPC_LPT_LSB_OFF 0x400
+#define LPC_LPT_MSB_OFF 0x404
+#define LPC_LPT_START_OFF 0x408
+
+static struct st_clksrc_ddata {
+ struct clk *clk;
+ void __iomem *base;
+} ddata;
+
+static void st_clksrc_reset(void)
+{
+ writel_relaxed(0, ddata.base + LPC_LPT_START_OFF);
+ writel_relaxed(0, ddata.base + LPC_LPT_MSB_OFF);
+ writel_relaxed(0, ddata.base + LPC_LPT_LSB_OFF);
+ writel_relaxed(1, ddata.base + LPC_LPT_START_OFF);
+}
+
+static int __init st_clksrc_init(void)
+{
+ unsigned long rate;
+ int ret;
+
+ st_clksrc_reset();
+
+ rate = clk_get_rate(ddata.clk);
+
+ ret = clocksource_mmio_init(ddata.base + LPC_LPT_LSB_OFF,
+ "clksrc-st-lpc", rate, 300, 32,
+ clocksource_mmio_readl_up);
+ if (ret) {
+ pr_err("clksrc-st-lpc: Failed to register clocksource\n");
+ return ret;
+ }
+
+ return 0;
+}
+
+static int st_clksrc_setup_clk(struct device_node *np)
+{
+ struct clk *clk;
+
+ clk = of_clk_get(np, 0);
+ if (IS_ERR(clk)) {
+ pr_err("clksrc-st-lpc: Failed to get LPC clock\n");
+ return PTR_ERR(clk);
+ }
+
+ if (clk_prepare_enable(clk)) {
+ pr_err("clksrc-st-lpc: Failed to enable LPC clock\n");
+ return -EINVAL;
+ }
+
+ if (!clk_get_rate(clk)) {
+ pr_err("clksrc-st-lpc: Failed to get LPC clock rate\n");
+ clk_disable_unprepare(clk);
+ return -EINVAL;
+ }
+
+ ddata.clk = clk;
+
+ return 0;
+}
+
+static void __init st_clksrc_of_register(struct device_node *np)
+{
+ int ret;
+ uint32_t mode;
+
+ ret = of_property_read_u32(np, "st,lpc-mode", &mode);
+ if (ret) {
+ pr_err("clksrc-st-lpc: An LPC mode must be provided\n");
+ return;
+ }
+
+ /* LPC can either run as a Clocksource or in RTC or WDT mode */
+ if (mode != ST_LPC_MODE_CLKSRC)
+ return;
+
+ ddata.base = of_iomap(np, 0);
+ if (!ddata.base) {
+ pr_err("clksrc-st-lpc: Unable to map iomem\n");
+ return;
+ }
+
+ if (st_clksrc_setup_clk(np)) {
+ iounmap(ddata.base);
+ return;
+ }
+
+ if (st_clksrc_init()) {
+ iounmap(ddata.base);
+ return;
+ }
+
+ pr_info("clksrc-st-lpc: clocksource initialised - running @ %luHz\n",
+ clk_get_rate(ddata.clk));
+}
+CLOCKSOURCE_OF_DECLARE(ddata, "st,stih407-lpc", st_clksrc_of_register);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP
2015-05-12 12:58 ` [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP Lee Jones
@ 2015-05-12 15:55 ` Thomas Gleixner
2015-05-26 12:39 ` [PATCH v2.1 " Lee Jones
1 sibling, 0 replies; 18+ messages in thread
From: Thomas Gleixner @ 2015-05-12 15:55 UTC (permalink / raw)
To: Lee Jones
Cc: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, wim,
a.zummo, linux-watchdog, rtc-linux, linux, kernel
On Tue, 12 May 2015, Lee Jones wrote:
> +static void st_clksrc_reset(void)
__init
> +static int st_clksrc_setup_clk(struct device_node *np)
__init
> +static void __init st_clksrc_of_register(struct device_node *np)
> +{
> + int ret;
> + uint32_t mode;
> +
> + ret = of_property_read_u32(np, "st,lpc-mode", &mode);
> + if (ret) {
> + pr_err("clksrc-st-lpc: An LPC mode must be provided\n");
> + return;
> + }
> +
> + /* LPC can either run as a Clocksource or in RTC or WDT mode */
> + if (mode != ST_LPC_MODE_CLKSRC)
> + return;
> +
> + ddata.base = of_iomap(np, 0);
> + if (!ddata.base) {
> + pr_err("clksrc-st-lpc: Unable to map iomem\n");
> + return;
> + }
> +
> + if (st_clksrc_setup_clk(np)) {
> + iounmap(ddata.base);
> + return;
> + }
> +
> + if (st_clksrc_init()) {
Keeps the clock enabled.
> + iounmap(ddata.base);
> + return;
Thanks,
tglx
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v2.1 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP
2015-05-12 12:58 ` [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP Lee Jones
2015-05-12 15:55 ` Thomas Gleixner
@ 2015-05-26 12:39 ` Lee Jones
2015-05-27 12:38 ` Daniel Lezcano
1 sibling, 1 reply; 18+ messages in thread
From: Lee Jones @ 2015-05-26 12:39 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel, devicetree, daniel.lezcano, tglx,
wim, a.zummo, linux-watchdog, rtc-linux, linux
Cc: kernel
clocksource: sti: Provide support for the ST LPC Clocksource IP
This IP is shared with Watchdog and RTC functionality. All 3 of
these devices are mutually exclusive from one another i.e. Only 1
IP can be used at any given time. We use the device-driver model
combined with a DT 'mode' property to enforce this.
The ST LPC Clocksource IP can be used as the system (tick) timer.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 68161f7..01a07a6 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -250,4 +250,13 @@ config CLKSRC_PXA
help
This enables OST0 support available on PXA and SA-11x0
platforms.
+
+config CLKSRC_ST_LPC
+ bool
+ depends on ARCH_STI
+ select CLKSRC_OF if OF
+ help
+ Enable this option to use the Low Power controller timer
+ as clocksource.
+
endmenu
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index 752d5c7..e08da4d 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -51,3 +51,4 @@ obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o
obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o
obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o
obj-$(CONFIG_ASM9260_TIMER) += asm9260_timer.o
+obj-$(CONFIG_CLKSRC_ST_LPC) += clksrc_st_lpc.o
diff --git a/drivers/clocksource/clksrc_st_lpc.c b/drivers/clocksource/clksrc_st_lpc.c
new file mode 100644
index 0000000..f38cf33
--- /dev/null
+++ b/drivers/clocksource/clksrc_st_lpc.c
@@ -0,0 +1,123 @@
+/*
+ * Clocksource using the Low Power Timer found in the Low Power Controller (LPC)
+ *
+ * Copyright (C) 2015 STMicroelectronics – All Rights Reserved
+ *
+ * Author(s): Francesco Virlinzi <francesco.virlinzi@st.com>
+ * Ajit Pal Singh <ajitpal.singh@st.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <linux/clk.h>
+#include <linux/clocksource.h>
+#include <linux/init.h>
+#include <linux/of_address.h>
+#include <linux/slab.h>
+
+#include <dt-bindings/mfd/st-lpc.h>
+
+/* Low Power Timer */
+#define LPC_LPT_LSB_OFF 0x400
+#define LPC_LPT_MSB_OFF 0x404
+#define LPC_LPT_START_OFF 0x408
+
+static struct st_clksrc_ddata {
+ struct clk *clk;
+ void __iomem *base;
+} ddata;
+
+static void __init st_clksrc_reset(void)
+{
+ writel_relaxed(0, ddata.base + LPC_LPT_START_OFF);
+ writel_relaxed(0, ddata.base + LPC_LPT_MSB_OFF);
+ writel_relaxed(0, ddata.base + LPC_LPT_LSB_OFF);
+ writel_relaxed(1, ddata.base + LPC_LPT_START_OFF);
+}
+
+static int __init st_clksrc_init(void)
+{
+ unsigned long rate;
+ int ret;
+
+ st_clksrc_reset();
+
+ rate = clk_get_rate(ddata.clk);
+
+ ret = clocksource_mmio_init(ddata.base + LPC_LPT_LSB_OFF,
+ "clksrc-st-lpc", rate, 300, 32,
+ clocksource_mmio_readl_up);
+ if (ret) {
+ pr_err("clksrc-st-lpc: Failed to register clocksource\n");
+ return ret;
+ }
+
+ return 0;
+}
+
+static int __init st_clksrc_setup_clk(struct device_node *np)
+{
+ struct clk *clk;
+
+ clk = of_clk_get(np, 0);
+ if (IS_ERR(clk)) {
+ pr_err("clksrc-st-lpc: Failed to get LPC clock\n");
+ return PTR_ERR(clk);
+ }
+
+ if (clk_prepare_enable(clk)) {
+ pr_err("clksrc-st-lpc: Failed to enable LPC clock\n");
+ return -EINVAL;
+ }
+
+ if (!clk_get_rate(clk)) {
+ pr_err("clksrc-st-lpc: Failed to get LPC clock rate\n");
+ clk_disable_unprepare(clk);
+ return -EINVAL;
+ }
+
+ ddata.clk = clk;
+
+ return 0;
+}
+
+static void __init st_clksrc_of_register(struct device_node *np)
+{
+ int ret;
+ uint32_t mode;
+
+ ret = of_property_read_u32(np, "st,lpc-mode", &mode);
+ if (ret) {
+ pr_err("clksrc-st-lpc: An LPC mode must be provided\n");
+ return;
+ }
+
+ /* LPC can either run as a Clocksource or in RTC or WDT mode */
+ if (mode != ST_LPC_MODE_CLKSRC)
+ return;
+
+ ddata.base = of_iomap(np, 0);
+ if (!ddata.base) {
+ pr_err("clksrc-st-lpc: Unable to map iomem\n");
+ return;
+ }
+
+ if (st_clksrc_setup_clk(np)) {
+ iounmap(ddata.base);
+ return;
+ }
+
+ if (st_clksrc_init()) {
+ clk_disable_unprepare(ddata.clk);
+ clk_put(ddata.clk);
+ iounmap(ddata.base);
+ return;
+ }
+
+ pr_info("clksrc-st-lpc: clocksource initialised - running @ %luHz\n",
+ clk_get_rate(ddata.clk));
+}
+CLOCKSOURCE_OF_DECLARE(ddata, "st,stih407-lpc", st_clksrc_of_register);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v2.1 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP
2015-05-26 12:39 ` [PATCH v2.1 " Lee Jones
@ 2015-05-27 12:38 ` Daniel Lezcano
0 siblings, 0 replies; 18+ messages in thread
From: Daniel Lezcano @ 2015-05-27 12:38 UTC (permalink / raw)
To: Lee Jones, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, tglx-hfZtesqFncYOwBW4kG4KsQ,
wim-IQzOog9fTRqzQB+pC5nmwQ, a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ
On 05/26/2015 02:39 PM, Lee Jones wrote:
> clocksource: sti: Provide support for the ST LPC Clocksource IP
>
> This IP is shared with Watchdog and RTC functionality. All 3 of
> these devices are mutually exclusive from one another i.e. Only 1
> IP can be used at any given time. We use the device-driver model
> combined with a DT 'mode' property to enforce this.
>
> The ST LPC Clocksource IP can be used as the system (tick) timer.
>
> Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Looks good to me.
Acked-by: Daniel Lezcano <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v2 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-05-12 12:58 ` [PATCH v2 01/12] mfd: dt-bindings: Provide human readable define for Clocksource mode Lee Jones
2015-05-12 12:58 ` [PATCH v2 02/12] clocksource: sti: Provide support for the ST LPC Clocksource IP Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 05/12] watchdog: st_wdt: Update IP layout information to include Clocksource Lee Jones
` (2 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ, Lee Jones
On current ST platforms the LPC controls a number of functions including
Watchdog and Real Time Clock. This patch provides the bindings used to
configure LPC in Clocksource mode.
Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
.../devicetree/bindings/timer/st,stih407-lpc | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/st,stih407-lpc
diff --git a/Documentation/devicetree/bindings/timer/st,stih407-lpc b/Documentation/devicetree/bindings/timer/st,stih407-lpc
new file mode 100644
index 0000000..72acb48
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/st,stih407-lpc
@@ -0,0 +1,28 @@
+STMicroelectronics Low Power Controller (LPC) - Clocksource
+===========================================================
+
+LPC currently supports Watchdog OR Real Time Clock OR Clocksource
+functionality.
+
+[See: ../watchdog/st_lpc_wdt.txt for Watchdog options]
+[See: ../rtc/rtc-st-lpc.txt for RTC options]
+
+Required properties
+
+- compatible : Must be: "st,stih407-lpc"
+- reg : LPC registers base address + size
+- interrupts : LPC interrupt line number and associated flags
+- clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
+- st,lpc-mode : The LPC can run either one of three modes:
+ ST_LPC_MODE_RTC [0]
+ ST_LPC_MODE_WDT [1]
+ ST_LPC_MODE_CLKSRC [2]
+ One (and only one) mode must be selected.
+
+Example:
+ lpc@fde05000 {
+ compatible = "st,stih407-lpc";
+ reg = <0xfde05000 0x1000>;
+ clocks = <&clk_s_d3_flexgen CLK_LPC_0>;
+ st,lpc-mode = <ST_LPC_MODE_CLKSRC>;
+ };
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 05/12] watchdog: st_wdt: Update IP layout information to include Clocksource
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
` (2 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 04/12] clocksource: bindings: Provide bindings for ST's LPC Clocksource device Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-05-12 12:58 ` [PATCH v2 09/12] MAINTAINERS: Add the LPC Clocksource to STi maintained driver list Lee Jones
2015-06-01 7:38 ` [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
5 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ, Lee Jones
Initial submission adding support for this IP only included Watchdog and
the Real-Time Clock. Now the third (and final) device is enabled this
trivial patch is required to update the comment in the Watchdog driver
to encompass Clocksource.
Reviewed-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/watchdog/st_lpc_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/st_lpc_wdt.c b/drivers/watchdog/st_lpc_wdt.c
index f32be15..6785afd 100644
--- a/drivers/watchdog/st_lpc_wdt.c
+++ b/drivers/watchdog/st_lpc_wdt.c
@@ -197,7 +197,7 @@ static int st_wdog_probe(struct platform_device *pdev)
return -EINVAL;
}
- /* LPC can either run in RTC or WDT mode */
+ /* LPC can either run as a Clocksource or in RTC or WDT mode */
if (mode != ST_LPC_MODE_WDT)
return -ENODEV;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 09/12] MAINTAINERS: Add the LPC Clocksource to STi maintained driver list
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
` (3 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 05/12] watchdog: st_wdt: Update IP layout information to include Clocksource Lee Jones
@ 2015-05-12 12:58 ` Lee Jones
2015-06-01 7:38 ` [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set Lee Jones
5 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-05-12 12:58 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ, Lee Jones
Signed-off-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 2bc71e7..af9e952 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1454,6 +1454,7 @@ S: Maintained
F: arch/arm/mach-sti/
F: arch/arm/boot/dts/sti*
F: drivers/clocksource/arm_global_timer.c
+F: drivers/clocksource/clksrc_st_lpc.c
F: drivers/i2c/busses/i2c-st.c
F: drivers/media/rc/st_rc.c
F: drivers/mmc/host/sdhci-st.c
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v2 00/12] mfd: Add support for Clocksource to LPC set
[not found] ` <1431435500-22899-1-git-send-email-lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
` (4 preceding siblings ...)
2015-05-12 12:58 ` [PATCH v2 09/12] MAINTAINERS: Add the LPC Clocksource to STi maintained driver list Lee Jones
@ 2015-06-01 7:38 ` Lee Jones
5 siblings, 0 replies; 18+ messages in thread
From: Lee Jones @ 2015-06-01 7:38 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
tglx-hfZtesqFncYOwBW4kG4KsQ, wim-IQzOog9fTRqzQB+pC5nmwQ,
a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, linux-0h96xk9xTtrk1uMJSBkQmQ
Cc: kernel-F5mvAk5X5gdBDgjK7y7TUQ
Device Tree Maintainers,
All of the functional patches in this series have been Acked by the
relevant maintainers, but the (pretty simple) DT changes are in need
of a suitable Ack.
Would someone mine glancing over them please?
> ST's Low Power Controller (LPC) controls three devices; watchdog, RTC
> and a Clocksource Timer. Only one of the devices can be used at any
> one time, which is enforced by the Device Driver model.
>
> This patchset provides support for the Clocksource driver. Watchdog
> and RTC are already in -next.
>
> Lee Jones (12):
> mfd: dt-bindings: Provide human readable define for Clocksource mode
> clocksource: sti: Provide support for the ST LPC Clocksource IP
> clocksource: sti: Provide 'use timer as sched clock' capability
> clocksource: bindings: Provide bindings for ST's LPC Clocksource
> device
> watchdog: st_wdt: Update IP layout information to include Clocksource
> watchdog: bindings: Supply knowledge of a third supported device -
> clocksource
> rtc: st: Update IP layout information to include Clocksource
> rtc: bindings: Supply knowledge of a third supported device -
> clocksource
> MAINTAINERS: Add the LPC Clocksource to STi maintained driver list
> ARM: STi: DT: STih407: Switch LPC mode from RTC to Clocksource
> ARM: STi: Enable LPC Clocksource
> ARM: STi: Update platform level menuconfig 'help'
>
> .../devicetree/bindings/rtc/rtc-st-lpc.txt | 15 ++-
> .../devicetree/bindings/timer/st,stih407-lpc | 28 +++++
> .../devicetree/bindings/watchdog/st_lpc_wdt.txt | 12 +-
> MAINTAINERS | 1 +
> arch/arm/boot/dts/stih407-family.dtsi | 2 +-
> arch/arm/mach-sti/Kconfig | 10 +-
> drivers/clocksource/Kconfig | 9 ++
> drivers/clocksource/Makefile | 1 +
> drivers/clocksource/clksrc_st_lpc.c | 129 +++++++++++++++++++++
> drivers/rtc/rtc-st-lpc.c | 2 +-
> drivers/watchdog/st_lpc_wdt.c | 2 +-
> include/dt-bindings/mfd/st-lpc.h | 1 +
> 12 files changed, 194 insertions(+), 18 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/timer/st,stih407-lpc
> create mode 100644 drivers/clocksource/clksrc_st_lpc.c
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 18+ messages in thread