atmel,at91sam9260-shdwc.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Microchip AT91 SHDWC Shutdown Controller
  7. maintainers:
  8. - Claudiu Beznea <claudiu.beznea@microchip.com>
  9. description: |
  10. Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO
  11. and VDDCORE and the wake-up detection on debounced input lines.
  12. properties:
  13. compatible:
  14. enum:
  15. - atmel,at91sam9260-shdwc
  16. - atmel,at91sam9rl-shdwc
  17. - atmel,at91sam9x5-shdwc
  18. reg:
  19. maxItems: 1
  20. clocks:
  21. maxItems: 1
  22. atmel,wakeup-mode:
  23. description: operation mode of the wakeup mode
  24. $ref: /schemas/types.yaml#/definitions/string
  25. enum: [ none, high, low, any ]
  26. atmel,wakeup-counter:
  27. description: counter on wake-up 0
  28. $ref: /schemas/types.yaml#/definitions/uint32
  29. minimum: 0
  30. maximum: 15
  31. atmel,wakeup-rtt-timer:
  32. description: enable real-time timer wake-up
  33. type: boolean
  34. atmel,wakeup-rtc-timer:
  35. description: enable real-time clock wake-up
  36. type: boolean
  37. required:
  38. - compatible
  39. - reg
  40. - clocks
  41. allOf:
  42. - if:
  43. properties:
  44. compatible:
  45. contains:
  46. const: atmel,at91sam9x5-shdwc
  47. then:
  48. properties:
  49. atmel,wakeup-rtt-timer: false
  50. - if:
  51. properties:
  52. compatible:
  53. contains:
  54. const: atmel,at91sam9260-shdwc
  55. then:
  56. properties:
  57. atmel,wakeup-rtc-timer: false
  58. additionalProperties: false
  59. examples:
  60. - |
  61. shdwc: poweroff@fffffd10 {
  62. compatible = "atmel,at91sam9260-shdwc";
  63. reg = <0xfffffd10 0x10>;
  64. clocks = <&clk32k>;
  65. };
  66. ...