005-v6.5-01-dt-bindings-clock-add-mtmips-SoCs-system-controller.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. From 612616e6381929e7f9e303f8b8ad3655cc101516 Mon Sep 17 00:00:00 2001
  2. From: Sergio Paracuellos <[email protected]>
  3. Date: Mon, 19 Jun 2023 06:09:33 +0200
  4. Subject: [PATCH 1/9] dt-bindings: clock: add mtmips SoCs system controller
  5. Adds device tree binding documentation for system controller node present
  6. in Mediatek MIPS and Ralink SOCs. This node is a clock and reset provider
  7. for the rest of the world. This covers RT2880, RT3050, RT3052, RT3350,
  8. RT3883, RT5350, MT7620, MT7628 and MT7688 SoCs.
  9. Reviewed-by: Rob Herring <[email protected]>
  10. Acked-by: Stephen Boyd <[email protected]>
  11. Signed-off-by: Sergio Paracuellos <[email protected]>
  12. Signed-off-by: Thomas Bogendoerfer <[email protected]>
  13. ---
  14. .../bindings/clock/mediatek,mtmips-sysc.yaml | 64 ++++++++++++++++++++++
  15. 1 file changed, 64 insertions(+)
  16. create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
  17. --- /dev/null
  18. +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml
  19. @@ -0,0 +1,64 @@
  20. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  21. +%YAML 1.2
  22. +---
  23. +$id: http://devicetree.org/schemas/clock/mediatek,mtmips-sysc.yaml#
  24. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  25. +
  26. +title: MTMIPS SoCs System Controller
  27. +
  28. +maintainers:
  29. + - Sergio Paracuellos <[email protected]>
  30. +
  31. +description: |
  32. + MediaTek MIPS and Ralink SoCs provides a system controller to allow
  33. + to access to system control registers. These registers include clock
  34. + and reset related ones so this node is both clock and reset provider
  35. + for the rest of the world.
  36. +
  37. + These SoCs have an XTAL from where the cpu clock is
  38. + provided as well as derived clocks for the bus and the peripherals.
  39. +
  40. +properties:
  41. + compatible:
  42. + items:
  43. + - enum:
  44. + - ralink,mt7620-sysc
  45. + - ralink,mt7628-sysc
  46. + - ralink,mt7688-sysc
  47. + - ralink,rt2880-sysc
  48. + - ralink,rt3050-sysc
  49. + - ralink,rt3052-sysc
  50. + - ralink,rt3352-sysc
  51. + - ralink,rt3883-sysc
  52. + - ralink,rt5350-sysc
  53. + - const: syscon
  54. +
  55. + reg:
  56. + maxItems: 1
  57. +
  58. + '#clock-cells':
  59. + description:
  60. + The first cell indicates the clock number.
  61. + const: 1
  62. +
  63. + '#reset-cells':
  64. + description:
  65. + The first cell indicates the reset bit within the register.
  66. + const: 1
  67. +
  68. +required:
  69. + - compatible
  70. + - reg
  71. + - '#clock-cells'
  72. + - '#reset-cells'
  73. +
  74. +additionalProperties: false
  75. +
  76. +examples:
  77. + - |
  78. + syscon@0 {
  79. + compatible = "ralink,rt5350-sysc", "syscon";
  80. + reg = <0x0 0x100>;
  81. + #clock-cells = <1>;
  82. + #reset-cells = <1>;
  83. + };