0057-mtd-mediatek-device-tree-docs-for-MTK-Smart-Device-G.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 5f0a1fa77e5d53b8dbb751fcfc59c7ef3d78ddf2 Mon Sep 17 00:00:00 2001
  2. From: Jorge Ramirez-Ortiz <[email protected]>
  3. Date: Wed, 2 Mar 2016 12:00:11 -0500
  4. Subject: [PATCH 57/81] mtd: mediatek: device tree docs for MTK Smart Device
  5. Gen1 NAND
  6. This patch adds documentation support for Smart Device Gen1 type of
  7. NAND controllers.
  8. Mediatek's SoC 2701 is one of the SoCs that implements this controller.
  9. Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
  10. ---
  11. .../devicetree/bindings/mtd/mtksdg1-nand.txt | 38 ++++++++++++++++++++
  12. 1 file changed, 38 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt
  16. @@ -0,0 +1,38 @@
  17. +MTK Smart Device SoCs NAND controller DT binding
  18. +
  19. +Required properties:
  20. +- compatible: Should be "mediatek,mt2701-nfc".
  21. +- reg: The first contains base physical address and size of
  22. + NAND controller's registers. The second contains base
  23. + physical address and size of NAND ECC engine.
  24. +- interrupts: the NFC NFI interrupt, and the NFC ECC interrupt
  25. +- clocks: NAND controller clocks.
  26. +- clock-names: NAND controller clocks internal name.
  27. +- vmch-supply: NAND power supply.
  28. +- #address-cells: Partition address, should be set 1.
  29. +- #size-cells: Partition size, should be set 1.
  30. +
  31. +Optional properties:
  32. +
  33. +nand-on-flash-bbt: Use a flash based bad block table.
  34. +
  35. +Optional subnodes:
  36. +- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
  37. +
  38. +Example:
  39. +
  40. + nand: nand@1100d000 {
  41. + compatible = "mediatek,mt2701-nfc";
  42. + reg = <0 0x1100d000 0 0x1000>, <0 0x1100e000 0 0x1000>;
  43. + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>,
  44. + <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
  45. + clocks = <&pericfg CLK_PERI_NFI>, <&pericfg CLK_PERI_NFI_ECC>,
  46. + <&pericfg CLK_PERI_NFI_PAD>;
  47. + clock-names = "nfi_ck", "nfi_ecc_ck", "nfi_pad_ck";
  48. + vmch-supply = <&mt6323_vmch_reg>;
  49. + status = "disabled";
  50. + #address-cells = <1>;
  51. + #size-cells = <1>;
  52. +
  53. + ...
  54. + };