242-v6.4-dt-bindings-arm-mediatek-sgmiisys-Convert-to-DT-sche.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. From d4f08a703565abf47baa5a77d05365cf4598d55c Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Sun, 19 Mar 2023 12:56:52 +0000
  4. Subject: [PATCH 1/2] dt-bindings: arm: mediatek: sgmiisys: Convert to DT
  5. schema
  6. Convert mediatek,sgmiiisys bindings to DT schema format.
  7. Add maintainer Matthias Brugger, no maintainers were listed in the
  8. original documentation.
  9. As this node is also referenced by the Ethernet controller and used
  10. as SGMII PCS add this fact to the description.
  11. Move the file to Documentation/devicetree/bindings/net/pcs/ which seems
  12. more appropriate given that the great majority of registers are related
  13. to SGMII PCS functionality and only one register represents clock bits.
  14. Reviewed-by: Rob Herring <[email protected]>
  15. Signed-off-by: Daniel Golle <[email protected]>
  16. Signed-off-by: Jakub Kicinski <[email protected]>
  17. ---
  18. .../arm/mediatek/mediatek,sgmiisys.txt | 27 ----------
  19. .../bindings/net/pcs/mediatek,sgmiisys.yaml | 49 +++++++++++++++++++
  20. 2 files changed, 49 insertions(+), 27 deletions(-)
  21. delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt
  22. create mode 100644 Documentation/devicetree/bindings/net/pcs/mediatek,sgmiisys.yaml
  23. --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sgmiisys.txt
  24. +++ /dev/null
  25. @@ -1,27 +0,0 @@
  26. -MediaTek SGMIISYS controller
  27. -============================
  28. -
  29. -The MediaTek SGMIISYS controller provides various clocks to the system.
  30. -
  31. -Required Properties:
  32. -
  33. -- compatible: Should be:
  34. - - "mediatek,mt7622-sgmiisys", "syscon"
  35. - - "mediatek,mt7629-sgmiisys", "syscon"
  36. - - "mediatek,mt7981-sgmiisys_0", "syscon"
  37. - - "mediatek,mt7981-sgmiisys_1", "syscon"
  38. - - "mediatek,mt7986-sgmiisys_0", "syscon"
  39. - - "mediatek,mt7986-sgmiisys_1", "syscon"
  40. -- #clock-cells: Must be 1
  41. -
  42. -The SGMIISYS controller uses the common clk binding from
  43. -Documentation/devicetree/bindings/clock/clock-bindings.txt
  44. -The available clocks are defined in dt-bindings/clock/mt*-clk.h.
  45. -
  46. -Example:
  47. -
  48. -sgmiisys: sgmiisys@1b128000 {
  49. - compatible = "mediatek,mt7622-sgmiisys", "syscon";
  50. - reg = <0 0x1b128000 0 0x1000>;
  51. - #clock-cells = <1>;
  52. -};
  53. --- /dev/null
  54. +++ b/Documentation/devicetree/bindings/net/pcs/mediatek,sgmiisys.yaml
  55. @@ -0,0 +1,49 @@
  56. +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  57. +%YAML 1.2
  58. +---
  59. +$id: http://devicetree.org/schemas/net/pcs/mediatek,sgmiisys.yaml#
  60. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  61. +
  62. +title: MediaTek SGMIISYS Controller
  63. +
  64. +maintainers:
  65. + - Matthias Brugger <[email protected]>
  66. +
  67. +description:
  68. + The MediaTek SGMIISYS controller provides a SGMII PCS and some clocks
  69. + to the ethernet subsystem to which it is attached.
  70. +
  71. +properties:
  72. + compatible:
  73. + items:
  74. + - enum:
  75. + - mediatek,mt7622-sgmiisys
  76. + - mediatek,mt7629-sgmiisys
  77. + - mediatek,mt7986-sgmiisys_0
  78. + - mediatek,mt7986-sgmiisys_1
  79. + - const: syscon
  80. +
  81. + reg:
  82. + maxItems: 1
  83. +
  84. + '#clock-cells':
  85. + const: 1
  86. +
  87. +required:
  88. + - compatible
  89. + - reg
  90. + - '#clock-cells'
  91. +
  92. +additionalProperties: false
  93. +
  94. +examples:
  95. + - |
  96. + soc {
  97. + #address-cells = <2>;
  98. + #size-cells = <2>;
  99. + sgmiisys: syscon@1b128000 {
  100. + compatible = "mediatek,mt7622-sgmiisys", "syscon";
  101. + reg = <0 0x1b128000 0 0x1000>;
  102. + #clock-cells = <1>;
  103. + };
  104. + };