0107-dt-bindings-mmc-Add-StarFive-MMC-module.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. From fc157f3d411ac570e8261e4238c6e6aac74a6cc6 Mon Sep 17 00:00:00 2001
  2. From: William Qiu <[email protected]>
  3. Date: Wed, 15 Feb 2023 19:32:46 +0800
  4. Subject: [PATCH 107/122] dt-bindings: mmc: Add StarFive MMC module
  5. Add documentation to describe StarFive designware mobile storage
  6. host controller driver.
  7. Signed-off-by: William Qiu <[email protected]>
  8. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  9. ---
  10. .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++
  11. 1 file changed, 77 insertions(+)
  12. create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml
  13. --- /dev/null
  14. +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml
  15. @@ -0,0 +1,77 @@
  16. +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  17. +%YAML 1.2
  18. +---
  19. +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml#
  20. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  21. +
  22. +title: StarFive Designware Mobile Storage Host Controller
  23. +
  24. +description:
  25. + StarFive uses the Synopsys designware mobile storage host controller
  26. + to interface a SoC with storage medium such as eMMC or SD/MMC cards.
  27. +
  28. +allOf:
  29. + - $ref: synopsys-dw-mshc-common.yaml#
  30. +
  31. +maintainers:
  32. + - William Qiu <[email protected]>
  33. +
  34. +properties:
  35. + compatible:
  36. + const: starfive,jh7110-mmc
  37. +
  38. + reg:
  39. + maxItems: 1
  40. +
  41. + clocks:
  42. + items:
  43. + - description: biu clock
  44. + - description: ciu clock
  45. +
  46. + clock-names:
  47. + items:
  48. + - const: biu
  49. + - const: ciu
  50. +
  51. + interrupts:
  52. + maxItems: 1
  53. +
  54. + starfive,sysreg:
  55. + $ref: /schemas/types.yaml#/definitions/phandle-array
  56. + items:
  57. + - items:
  58. + - description: phandle to System Register Controller syscon node
  59. + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller
  60. + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller
  61. + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller
  62. + description:
  63. + Should be four parameters, the phandle to System Register Controller
  64. + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register
  65. + for MMC controller.
  66. +
  67. +required:
  68. + - compatible
  69. + - reg
  70. + - clocks
  71. + - clock-names
  72. + - interrupts
  73. + - starfive,sysreg
  74. +
  75. +unevaluatedProperties: false
  76. +
  77. +examples:
  78. + - |
  79. + mmc@16010000 {
  80. + compatible = "starfive,jh7110-mmc";
  81. + reg = <0x16010000 0x10000>;
  82. + clocks = <&syscrg 91>,
  83. + <&syscrg 93>;
  84. + clock-names = "biu","ciu";
  85. + resets = <&syscrg 64>;
  86. + reset-names = "reset";
  87. + interrupts = <74>;
  88. + fifo-depth = <32>;
  89. + fifo-watermark-aligned;
  90. + data-addr = <0>;
  91. + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>;
  92. + };