cdns,hp-nfc.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mtd/cdns,hp-nfc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Cadence NAND controller
  7. maintainers:
  8. - Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
  9. allOf:
  10. - $ref: nand-controller.yaml
  11. properties:
  12. compatible:
  13. items:
  14. - const: cdns,hp-nfc
  15. reg:
  16. items:
  17. - description: Controller register set
  18. - description: Slave DMA data port register set
  19. reg-names:
  20. items:
  21. - const: reg
  22. - const: sdma
  23. interrupts:
  24. maxItems: 1
  25. clocks:
  26. maxItems: 1
  27. clock-names:
  28. items:
  29. - const: nf_clk
  30. dmas:
  31. maxItems: 1
  32. dma-coherent: true
  33. iommus:
  34. maxItems: 1
  35. cdns,board-delay-ps:
  36. description: |
  37. Estimated Board delay. The value includes the total round trip
  38. delay for the signals and is used for deciding on values associated
  39. with data read capture. The example formula for SDR mode is the
  40. following.
  41. board delay = RE#PAD delay + PCB trace to device + PCB trace from device
  42. + DQ PAD delay
  43. required:
  44. - compatible
  45. - reg
  46. - reg-names
  47. - interrupts
  48. - clocks
  49. - clock-names
  50. unevaluatedProperties: false
  51. examples:
  52. - |
  53. #include <dt-bindings/interrupt-controller/arm-gic.h>
  54. nand-controller@10b80000 {
  55. compatible = "cdns,hp-nfc";
  56. reg = <0x10b80000 0x10000>,
  57. <0x10840000 0x10000>;
  58. reg-names = "reg", "sdma";
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  62. clocks = <&clk>;
  63. clock-names = "nf_clk";
  64. cdns,board-delay-ps = <4830>;
  65. nand@0 {
  66. reg = <0>;
  67. };
  68. };