st,stm32-hwspinlock.yaml 880 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: STMicroelectronics STM32 Hardware Spinlock
  7. maintainers:
  8. - Fabien Dessenne <fabien.dessenne@foss.st.com>
  9. properties:
  10. "#hwlock-cells":
  11. const: 1
  12. compatible:
  13. const: st,stm32-hwspinlock
  14. reg:
  15. maxItems: 1
  16. clocks:
  17. maxItems: 1
  18. clock-names:
  19. items:
  20. - const: hsem
  21. required:
  22. - "#hwlock-cells"
  23. - compatible
  24. - reg
  25. - clocks
  26. - clock-names
  27. additionalProperties: false
  28. examples:
  29. - |
  30. #include <dt-bindings/clock/stm32mp1-clks.h>
  31. hwspinlock@4c000000 {
  32. compatible = "st,stm32-hwspinlock";
  33. #hwlock-cells = <1>;
  34. reg = <0x4c000000 0x400>;
  35. clocks = <&rcc HSEM>;
  36. clock-names = "hsem";
  37. };
  38. ...