qca,ath79-ddr-controller.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/memory-controllers/qca,ath79-ddr-controller.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm Atheros AR7xxx/AR9xxx DDR controller
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. The DDR controller of the AR7xxx and AR9xxx families provides an interface to
  11. flush the FIFO between various devices and the DDR. This is mainly used by
  12. the IRQ controller to flush the FIFO before running the interrupt handler of
  13. such devices.
  14. properties:
  15. compatible:
  16. oneOf:
  17. - items:
  18. - const: qca,ar9132-ddr-controller
  19. - const: qca,ar7240-ddr-controller
  20. - items:
  21. - enum:
  22. - qca,ar7100-ddr-controller
  23. - qca,ar7240-ddr-controller
  24. "#qca,ddr-wb-channel-cells":
  25. description: |
  26. Specifies the number of cells needed to encode the write buffer channel
  27. index.
  28. $ref: /schemas/types.yaml#/definitions/uint32
  29. const: 1
  30. reg:
  31. maxItems: 1
  32. required:
  33. - compatible
  34. - "#qca,ddr-wb-channel-cells"
  35. - reg
  36. additionalProperties: false
  37. examples:
  38. - |
  39. ddr_ctrl: memory-controller@18000000 {
  40. compatible = "qca,ar9132-ddr-controller",
  41. "qca,ar7240-ddr-controller";
  42. reg = <0x18000000 0x100>;
  43. #qca,ddr-wb-channel-cells = <1>;
  44. };
  45. interrupt-controller {
  46. // ...
  47. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  48. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  49. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  50. };