x-powers,ac100.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/x-powers,ac100.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: X-Powers AC100
  7. maintainers:
  8. - Chen-Yu Tsai <wens@csie.org>
  9. properties:
  10. compatible:
  11. const: x-powers,ac100
  12. reg:
  13. maxItems: 1
  14. codec:
  15. type: object
  16. properties:
  17. "#clock-cells":
  18. const: 0
  19. compatible:
  20. const: x-powers,ac100-codec
  21. interrupts:
  22. maxItems: 1
  23. clock-output-names:
  24. maxItems: 1
  25. description: >
  26. Name of the 4M_adda clock exposed by the codec
  27. required:
  28. - "#clock-cells"
  29. - compatible
  30. - interrupts
  31. - clock-output-names
  32. additionalProperties: false
  33. rtc:
  34. type: object
  35. properties:
  36. "#clock-cells":
  37. const: 1
  38. compatible:
  39. const: x-powers,ac100-rtc
  40. interrupts:
  41. maxItems: 1
  42. clocks:
  43. maxItems: 1
  44. description: >
  45. A phandle to the codec's "4M_adda" clock
  46. clock-output-names:
  47. maxItems: 3
  48. description: >
  49. Name of the cko1, cko2 and cko3 clocks exposed by the codec
  50. required:
  51. - "#clock-cells"
  52. - compatible
  53. - interrupts
  54. - clocks
  55. - clock-output-names
  56. additionalProperties: false
  57. required:
  58. - compatible
  59. - reg
  60. - codec
  61. - rtc
  62. additionalProperties: false
  63. examples:
  64. - |
  65. #include <dt-bindings/interrupt-controller/irq.h>
  66. rsb {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. codec@e89 {
  70. compatible = "x-powers,ac100";
  71. reg = <0xe89>;
  72. ac100_codec: codec {
  73. compatible = "x-powers,ac100-codec";
  74. interrupt-parent = <&r_pio>;
  75. interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
  76. #clock-cells = <0>;
  77. clock-output-names = "4M_adda";
  78. };
  79. ac100_rtc: rtc {
  80. compatible = "x-powers,ac100-rtc";
  81. interrupt-parent = <&nmi_intc>;
  82. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  83. clocks = <&ac100_codec>;
  84. #clock-cells = <1>;
  85. clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc";
  86. };
  87. };
  88. };
  89. ...