411-dt-bindings-add-documentation-for-mt7621-nand-driver.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. From 3d5f4da8296b23eb3abf8b13122b0d06a215e79c Mon Sep 17 00:00:00 2001
  2. From: Weijie Gao <[email protected]>
  3. Date: Wed, 1 Apr 2020 02:07:59 +0800
  4. Subject: [PATCH 2/2] dt-bindings: add documentation for mt7621-nand driver
  5. This patch adds documentation for MediaTek MT7621 NAND flash controller
  6. driver.
  7. Signed-off-by: Weijie Gao <[email protected]>
  8. ---
  9. .../bindings/mtd/mediatek,mt7621-nfc.yaml | 68 ++++++++++++++++++++++
  10. 1 file changed, 68 insertions(+)
  11. create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,mt7621-nfc.yaml
  12. --- /dev/null
  13. +++ b/Documentation/devicetree/bindings/mtd/mediatek,mt7621-nfc.yaml
  14. @@ -0,0 +1,68 @@
  15. +# SPDX-License-Identifier: GPL-2.0
  16. +%YAML 1.2
  17. +---
  18. +$id: http://devicetree.org/schemas/mtd/mediatek,mt7621-nfc.yaml#
  19. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  20. +
  21. +title: MediaTek MT7621 SoC NAND Flash Controller (NFC) DT binding
  22. +
  23. +maintainers:
  24. + - Weijie Gao <[email protected]>
  25. +
  26. +description: |
  27. + This driver uses a single node to describe both NAND Flash controller
  28. + interface (NFI) and ECC engine for MT7621 SoC.
  29. + MT7621 supports only one chip select.
  30. +
  31. +properties:
  32. + "#address-cells": false
  33. + "#size-cells": false
  34. +
  35. + compatible:
  36. + enum:
  37. + - mediatek,mt7621-nfc
  38. +
  39. + reg:
  40. + items:
  41. + - description: Register base of NFI core
  42. + - description: Register base of ECC engine
  43. +
  44. + reg-names:
  45. + items:
  46. + - const: nfi
  47. + - const: ecc
  48. +
  49. + clocks:
  50. + items:
  51. + - description: Source clock for NFI core, fixed 125MHz
  52. +
  53. + clock-names:
  54. + items:
  55. + - const: nfi_clk
  56. +
  57. +required:
  58. + - compatible
  59. + - reg
  60. + - reg-names
  61. + - clocks
  62. + - clock-names
  63. +
  64. +examples:
  65. + - |
  66. + nficlock: nficlock {
  67. + #clock-cells = <0>;
  68. + compatible = "fixed-clock";
  69. +
  70. + clock-frequency = <125000000>;
  71. + };
  72. +
  73. + nand@1e003000 {
  74. + compatible = "mediatek,mt7621-nfc";
  75. +
  76. + reg = <0x1e003000 0x800
  77. + 0x1e003800 0x800>;
  78. + reg-names = "nfi", "ecc";
  79. +
  80. + clocks = <&nficlock>;
  81. + clock-names = "nfi_clk";
  82. + };