0142-mmc-dt-bindings-Add-reg-source_cg-latch-ck-for-Media.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 9ff279fef1a47a152993bf23f8d75fd233c27015 Mon Sep 17 00:00:00 2001
  2. From: Chaotian Jing <[email protected]>
  3. Date: Mon, 16 Oct 2017 09:46:28 +0800
  4. Subject: [PATCH 142/224] mmc: dt-bindings: Add reg/source_cg/latch-ck for
  5. Mediatek MMC bindings
  6. Change the comptiable for support of multi-platform
  7. Make compatible explicit, as MMC host of mt8173 has difference with
  8. mt8135(mt8173 supports hs400 and hs400_tune),so that need separate
  9. mt8173/mt8135 compatible name.
  10. Add description for reg
  11. Add description for source_cg
  12. Add description for mediatek,latch-ck
  13. Note that source_cg and mediatek,latch-ck are optional for some projects,
  14. eg, MT2701 do not have source_cg, and MT2712 do not need
  15. mediatek,latch-ck
  16. Signed-off-by: Chaotian Jing <[email protected]>
  17. Acked-by: Rob Herring <[email protected]>
  18. Tested-by: Sean Wang <[email protected]>
  19. Signed-off-by: Ulf Hansson <[email protected]>
  20. ---
  21. Documentation/devicetree/bindings/mmc/mtk-sd.txt | 18 +++++++++++++++---
  22. 1 file changed, 15 insertions(+), 3 deletions(-)
  23. --- a/Documentation/devicetree/bindings/mmc/mtk-sd.txt
  24. +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
  25. @@ -7,10 +7,18 @@ This file documents differences between
  26. and the properties used by the msdc driver.
  27. Required properties:
  28. -- compatible: Should be "mediatek,mt8173-mmc","mediatek,mt8135-mmc"
  29. +- compatible: value should be either of the following.
  30. + "mediatek,mt8135-mmc": for mmc host ip compatible with mt8135
  31. + "mediatek,mt8173-mmc": for mmc host ip compatible with mt8173
  32. + "mediatek,mt2701-mmc": for mmc host ip compatible with mt2701
  33. + "mediatek,mt2712-mmc": for mmc host ip compatible with mt2712
  34. +- reg: physical base address of the controller and length
  35. - interrupts: Should contain MSDC interrupt number
  36. -- clocks: MSDC source clock, HCLK
  37. -- clock-names: "source", "hclk"
  38. +- clocks: Should contain phandle for the clock feeding the MMC controller
  39. +- clock-names: Should contain the following:
  40. + "source" - source clock (required)
  41. + "hclk" - HCLK which used for host (required)
  42. + "source_cg" - independent source clock gate (required for MT2712)
  43. - pinctrl-names: should be "default", "state_uhs"
  44. - pinctrl-0: should contain default/high speed pin ctrl
  45. - pinctrl-1: should contain uhs mode pin ctrl
  46. @@ -30,6 +38,10 @@ Optional properties:
  47. - mediatek,hs400-cmd-resp-sel-rising: HS400 command response sample selection
  48. If present,HS400 command responses are sampled on rising edges.
  49. If not present,HS400 command responses are sampled on falling edges.
  50. +- mediatek,latch-ck: Some SoCs do not support enhance_rx, need set correct latch-ck to avoid data crc
  51. + error caused by stop clock(fifo full)
  52. + Valid range = [0:0x7]. if not present, default value is 0.
  53. + applied to compatible "mediatek,mt2701-mmc".
  54. Examples:
  55. mmc0: mmc@11230000 {