adm5120: drop 3.8 and 3.14 support
[openwrt/staging/mkresin.git] / target / linux / sunxi / patches-3.14 / 155-wdt-add-new-compats.patch
1 From ac45fe6b0056d1f92b7c7e5f13514b591a6a9caf Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Sun, 2 Feb 2014 14:55:23 +0100
4 Subject: [PATCH] wdt: sunxi: Introduce a new compatible for the A10 and A31
5
6 For historical reasons, the Allwinner A10 compatibles are not following the
7 patterns used for this other Allwinner SoCs.
8
9 Introduce a new compatible following the usual pattern, and deprecate the olders.
10
11 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
12 ---
13 Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 7 ++++---
14 drivers/watchdog/sunxi_wdt.c | 1 +
15 2 files changed, 5 insertions(+), 3 deletions(-)
16
17 --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
18 +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
19 @@ -2,13 +2,14 @@ Allwinner SoCs Watchdog timer
20
21 Required properties:
22
23 -- compatible : should be "allwinner,<soc-family>-wdt", the currently supported
24 - SoC families being sun4i and sun6i
25 +- compatible : should be either "allwinner,sun4i-a10-wdt" or
26 + "allwinner,sun6i-a31-wdt" (deprecated:
27 + "allwinner,sun4i-wdt", "allwinner,sun6i-wdt")
28 - reg : Specifies base physical address and size of the registers.
29
30 Example:
31
32 wdt: watchdog@01c20c90 {
33 - compatible = "allwinner,sun4i-wdt";
34 + compatible = "allwinner,sun4i-a10-wdt";
35 reg = <0x01c20c90 0x10>;
36 };
37 --- a/drivers/watchdog/sunxi_wdt.c
38 +++ b/drivers/watchdog/sunxi_wdt.c
39 @@ -206,6 +206,7 @@ static void sunxi_wdt_shutdown(struct pl
40
41 static const struct of_device_id sunxi_wdt_dt_ids[] = {
42 { .compatible = "allwinner,sun4i-wdt" },
43 + { .compatible = "allwinner,sun4i-a10-wdt" },
44 { /* sentinel */ }
45 };
46 MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids);