mtk-quadspi.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. * Serial NOR flash controller for MTK MT81xx (and similar)
  2. Required properties:
  3. - compatible: For mt8173, compatible should be "mediatek,mt8173-nor",
  4. and it's the fallback compatible for other Soc.
  5. For every other SoC, should contain both the SoC-specific compatible
  6. string and "mediatek,mt8173-nor".
  7. The possible values are:
  8. "mediatek,mt2701-nor", "mediatek,mt8173-nor"
  9. "mediatek,mt2712-nor", "mediatek,mt8173-nor"
  10. "mediatek,mt7622-nor", "mediatek,mt8173-nor"
  11. "mediatek,mt7623-nor", "mediatek,mt8173-nor"
  12. "mediatek,mt8173-nor"
  13. - reg: physical base address and length of the controller's register
  14. - clocks: the phandle of the clocks needed by the nor controller
  15. - clock-names: the names of the clocks
  16. the clocks should be named "spi" and "sf". "spi" is used for spi bus,
  17. and "sf" is used for controller, these are the clocks witch
  18. hardware needs to enabling nor flash and nor flash controller.
  19. See Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
  20. - #address-cells: should be <1>
  21. - #size-cells: should be <0>
  22. The SPI flash must be a child of the nor_flash node and must have a
  23. compatible property. Also see jedec,spi-nor.txt.
  24. Required properties:
  25. - compatible: May include a device-specific string consisting of the manufacturer
  26. and name of the chip. Must also include "jedec,spi-nor" for any
  27. SPI NOR flash that can be identified by the JEDEC READ ID opcode (0x9F).
  28. - reg : Chip-Select number
  29. Example:
  30. nor_flash: spi@1100d000 {
  31. compatible = "mediatek,mt8173-nor";
  32. reg = <0 0x1100d000 0 0xe0>;
  33. clocks = <&pericfg CLK_PERI_SPI>,
  34. <&topckgen CLK_TOP_SPINFI_IFR_SEL>;
  35. clock-names = "spi", "sf";
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. flash@0 {
  39. compatible = "jedec,spi-nor";
  40. reg = <0>;
  41. };
  42. };