155-wdt-add-new-compats.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. For historical reasons, the Allwinner A10 compatibles are not following the
  6. patterns used for this other Allwinner SoCs.
  7. Introduce a new compatible following the usual pattern, and deprecate the olders.
  8. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  9. ---
  10. Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 7 ++++---
  11. drivers/watchdog/sunxi_wdt.c | 1 +
  12. 2 files changed, 5 insertions(+), 3 deletions(-)
  13. --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
  14. +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt
  15. @@ -2,13 +2,14 @@ Allwinner SoCs Watchdog timer
  16. Required properties:
  17. -- compatible : should be "allwinner,<soc-family>-wdt", the currently supported
  18. - SoC families being sun4i and sun6i
  19. +- compatible : should be either "allwinner,sun4i-a10-wdt" or
  20. + "allwinner,sun6i-a31-wdt" (deprecated:
  21. + "allwinner,sun4i-wdt", "allwinner,sun6i-wdt")
  22. - reg : Specifies base physical address and size of the registers.
  23. Example:
  24. wdt: watchdog@01c20c90 {
  25. - compatible = "allwinner,sun4i-wdt";
  26. + compatible = "allwinner,sun4i-a10-wdt";
  27. reg = <0x01c20c90 0x10>;
  28. };
  29. --- a/drivers/watchdog/sunxi_wdt.c
  30. +++ b/drivers/watchdog/sunxi_wdt.c
  31. @@ -206,6 +206,7 @@ static void sunxi_wdt_shutdown(struct pl
  32. static const struct of_device_id sunxi_wdt_dt_ids[] = {
  33. { .compatible = "allwinner,sun4i-wdt" },
  34. + { .compatible = "allwinner,sun4i-a10-wdt" },
  35. { /* sentinel */ }
  36. };
  37. MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids);