* [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config
@ 2015-02-21 2:19 Mathieu Olivari
2015-02-21 2:19 ` [PATCH 1/3] watchdog: qcom: use timer devicetree binding Mathieu Olivari
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Mathieu Olivari @ 2015-02-21 2:19 UTC (permalink / raw)
To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux,
wim, corbet, standby24x7, mathieu
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-watchdog
This change is done as a follow-up to the following thread:
https://lkml.org/lkml/2014/10/1/436
qcom-wdt is currently assuming the presence of a dedicated node in DT
to gets its configuration. However, on msm architecture, the watchdog is
usually part of the timer block. So this patch-set is changing the driver
and slightly enhancing the timer DT bindings to provide the relevant clocks
and interrupts.
Mathieu Olivari (3):
watchdog: qcom: use timer devicetree binding
ARM: qcom: add description of KPSS WDT for IPQ8064
ARM: msm: add watchdog entries to DT timer binding doc
Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++---
arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++-
drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------
3 files changed, 41 insertions(+), 10 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 13+ messages in thread* [PATCH 1/3] watchdog: qcom: use timer devicetree binding 2015-02-21 2:19 [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Mathieu Olivari @ 2015-02-21 2:19 ` Mathieu Olivari [not found] ` <1424485176-8348-2-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2015-02-23 19:31 ` Guenter Roeck 2015-02-21 2:19 ` [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 Mathieu Olivari [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2 siblings, 2 replies; 13+ messages in thread From: Mathieu Olivari @ 2015-02-21 2:19 UTC (permalink / raw) To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, wim, corbet, standby24x7, mathieu Cc: devicetree, linux-kernel, linux-arm-kernel, linux-watchdog MSM watchdog configuration happens in the same register block as the timer, so we'll use the same binding as the existing timer. The qcom-wdt will now be probed when devicetree has an entry compatible with "qcom,kpss-timer" or "qcom-scss-timer". Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> --- drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c index aa85618..aa03ca8 100644 --- a/drivers/watchdog/qcom-wdt.c +++ b/drivers/watchdog/qcom-wdt.c @@ -20,9 +20,9 @@ #include <linux/reboot.h> #include <linux/watchdog.h> -#define WDT_RST 0x0 -#define WDT_EN 0x8 -#define WDT_BITE_TIME 0x24 +#define WDT_RST 0x38 +#define WDT_EN 0x40 +#define WDT_BITE_TIME 0x5C struct qcom_wdt { struct watchdog_device wdd; @@ -117,6 +117,8 @@ static int qcom_wdt_probe(struct platform_device *pdev) { struct qcom_wdt *wdt; struct resource *res; + struct device_node *np = pdev->dev.of_node; + u32 percpu_offset; int ret; wdt = devm_kzalloc(&pdev->dev, sizeof(*wdt), GFP_KERNEL); @@ -124,6 +126,14 @@ static int qcom_wdt_probe(struct platform_device *pdev) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + + /* We use CPU0's DGT for the watchdog */ + if (of_property_read_u32(np, "cpu-offset", &percpu_offset)) + percpu_offset = 0; + + res->start += percpu_offset; + res->end += percpu_offset; + wdt->base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(wdt->base)) return PTR_ERR(wdt->base); @@ -203,9 +213,8 @@ static int qcom_wdt_remove(struct platform_device *pdev) } static const struct of_device_id qcom_wdt_of_table[] = { - { .compatible = "qcom,kpss-wdt-msm8960", }, - { .compatible = "qcom,kpss-wdt-apq8064", }, - { .compatible = "qcom,kpss-wdt-ipq8064", }, + { .compatible = "qcom,kpss-timer" }, + { .compatible = "qcom,scss-timer" }, { }, }; MODULE_DEVICE_TABLE(of, qcom_wdt_of_table); -- 1.9.1 ^ permalink raw reply related [flat|nested] 13+ messages in thread
[parent not found: <1424485176-8348-2-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>]
* Re: [PATCH 1/3] watchdog: qcom: use timer devicetree binding [not found] ` <1424485176-8348-2-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> @ 2015-02-23 19:04 ` Stephen Boyd 0 siblings, 0 replies; 13+ messages in thread From: Stephen Boyd @ 2015-02-23 19:04 UTC (permalink / raw) To: Mathieu Olivari, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, wim-IQzOog9fTRqzQB+pC5nmwQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 02/20/15 18:19, Mathieu Olivari wrote: > MSM watchdog configuration happens in the same register block as the > timer, so we'll use the same binding as the existing timer. > > The qcom-wdt will now be probed when devicetree has an entry compatible > with "qcom,kpss-timer" or "qcom-scss-timer". > > Signed-off-by: Mathieu Olivari <mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> > Reviewed-by: Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- 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] 13+ messages in thread
* Re: [PATCH 1/3] watchdog: qcom: use timer devicetree binding 2015-02-21 2:19 ` [PATCH 1/3] watchdog: qcom: use timer devicetree binding Mathieu Olivari [not found] ` <1424485176-8348-2-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> @ 2015-02-23 19:31 ` Guenter Roeck 1 sibling, 0 replies; 13+ messages in thread From: Guenter Roeck @ 2015-02-23 19:31 UTC (permalink / raw) To: Mathieu Olivari Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, wim, corbet, standby24x7, devicetree, linux-kernel, linux-arm-kernel, linux-watchdog On Fri, Feb 20, 2015 at 06:19:34PM -0800, Mathieu Olivari wrote: > MSM watchdog configuration happens in the same register block as the > timer, so we'll use the same binding as the existing timer. > > The qcom-wdt will now be probed when devicetree has an entry compatible > with "qcom,kpss-timer" or "qcom-scss-timer". > > Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> Acked-by: Guenter Roeck <linux@roeck-us.net> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 2015-02-21 2:19 [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Mathieu Olivari 2015-02-21 2:19 ` [PATCH 1/3] watchdog: qcom: use timer devicetree binding Mathieu Olivari @ 2015-02-21 2:19 ` Mathieu Olivari 2015-02-23 19:05 ` Stephen Boyd 2015-02-23 19:32 ` Guenter Roeck [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2 siblings, 2 replies; 13+ messages in thread From: Mathieu Olivari @ 2015-02-21 2:19 UTC (permalink / raw) To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, wim, corbet, standby24x7, mathieu Cc: devicetree, linux-kernel, linux-arm-kernel, linux-watchdog, Josh Cartwright Add the watchdog related entries to the Krait Processor Sub-system (KPSS) timer IPQ8064 devicetree section. Also, add a fixed-clock description of SLEEP_CLK, which will do for now. Signed-off-by: Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index cb225da..d01f618 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -60,6 +60,14 @@ }; }; + clocks { + sleep_clk: sleep_clk { + compatible = "fixed-clock"; + clock-frequency = <32768>; + #clock-cells = <0>; + }; + }; + soc: soc { #address-cells = <1>; #size-cells = <1>; @@ -89,10 +97,14 @@ compatible = "qcom,kpss-timer", "qcom,msm-timer"; interrupts = <1 1 0x301>, <1 2 0x301>, - <1 3 0x301>; + <1 3 0x301>, + <1 4 0x301>, + <1 5 0x301>; reg = <0x0200a000 0x100>; clock-frequency = <25000000>, <32768>; + clocks = <&sleep_clk>; + clock-names = "sleep"; cpu-offset = <0x80000>; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 2015-02-21 2:19 ` [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 Mathieu Olivari @ 2015-02-23 19:05 ` Stephen Boyd 2015-02-23 19:32 ` Guenter Roeck 1 sibling, 0 replies; 13+ messages in thread From: Stephen Boyd @ 2015-02-23 19:05 UTC (permalink / raw) To: Mathieu Olivari, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, wim, corbet, standby24x7 Cc: devicetree, Josh Cartwright, linux-kernel, linux-arm-kernel, linux-watchdog On 02/20/15 18:19, Mathieu Olivari wrote: > Add the watchdog related entries to the Krait Processor Sub-system > (KPSS) timer IPQ8064 devicetree section. Also, add a fixed-clock > description of SLEEP_CLK, which will do for now. > > Signed-off-by: Josh Cartwright <joshc@codeaurora.org> > Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> > Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 2015-02-21 2:19 ` [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 Mathieu Olivari 2015-02-23 19:05 ` Stephen Boyd @ 2015-02-23 19:32 ` Guenter Roeck 1 sibling, 0 replies; 13+ messages in thread From: Guenter Roeck @ 2015-02-23 19:32 UTC (permalink / raw) To: Mathieu Olivari Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, wim, corbet, standby24x7, devicetree, linux-kernel, linux-arm-kernel, linux-watchdog, Josh Cartwright On Fri, Feb 20, 2015 at 06:19:35PM -0800, Mathieu Olivari wrote: > Add the watchdog related entries to the Krait Processor Sub-system > (KPSS) timer IPQ8064 devicetree section. Also, add a fixed-clock > description of SLEEP_CLK, which will do for now. > > Signed-off-by: Josh Cartwright <joshc@codeaurora.org> > Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> Acked-by: Guenter Roeck <linux@roeck-us.net> ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>]
* [PATCH 3/3] ARM: msm: add watchdog entries to DT timer binding doc [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> @ 2015-02-21 2:19 ` Mathieu Olivari [not found] ` <1424485176-8348-4-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2015-02-23 21:35 ` [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Arnd Bergmann ` (2 subsequent siblings) 3 siblings, 1 reply; 13+ messages in thread From: Mathieu Olivari @ 2015-02-21 2:19 UTC (permalink / raw) To: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, wim-IQzOog9fTRqzQB+pC5nmwQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, mathieu-sgV2jX0FEOL9JmXXK+q4OQ Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA The watchdog has been reworked to use the same DT node as the timer. This change is updating the device tree doc accordingly. Signed-off-by: Mathieu Olivari <mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> --- Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/msm/timer.txt b/Documentation/devicetree/bindings/arm/msm/timer.txt index 74607b6..5e10c34 100644 --- a/Documentation/devicetree/bindings/arm/msm/timer.txt +++ b/Documentation/devicetree/bindings/arm/msm/timer.txt @@ -9,11 +9,17 @@ Properties: "qcom,scss-timer" - scorpion subsystem - interrupts : Interrupts for the debug timer, the first general purpose - timer, and optionally a second general purpose timer in that - order. + timer, and optionally a second general purpose timer, and + optionally as well, 2 watchdog interrupts, in that order. - reg : Specifies the base address of the timer registers. +- clocks: Reference to the parent clocks, one per output clock. The parents + must appear in the same order as the clock names. + +- clock-names: The name of the clocks as free-form strings. They should be in + the same order as the clocks. + - clock-frequency : The frequency of the debug timer and the general purpose timer(s) in Hz in that order. @@ -29,9 +35,13 @@ Example: compatible = "qcom,scss-timer", "qcom,msm-timer"; interrupts = <1 1 0x301>, <1 2 0x301>, - <1 3 0x301>; + <1 3 0x301>, + <1 4 0x301>, + <1 5 0x301>; reg = <0x0200a000 0x100>; clock-frequency = <19200000>, <32768>; + clocks = <&sleep_clk>; + clock-names = "sleep"; cpu-offset = <0x40000>; }; -- 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] 13+ messages in thread
[parent not found: <1424485176-8348-4-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>]
* Re: [PATCH 3/3] ARM: msm: add watchdog entries to DT timer binding doc [not found] ` <1424485176-8348-4-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> @ 2015-02-23 19:33 ` Guenter Roeck 0 siblings, 0 replies; 13+ messages in thread From: Guenter Roeck @ 2015-02-23 19:33 UTC (permalink / raw) To: Mathieu Olivari Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, wim-IQzOog9fTRqzQB+pC5nmwQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Fri, Feb 20, 2015 at 06:19:36PM -0800, Mathieu Olivari wrote: > The watchdog has been reworked to use the same DT node as the timer. > This change is updating the device tree doc accordingly. > > Signed-off-by: Mathieu Olivari <mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> Acked-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> -- 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] 13+ messages in thread
* Re: [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2015-02-21 2:19 ` [PATCH 3/3] ARM: msm: add watchdog entries to DT timer binding doc Mathieu Olivari @ 2015-02-23 21:35 ` Arnd Bergmann 2015-02-23 22:07 ` Stephen Boyd 2015-03-27 5:55 ` Stephen Boyd 2015-03-27 7:59 ` Wim Van Sebroeck 3 siblings, 1 reply; 13+ messages in thread From: Arnd Bergmann @ 2015-02-23 21:35 UTC (permalink / raw) To: Mathieu Olivari Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, wim-IQzOog9fTRqzQB+pC5nmwQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On Friday 20 February 2015 18:19:33 Mathieu Olivari wrote: > This change is done as a follow-up to the following thread: > https://lkml.org/lkml/2014/10/1/436 > > qcom-wdt is currently assuming the presence of a dedicated node in DT > to gets its configuration. However, on msm architecture, the watchdog is > usually part of the timer block. So this patch-set is changing the driver > and slightly enhancing the timer DT bindings to provide the relevant clocks > and interrupts. > > Mathieu Olivari (3): > watchdog: qcom: use timer devicetree binding > ARM: qcom: add description of KPSS WDT for IPQ8064 > ARM: msm: add watchdog entries to DT timer binding doc > > Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- > arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- > drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ > 3 files changed, 41 insertions(+), 10 deletions(-) > > What about the binding document in Documentation/devicetree/bindings/watchdog/qcom-wdt.txt? Arnd -- 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] 13+ messages in thread
* Re: [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config 2015-02-23 21:35 ` [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Arnd Bergmann @ 2015-02-23 22:07 ` Stephen Boyd 0 siblings, 0 replies; 13+ messages in thread From: Stephen Boyd @ 2015-02-23 22:07 UTC (permalink / raw) To: Arnd Bergmann, Mathieu Olivari Cc: mark.rutland-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-lFZ/pmaqli7XmaaqVzeoHQ, linux-watchdog-u79uwXL29TY76Z2rM5mHXA, pawel.moll-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, corbet-T1hC0tSOHrs, linux-kernel-u79uwXL29TY76Z2rM5mHXA, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, wim-IQzOog9fTRqzQB+pC5nmwQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 02/23/15 13:35, Arnd Bergmann wrote: > On Friday 20 February 2015 18:19:33 Mathieu Olivari wrote: >> This change is done as a follow-up to the following thread: >> https://lkml.org/lkml/2014/10/1/436 >> >> qcom-wdt is currently assuming the presence of a dedicated node in DT >> to gets its configuration. However, on msm architecture, the watchdog is >> usually part of the timer block. So this patch-set is changing the driver >> and slightly enhancing the timer DT bindings to provide the relevant clocks >> and interrupts. >> >> Mathieu Olivari (3): >> watchdog: qcom: use timer devicetree binding >> ARM: qcom: add description of KPSS WDT for IPQ8064 >> ARM: msm: add watchdog entries to DT timer binding doc >> >> Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- >> arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- >> drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ >> 3 files changed, 41 insertions(+), 10 deletions(-) >> >> > What about the binding document in > Documentation/devicetree/bindings/watchdog/qcom-wdt.txt? > > We can rewrite it for platforms starting with msm8974 and beyond or delete it and write a new binding. It's a similar hardware block split out from the timers and then made to use a SPI instead of a PPI for the interrupt sources. We also lost the CPU remapping feature so there is really only one watchdog instead of 2 per cpu. Oh and the register offsets are different, but otherwise the registers are the same. ---8<----- From: Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> Subject: [PATCH] Documentation: qcom-wdt: Update binding for individual block On msm8974 and beyond the KPSS watchdog is split out of the timer block and made to be a single instance instead of per-cpu. Let's update the binding to reflect this and replace the binding that is handled by the qcom,kpss-timer binding. Signed-off-by: Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> --- Documentation/devicetree/bindings/watchdog/qcom-wdt.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt b/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt index 4726924d034e..78b92bec4c3a 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.txt @@ -2,14 +2,10 @@ Qualcomm Krait Processor Sub-system (KPSS) Watchdog --------------------------------------------------- Required properties : -- compatible : shall contain only one of the following: - - "qcom,kpss-wdt-msm8960" - "qcom,kpss-wdt-apq8064" - "qcom,kpss-wdt-ipq8064" - +- compatible : shall contain "qcom,kpss-wdt" - reg : shall contain base register location and length - clocks : shall contain the input clock +- interrupts : shall contain the bark and bite interrupts in that order Optional properties : - timeout-sec : shall contain the default watchdog timeout in seconds, @@ -17,8 +13,9 @@ Optional properties : Example: watchdog@208a038 { - compatible = "qcom,kpss-wdt-ipq8064"; - reg = <0x0208a038 0x40>; + compatible = "qcom,kpss-wdt"; + reg = <0xf9017000 0x1000>; + interrupts = <0 3 0>, <0 4 0>; clocks = <&sleep_clk>; timeout-sec = <10>; }; -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- 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] 13+ messages in thread
* Re: [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> 2015-02-21 2:19 ` [PATCH 3/3] ARM: msm: add watchdog entries to DT timer binding doc Mathieu Olivari 2015-02-23 21:35 ` [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Arnd Bergmann @ 2015-03-27 5:55 ` Stephen Boyd 2015-03-27 7:59 ` Wim Van Sebroeck 3 siblings, 0 replies; 13+ messages in thread From: Stephen Boyd @ 2015-03-27 5:55 UTC (permalink / raw) To: Wim Van Sebroeck Cc: Mathieu Olivari, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA On 02/20, Mathieu Olivari wrote: > This change is done as a follow-up to the following thread: > https://lkml.org/lkml/2014/10/1/436 > > qcom-wdt is currently assuming the presence of a dedicated node in DT > to gets its configuration. However, on msm architecture, the watchdog is > usually part of the timer block. So this patch-set is changing the driver > and slightly enhancing the timer DT bindings to provide the relevant clocks > and interrupts. > > Mathieu Olivari (3): > watchdog: qcom: use timer devicetree binding > ARM: qcom: add description of KPSS WDT for IPQ8064 > ARM: msm: add watchdog entries to DT timer binding doc > > Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- > arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- > drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ > 3 files changed, 41 insertions(+), 10 deletions(-) > Can this patchset be applied? Or should we resend with collected acks? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- 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] 13+ messages in thread
* Re: [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config [not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> ` (2 preceding siblings ...) 2015-03-27 5:55 ` Stephen Boyd @ 2015-03-27 7:59 ` Wim Van Sebroeck 3 siblings, 0 replies; 13+ messages in thread From: Wim Van Sebroeck @ 2015-03-27 7:59 UTC (permalink / raw) To: Mathieu Olivari Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, corbet-T1hC0tSOHrs, standby24x7-Re5JQEeQqe8AvxtiuMwx3w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-watchdog-u79uwXL29TY76Z2rM5mHXA Hi Mathieu, > This change is done as a follow-up to the following thread: > https://lkml.org/lkml/2014/10/1/436 > > qcom-wdt is currently assuming the presence of a dedicated node in DT > to gets its configuration. However, on msm architecture, the watchdog is > usually part of the timer block. So this patch-set is changing the driver > and slightly enhancing the timer DT bindings to provide the relevant clocks > and interrupts. > > Mathieu Olivari (3): > watchdog: qcom: use timer devicetree binding > ARM: qcom: add description of KPSS WDT for IPQ8064 > ARM: msm: add watchdog entries to DT timer binding doc > > Documentation/devicetree/bindings/arm/msm/timer.txt | 16 +++++++++++++--- > arch/arm/boot/dts/qcom-ipq8064.dtsi | 14 +++++++++++++- > drivers/watchdog/qcom-wdt.c | 21 +++++++++++++++------ > 3 files changed, 41 insertions(+), 10 deletions(-) This patchset has been added to linux-watchdog-next. Kind regards, Wim. -- 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] 13+ messages in thread
end of thread, other threads:[~2015-03-27 7:59 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 2:19 [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Mathieu Olivari
2015-02-21 2:19 ` [PATCH 1/3] watchdog: qcom: use timer devicetree binding Mathieu Olivari
[not found] ` <1424485176-8348-2-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-02-23 19:04 ` Stephen Boyd
2015-02-23 19:31 ` Guenter Roeck
2015-02-21 2:19 ` [PATCH 2/3] ARM: qcom: add description of KPSS WDT for IPQ8064 Mathieu Olivari
2015-02-23 19:05 ` Stephen Boyd
2015-02-23 19:32 ` Guenter Roeck
[not found] ` <1424485176-8348-1-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-02-21 2:19 ` [PATCH 3/3] ARM: msm: add watchdog entries to DT timer binding doc Mathieu Olivari
[not found] ` <1424485176-8348-4-git-send-email-mathieu-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-02-23 19:33 ` Guenter Roeck
2015-02-23 21:35 ` [PATCH 0/3] arm: msm: Use timer DT node for qcom watchdog config Arnd Bergmann
2015-02-23 22:07 ` Stephen Boyd
2015-03-27 5:55 ` Stephen Boyd
2015-03-27 7:59 ` Wim Van Sebroeck
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox