brcm,twd.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/brcm,twd.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Broadcom's Timer-Watchdog (aka TWD)
  7. maintainers:
  8. - Rafał Miłecki <rafal@milecki.pl>
  9. description: |
  10. Broadcom has a Timer-Watchdog block used in multiple SoCs (e.g., BCM4908,
  11. BCM63xx, BCM7038). There are few variants available (they differ slightly in
  12. registers layout). This block consists of: timers, watchdog and optionally a
  13. software reset handler.
  14. properties:
  15. compatible:
  16. items:
  17. - enum:
  18. - brcm,bcm4908-twd
  19. - brcm,bcm7038-twd
  20. - const: simple-mfd
  21. - const: syscon
  22. reg:
  23. maxItems: 1
  24. ranges: true
  25. "#address-cells":
  26. const: 1
  27. "#size-cells":
  28. const: 1
  29. patternProperties:
  30. '^timer@[a-f0-9]+$':
  31. $ref: /schemas/timer/brcm,bcmbca-timer.yaml
  32. '^watchdog@[a-f0-9]+$':
  33. $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml
  34. additionalProperties: false
  35. required:
  36. - reg
  37. examples:
  38. - |
  39. timer-mfd@ff800400 {
  40. compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
  41. reg = <0xff800400 0x4c>;
  42. ranges = <0x00000000 0xff800400 0x4c>;
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. timer@0 {
  46. compatible = "brcm,bcm63138-timer";
  47. reg = <0x0 0x28>;
  48. };
  49. watchdog@28 {
  50. compatible = "brcm,bcm7038-wdt";
  51. reg = <0x28 0x8>;
  52. };
  53. };