001-v5.18-01-dt-bindings-clock-mediatek-mt7621-sysc-add-reset-cel.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 478b09fa2c00cbc40d25bc061befdf11f04a27ad Mon Sep 17 00:00:00 2001
  2. From: Sergio Paracuellos <[email protected]>
  3. Date: Thu, 10 Feb 2022 10:48:58 +0100
  4. Subject: [PATCH 1/2] dt-bindings: clock: mediatek,mt7621-sysc: add '#reset-cells' property
  5. Make system controller a reset provider for all the peripherals in the
  6. MT7621 SoC adding '#reset-cells' property.
  7. Acked-by: Rob Herring <[email protected]>
  8. Acked-by: Stephen Boyd <[email protected]>
  9. Signed-off-by: Sergio Paracuellos <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  12. ---
  13. .../devicetree/bindings/clock/mediatek,mt7621-sysc.yaml | 12 ++++++++++++
  14. 1 file changed, 12 insertions(+)
  15. --- a/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml
  16. +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml
  17. @@ -22,6 +22,11 @@ description: |
  18. The clocks are provided inside a system controller node.
  19. + This node is also a reset provider for all the peripherals.
  20. +
  21. + Reset related bits are defined in:
  22. + [2]: <include/dt-bindings/reset/mt7621-reset.h>.
  23. +
  24. properties:
  25. compatible:
  26. items:
  27. @@ -37,6 +42,12 @@ properties:
  28. clocks.
  29. const: 1
  30. + "#reset-cells":
  31. + description:
  32. + The first cell indicates the reset bit within the register, see
  33. + [2] for available resets.
  34. + const: 1
  35. +
  36. ralink,memctl:
  37. $ref: /schemas/types.yaml#/definitions/phandle
  38. description:
  39. @@ -61,6 +72,7 @@ examples:
  40. compatible = "mediatek,mt7621-sysc", "syscon";
  41. reg = <0x0 0x100>;
  42. #clock-cells = <1>;
  43. + #reset-cells = <1>;
  44. ralink,memctl = <&memc>;
  45. clock-output-names = "xtal", "cpu", "bus",
  46. "50m", "125m", "150m",