0062-dt-bindings-PWM-Add-StarFive-PWM-module.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From 99f0bf43994dada29e33fd8718fd25484634da3a Mon Sep 17 00:00:00 2001
  2. From: William Qiu <[email protected]>
  3. Date: Tue, 21 Mar 2023 13:52:27 +0800
  4. Subject: [PATCH 062/122] dt-bindings: PWM: Add StarFive PWM module
  5. Add documentation to describe StarFive Pulse Width Modulation
  6. controller driver.
  7. Signed-off-by: William Qiu <[email protected]>
  8. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  9. ---
  10. .../bindings/pwm/starfive,jh7110-pwm.yaml | 53 +++++++++++++++++++
  11. 1 file changed, 53 insertions(+)
  12. create mode 100644 Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml
  13. --- /dev/null
  14. +++ b/Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml
  15. @@ -0,0 +1,53 @@
  16. +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  17. +%YAML 1.2
  18. +---
  19. +$id: http://devicetree.org/schemas/pwm/starfive,jh7110-pwm.yaml#
  20. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  21. +
  22. +title: StarFive PWM controller
  23. +
  24. +maintainers:
  25. + - William Qiu <[email protected]>
  26. +
  27. +description:
  28. + StarFive SoCs contain PWM and when operating in PWM mode, the PTC core generates
  29. + binary signal with user-programmable low and high periods. Clock source for the
  30. + PWM can be either system clockor external clock. Each PWM timer block provides 8
  31. + PWM channels.
  32. +
  33. +allOf:
  34. + - $ref: pwm.yaml#
  35. +
  36. +properties:
  37. + compatible:
  38. + const: starfive,jh7110-pwm
  39. +
  40. + reg:
  41. + maxItems: 1
  42. +
  43. + clocks:
  44. + maxItems: 1
  45. +
  46. + resets:
  47. + maxItems: 1
  48. +
  49. + "#pwm-cells":
  50. + const: 3
  51. +
  52. +required:
  53. + - compatible
  54. + - reg
  55. + - clocks
  56. + - resets
  57. +
  58. +additionalProperties: false
  59. +
  60. +examples:
  61. + - |
  62. + pwm@120d0000 {
  63. + compatible = "starfive,jh7110-pwm";
  64. + reg = <0x120d0000 0x10000>;
  65. + clocks = <&syscrg 121>;
  66. + resets = <&syscrg 108>;
  67. + #pwm-cells = <3>;
  68. + };